From 13ca6bbba83acc4110d671a10ff2456e0f144a3e Mon Sep 17 00:00:00 2001 From: Jonatan Witoszek Date: Fri, 28 Apr 2023 13:24:10 +0200 Subject: [PATCH] Remove transactions feature flag (#3557) * Update schema, remove transaction specific files * Merge `.transaction` queries and mutations into regular files * Merge OrderDetails fragments * Remove usage of `.transaction` graphl types * Update fixtures * Remove usage of useFlag, remove duplicated queries & mutations * Fix displayed event type for INFO * Remove type alias from order/types.ts, remove type casting * Fix failing tests * Add preview label and better description in Channel settings * Update button in GrantRefund page * Fix missing data-test-id * Extract messages * Visual fixes * Revert changes to generated files * Revert changes to generated files * Fix psp reference hover * Fix colors on manu refunds screen * Revert "Fix colors on manu refunds screen" This reverts commit 02302930ab502a4fdc3c71558532a2d74f2e32c9. --------- Co-authored-by: andrzejewsky Co-authored-by: Michal Miszczyszyn --- introspection.json | 6148 +- introspection.transactions.json | 118926 --------------- locale/defaultMessages.json | 21 +- schema.graphql | 3037 +- schema.transactions.graphql | 27256 ---- scripts/build-types.js | 2 +- .../components/ChannelForm/ChannelForm.tsx | 86 +- src/channels/components/ChannelForm/index.ts | 1 - src/channels/fixtures.ts | 33 + src/channels/mutations.transactions.ts | 29 - .../ChannelDetailsPage.stories.tsx | 5 - .../ChannelDetailsPage/ChannelDetailsPage.tsx | 12 +- src/channels/queries.transactions.ts | 9 - .../views/ChannelCreate/ChannelCreate.tsx | 44 +- .../views/ChannelDetails/ChannelDetails.tsx | 57 +- .../OverflowTooltip/OverflowTooltip.tsx | 8 +- .../Timeline/TimelineEventHeader.tsx | 8 +- src/components/Timeline/TimelineNote.tsx | 1 + src/fragments/channel.transactions.ts | 9 - src/fragments/channels.ts | 3 + src/fragments/errors.transactions.ts | 33 - src/fragments/errors.ts | 32 + src/fragments/orders.transactions.ts | 361 - src/fragments/orders.ts | 256 +- src/graphql/fragmentTypes.generated.ts | 66 +- .../fragmentTypes.transactions.generated.ts | 322 - src/graphql/hooks.generated.ts | 686 +- src/graphql/hooks.transactions.generated.ts | 3774 - src/graphql/transactions.ts | 25 - src/graphql/typePolicies.generated.ts | 7035 +- .../typePolicies.transactions.generated.ts | 8492 - src/graphql/types.generated.ts | 5819 +- src/graphql/types.transactions.generated.ts | 7627 - .../OrderAddTransaction.test.tsx | 7 +- .../OrderAddTransaction.tsx | 2 +- .../OrderCustomer/AddrssTextError.tsx | 2 +- .../OrderCustomer/OrderCustomer.tsx | 13 +- .../OrderCustomer/PickupAnnotation.tsx | 8 +- .../OrderDetailsPage.stories.tsx | 12 +- .../OrderDetailsPage/OrderDetailsPage.tsx | 26 +- .../components/OrderDetailsPage/Title.tsx | 4 +- .../components/OrderDetailsPage/utils.ts | 4 +- .../OrderDraftDetails/OrderDraftDetails.tsx | 10 +- .../OrderDraftDetailsProducts.tsx | 4 +- .../OrderDraftDetailsProducts/TableLine.tsx | 7 +- .../useLineAlerts.ts | 3 +- .../OrderDraftDetailsSummary.tsx | 9 +- .../OrderDraftPage/OrderDraftAlert.tsx | 10 +- .../OrderDraftPage/OrderDraftPage.tsx | 15 +- .../OrderFulfilledProductsCard.tsx | 13 +- .../OrderGrantRefundPage.tsx | 9 +- .../components/ProductCard.tsx | 2 +- .../components/RefundCard.tsx | 19 +- .../components/OrderGrantRefundPage/form.ts | 4 +- .../OrderGrantRefundPage/reducer.ts | 2 +- .../components/OrderGrantRefundPage/styles.ts | 1 - .../components/OrderGrantRefundPage/utils.ts | 2 +- .../OrderGrantedRefunds.tsx | 2 +- .../ExtendedDiscountTimelineEvent.tsx | 2 +- .../OrderHistory/ExtendedTimelineEvent.tsx | 2 +- .../OrderHistory/LinkedTimelineEvent.tsx | 5 +- .../components/OrderHistory/OrderHistory.tsx | 2 +- .../components/OrderHistory/messages.ts | 7 +- src/orders/components/OrderHistory/utils.tsx | 5 +- .../components/DescriptionField.tsx | 1 + .../components/PspReferenceField.tsx | 1 + .../OrderPaymentOrTransaction.test.tsx | 93 +- .../OrderPaymentOrTransaction.tsx | 24 +- .../OrderTransactionsWrapper.tsx | 12 +- .../OrderPaymentOrTransaction/utils.test.ts | 14 +- .../OrderPaymentOrTransaction/utils.ts | 2 +- .../OrderPaymentSummaryCard.tsx | 6 +- .../PaymentsSummary/PaymentsSummary.tsx | 2 +- .../components/PaymentsSummary/utils.test.ts | 18 +- .../components/PaymentsSummary/utils.ts | 2 +- .../components/RefundsSummary.tsx | 2 +- .../OrderPaymentSummaryCard/utils.ts | 10 +- .../OrderRefundReturnAmount/utils.ts | 22 +- .../OrderReturnPage/OrderReturnPage.tsx | 21 +- .../ReturnItemsCard.tsx | 9 +- .../components/OrderReturnPage/form.tsx | 9 +- .../components/OrderReturnPage/utils.tsx | 28 +- .../OrderSendRefund.stories.tsx | 6 +- .../OrderSendRefundPage/OrderSendRefund.tsx | 2 +- .../components/TransactionCard.tsx | 2 +- .../components/OrderSendRefundPage/styles.ts | 1 - .../OrderSummaryCard/OrderSummaryCard.tsx | 5 +- .../components/OrderSummaryCard/utils.ts | 10 +- .../components/OrderTransaction.stories.tsx | 2 +- .../OrderTransaction/OrderTransaction.tsx | 2 +- .../components/CardTitle/CardTitle.tsx | 2 +- .../TransactionEvents/TransactionEvents.tsx | 3 +- .../components/EventItem.tsx | 36 +- .../components/EventType.tsx | 4 +- .../components/PspReference.tsx | 9 +- .../components/OrderTransaction/utils.test.ts | 2 +- .../components/OrderTransaction/utils.ts | 15 +- .../OrderTransactionActionDialog.tsx | 2 +- .../OrderTransactionGiftCard.tsx | 2 +- .../OrderTransactionGiftCard/utils.ts | 5 +- .../OrderTransactionPayment.tsx | 2 +- .../OrderTransactionPayment/utils.ts | 2 +- src/orders/containers/OrderOperations.tsx | 14 +- src/orders/fixtures.ts | 303 +- src/orders/index.tsx | 29 +- src/orders/messages.ts | 4 +- src/orders/mutations.transactions.ts | 129 - src/orders/mutations.ts | 130 + src/orders/queries.transactions.ts | 45 - src/orders/queries.ts | 26 + src/orders/types.ts | 104 +- src/orders/urls.ts | 2 +- src/orders/utils/data.test.ts | 6 +- src/orders/utils/data.ts | 26 +- .../views/OrderDetails/OrderDetails.tsx | 24 +- .../OrderDetails/OrderDetailsMessages.tsx | 6 +- .../OrderDetails/OrderDraftDetails/index.tsx | 10 +- .../OrderDetails/OrderNormalDetails/index.tsx | 15 +- .../OrderUnconfirmedDetails/index.tsx | 11 +- .../OrderEditGrantRefund.tsx | 2 +- .../OrderGrantRefund/OrderGrantRefund.tsx | 2 +- src/orders/views/OrderReturn/OrderReturn.tsx | 8 +- .../views/OrderSendRefund/OrderSendRefund.tsx | 2 +- .../OrderDiscountProvider.tsx | 4 +- .../OrderLineDiscountProvider.tsx | 4 +- .../OrderDiscountProviders/utils.ts | 13 +- src/utils/errors/order.ts | 3 +- src/utils/errors/transaction.ts | 2 +- 128 files changed, 16518 insertions(+), 175232 deletions(-) delete mode 100644 introspection.transactions.json delete mode 100644 schema.transactions.graphql delete mode 100644 src/channels/mutations.transactions.ts delete mode 100644 src/channels/queries.transactions.ts delete mode 100644 src/fragments/channel.transactions.ts delete mode 100644 src/fragments/errors.transactions.ts delete mode 100644 src/fragments/orders.transactions.ts delete mode 100644 src/graphql/fragmentTypes.transactions.generated.ts delete mode 100644 src/graphql/hooks.transactions.generated.ts delete mode 100644 src/graphql/transactions.ts delete mode 100644 src/graphql/typePolicies.transactions.generated.ts delete mode 100644 src/graphql/types.transactions.generated.ts delete mode 100644 src/orders/mutations.transactions.ts delete mode 100644 src/orders/queries.transactions.ts diff --git a/introspection.json b/introspection.json index 3472cfab4..ce5832eac 100644 --- a/introspection.json +++ b/introspection.json @@ -333,7 +333,7 @@ { "kind": "OBJECT", "name": "AccountError", - "description": null, + "description": "Represents errors in account mutations.", "fields": [ { "name": "field", @@ -621,7 +621,7 @@ { "kind": "INPUT_OBJECT", "name": "AccountInput", - "description": null, + "description": "Fields required to update the user.", "fields": null, "inputFields": [ { @@ -785,7 +785,7 @@ { "kind": "INPUT_OBJECT", "name": "AccountRegisterInput", - "description": null, + "description": "Fields required to create a user.", "fields": null, "inputFields": [ { @@ -1608,7 +1608,7 @@ { "kind": "OBJECT", "name": "AddressCreated", - "description": "Event sent when new address is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new address is created.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -1768,7 +1768,7 @@ { "kind": "OBJECT", "name": "AddressDeleted", - "description": "Event sent when address is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when address is deleted.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -2165,7 +2165,7 @@ { "kind": "OBJECT", "name": "AddressUpdated", - "description": "Event sent when address is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when address is updated.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -2242,7 +2242,7 @@ { "kind": "OBJECT", "name": "AddressValidationData", - "description": null, + "description": "Represents address validation rules for a country.", "fields": [ { "name": "countryCode", @@ -3119,7 +3119,7 @@ }, { "name": "extensions", - "description": "App's dashboard extensions.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "App's dashboard extensions.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "NON_NULL", @@ -3634,7 +3634,7 @@ { "kind": "OBJECT", "name": "AppDeleted", - "description": "Event sent when app is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when app is deleted.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -4734,7 +4734,7 @@ { "kind": "OBJECT", "name": "AppInstalled", - "description": "Event sent when new app is installed.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new app is installed.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -5151,7 +5151,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort apps.", "type": { "kind": "NON_NULL", "name": null, @@ -5189,7 +5189,7 @@ { "kind": "OBJECT", "name": "AppStatusChanged", - "description": "Event sent when app status has changed.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when app status has changed.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -5685,7 +5685,7 @@ { "kind": "OBJECT", "name": "AppUpdated", - "description": "Event sent when app is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when app is updated.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -6239,7 +6239,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -6251,7 +6251,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -6441,7 +6441,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -6453,7 +6453,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -6506,7 +6506,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -6518,7 +6518,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -6676,7 +6676,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort attribute choices.", "type": { "kind": "NON_NULL", "name": null, @@ -7098,7 +7098,7 @@ { "kind": "OBJECT", "name": "AttributeCreated", - "description": "Event sent when new attribute is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new attribute is created.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -7246,7 +7246,7 @@ { "kind": "OBJECT", "name": "AttributeDeleted", - "description": "Event sent when attribute is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when attribute is deleted.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -8052,7 +8052,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort attributes.", "type": { "kind": "NON_NULL", "name": null, @@ -8636,7 +8636,7 @@ { "kind": "OBJECT", "name": "AttributeUpdated", - "description": "Event sent when attribute is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when attribute is updated.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -9282,7 +9282,7 @@ { "kind": "OBJECT", "name": "AttributeValueCreated", - "description": "Event sent when new attribute value is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new attribute value is created.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -9442,7 +9442,7 @@ { "kind": "OBJECT", "name": "AttributeValueDeleted", - "description": "Event sent when attribute value is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when attribute value is deleted.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -10311,7 +10311,7 @@ { "kind": "OBJECT", "name": "AttributeValueUpdated", - "description": "Event sent when attribute value is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when attribute value is updated.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -11072,7 +11072,7 @@ { "kind": "OBJECT", "name": "CalculateTaxes", - "description": "Synchronous webhook for calculating checkout/order taxes.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Synchronous webhook for calculating checkout/order taxes.\n\nAdded in Saleor 3.7.", "fields": [ { "name": "issuedAt", @@ -11627,7 +11627,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -11639,7 +11639,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -11724,7 +11724,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -11736,7 +11736,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -11785,7 +11785,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -11797,7 +11797,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -11834,7 +11834,7 @@ }, { "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -12154,7 +12154,7 @@ { "kind": "OBJECT", "name": "CategoryCreated", - "description": "Event sent when new category is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new category is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -12302,7 +12302,7 @@ { "kind": "OBJECT", "name": "CategoryDeleted", - "description": "Event sent when category is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when category is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -12619,7 +12619,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort categories.", "type": { "kind": "NON_NULL", "name": null, @@ -13058,7 +13058,7 @@ { "kind": "OBJECT", "name": "CategoryUpdated", - "description": "Event sent when category is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when category is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -13251,7 +13251,7 @@ }, { "name": "warehouses", - "description": "List of warehouses assigned to this channel.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", + "description": "List of warehouses assigned to this channel.\n\nAdded in Saleor 3.5.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", "args": [], "type": { "kind": "NON_NULL", @@ -13275,7 +13275,7 @@ }, { "name": "countries", - "description": "List of shippable countries for the channel.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List of shippable countries for the channel.\n\nAdded in Saleor 3.6.", "args": [], "type": { "kind": "LIST", @@ -13295,7 +13295,7 @@ }, { "name": "availableShippingMethodsPerCountry", - "description": "Shipping methods that are available for the channel.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Shipping methods that are available for the channel.\n\nAdded in Saleor 3.6.", "args": [ { "name": "countries", @@ -13336,7 +13336,7 @@ }, { "name": "stockSettings", - "description": "Define the stock setting for this channel.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", + "description": "Define the stock setting for this channel.\n\nAdded in Saleor 3.7.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", "args": [], "type": { "kind": "NON_NULL", @@ -13540,7 +13540,7 @@ }, { "name": "stockSettings", - "description": "The channel stock settings.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The channel stock settings.\n\nAdded in Saleor 3.7.", "type": { "kind": "INPUT_OBJECT", "name": "StockSettingsInput", @@ -13572,7 +13572,7 @@ }, { "name": "addWarehouses", - "description": "List of warehouses to assign to the channel.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List of warehouses to assign to the channel.\n\nAdded in Saleor 3.5.", "type": { "kind": "LIST", "name": null, @@ -13652,7 +13652,7 @@ }, { "name": "defaultCountry", - "description": "Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.\n\nAdded in Saleor 3.1.", "type": { "kind": "NON_NULL", "name": null, @@ -13674,7 +13674,7 @@ { "kind": "OBJECT", "name": "ChannelCreated", - "description": "Event sent when new channel is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new channel is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -13920,7 +13920,7 @@ { "kind": "OBJECT", "name": "ChannelDeleted", - "description": "Event sent when channel is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when channel is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -14216,7 +14216,7 @@ { "kind": "OBJECT", "name": "ChannelReorderWarehouses", - "description": "Reorder the warehouses of a channel.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", + "description": "Reorder the warehouses of a channel.\n\nAdded in Saleor 3.7. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", "fields": [ { "name": "channel", @@ -14263,7 +14263,7 @@ { "kind": "OBJECT", "name": "ChannelStatusChanged", - "description": "Event sent when channel status has changed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when channel status has changed.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -14428,7 +14428,7 @@ }, { "name": "stockSettings", - "description": "The channel stock settings.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The channel stock settings.\n\nAdded in Saleor 3.7.", "type": { "kind": "INPUT_OBJECT", "name": "StockSettingsInput", @@ -14460,7 +14460,7 @@ }, { "name": "addWarehouses", - "description": "List of warehouses to assign to the channel.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List of warehouses to assign to the channel.\n\nAdded in Saleor 3.5.", "type": { "kind": "LIST", "name": null, @@ -14548,7 +14548,7 @@ }, { "name": "removeWarehouses", - "description": "List of warehouses to unassign from the channel.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List of warehouses to unassign from the channel.\n\nAdded in Saleor 3.5.", "type": { "kind": "LIST", "name": null, @@ -14574,7 +14574,7 @@ { "kind": "OBJECT", "name": "ChannelUpdated", - "description": "Event sent when channel is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when channel is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -14858,8 +14858,8 @@ "deprecationReason": null }, { - "name": "lastChange", - "description": null, + "name": "updatedAt", + "description": "Time of last modification of the given checkout.\n\nAdded in Saleor 3.13.", "args": [], "type": { "kind": "NON_NULL", @@ -14873,6 +14873,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "lastChange", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 4.0. Use `updatedAt` instead." + }, { "name": "user", "description": null, @@ -15039,7 +15055,7 @@ }, { "name": "availableCollectionPoints", - "description": "Collection points that can be used for this order.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Collection points that can be used for this order.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "NON_NULL", @@ -15219,7 +15235,7 @@ }, { "name": "deliveryMethod", - "description": "The delivery method selected for this checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The delivery method selected for this checkout.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "UNION", @@ -15247,7 +15263,7 @@ }, { "name": "taxExemption", - "description": "Returns True if checkout has to be exempt from taxes.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Returns True if checkout has to be exempt from taxes.\n\nAdded in Saleor 3.8.", "args": [], "type": { "kind": "NON_NULL", @@ -15293,6 +15309,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "totalBalance", + "description": "The difference between the paid and the checkout total amount.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "languageCode", "description": "Checkout language code.", @@ -15331,7 +15363,7 @@ }, { "name": "displayGrossPrices", - "description": "Determines whether checkout prices should include taxes when displayed in a storefront.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines whether checkout prices should include taxes when displayed in a storefront.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "NON_NULL", @@ -15344,6 +15376,38 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "authorizeStatus", + "description": "The authorize status of the checkout.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CheckoutAuthorizeStatusEnum", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "chargeStatus", + "description": "The charge status of the checkout.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CheckoutChargeStatusEnum", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -15480,6 +15544,35 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "CheckoutAuthorizeStatusEnum", + "description": "Determine a current authorize status for checkout.\n\n We treat the checkout as fully authorized when the sum of authorized and charged\n funds cover the checkout.total.\n We treat the checkout as partially authorized when the sum of authorized and charged\n funds covers only part of the checkout.total\n We treat the checkout as not authorized when the sum of authorized and charged funds\n is 0.\n\n NONE - the funds are not authorized\n PARTIAL - the cover funds don't cover fully the checkout's total\n FULL - the cover funds covers the checkout's total\n ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "NONE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PARTIAL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FULL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CheckoutBillingAddressUpdate", @@ -15551,6 +15644,41 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "CheckoutChargeStatusEnum", + "description": "Determine the current charge status for the checkout.\n\n The checkout is considered overcharged when the sum of the transactionItem's charge\n amounts exceeds the value of `checkout.total`.\n If the sum of the transactionItem's charge amounts equals\n `checkout.total`, we consider the checkout to be fully charged.\n If the sum of the transactionItem's charge amounts covers a part of the\n `checkout.total`, we treat the checkout as partially charged.\n\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the checkout's total\n FULL - the funds that are charged fully cover the checkout's total\n OVERCHARGED - the charged funds are bigger than checkout's total\n ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "NONE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PARTIAL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FULL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "OVERCHARGED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CheckoutComplete", @@ -15931,7 +16059,7 @@ }, { "name": "validationRules", - "description": "The checkout validation rules that can be changed.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The checkout validation rules that can be changed.\n\nAdded in Saleor 3.5.", "type": { "kind": "INPUT_OBJECT", "name": "CheckoutValidationRules", @@ -15949,7 +16077,7 @@ { "kind": "OBJECT", "name": "CheckoutCreated", - "description": "Event sent when new checkout is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new checkout is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -16168,7 +16296,7 @@ { "kind": "OBJECT", "name": "CheckoutDeliveryMethodUpdate", - "description": "Updates the delivery method (shipping method or pick up point) of the checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Updates the delivery method (shipping method or pick up point) of the checkout.\n\nAdded in Saleor 3.1.", "fields": [ { "name": "checkout", @@ -16646,6 +16774,58 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "updatedAt", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "DateRangeInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "authorizeStatus", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CheckoutAuthorizeStatusEnum", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "chargeStatus", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CheckoutChargeStatusEnum", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -16655,7 +16835,7 @@ { "kind": "OBJECT", "name": "CheckoutFilterShippingMethods", - "description": "Filter shipping methods for checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Filter shipping methods for checkout.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -16719,7 +16899,7 @@ }, { "name": "shippingMethods", - "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.", "args": [], "type": { "kind": "LIST", @@ -16749,6 +16929,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CheckoutFullyPaid", + "description": "Event sent when checkout is fully paid with transactions.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "checkout", + "description": "The checkout the event relates to.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Checkout", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CheckoutLanguageCodeUpdate", @@ -17359,7 +17616,7 @@ }, { "name": "price", - "description": "Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "PositiveDecimal", @@ -17371,7 +17628,7 @@ }, { "name": "forceNewLine", - "description": "Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. \n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. \n\nAdded in Saleor 3.6.", "type": { "kind": "SCALAR", "name": "Boolean", @@ -17438,7 +17695,7 @@ }, { "name": "price", - "description": "Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "PositiveDecimal", @@ -17657,7 +17914,7 @@ { "kind": "OBJECT", "name": "CheckoutMetadataUpdated", - "description": "Event sent when checkout metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when checkout metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -18064,7 +18321,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort checkouts.", "type": { "kind": "NON_NULL", "name": null, @@ -18102,7 +18359,7 @@ { "kind": "OBJECT", "name": "CheckoutUpdated", - "description": "Event sent when checkout is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when checkout is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -18585,7 +18842,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -18597,7 +18854,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -18634,7 +18891,7 @@ }, { "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -19534,7 +19791,7 @@ { "kind": "OBJECT", "name": "CollectionCreated", - "description": "Event sent when new collection is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new collection is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -19695,7 +19952,7 @@ { "kind": "OBJECT", "name": "CollectionDeleted", - "description": "Event sent when collection is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when collection is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -20163,7 +20420,7 @@ { "kind": "OBJECT", "name": "CollectionMetadataUpdated", - "description": "Event sent when collection metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when collection metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -20464,7 +20721,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort collections.", "type": { "kind": "NON_NULL", "name": null, @@ -20903,7 +21160,7 @@ { "kind": "OBJECT", "name": "CollectionUpdated", - "description": "Event sent when collection is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when collection is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -23241,6 +23498,285 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CustomerBulkResult", + "description": null, + "fields": [ + { + "name": "customer", + "description": "Customer data.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": "List of errors that occurred during the update attempt.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CustomerBulkUpdateError", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "CustomerBulkUpdate", + "description": "Updates customers.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_USERS.", + "fields": [ + { + "name": "count", + "description": "Returns how many objects were created.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "results", + "description": "List of the updated customers.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CustomerBulkResult", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CustomerBulkUpdateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "CustomerBulkUpdateError", + "description": null, + "fields": [ + { + "name": "path", + "description": "Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CustomerBulkUpdateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "CustomerBulkUpdateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "BLANK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "DUPLICATED_INPUT_ITEM", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNIQUE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MAX_LENGTH", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CustomerBulkUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": "ID of a customer to update.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalReference", + "description": "External ID of a customer to update.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "input", + "description": "Fields required to update a customer.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CustomerInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CustomerCreate", @@ -23315,7 +23851,7 @@ { "kind": "OBJECT", "name": "CustomerCreated", - "description": "Event sent when new customer user is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new customer user is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -23923,7 +24459,7 @@ { "kind": "OBJECT", "name": "CustomerMetadataUpdated", - "description": "Event sent when customer user metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when customer user metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -24071,7 +24607,7 @@ { "kind": "OBJECT", "name": "CustomerUpdated", - "description": "Event sent when customer user is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when customer user is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -24294,6 +24830,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "Decimal", + "description": "Custom Decimal implementation.\n\nReturns Decimal as a float in the API,\nparses float to the Decimal on the way back.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "DeleteMetadata", @@ -24439,7 +24985,7 @@ { "kind": "UNION", "name": "DeliveryMethod", - "description": "Represents a delivery method chosen for the checkout. `Warehouse` type is used when checkout is marked as \"click and collect\" and `ShippingMethod` otherwise.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Represents a delivery method chosen for the checkout. `Warehouse` type is used when checkout is marked as \"click and collect\" and `ShippingMethod` otherwise.\n\nAdded in Saleor 3.1.", "fields": null, "inputFields": null, "interfaces": null, @@ -26238,7 +26784,7 @@ { "kind": "OBJECT", "name": "DraftOrderCreated", - "description": "Event sent when new draft order is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new draft order is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -26386,7 +26932,7 @@ { "kind": "OBJECT", "name": "DraftOrderDeleted", - "description": "Event sent when draft order is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when draft order is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -26752,7 +27298,7 @@ { "kind": "OBJECT", "name": "DraftOrderUpdated", - "description": "Event sent when draft order is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when draft order is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -27028,6 +27574,11 @@ "name": "CheckoutFilterShippingMethods", "ofType": null }, + { + "kind": "OBJECT", + "name": "CheckoutFullyPaid", + "ofType": null + }, { "kind": "OBJECT", "name": "CheckoutMetadataUpdated", @@ -27123,6 +27674,11 @@ "name": "GiftCardMetadataUpdated", "ofType": null }, + { + "kind": "OBJECT", + "name": "GiftCardSent", + "ofType": null + }, { "kind": "OBJECT", "name": "GiftCardStatusChanged", @@ -27193,6 +27749,11 @@ "name": "OrderCreated", "ofType": null }, + { + "kind": "OBJECT", + "name": "OrderExpired", + "ofType": null + }, { "kind": "OBJECT", "name": "OrderFilterShippingMethods", @@ -27263,6 +27824,11 @@ "name": "PaymentConfirmEvent", "ofType": null }, + { + "kind": "OBJECT", + "name": "PaymentGatewayInitializeSession", + "ofType": null + }, { "kind": "OBJECT", "name": "PaymentListGateways", @@ -27453,11 +28019,36 @@ "name": "TransactionActionRequest", "ofType": null }, + { + "kind": "OBJECT", + "name": "TransactionCancelationRequested", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "TransactionChargeRequested", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "TransactionInitializeSession", + "ofType": null + }, { "kind": "OBJECT", "name": "TransactionItemMetadataUpdated", "ofType": null }, + { + "kind": "OBJECT", + "name": "TransactionProcessSession", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "TransactionRefundRequested", + "ofType": null + }, { "kind": "OBJECT", "name": "TranslationCreated", @@ -27621,7 +28212,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -27633,7 +28224,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -27944,7 +28535,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort attempts.", "type": { "kind": "NON_NULL", "name": null, @@ -28192,7 +28783,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort deliveries.", "type": { "kind": "NON_NULL", "name": null, @@ -28868,7 +29459,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort export file.", "type": { "kind": "NON_NULL", "name": null, @@ -28906,7 +29497,7 @@ { "kind": "OBJECT", "name": "ExportGiftCards", - "description": "Export gift cards to csv file.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Export gift cards to csv file.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "fields": [ { "name": "exportFile", @@ -29345,7 +29936,7 @@ { "kind": "OBJECT", "name": "ExternalAuthenticationUrl", - "description": "Prepare external authentication url for user by custom plugin.", + "description": "Prepare external authentication URL for user by custom plugin.", "fields": [ { "name": "authenticationData", @@ -30518,7 +31109,7 @@ { "kind": "OBJECT", "name": "FulfillmentApproved", - "description": "Event sent when fulfillment is approved.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when fulfillment is approved.\n\nAdded in Saleor 3.7.", "fields": [ { "name": "issuedAt", @@ -30713,7 +31304,7 @@ { "kind": "OBJECT", "name": "FulfillmentCanceled", - "description": "Event sent when fulfillment is canceled.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when fulfillment is canceled.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -30802,7 +31393,7 @@ { "kind": "OBJECT", "name": "FulfillmentCreated", - "description": "Event sent when new fulfillment is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new fulfillment is created.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -30952,7 +31543,7 @@ { "kind": "OBJECT", "name": "FulfillmentMetadataUpdated", - "description": "Event sent when fulfillment metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when fulfillment metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -31707,7 +32298,7 @@ }, { "name": "createdBy", - "description": "The user who bought or issued a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The user who bought or issued a gift card.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "OBJECT", @@ -31719,7 +32310,7 @@ }, { "name": "usedBy", - "description": "The customer who used a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The customer who used a gift card.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "OBJECT", @@ -31731,7 +32322,7 @@ }, { "name": "createdByEmail", - "description": "Email address of the user who bought or issued gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_USERS, OWNER.", + "description": "Email address of the user who bought or issued gift card.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_USERS, OWNER.", "args": [], "type": { "kind": "SCALAR", @@ -31743,7 +32334,7 @@ }, { "name": "usedByEmail", - "description": "Email address of the customer who used a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Email address of the customer who used a gift card.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "SCALAR", @@ -31779,7 +32370,7 @@ }, { "name": "app", - "description": "App which created the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_APPS, OWNER.", + "description": "App which created the gift card.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_APPS, OWNER.", "args": [], "type": { "kind": "OBJECT", @@ -31791,7 +32382,7 @@ }, { "name": "product", - "description": "Related gift card product.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Related gift card product.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "OBJECT", @@ -31803,7 +32394,7 @@ }, { "name": "events", - "description": "List of events associated with the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "List of events associated with the gift card.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "filter", @@ -31840,7 +32431,7 @@ }, { "name": "tags", - "description": "The gift card tag.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "The gift card tag.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [], "type": { "kind": "NON_NULL", @@ -31864,7 +32455,7 @@ }, { "name": "boughtInChannel", - "description": "Slug of the channel where the gift card was bought.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Slug of the channel where the gift card was bought.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "SCALAR", @@ -32049,7 +32640,7 @@ { "kind": "OBJECT", "name": "GiftCardAddNote", - "description": "Adds note to the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Adds note to the gift card.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "fields": [ { "name": "giftCard", @@ -32135,7 +32726,7 @@ { "kind": "OBJECT", "name": "GiftCardBulkActivate", - "description": "Activate gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Activate gift cards.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "fields": [ { "name": "count", @@ -32186,7 +32777,7 @@ { "kind": "OBJECT", "name": "GiftCardBulkCreate", - "description": "Create gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Create gift cards.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "fields": [ { "name": "count", @@ -32352,7 +32943,7 @@ { "kind": "OBJECT", "name": "GiftCardBulkDeactivate", - "description": "Deactivate gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Deactivate gift cards.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "fields": [ { "name": "count", @@ -32403,7 +32994,7 @@ { "kind": "OBJECT", "name": "GiftCardBulkDelete", - "description": "Delete gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Delete gift cards.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "fields": [ { "name": "count", @@ -32636,7 +33227,7 @@ "inputFields": [ { "name": "addTags", - "description": "The gift card tags to add.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card tags to add.\n\nAdded in Saleor 3.1.", "type": { "kind": "LIST", "name": null, @@ -32656,7 +33247,7 @@ }, { "name": "expiryDate", - "description": "The gift card expiry date.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card expiry date.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Date", @@ -32720,7 +33311,7 @@ }, { "name": "channel", - "description": "Slug of a channel from which the email should be sent.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Slug of a channel from which the email should be sent.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "String", @@ -32732,7 +33323,7 @@ }, { "name": "isActive", - "description": "Determine if gift card is active.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determine if gift card is active.\n\nAdded in Saleor 3.1.", "type": { "kind": "NON_NULL", "name": null, @@ -32760,7 +33351,7 @@ }, { "name": "note", - "description": "The gift card note from the staff member.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card note from the staff member.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "String", @@ -32778,7 +33369,7 @@ { "kind": "OBJECT", "name": "GiftCardCreated", - "description": "Event sent when new gift card is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new gift card is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -32926,7 +33517,7 @@ { "kind": "OBJECT", "name": "GiftCardDelete", - "description": "Delete gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Delete gift card.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "fields": [ { "name": "giftCardErrors", @@ -32997,7 +33588,7 @@ { "kind": "OBJECT", "name": "GiftCardDeleted", - "description": "Event sent when gift card is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when gift card is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -33204,7 +33795,7 @@ { "kind": "OBJECT", "name": "GiftCardEvent", - "description": "History log of the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "History log of the gift card.\n\nAdded in Saleor 3.1.", "fields": [ { "name": "id", @@ -33761,7 +34352,7 @@ { "kind": "OBJECT", "name": "GiftCardMetadataUpdated", - "description": "Event sent when gift card metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when gift card metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -33838,7 +34429,7 @@ { "kind": "OBJECT", "name": "GiftCardResend", - "description": "Resend a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Resend a gift card.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "fields": [ { "name": "giftCard", @@ -33937,6 +34528,107 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "GiftCardSent", + "description": "Event sent when gift card is e-mailed.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "giftCard", + "description": "The gift card the event relates to.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "GiftCard", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "channel", + "description": "Slug of a channel for which this gift card email was sent.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sentToEmail", + "description": "E-mail address to which gift card was sent.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "GiftCardSettings", @@ -34204,7 +34896,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort gift cards.", "type": { "kind": "NON_NULL", "name": null, @@ -34242,7 +34934,7 @@ { "kind": "OBJECT", "name": "GiftCardStatusChanged", - "description": "Event sent when gift card status has changed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when gift card status has changed.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -34319,7 +35011,7 @@ { "kind": "OBJECT", "name": "GiftCardTag", - "description": "The gift card tag.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card tag.\n\nAdded in Saleor 3.1.", "fields": [ { "name": "id", @@ -34573,7 +35265,7 @@ "inputFields": [ { "name": "addTags", - "description": "The gift card tags to add.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card tags to add.\n\nAdded in Saleor 3.1.", "type": { "kind": "LIST", "name": null, @@ -34593,7 +35285,7 @@ }, { "name": "expiryDate", - "description": "The gift card expiry date.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card expiry date.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Date", @@ -34629,7 +35321,7 @@ }, { "name": "removeTags", - "description": "The gift card tags to remove.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card tags to remove.\n\nAdded in Saleor 3.1.", "type": { "kind": "LIST", "name": null, @@ -34649,7 +35341,7 @@ }, { "name": "balanceAmount", - "description": "The gift card balance amount.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The gift card balance amount.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "PositiveDecimal", @@ -34667,7 +35359,7 @@ { "kind": "OBJECT", "name": "GiftCardUpdated", - "description": "Event sent when gift card is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when gift card is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -35537,7 +36229,7 @@ { "kind": "OBJECT", "name": "InvoiceDeleted", - "description": "Event sent when invoice is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when invoice is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -35890,7 +36582,7 @@ { "kind": "OBJECT", "name": "InvoiceRequested", - "description": "Event sent when invoice is requested.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when invoice is requested.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -36054,7 +36746,7 @@ { "kind": "OBJECT", "name": "InvoiceSent", - "description": "Event sent when invoice is sent.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when invoice is sent.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -36232,6 +36924,16 @@ } ] }, + { + "kind": "SCALAR", + "name": "JSON", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "SCALAR", "name": "JSONString", @@ -41401,7 +42103,7 @@ }, { "name": "webhooks", - "description": "List of the app's webhooks.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List of the app's webhooks.\n\nAdded in Saleor 3.5.", "args": [], "type": { "kind": "NON_NULL", @@ -41425,7 +42127,7 @@ }, { "name": "audience", - "description": "The audience that will be included in all JWT tokens for the app.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The audience that will be included in all JWT tokens for the app.\n\nAdded in Saleor 3.8.", "args": [], "type": { "kind": "SCALAR", @@ -41500,6 +42202,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "MarkAsPaidStrategyEnum", + "description": "Determine the mark as paid strategy for the channel.\n\n TRANSACTION_FLOW - new orders marked as paid will receive a\n `TransactionItem` object, that will cover the `order.total`.\n\n PAYMENT_FLOW - new orders marked as paid will receive a\n `Payment` object, that will cover the `order.total`.\n\n ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "TRANSACTION_FLOW", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PAYMENT_FLOW", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "ENUM", "name": "MeasurementUnitsEnum", @@ -41751,6 +42476,53 @@ ], "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "MediaInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "alt", + "description": "Alt text for a product media.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "image", + "description": "Represents an image file in a multipart request.", + "type": { + "kind": "SCALAR", + "name": "Upload", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mediaUrl", + "description": "Represents an URL to an external media.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "MediaSortingInput", @@ -41759,7 +42531,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort media.", "type": { "kind": "NON_NULL", "name": null, @@ -42370,7 +43142,7 @@ { "kind": "OBJECT", "name": "MenuCreated", - "description": "Event sent when new menu is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new menu is created.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -42531,7 +43303,7 @@ { "kind": "OBJECT", "name": "MenuDeleted", - "description": "Event sent when menu is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when menu is deleted.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -43577,7 +44349,7 @@ { "kind": "OBJECT", "name": "MenuItemCreated", - "description": "Event sent when new menu item is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new menu item is created.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -43738,7 +44510,7 @@ { "kind": "OBJECT", "name": "MenuItemDeleted", - "description": "Event sent when menu item is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when menu item is deleted.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -44069,7 +44841,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort menu items.", "type": { "kind": "NON_NULL", "name": null, @@ -44404,7 +45176,7 @@ { "kind": "OBJECT", "name": "MenuItemUpdated", - "description": "Event sent when menu item is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when menu item is updated.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -44539,7 +45311,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort menus.", "type": { "kind": "NON_NULL", "name": null, @@ -44648,7 +45420,7 @@ { "kind": "OBJECT", "name": "MenuUpdated", - "description": "Event sent when menu is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when menu is updated.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -44962,6 +45734,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "Minute", + "description": "The `Minute` scalar type represents number of minutes by integer value.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Money", @@ -45560,7 +46342,7 @@ }, { "name": "taxClassCreate", - "description": "Create a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Create a tax class.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "args": [ { "name": "input", @@ -45589,7 +46371,7 @@ }, { "name": "taxClassDelete", - "description": "Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "args": [ { "name": "id", @@ -45618,7 +46400,7 @@ }, { "name": "taxClassUpdate", - "description": "Update a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Update a tax class.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "args": [ { "name": "id", @@ -45663,7 +46445,7 @@ }, { "name": "taxConfigurationUpdate", - "description": "Update tax configuration for a channel.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Update tax configuration for a channel.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "args": [ { "name": "id", @@ -45708,7 +46490,7 @@ }, { "name": "taxCountryConfigurationUpdate", - "description": "Update tax class rates for a specific country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Update tax class rates for a specific country.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "args": [ { "name": "countryCode", @@ -45761,7 +46543,7 @@ }, { "name": "taxCountryConfigurationDelete", - "description": "Remove all tax class rates for a specific country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Remove all tax class rates for a specific country.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "args": [ { "name": "countryCode", @@ -45790,7 +46572,7 @@ }, { "name": "taxExemptionManage", - "description": "Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.\n\nAdded in Saleor 3.8. \n\nRequires one of the following permissions: MANAGE_TAXES.", "args": [ { "name": "id", @@ -47506,6 +48288,55 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "productBulkCreate", + "description": "Creates products.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", + "args": [ + { + "name": "errorPolicy", + "description": "Policies of error handling.", + "type": { + "kind": "ENUM", + "name": "ErrorPolicyEnum", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "products", + "description": "Input list of products to create.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ProductBulkCreateInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ProductBulkCreate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "productBulkDelete", "description": "Deletes products. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", @@ -49109,7 +49940,7 @@ }, { "name": "productVariantPreorderDeactivate", - "description": "Deactivates product variant preorder. It changes all preorder allocation into regular allocation.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", + "description": "Deactivates product variant preorder. It changes all preorder allocation into regular allocation.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", "args": [ { "name": "id", @@ -49421,7 +50252,7 @@ }, { "name": "transactionCreate", - "description": "Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS.", "args": [ { "name": "id", @@ -49478,7 +50309,7 @@ }, { "name": "transactionUpdate", - "description": "Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", "args": [ { "name": "id", @@ -49531,7 +50362,7 @@ }, { "name": "transactionRequestAction", - "description": "Request an action for payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS.", + "description": "Request an action for payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS.", "args": [ { "name": "actionType", @@ -49586,6 +50417,310 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "transactionEventReport", + "description": "Report the event for the transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", + "args": [ + { + "name": "amount", + "description": "The amount of the event to report.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "availableActions", + "description": "List of all possible actions for the transaction", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionActionEnum", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalUrl", + "description": "The url that will allow to redirect user to payment provider page with event details.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the transaction.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The message related to the event.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pspReference", + "description": "PSP Reference of the event to report.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "time", + "description": "The time of the event to report. If not provide, the current time will be used.", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "Current status of the event to report.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionEventTypeEnum", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "TransactionEventReport", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "paymentGatewayInitialize", + "description": "Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "amount", + "description": "The amount requested for initializing the payment gateway. If not provided, the difference between checkout.total - transactions that are already processed will be send.", + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the checkout or order.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "paymentGateways", + "description": "List of payment gateways to initialize.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PaymentGatewayToInitialize", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "PaymentGatewayInitialize", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionInitialize", + "description": "Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. \n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "action", + "description": "The expected action called for the transaction. By default, the `channel.defaultTransactionFlowStrategy` will be used. The field can be used only by app that has `HANDLE_PAYMENTS` permission.", + "type": { + "kind": "ENUM", + "name": "TransactionFlowStrategyEnum", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amount", + "description": "The amount requested for initializing the payment gateway. If not provided, the difference between checkout.total - transactions that are already processed will be send.", + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the checkout or order.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "paymentGateway", + "description": "Payment gateway used to initialize the transaction.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PaymentGatewayToInitialize", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "TransactionInitialize", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionProcess", + "description": "Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. \n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "data", + "description": "The data that will be passed to the payment gateway.", + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the transaction to process.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "TransactionProcess", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "pageCreate", "description": "Creates a new page. \n\nRequires one of the following permissions: MANAGE_PAGES.", @@ -50848,6 +51983,96 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "orderGrantRefundCreate", + "description": "Adds granted refund to the order.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [ + { + "name": "id", + "description": "ID of the order.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "input", + "description": "Fields required to create a granted refund for the order.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderGrantRefundCreateInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "OrderGrantRefundCreate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "orderGrantRefundUpdate", + "description": "Updates granted refund.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [ + { + "name": "id", + "description": "ID of the granted refund.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "input", + "description": "Fields required to update a granted refund.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderGrantRefundUpdateInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "OrderGrantRefundUpdate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "orderLinesCreate", "description": "Create order lines for an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", @@ -52343,7 +53568,7 @@ }, { "name": "giftCardDelete", - "description": "Delete gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Delete gift card.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "id", @@ -52446,7 +53671,7 @@ }, { "name": "giftCardResend", - "description": "Resend a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Resend a gift card.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "input", @@ -52475,7 +53700,7 @@ }, { "name": "giftCardAddNote", - "description": "Adds note to the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Adds note to the gift card.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "id", @@ -52520,7 +53745,7 @@ }, { "name": "giftCardBulkCreate", - "description": "Create gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Create gift cards.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "input", @@ -52549,7 +53774,7 @@ }, { "name": "giftCardBulkDelete", - "description": "Delete gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Delete gift cards.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "ids", @@ -52586,7 +53811,7 @@ }, { "name": "giftCardBulkActivate", - "description": "Activate gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Activate gift cards.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "ids", @@ -52623,7 +53848,7 @@ }, { "name": "giftCardBulkDeactivate", - "description": "Deactivate gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Deactivate gift cards.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "ids", @@ -53475,7 +54700,7 @@ }, { "name": "exportGiftCards", - "description": "Export gift cards to csv file.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "Export gift cards to csv file.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "input", @@ -53654,7 +54879,7 @@ }, { "name": "validationRules", - "description": "The rules for changing validation for received billing address data.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The rules for changing validation for received billing address data.\n\nAdded in Saleor 3.5.", "type": { "kind": "INPUT_OBJECT", "name": "CheckoutAddressValidationRules", @@ -54446,7 +55671,7 @@ }, { "name": "validationRules", - "description": "The rules for changing validation for received shipping address data.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The rules for changing validation for received shipping address data.\n\nAdded in Saleor 3.5.", "type": { "kind": "INPUT_OBJECT", "name": "CheckoutAddressValidationRules", @@ -54532,7 +55757,7 @@ }, { "name": "checkoutDeliveryMethodUpdate", - "description": "Updates the delivery method (shipping method or pick up point) of the checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Updates the delivery method (shipping method or pick up point) of the checkout.\n\nAdded in Saleor 3.1.", "args": [ { "name": "deliveryMethodId", @@ -54646,7 +55871,7 @@ }, { "name": "orderCreateFromCheckout", - "description": "Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.\n\nAdded in Saleor 3.2.", "args": [ { "name": "id", @@ -54900,7 +56125,7 @@ }, { "name": "channelReorderWarehouses", - "description": "Reorder the warehouses of a channel.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", + "description": "Reorder the warehouses of a channel.\n\nAdded in Saleor 3.7. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", "args": [ { "name": "channelId", @@ -55836,7 +57061,7 @@ "args": [ { "name": "audience", - "description": "The audience that will be included to JWT tokens with prefix `custom:`.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The audience that will be included to JWT tokens with prefix `custom:`.\n\nAdded in Saleor 3.8.", "type": { "kind": "SCALAR", "name": "String", @@ -55967,7 +57192,7 @@ }, { "name": "externalAuthenticationUrl", - "description": "Prepare external authentication url for user by custom plugin.", + "description": "Prepare external authentication URL for user by custom plugin.", "args": [ { "name": "input", @@ -57132,6 +58357,55 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "customerBulkUpdate", + "description": "Updates customers.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_USERS.", + "args": [ + { + "name": "customers", + "description": "Input list of customers to update.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CustomerBulkUpdateInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errorPolicy", + "description": "Policies of error handling. DEFAULT: REJECT_EVERYTHING", + "type": { + "kind": "ENUM", + "name": "ErrorPolicyEnum", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "CustomerBulkUpdate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "staffCreate", "description": "Creates a new staff user. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", @@ -57319,7 +58593,7 @@ "args": [ { "name": "ids", - "description": "List of user IDs to (de)activate).", + "description": "List of user IDs to activate/deactivate.", "type": { "kind": "NON_NULL", "name": null, @@ -58769,7 +60043,7 @@ }, { "name": "availableCollectionPoints", - "description": "Collection points that can be used for this order.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Collection points that can be used for this order.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "NON_NULL", @@ -58909,7 +60183,7 @@ }, { "name": "authorizeStatus", - "description": "The authorize status of the order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The authorize status of the order.\n\nAdded in Saleor 3.4.", "args": [], "type": { "kind": "NON_NULL", @@ -58925,7 +60199,7 @@ }, { "name": "chargeStatus", - "description": "The charge status of the order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The charge status of the order.\n\nAdded in Saleor 3.4.", "args": [], "type": { "kind": "NON_NULL", @@ -58941,7 +60215,7 @@ }, { "name": "taxExemption", - "description": "Returns True if order has to be exempt from taxes.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Returns True if order has to be exempt from taxes.\n\nAdded in Saleor 3.8.", "args": [], "type": { "kind": "NON_NULL", @@ -58957,7 +60231,7 @@ }, { "name": "transactions", - "description": "List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.", "args": [], "type": { "kind": "NON_NULL", @@ -59081,7 +60355,7 @@ }, { "name": "shippingTaxClass", - "description": "Denormalized tax class assigned to the shipping method.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "Denormalized tax class assigned to the shipping method.\n\nAdded in Saleor 3.9.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [], "type": { "kind": "OBJECT", @@ -59093,7 +60367,7 @@ }, { "name": "shippingTaxClassName", - "description": "Denormalized name of the tax class assigned to the shipping method.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Denormalized name of the tax class assigned to the shipping method.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "SCALAR", @@ -59105,7 +60379,7 @@ }, { "name": "shippingTaxClassMetadata", - "description": "Denormalized public metadata of the shipping method's tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Denormalized public metadata of the shipping method's tax class.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "NON_NULL", @@ -59129,7 +60403,7 @@ }, { "name": "shippingTaxClassPrivateMetadata", - "description": "Denormalized private metadata of the shipping method's tax class. Requires staff permissions to access.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Denormalized private metadata of the shipping method's tax class. Requires staff permissions to access.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "NON_NULL", @@ -59313,7 +60587,39 @@ }, { "name": "totalCaptured", - "description": "Amount captured by payment.", + "description": "Amount captured for the order. ", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 4.0. Use `totalCharged` instead." + }, + { + "name": "totalCharged", + "description": "Amount charged for the order.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalCanceled", + "description": "Amount canceled for the order.\n\nAdded in Saleor 3.13.", "args": [], "type": { "kind": "NON_NULL", @@ -59397,7 +60703,7 @@ }, { "name": "deliveryMethod", - "description": "The delivery method selected for this order.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The delivery method selected for this order.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "UNION", @@ -59525,7 +60831,7 @@ }, { "name": "displayGrossPrices", - "description": "Determines whether checkout prices should include taxes when displayed in a storefront.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines whether checkout prices should include taxes when displayed in a storefront.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "NON_NULL", @@ -59562,6 +60868,142 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "grantedRefunds", + "description": "List of granted refunds.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrderGrantedRefund", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalGrantedRefund", + "description": "Total amount of granted refund.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalRefunded", + "description": "Total refund amount for the order.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalRefundPending", + "description": "Total amount of ongoing refund requests for the order's transactions.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalAuthorizePending", + "description": "Total amount of ongoing authorize requests for the order's transactions.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalChargePending", + "description": "Total amount of ongoing charge requests for the order's transactions.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalCancelPending", + "description": "Total amount of ongoing cancel requests for the order's transactions.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalRemainingGrant", + "description": "The difference amount between granted refund and the amounts that are pending and refunded.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -59728,7 +61170,7 @@ { "kind": "ENUM", "name": "OrderAuthorizeStatusEnum", - "description": "Determine a current authorize status for order.\n\n We treat the order as fully authorized when the sum of authorized and charged funds\n cover the order.total.\n We treat the order as partially authorized when the sum of authorized and charged\n funds covers only part of the order.total\n We treat the order as not authorized when the sum of authorized and charged funds is\n 0.\n\n NONE - the funds are not authorized\n PARTIAL - the funds that are authorized or charged don't cover fully the order's\n total\n FULL - the funds that are authorized or charged fully cover the order's total\n ", + "description": "Determine a current authorize status for order.\n\n We treat the order as fully authorized when the sum of authorized and charged funds\n cover the `order.total`-`order.totalGrantedRefund`.\n We treat the order as partially authorized when the sum of authorized and charged\n funds covers only part of the `order.total`-`order.totalGrantedRefund`.\n We treat the order as not authorized when the sum of authorized and charged funds is\n 0.\n\n NONE - the funds are not authorized\n PARTIAL - the funds that are authorized and charged don't cover fully the\n `order.total`-`order.totalGrantedRefund`\n FULL - the funds that are authorized and charged fully cover the\n `order.total`-`order.totalGrantedRefund`\n ", "fields": null, "inputFields": null, "interfaces": null, @@ -59903,7 +61345,7 @@ { "kind": "OBJECT", "name": "OrderCancelled", - "description": "Event sent when order is canceled.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when order is canceled.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -60051,7 +61493,7 @@ { "kind": "ENUM", "name": "OrderChargeStatusEnum", - "description": "Determine the current charge status for the order.\n\n We treat the order as overcharged when the charged amount is bigger that order.total\n We treat the order as fully charged when the charged amount is equal to order.total.\n We treat the order as partially charged when the charged amount covers only part of\n the order.total\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the order's total\n FULL - the funds that are charged fully cover the order's total\n OVERCHARGED - the charged funds are bigger than order's total\n ", + "description": "Determine the current charge status for the order.\n\n An order is considered overcharged when the sum of the\n transactionItem's charge amounts exceeds the value of\n `order.total` - `order.totalGrantedRefund`.\n If the sum of the transactionItem's charge amounts equals\n `order.total` - `order.totalGrantedRefund`, we consider the order to be fully\n charged.\n If the sum of the transactionItem's charge amounts covers a part of the\n `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged.\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the\n `order.total`-`order.totalGrantedRefund`\n FULL - the funds that are charged fully cover the\n `order.total`-`order.totalGrantedRefund`\n OVERCHARGED - the charged funds are bigger than the\n `order.total`-`order.totalGrantedRefund`\n ", "fields": null, "inputFields": null, "interfaces": null, @@ -60157,7 +61599,7 @@ { "kind": "OBJECT", "name": "OrderConfirmed", - "description": "Event sent when order is confirmed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when order is confirmed.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -60340,7 +61782,7 @@ { "kind": "OBJECT", "name": "OrderCreateFromCheckout", - "description": "Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "order", @@ -60573,7 +62015,7 @@ { "kind": "OBJECT", "name": "OrderCreated", - "description": "Event sent when new order is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new order is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -61418,6 +62860,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "TRANSACTION_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "REQUIRED", "description": null, @@ -61489,12 +62937,6 @@ "description": null, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK", - "description": null, - "isDeprecated": false, - "deprecationReason": null } ], "possibleTypes": null @@ -61817,8 +63259,8 @@ "name": "TransactionStatus", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature).Use `TransactionEvent` to track the status of `TransactionItem`." }, { "name": "reference", @@ -62180,7 +63622,7 @@ { "kind": "ENUM", "name": "OrderEventsEnum", - "description": "An enumeration.", + "description": "The different order event types. ", "fields": null, "inputFields": null, "interfaces": null, @@ -62233,6 +63675,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "EXPIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_MARKED_AS_PAID", "description": null, @@ -62360,11 +63808,17 @@ "deprecationReason": null }, { - "name": "TRANSACTION_CAPTURE_REQUESTED", + "name": "TRANSACTION_CHARGE_REQUESTED", "description": null, "isDeprecated": false, "deprecationReason": null }, + { + "name": "TRANSACTION_CAPTURE_REQUESTED", + "description": "This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "TRANSACTION_REFUND_REQUESTED", "description": null, @@ -62373,6 +63827,18 @@ }, { "name": "TRANSACTION_VOID_REQUESTED", + "description": "This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_CANCEL_REQUESTED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_MARK_AS_PAID_FAILED", "description": null, "isDeprecated": false, "deprecationReason": null @@ -62464,6 +63930,83 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderExpired", + "description": "Event sent when order becomes expired.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "order", + "description": "The order the event relates to.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "OrderFilterInput", @@ -62754,7 +64297,7 @@ { "kind": "OBJECT", "name": "OrderFilterShippingMethods", - "description": "Filter shipping methods for order.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Filter shipping methods for order.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -62818,7 +64361,7 @@ }, { "name": "shippingMethods", - "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.", "args": [], "type": { "kind": "LIST", @@ -63103,7 +64646,7 @@ { "kind": "OBJECT", "name": "OrderFulfilled", - "description": "Event sent when order is fulfilled.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when order is fulfilled.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -63180,7 +64723,7 @@ { "kind": "OBJECT", "name": "OrderFullyPaid", - "description": "Event sent when order is fully paid.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when order is fully paid.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -63254,6 +64797,475 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderGrantRefundCreate", + "description": "Adds granted refund to the order.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS.", + "fields": [ + { + "name": "order", + "description": "Order which has assigned new grant refund.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "grantedRefund", + "description": "Created granted refund.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "OrderGrantedRefund", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrderGrantRefundCreateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderGrantRefundCreateError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "OrderGrantRefundCreateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "OrderGrantRefundCreateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderGrantRefundCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "amount", + "description": "Amount of the granted refund.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reason", + "description": "Reason of the granted refund.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderGrantRefundUpdate", + "description": "Updates granted refund.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS.", + "fields": [ + { + "name": "order", + "description": "Order which has assigned updated grant refund.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "grantedRefund", + "description": "Created granted refund.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "OrderGrantedRefund", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrderGrantRefundUpdateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "orderGrantedRefund", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "OrderGrantedRefund", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderGrantRefundUpdateError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "OrderGrantRefundUpdateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "OrderGrantRefundUpdateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderGrantRefundUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "amount", + "description": "Amount of the granted refund.", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reason", + "description": "Reason of the granted refund.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderGrantedRefund", + "description": "The details of granted refund.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": "Time of creation.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt", + "description": "Time of last update.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amount", + "description": "Refund amount.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reason", + "description": "Reason of the refund.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "user", + "description": "User who performed the action. Requires of of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "app", + "description": "App that performed the action.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "OrderLine", @@ -63609,7 +65621,7 @@ }, { "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -63802,7 +65814,7 @@ }, { "name": "taxClass", - "description": "Denormalized tax class of the product in this order line.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "Denormalized tax class of the product in this order line.\n\nAdded in Saleor 3.9.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [], "type": { "kind": "OBJECT", @@ -63814,7 +65826,7 @@ }, { "name": "taxClassName", - "description": "Denormalized name of the tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Denormalized name of the tax class.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "SCALAR", @@ -63826,7 +65838,7 @@ }, { "name": "taxClassMetadata", - "description": "Denormalized public metadata of the tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Denormalized public metadata of the tax class.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "NON_NULL", @@ -63850,7 +65862,7 @@ }, { "name": "taxClassPrivateMetadata", - "description": "Denormalized private metadata of the tax class. Requires staff permissions to access.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Denormalized private metadata of the tax class. Requires staff permissions to access.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "NON_NULL", @@ -63929,7 +65941,7 @@ }, { "name": "forceNewLine", - "description": "Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. \n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. \n\nAdded in Saleor 3.6.", "type": { "kind": "SCALAR", "name": "Boolean", @@ -64468,7 +66480,7 @@ { "kind": "OBJECT", "name": "OrderMetadataUpdated", - "description": "Event sent when order metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when order metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -64542,6 +66554,27 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "UNION", + "name": "OrderOrCheckout", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "Checkout", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Order", + "ofType": null + } + ] + }, { "kind": "ENUM", "name": "OrderOriginEnum", @@ -65036,6 +67069,50 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "expireOrdersAfter", + "description": "Expiration time in minutes. Default null - means do not expire any orders.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Minute", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "markAsPaidStrategy", + "description": "Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid.\n`PAYMENT_FLOW` - [default option] creates the `Payment` object.\n`TRANSACTION_FLOW` - creates the `TransactionItem` object.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MarkAsPaidStrategyEnum", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "defaultTransactionFlowStrategy", + "description": "Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionFlowStrategyEnum", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -65140,6 +67217,42 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "expireOrdersAfter", + "description": "Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "Minute", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "markAsPaidStrategy", + "description": "Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid.\n`PAYMENT_FLOW` - [default option] creates the `Payment` object.\n`TRANSACTION_FLOW` - creates the `TransactionItem` object.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "ENUM", + "name": "MarkAsPaidStrategyEnum", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "defaultTransactionFlowStrategy", + "description": "Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "ENUM", + "name": "TransactionFlowStrategyEnum", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -65319,7 +67432,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort orders.", "type": { "kind": "NON_NULL", "name": null, @@ -65409,6 +67522,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "EXPIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -65693,7 +67812,7 @@ { "kind": "OBJECT", "name": "OrderUpdated", - "description": "Event sent when order is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when order is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -66860,7 +68979,7 @@ { "kind": "OBJECT", "name": "PageCreated", - "description": "Event sent when new page is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new page is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -67008,7 +69127,7 @@ { "kind": "OBJECT", "name": "PageDeleted", - "description": "Event sent when page is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when page is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -67643,7 +69762,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort pages.", "type": { "kind": "NON_NULL", "name": null, @@ -68378,7 +70497,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -68390,7 +70509,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -68748,7 +70867,7 @@ { "kind": "OBJECT", "name": "PageTypeCreated", - "description": "Event sent when new page type is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new page type is created.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -68896,7 +71015,7 @@ { "kind": "OBJECT", "name": "PageTypeDeleted", - "description": "Event sent when page type is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when page type is deleted.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -69115,7 +71234,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort page types.", "type": { "kind": "NON_NULL", "name": null, @@ -69299,7 +71418,7 @@ { "kind": "OBJECT", "name": "PageTypeUpdated", - "description": "Event sent when page type is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when page type is updated.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -69447,7 +71566,7 @@ { "kind": "OBJECT", "name": "PageUpdated", - "description": "Event sent when page is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when page is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -70057,7 +72176,7 @@ { "kind": "OBJECT", "name": "PaymentAuthorize", - "description": "Authorize payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Authorize payment.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -70205,7 +72324,7 @@ { "kind": "OBJECT", "name": "PaymentCaptureEvent", - "description": "Capture payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Capture payment.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -70487,7 +72606,7 @@ { "kind": "OBJECT", "name": "PaymentConfirmEvent", - "description": "Confirm payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Confirm payment.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -70993,6 +73112,424 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PaymentGatewayConfig", + "description": null, + "fields": [ + { + "name": "id", + "description": "The app identifier.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "data", + "description": "The JSON data required to initialize the payment gateway.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PaymentGatewayConfigError", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PaymentGatewayConfigError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "PaymentGatewayConfigErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "PaymentGatewayConfigErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PaymentGatewayInitialize", + "description": "Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "gatewayConfigs", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PaymentGatewayConfig", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PaymentGatewayInitializeError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PaymentGatewayInitializeError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "PaymentGatewayInitializeErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "PaymentGatewayInitializeErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PaymentGatewayInitializeSession", + "description": "Event sent when user wants to initialize the payment gateway.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sourceObject", + "description": "Checkout or order", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "UNION", + "name": "OrderOrCheckout", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "data", + "description": "Payment gateway data in JSON format, recieved from storefront.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amount", + "description": "Amount requested for initializing the payment gateway.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "PaymentGatewayToInitialize", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": "The identifier of the payment gateway app to initialize.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "data", + "description": "The data that will be passed to the payment gateway.", + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PaymentInitialize", @@ -71217,7 +73754,7 @@ { "kind": "OBJECT", "name": "PaymentListGateways", - "description": "List payment gateways.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List payment gateways.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -71294,7 +73831,7 @@ { "kind": "OBJECT", "name": "PaymentProcessEvent", - "description": "Process payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Process payment.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -71442,7 +73979,7 @@ { "kind": "OBJECT", "name": "PaymentRefundEvent", - "description": "Refund payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Refund payment.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -71665,7 +74202,7 @@ { "kind": "OBJECT", "name": "PaymentVoidEvent", - "description": "Void payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Void payment.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -72072,7 +74609,7 @@ { "kind": "OBJECT", "name": "PermissionGroupCreated", - "description": "Event sent when new permission group is created.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new permission group is created.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -72220,7 +74757,7 @@ { "kind": "OBJECT", "name": "PermissionGroupDeleted", - "description": "Event sent when permission group is deleted.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when permission group is deleted.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -72490,7 +75027,7 @@ { "kind": "ENUM", "name": "PermissionGroupSortField", - "description": null, + "description": "Sorting options for permission groups.", "fields": null, "inputFields": null, "interfaces": null, @@ -72512,7 +75049,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort permission group.", "type": { "kind": "NON_NULL", "name": null, @@ -72724,7 +75261,7 @@ { "kind": "OBJECT", "name": "PermissionGroupUpdated", - "description": "Event sent when permission group is updated.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when permission group is updated.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -73257,7 +75794,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort plugins.", "type": { "kind": "NON_NULL", "name": null, @@ -74108,7 +76645,7 @@ }, { "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -74882,6 +77419,612 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductBulkCreate", + "description": "Creates products.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", + "fields": [ + { + "name": "count", + "description": "Returns how many objects were created.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "results", + "description": "List of the created products.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ProductBulkResult", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ProductBulkCreateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ProductBulkCreateError", + "description": null, + "fields": [ + { + "name": "path", + "description": "Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ProductBulkCreateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "attributes", + "description": "List of attributes IDs which causes the error.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "values", + "description": "List of attribute values IDs which causes the error.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "warehouses", + "description": "List of warehouse IDs which causes the error.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "channels", + "description": "List of channel IDs which causes the error.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "ProductBulkCreateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "ATTRIBUTE_ALREADY_ASSIGNED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ATTRIBUTE_CANNOT_BE_ASSIGNED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ATTRIBUTE_VARIANTS_DISABLED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "BLANK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MAX_LENGTH", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "DUPLICATED_INPUT_ITEM", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID_PRICE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PRODUCT_WITHOUT_CATEGORY", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNIQUE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PRODUCT_NOT_ASSIGNED_TO_CHANNEL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNSUPPORTED_MEDIA_PROVIDER", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ProductBulkCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "attributes", + "description": "List of attributes.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AttributeValueInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "category", + "description": "ID of the product's category.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "chargeTaxes", + "description": "Determine if taxes are being charged for the product. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "collections", + "description": "List of IDs of collections that the product belongs to.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": "Product description.\n\nRich text format. For reference see https://editorjs.io/", + "type": { + "kind": "SCALAR", + "name": "JSONString", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": "Product name.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "slug", + "description": "Product slug.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "taxClass", + "description": "ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "taxCode", + "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "seo", + "description": "Search engine optimization fields.", + "type": { + "kind": "INPUT_OBJECT", + "name": "SeoInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "weight", + "description": "Weight of the Product.", + "type": { + "kind": "SCALAR", + "name": "WeightScalar", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "rating", + "description": "Defines the product rating value.", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metadata", + "description": "Fields required to update the product metadata.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetadata", + "description": "Fields required to update the product private metadata.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalReference", + "description": "External ID of this product.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "productType", + "description": "ID of the type that product belongs to.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "media", + "description": "List of media inputs associated with the product.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MediaInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "channelListings", + "description": "List of channels in which the product is available.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ProductChannelListingCreateInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variants", + "description": "Input list of product variants to create.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ProductVariantBulkCreateInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductBulkDelete", @@ -74957,6 +78100,49 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductBulkResult", + "description": null, + "fields": [ + { + "name": "product", + "description": "Product data.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Product", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": "List of errors occurred on create attempt.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ProductBulkCreateError", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductChannelListing", @@ -75310,6 +78496,93 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "ProductChannelListingCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "channelId", + "description": "ID of a channel.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isPublished", + "description": "Determines if object is visible to customers.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "publishedAt", + "description": "Publication date time. ISO 8601 standard.", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "visibleInListings", + "description": "Determines if product is visible in product listings (doesn't apply to product collections).", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isAvailableForPurchase", + "description": "Determine if product should be available for purchase.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "availableForPurchaseAt", + "description": "A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed.", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductChannelListingError", @@ -75982,7 +79255,7 @@ { "kind": "OBJECT", "name": "ProductCreated", - "description": "Event sent when new product is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new product is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -76155,7 +79428,7 @@ { "kind": "OBJECT", "name": "ProductDeleted", - "description": "Event sent when product is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when product is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -76953,7 +80226,7 @@ }, { "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -77476,7 +80749,7 @@ }, { "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -78286,7 +81559,7 @@ { "kind": "OBJECT", "name": "ProductMetadataUpdated", - "description": "Event sent when product metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when product metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -78622,7 +81895,7 @@ }, { "name": "displayGrossPrices", - "description": "Determines whether this product's price displayed in a storefront should include taxes.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines whether this product's price displayed in a storefront should include taxes.\n\nAdded in Saleor 3.9.", "args": [], "type": { "kind": "NON_NULL", @@ -79441,7 +82714,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -79453,7 +82726,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -79636,7 +82909,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -79648,7 +82921,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -80462,7 +83735,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort product types.", "type": { "kind": "NON_NULL", "name": null, @@ -80642,7 +83915,7 @@ { "kind": "OBJECT", "name": "ProductUpdated", - "description": "Event sent when product is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when product is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -81326,7 +84599,7 @@ }, { "name": "preorder", - "description": "Preorder data for product variant.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Preorder data for product variant.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "OBJECT", @@ -81400,7 +84673,7 @@ { "kind": "OBJECT", "name": "ProductVariantBackInStock", - "description": "Event sent when product variant is back in stock.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when product variant is back in stock.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -81702,7 +84975,7 @@ }, { "name": "preorder", - "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.", "type": { "kind": "INPUT_OBJECT", "name": "PreorderSettingsInput", @@ -81714,7 +84987,7 @@ }, { "name": "quantityLimitPerCustomer", - "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Int", @@ -82344,7 +85617,7 @@ }, { "name": "preorder", - "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.", "type": { "kind": "INPUT_OBJECT", "name": "PreorderSettingsInput", @@ -82356,7 +85629,7 @@ }, { "name": "quantityLimitPerCustomer", - "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Int", @@ -82538,7 +85811,7 @@ }, { "name": "preorderThreshold", - "description": "Preorder variant data.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Preorder variant data.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "OBJECT", @@ -82612,7 +85885,7 @@ }, { "name": "preorderThreshold", - "description": "The threshold for preorder variant in channel.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The threshold for preorder variant in channel.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Int", @@ -83026,7 +86299,7 @@ }, { "name": "preorder", - "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.", "type": { "kind": "INPUT_OBJECT", "name": "PreorderSettingsInput", @@ -83038,7 +86311,7 @@ }, { "name": "quantityLimitPerCustomer", - "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Int", @@ -83144,7 +86417,7 @@ { "kind": "OBJECT", "name": "ProductVariantCreated", - "description": "Event sent when new product variant is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new product variant is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -83305,7 +86578,7 @@ { "kind": "OBJECT", "name": "ProductVariantDeleted", - "description": "Event sent when product variant is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when product variant is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -83555,7 +86828,7 @@ }, { "name": "preorder", - "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.", "type": { "kind": "INPUT_OBJECT", "name": "PreorderSettingsInput", @@ -83567,7 +86840,7 @@ }, { "name": "quantityLimitPerCustomer", - "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Int", @@ -83637,7 +86910,7 @@ { "kind": "OBJECT", "name": "ProductVariantMetadataUpdated", - "description": "Event sent when product variant metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when product variant metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -83727,7 +87000,7 @@ { "kind": "OBJECT", "name": "ProductVariantOutOfStock", - "description": "Event sent when product variant is out of stock.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when product variant is out of stock.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -83829,7 +87102,7 @@ { "kind": "OBJECT", "name": "ProductVariantPreorderDeactivate", - "description": "Deactivates product variant preorder. It changes all preorder allocation into regular allocation.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", + "description": "Deactivates product variant preorder. It changes all preorder allocation into regular allocation.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", "fields": [ { "name": "productVariant", @@ -84111,7 +87384,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort productVariants.", "type": { "kind": "NON_NULL", "name": null, @@ -84856,7 +88129,7 @@ { "kind": "OBJECT", "name": "ProductVariantUpdated", - "description": "Event sent when product variant is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when product variant is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -85180,7 +88453,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85192,7 +88465,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85257,7 +88530,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85269,7 +88542,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85335,7 +88608,7 @@ }, { "name": "taxConfiguration", - "description": "Look up a tax configuration.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "Look up a tax configuration.\n\nAdded in Saleor 3.9.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [ { "name": "id", @@ -85364,7 +88637,7 @@ }, { "name": "taxConfigurations", - "description": "List of tax configurations.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "List of tax configurations.\n\nAdded in Saleor 3.9.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [ { "name": "filter", @@ -85404,7 +88677,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85416,7 +88689,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85437,7 +88710,7 @@ }, { "name": "taxClass", - "description": "Look up a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "Look up a tax class.\n\nAdded in Saleor 3.9.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [ { "name": "id", @@ -85466,7 +88739,7 @@ }, { "name": "taxClasses", - "description": "List of tax classes.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "List of tax classes.\n\nAdded in Saleor 3.9.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [ { "name": "sortBy", @@ -85518,7 +88791,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85530,7 +88803,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85669,7 +88942,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85681,7 +88954,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85839,7 +89112,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85851,7 +89124,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85929,7 +89202,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -85941,7 +89214,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86026,7 +89299,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86038,7 +89311,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86209,7 +89482,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86221,7 +89494,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86367,7 +89640,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86379,7 +89652,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86481,7 +89754,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86493,7 +89766,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86530,7 +89803,7 @@ }, { "name": "sku", - "description": "Sku of the product variant.", + "description": "SKU of the product variant.", "type": { "kind": "SCALAR", "name": "String", @@ -86659,7 +89932,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86671,7 +89944,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86752,7 +90025,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86764,7 +90037,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86854,7 +90127,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -86866,7 +90139,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87005,7 +90278,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87017,7 +90290,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87119,7 +90392,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87131,7 +90404,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87180,7 +90453,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87192,7 +90465,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87314,7 +90587,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87326,7 +90599,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87399,7 +90672,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87411,7 +90684,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87623,7 +90896,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87635,7 +90908,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87761,7 +91034,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87773,7 +91046,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87827,7 +91100,7 @@ "args": [ { "name": "sortBy", - "description": "Sort gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Sort gift cards.\n\nAdded in Saleor 3.1.", "type": { "kind": "INPUT_OBJECT", "name": "GiftCardSortingInput", @@ -87839,7 +91112,7 @@ }, { "name": "filter", - "description": "Filtering options for gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Filtering options for gift cards.\n\nAdded in Saleor 3.1.", "type": { "kind": "INPUT_OBJECT", "name": "GiftCardFilterInput", @@ -87875,7 +91148,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87887,7 +91160,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87908,7 +91181,7 @@ }, { "name": "giftCardCurrencies", - "description": "List of gift card currencies.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "List of gift card currencies.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [], "type": { "kind": "NON_NULL", @@ -87932,7 +91205,7 @@ }, { "name": "giftCardTags", - "description": "List of gift card tags.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", + "description": "List of gift card tags.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", "args": [ { "name": "filter", @@ -87972,7 +91245,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -87984,7 +91257,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88086,7 +91359,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88098,7 +91371,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88236,7 +91509,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88248,7 +91521,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88386,7 +91659,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88398,7 +91671,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88500,7 +91773,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88512,7 +91785,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88654,7 +91927,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88666,7 +91939,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88715,7 +91988,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88727,7 +92000,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88764,7 +92037,7 @@ }, { "name": "slug", - "description": "Slug of the channel.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Slug of the channel.\n\nAdded in Saleor 3.6.", "type": { "kind": "SCALAR", "name": "String", @@ -88821,7 +92094,7 @@ }, { "name": "where", - "description": "Filtering options for attributes.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Filtering options for attributes.\n\nAdded in Saleor 3.11.", "type": { "kind": "INPUT_OBJECT", "name": "AttributeWhereInput", @@ -88893,7 +92166,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -88905,7 +92178,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89051,7 +92324,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89063,7 +92336,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89109,7 +92382,7 @@ }, { "name": "appExtensions", - "description": "List of all extensions.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "List of all extensions.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [ { "name": "filter", @@ -89149,7 +92422,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89161,7 +92434,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89182,7 +92455,7 @@ }, { "name": "appExtension", - "description": "Look up an app extension by ID.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "Look up an app extension by ID.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [ { "name": "id", @@ -89357,7 +92630,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89369,7 +92642,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89442,7 +92715,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89454,7 +92727,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89568,7 +92841,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -89580,7 +92853,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -90332,7 +93605,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -90344,7 +93617,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -90393,7 +93666,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -90405,7 +93678,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -90454,7 +93727,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -90466,7 +93739,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -90515,7 +93788,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -90527,7 +93800,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -91208,7 +94481,7 @@ { "kind": "OBJECT", "name": "SaleCreated", - "description": "Event sent when new sale is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new sale is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -91369,7 +94642,7 @@ { "kind": "OBJECT", "name": "SaleDeleted", - "description": "Event sent when sale is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when sale is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -91838,7 +95111,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort sales.", "type": { "kind": "NON_NULL", "name": null, @@ -91888,7 +95161,7 @@ { "kind": "OBJECT", "name": "SaleToggle", - "description": "The event informs about the start or end of the sale.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The event informs about the start or end of the sale.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -91940,7 +95213,7 @@ }, { "name": "sale", - "description": "The sale the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The sale the event relates to.\n\nAdded in Saleor 3.5.", "args": [ { "name": "channel", @@ -92294,7 +95567,7 @@ { "kind": "OBJECT", "name": "SaleUpdated", - "description": "Event sent when sale is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when sale is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -92727,7 +96000,7 @@ { "kind": "OBJECT", "name": "ShippingListMethodsForCheckout", - "description": "List shipping methods for checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List shipping methods for checkout.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "issuedAt", @@ -92791,7 +96064,7 @@ }, { "name": "shippingMethods", - "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.", "args": [], "type": { "kind": "LIST", @@ -94086,7 +97359,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -94098,7 +97371,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -94220,7 +97493,7 @@ { "kind": "OBJECT", "name": "ShippingMethodsPerCountry", - "description": "List of shipping methods available for the country.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "List of shipping methods available for the country.\n\nAdded in Saleor 3.6.", "fields": [ { "name": "countryCode", @@ -94464,7 +97737,7 @@ { "kind": "OBJECT", "name": "ShippingPriceCreated", - "description": "Event sent when new shipping price is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new shipping price is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -94662,7 +97935,7 @@ { "kind": "OBJECT", "name": "ShippingPriceDeleted", - "description": "Event sent when shipping price is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when shipping price is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -95314,7 +98587,7 @@ { "kind": "OBJECT", "name": "ShippingPriceUpdated", - "description": "Event sent when shipping price is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when shipping price is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -96146,7 +99419,7 @@ { "kind": "OBJECT", "name": "ShippingZoneCreated", - "description": "Event sent when new shipping zone is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new shipping zone is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -96307,7 +99580,7 @@ { "kind": "OBJECT", "name": "ShippingZoneDeleted", - "description": "Event sent when shipping zone is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when shipping zone is deleted.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -96440,7 +99713,7 @@ { "kind": "OBJECT", "name": "ShippingZoneMetadataUpdated", - "description": "Event sent when shipping zone metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when shipping zone metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -96748,7 +100021,7 @@ { "kind": "OBJECT", "name": "ShippingZoneUpdated", - "description": "Event sent when shipping zone is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when shipping zone is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -97322,7 +100595,7 @@ }, { "name": "limitQuantityPerCheckout", - "description": "Default number of maximum line quantity in single checkout (per single checkout line).\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", + "description": "Default number of maximum line quantity in single checkout (per single checkout line).\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", "args": [], "type": { "kind": "SCALAR", @@ -97995,7 +101268,7 @@ }, { "name": "limitQuantityPerCheckout", - "description": "Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Int", @@ -98488,7 +101761,7 @@ { "kind": "INPUT_OBJECT", "name": "StaffCreateInput", - "description": null, + "description": "Fields required to create a staff user.", "fields": null, "inputFields": [ { @@ -98591,7 +101864,7 @@ { "kind": "OBJECT", "name": "StaffCreated", - "description": "Event sent when new staff user is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new staff user is created.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -98739,7 +102012,7 @@ { "kind": "OBJECT", "name": "StaffDeleted", - "description": "Event sent when staff user is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when staff user is deleted.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -98939,7 +102212,7 @@ { "kind": "ENUM", "name": "StaffMemberStatus", - "description": null, + "description": "Represents status of a staff account.", "fields": null, "inputFields": null, "interfaces": null, @@ -99362,7 +102635,7 @@ { "kind": "INPUT_OBJECT", "name": "StaffUpdateInput", - "description": null, + "description": "Fields required to update a staff user.", "fields": null, "inputFields": [ { @@ -99473,7 +102746,7 @@ { "kind": "OBJECT", "name": "StaffUpdated", - "description": "Event sent when staff user is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when staff user is updated.\n\nAdded in Saleor 3.5.", "fields": [ { "name": "issuedAt", @@ -100302,7 +103575,7 @@ { "kind": "OBJECT", "name": "StockSettings", - "description": "Represents the channel stock settings.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Represents the channel stock settings.\n\nAdded in Saleor 3.7.", "fields": [ { "name": "allocationStrategy", @@ -100475,7 +103748,7 @@ "fields": [ { "name": "event", - "description": "Look up subscription event.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Look up subscription event.\n\nAdded in Saleor 3.2.", "args": [], "type": { "kind": "INTERFACE", @@ -100517,7 +103790,7 @@ { "kind": "OBJECT", "name": "TaxClass", - "description": "Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates.\n\nAdded in Saleor 3.9.", "fields": [ { "name": "id", @@ -100873,7 +104146,7 @@ { "kind": "OBJECT", "name": "TaxClassCountryRate", - "description": "Tax rate for a country. When tax class is null, it represents the default tax rate for that country; otherwise it's a country tax rate specific to the given tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Tax rate for a country. When tax class is null, it represents the default tax rate for that country; otherwise it's a country tax rate specific to the given tax class.\n\nAdded in Saleor 3.9.", "fields": [ { "name": "country", @@ -100928,7 +104201,7 @@ { "kind": "OBJECT", "name": "TaxClassCreate", - "description": "Create a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Create a tax class.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "fields": [ { "name": "errors", @@ -101126,7 +104399,7 @@ { "kind": "OBJECT", "name": "TaxClassDelete", - "description": "Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "fields": [ { "name": "errors", @@ -101381,7 +104654,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort tax classes.", "type": { "kind": "NON_NULL", "name": null, @@ -101419,7 +104692,7 @@ { "kind": "OBJECT", "name": "TaxClassUpdate", - "description": "Update a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Update a tax class.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "fields": [ { "name": "errors", @@ -101639,7 +104912,7 @@ { "kind": "OBJECT", "name": "TaxConfiguration", - "description": "Channel-specific tax configuration.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Channel-specific tax configuration.\n\nAdded in Saleor 3.9.", "fields": [ { "name": "id", @@ -102106,7 +105379,7 @@ { "kind": "OBJECT", "name": "TaxConfigurationPerCountry", - "description": "Country-specific exceptions of a channel's tax configuration.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Country-specific exceptions of a channel's tax configuration.\n\nAdded in Saleor 3.9.", "fields": [ { "name": "country", @@ -102248,7 +105521,7 @@ { "kind": "OBJECT", "name": "TaxConfigurationUpdate", - "description": "Update tax configuration for a channel.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Update tax configuration for a channel.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "fields": [ { "name": "errors", @@ -102504,7 +105777,7 @@ { "kind": "OBJECT", "name": "TaxCountryConfiguration", - "description": "Tax class rates grouped by country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Tax class rates grouped by country.\n\nAdded in Saleor 3.9.", "fields": [ { "name": "country", @@ -102555,7 +105828,7 @@ { "kind": "OBJECT", "name": "TaxCountryConfigurationDelete", - "description": "Remove all tax class rates for a specific country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Remove all tax class rates for a specific country.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "fields": [ { "name": "taxCountryConfiguration", @@ -102682,7 +105955,7 @@ { "kind": "OBJECT", "name": "TaxCountryConfigurationUpdate", - "description": "Update tax class rates for a specific country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Update tax class rates for a specific country.\n\nAdded in Saleor 3.9. \n\nRequires one of the following permissions: MANAGE_TAXES.", "fields": [ { "name": "taxCountryConfiguration", @@ -102845,7 +106118,7 @@ { "kind": "OBJECT", "name": "TaxExemptionManage", - "description": "Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", + "description": "Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.\n\nAdded in Saleor 3.8. \n\nRequires one of the following permissions: MANAGE_TAXES.", "fields": [ { "name": "taxableObject", @@ -103945,7 +107218,7 @@ { "kind": "ENUM", "name": "TransactionActionEnum", - "description": "Represents possible actions on payment transaction.\n\n The following actions are possible:\n CHARGE - Represents the charge action.\n REFUND - Represents a refund action.\n VOID - Represents a void action.\n ", + "description": "Represents possible actions on payment transaction.\n\n The following actions are possible:\n CHARGE - Represents the charge action.\n REFUND - Represents a refund action.\n VOID - Represents a void action. This field will be removed\n in Saleor 3.14 (Preview Feature). Use `CANCEL` instead.\n CANCEL - Represents a cancel action. Added in Saleor 3.12.\n ", "fields": null, "inputFields": null, "interfaces": null, @@ -103967,6 +107240,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "CANCEL", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -103974,7 +107253,7 @@ { "kind": "OBJECT", "name": "TransactionActionRequest", - "description": "Event sent when transaction action is requested.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when transaction action is requested.\n\nAdded in Saleor 3.4.\n\nDEPRECATED: this subscription will be removed in Saleor 3.14 (Preview Feature). Use `TransactionChargeRequested`, `TransactionRefundRequested`, `TransactionCancelationRequested` instead.", "fields": [ { "name": "issuedAt", @@ -104026,7 +107305,7 @@ }, { "name": "transaction", - "description": "Look up a transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Look up a transaction.", "args": [], "type": { "kind": "OBJECT", @@ -104038,7 +107317,193 @@ }, { "name": "action", - "description": "Requested action data.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Requested action data.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionAction", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionCancelationRequested", + "description": "Event sent when transaction cancelation is requested.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transaction", + "description": "Look up a transaction.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "action", + "description": "Requested action data.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionAction", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionChargeRequested", + "description": "Event sent when transaction charge is requested.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transaction", + "description": "Look up a transaction.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "action", + "description": "Requested action data.", "args": [], "type": { "kind": "NON_NULL", @@ -104067,7 +107532,7 @@ { "kind": "OBJECT", "name": "TransactionCreate", - "description": "Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS.", "fields": [ { "name": "transaction", @@ -104199,6 +107664,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "UNIQUE", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -104211,15 +107682,11 @@ "inputFields": [ { "name": "status", - "description": "Status of the transaction.", + "description": "Status of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -104227,15 +107694,35 @@ }, { "name": "type", - "description": "Payment type used for this transaction.", + "description": "Payment type used for this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": "Payment name of the transaction.\n\nAdded in Saleor 3.13.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The message of the transaction.\n\nAdded in Saleor 3.13.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -104243,7 +107730,19 @@ }, { "name": "reference", - "description": "Reference of the transaction.", + "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pspReference", + "description": "PSP Reference of the transaction. \n\nAdded in Saleor 3.13.", "type": { "kind": "SCALAR", "name": "String", @@ -104311,7 +107810,19 @@ }, { "name": "amountVoided", - "description": "Amount voided by this transaction.", + "description": "Amount voided by this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountCanceled", + "description": "Amount canceled by this transaction.\n\nAdded in Saleor 3.13.", "type": { "kind": "INPUT_OBJECT", "name": "MoneyInput", @@ -104360,6 +107871,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "externalUrl", + "description": "The url that will allow to redirect user to payment provider page with transaction event details.\n\nAdded in Saleor 3.13.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -104408,16 +107931,12 @@ "description": "Status of transaction's event.", "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionStatus", - "ofType": null - } + "kind": "ENUM", + "name": "TransactionStatus", + "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature). Use `type` instead." }, { "name": "reference", @@ -104432,6 +107951,22 @@ "ofType": null } }, + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature).Use `pspReference` instead." + }, + { + "name": "pspReference", + "description": "PSP reference of transaction.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, "isDeprecated": false, "deprecationReason": null }, @@ -104444,6 +107979,78 @@ "name": "String", "ofType": null }, + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead." + }, + { + "name": "message", + "description": "Message related to the transaction's event.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalUrl", + "description": "The url that will allow to redirect user to payment provider page with transaction details.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amount", + "description": "The amount related to this event.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "The type of action related to this event.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "ENUM", + "name": "TransactionEventTypeEnum", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdBy", + "description": "User or App that created the transaction event.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "UNION", + "name": "UserOrApp", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null } @@ -104467,15 +108074,11 @@ "inputFields": [ { "name": "status", - "description": "Current status of the payment transaction.", + "description": "Current status of the payment transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Status will be calculated by Saleor.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionStatus", - "ofType": null - } + "kind": "ENUM", + "name": "TransactionStatus", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -104483,7 +108086,19 @@ }, { "name": "reference", - "description": "Reference of the transaction.", + "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pspReference", + "description": "PSP Reference related to this action.\n\nAdded in Saleor 3.13.", "type": { "kind": "SCALAR", "name": "String", @@ -104495,7 +108110,19 @@ }, { "name": "name", - "description": "Name of the transaction.", + "description": "Name of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead. `name` field will be added to `message`.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The message related to the event.\n\nAdded in Saleor 3.13.", "type": { "kind": "SCALAR", "name": "String", @@ -104510,6 +108137,603 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "TransactionEventReport", + "description": "Report the event for the transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", + "fields": [ + { + "name": "alreadyProcessed", + "description": "Defines if the reported event hasn't been processed earlier.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transaction", + "description": "The transaction related to the reported event.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionEvent", + "description": "The event assigned to this report. if `alreadyProcessed` is set to `true`, the previously processed event will be returned.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionEvent", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionEventReportError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionEventReportError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionEventReportErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionEventReportErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INCORRECT_DETAILS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ALREADY_EXISTS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionEventTypeEnum", + "description": "Represents possible event types.\n\n Added in Saleor 3.12.\n\n The following types are possible:\n AUTHORIZATION_SUCCESS - represents success authorization.\n AUTHORIZATION_FAILURE - represents failure authorization.\n AUTHORIZATION_ADJUSTMENT - represents authorization adjustment.\n AUTHORIZATION_REQUEST - represents authorization request.\n AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs\n additional actions from the customer.\n CHARGE_ACTION_REQUIRED - represents charge that needs\n additional actions from the customer.\n CHARGE_SUCCESS - represents success charge.\n CHARGE_FAILURE - represents failure charge.\n CHARGE_BACK - represents chargeback.\n CHARGE_REQUEST - represents charge request.\n REFUND_SUCCESS - represents success refund.\n REFUND_FAILURE - represents failure refund.\n REFUND_REVERSE - represents reverse refund.\n REFUND_REQUEST - represents refund request.\n CANCEL_SUCCESS - represents success cancel.\n CANCEL_FAILURE - represents failure cancel.\n CANCEL_REQUEST - represents cancel request.\n INFO - represents info event.\n ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "AUTHORIZATION_SUCCESS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "AUTHORIZATION_FAILURE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "AUTHORIZATION_ADJUSTMENT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "AUTHORIZATION_REQUEST", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "AUTHORIZATION_ACTION_REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CHARGE_ACTION_REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CHARGE_SUCCESS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CHARGE_FAILURE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CHARGE_BACK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CHARGE_REQUEST", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REFUND_SUCCESS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REFUND_FAILURE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REFUND_REVERSE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REFUND_REQUEST", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CANCEL_SUCCESS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CANCEL_FAILURE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CANCEL_REQUEST", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INFO", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionFlowStrategyEnum", + "description": "Determine the transaction flow strategy.\n\n AUTHORIZATION - the processed transaction should be only authorized\n CHARGE - the processed transaction should be charged.\n ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "AUTHORIZATION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CHARGE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionInitialize", + "description": "Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. \n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "transaction", + "description": "The initialized transaction.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionEvent", + "description": "The event created for the initialized transaction.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionEvent", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "data", + "description": "The JSON data required to finalize the payment.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionInitializeError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionInitializeError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionInitializeErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionInitializeErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionInitializeSession", + "description": "Event sent when user starts processing the payment.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transaction", + "description": "Look up a transaction.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sourceObject", + "description": "Checkout or order", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "UNION", + "name": "OrderOrCheckout", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "data", + "description": "Payment gateway data in JSON format, recieved from storefront.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "merchantReference", + "description": "Merchant reference assigned to this payment.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "action", + "description": "Action to proceed for the transaction", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionProcessAction", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "TransactionItem", @@ -104775,6 +108999,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "authorizePendingAmount", + "description": "Total amount of ongoing authorization requests for the transaction.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "refundedAmount", "description": "Total amount refunded for this payment.", @@ -104791,6 +109031,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "refundPendingAmount", + "description": "Total amount of ongoing refund requests for the transaction.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "voidedAmount", "description": "Total amount voided for this payment.", @@ -104804,6 +109060,38 @@ "ofType": null } }, + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature).Use `canceledAmount` instead." + }, + { + "name": "canceledAmount", + "description": "Total amount canceled for this payment.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cancelPendingAmount", + "description": "Total amount of ongoing cancel requests for the transaction.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, "isDeprecated": false, "deprecationReason": null }, @@ -104823,6 +109111,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "chargePendingAmount", + "description": "Total amount of ongoing charge requests for the transaction.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "status", "description": "Status of transaction.", @@ -104836,12 +109140,44 @@ "ofType": null } }, + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions." + }, + { + "name": "type", + "description": "Type of transaction.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature). Use `name` or `message` instead." + }, + { + "name": "name", + "description": "Name of the transaction.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "type", - "description": "Type of transaction.", + "name": "message", + "description": "Message related to the transaction.\n\nAdded in Saleor 3.13.", "args": [], "type": { "kind": "NON_NULL", @@ -104868,6 +109204,22 @@ "ofType": null } }, + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature).Use `pspReference` instead." + }, + { + "name": "pspReference", + "description": "PSP reference of transaction.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, "isDeprecated": false, "deprecationReason": null }, @@ -104906,6 +109258,34 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "createdBy", + "description": "User or App that created the transaction.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "UNION", + "name": "UserOrApp", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalUrl", + "description": "The url that will allow to redirect user to payment provider page with transaction details.\n\nAdded in Saleor 3.13.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -104927,7 +109307,7 @@ { "kind": "OBJECT", "name": "TransactionItemMetadataUpdated", - "description": "Event sent when transaction item metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when transaction item metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -104979,7 +109359,7 @@ }, { "name": "transaction", - "description": "Look up a transaction.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Look up a transaction.", "args": [], "type": { "kind": "OBJECT", @@ -105072,10 +109452,472 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "TransactionProcess", + "description": "Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. \n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "transaction", + "description": "The processed transaction.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionEvent", + "description": "The event created for the processed transaction.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionEvent", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "data", + "description": "The json data required to finalize the payment.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionProcessError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionProcessAction", + "description": null, + "fields": [ + { + "name": "amount", + "description": "Transaction amount to process.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "currency", + "description": "Currency of the amount.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "actionType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionFlowStrategyEnum", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionProcessError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionProcessErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionProcessErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_ALREADY_PROCESSED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MISSING_PAYMENT_APP_RELATION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MISSING_PAYMENT_APP", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionProcessSession", + "description": "Event sent when user has additional payment action to process.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transaction", + "description": "Look up a transaction.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sourceObject", + "description": "Checkout or order", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "UNION", + "name": "OrderOrCheckout", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "data", + "description": "Payment gateway data in JSON format, recieved from storefront.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "merchantReference", + "description": "Merchant reference assigned to this payment.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "action", + "description": "Action to proceed for the transaction", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionProcessAction", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionRefundRequested", + "description": "Event sent when transaction refund is requested.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transaction", + "description": "Look up a transaction.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "action", + "description": "Requested action data.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionAction", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "TransactionRequestAction", - "description": "Request an action for payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS.", + "description": "Request an action for payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS.", "fields": [ { "name": "transaction", @@ -105208,7 +110050,7 @@ { "kind": "ENUM", "name": "TransactionStatus", - "description": "An enumeration.", + "description": "Represents a status of payment transaction.\n\n The following statuses are possible:\n SUCCESS - Represents a sucess action.\n FAILURE - Represents a failure action.\n PENDING - Represents a pending action.\n ", "fields": null, "inputFields": null, "interfaces": null, @@ -105237,7 +110079,7 @@ { "kind": "OBJECT", "name": "TransactionUpdate", - "description": "Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", "fields": [ { "name": "transaction", @@ -105369,6 +110211,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "UNIQUE", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -105381,7 +110229,7 @@ "inputFields": [ { "name": "status", - "description": "Status of the transaction.", + "description": "Status of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.", "type": { "kind": "SCALAR", "name": "String", @@ -105393,7 +110241,31 @@ }, { "name": "type", - "description": "Payment type used for this transaction.", + "description": "Payment type used for this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": "Payment name of the transaction.\n\nAdded in Saleor 3.13.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The message of the transaction.\n\nAdded in Saleor 3.13.", "type": { "kind": "SCALAR", "name": "String", @@ -105405,7 +110277,19 @@ }, { "name": "reference", - "description": "Reference of the transaction.", + "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pspReference", + "description": "PSP Reference of the transaction. \n\nAdded in Saleor 3.13.", "type": { "kind": "SCALAR", "name": "String", @@ -105473,7 +110357,19 @@ }, { "name": "amountVoided", - "description": "Amount voided by this transaction.", + "description": "Amount voided by this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountCanceled", + "description": "Amount canceled by this transaction.\n\nAdded in Saleor 3.13.", "type": { "kind": "INPUT_OBJECT", "name": "MoneyInput", @@ -105522,6 +110418,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "externalUrl", + "description": "The url that will allow to redirect user to payment provider page with transaction event details.\n\nAdded in Saleor 3.13.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -105780,7 +110688,7 @@ { "kind": "OBJECT", "name": "TranslationCreated", - "description": "Event sent when new translation is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new translation is created.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -106068,7 +110976,7 @@ { "kind": "OBJECT", "name": "TranslationUpdated", - "description": "Event sent when translation is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when translation is updated.\n\nAdded in Saleor 3.2.", "fields": [ { "name": "issuedAt", @@ -106824,7 +111732,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -106836,7 +111744,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -106885,7 +111793,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -106897,7 +111805,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -106958,7 +111866,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -106970,7 +111878,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -107067,7 +111975,7 @@ }, { "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -107718,10 +112626,31 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "UNION", + "name": "UserOrApp", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "App", + "ofType": null + } + ] + }, { "kind": "OBJECT", "name": "UserPermission", - "description": null, + "description": "Represents user's permissions.", "fields": [ { "name": "code", @@ -107853,7 +112782,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort users.", "type": { "kind": "NON_NULL", "name": null, @@ -108784,7 +113713,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -108796,7 +113725,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -108845,7 +113774,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -108857,7 +113786,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -108906,7 +113835,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -108918,7 +113847,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -108967,7 +113896,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -108979,7 +113908,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -109744,7 +114673,7 @@ { "kind": "OBJECT", "name": "VoucherCreated", - "description": "Event sent when new voucher is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new voucher is created.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -109905,7 +114834,7 @@ { "kind": "OBJECT", "name": "VoucherDeleted", - "description": "Event sent when voucher is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when voucher is deleted.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -110394,7 +115323,7 @@ { "kind": "OBJECT", "name": "VoucherMetadataUpdated", - "description": "Event sent when voucher metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when voucher metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -110613,7 +115542,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort vouchers.", "type": { "kind": "NON_NULL", "name": null, @@ -110981,7 +115910,7 @@ { "kind": "OBJECT", "name": "VoucherUpdated", - "description": "Event sent when voucher is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when voucher is updated.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -111359,7 +116288,7 @@ }, { "name": "clickAndCollectOption", - "description": "Click and collect options: local, all or disabled.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Click and collect options: local, all or disabled.\n\nAdded in Saleor 3.1.", "args": [], "type": { "kind": "NON_NULL", @@ -111403,7 +116332,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -111415,7 +116344,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -111775,7 +116704,7 @@ { "kind": "OBJECT", "name": "WarehouseCreated", - "description": "Event sent when new warehouse is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when new warehouse is created.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -111923,7 +116852,7 @@ { "kind": "OBJECT", "name": "WarehouseDeleted", - "description": "Event sent when warehouse is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when warehouse is deleted.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -112225,7 +117154,7 @@ { "kind": "OBJECT", "name": "WarehouseMetadataUpdated", - "description": "Event sent when warehouse metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when warehouse metadata is updated.\n\nAdded in Saleor 3.8.", "fields": [ { "name": "issuedAt", @@ -112466,7 +117395,7 @@ "inputFields": [ { "name": "direction", - "description": "Specifies the direction in which to sort products.", + "description": "Specifies the direction in which to sort warehouses.", "type": { "kind": "NON_NULL", "name": null, @@ -112640,7 +117569,7 @@ }, { "name": "clickAndCollectOption", - "description": "Click and collect options: local, all or disabled.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Click and collect options: local, all or disabled.\n\nAdded in Saleor 3.1.", "type": { "kind": "ENUM", "name": "WarehouseClickAndCollectOptionEnum", @@ -112652,7 +117581,7 @@ }, { "name": "isPrivate", - "description": "Visibility of warehouse stocks.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Visibility of warehouse stocks.\n\nAdded in Saleor 3.1.", "type": { "kind": "SCALAR", "name": "Boolean", @@ -112670,7 +117599,7 @@ { "kind": "OBJECT", "name": "WarehouseUpdated", - "description": "Event sent when warehouse is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event sent when warehouse is updated.\n\nAdded in Saleor 3.4.", "fields": [ { "name": "issuedAt", @@ -112923,7 +117852,7 @@ }, { "name": "first", - "description": "Return the first n elements from the list.", + "description": "Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -112935,7 +117864,7 @@ }, { "name": "last", - "description": "Return the last n elements from the list.", + "description": "Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.", "type": { "kind": "SCALAR", "name": "Int", @@ -113233,7 +118162,7 @@ }, { "name": "query", - "description": "Subscription query used to define a webhook payload.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Subscription query used to define a webhook payload.\n\nAdded in Saleor 3.2.", "type": { "kind": "SCALAR", "name": "String", @@ -113903,6 +118832,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "GIFT_CARD_SENT", + "description": "A gift card has been sent.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "GIFT_CARD_STATUS_CHANGED", "description": "A gift card status is changed.", @@ -113911,7 +118846,7 @@ }, { "name": "GIFT_CARD_METADATA_UPDATED", - "description": "A gift card metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A gift card metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -113981,6 +118916,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ORDER_EXPIRED", + "description": "An order is expired.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_FULFILLED", "description": "An order is fulfilled.", @@ -113989,7 +118930,7 @@ }, { "name": "ORDER_METADATA_UPDATED", - "description": "An order metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "An order metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114073,7 +119014,7 @@ }, { "name": "CUSTOMER_METADATA_UPDATED", - "description": "A customer account metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A customer account metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114097,7 +119038,7 @@ }, { "name": "COLLECTION_METADATA_UPDATED", - "description": "A collection metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A collection metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114139,7 +119080,7 @@ }, { "name": "PRODUCT_METADATA_UPDATED", - "description": "A product metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A product metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114181,7 +119122,7 @@ }, { "name": "PRODUCT_VARIANT_METADATA_UPDATED", - "description": "A product variant metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A product variant metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114197,9 +119138,15 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "CHECKOUT_FULLY_PAID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CHECKOUT_METADATA_UPDATED", - "description": "A checkout metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A checkout metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114223,7 +119170,7 @@ }, { "name": "FULFILLMENT_METADATA_UPDATED", - "description": "A fulfillment metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A fulfillment metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114325,7 +119272,7 @@ }, { "name": "SHIPPING_ZONE_METADATA_UPDATED", - "description": "A shipping zone metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A shipping zone metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114349,13 +119296,13 @@ }, { "name": "TRANSACTION_ACTION_REQUEST", - "description": "An action requested for transaction.", + "description": "An action requested for transaction.\n\nDEPRECATED: this subscription will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead.", "isDeprecated": false, "deprecationReason": null }, { "name": "TRANSACTION_ITEM_METADATA_UPDATED", - "description": "Transaction item metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Transaction item metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114391,7 +119338,7 @@ }, { "name": "WAREHOUSE_METADATA_UPDATED", - "description": "A warehouse metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A warehouse metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114415,7 +119362,7 @@ }, { "name": "VOUCHER_METADATA_UPDATED", - "description": "A voucher metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A voucher metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114586,6 +119533,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "GIFT_CARD_SENT", + "description": "A gift card has been sent.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "GIFT_CARD_STATUS_CHANGED", "description": "A gift card status is changed.", @@ -114594,7 +119547,7 @@ }, { "name": "GIFT_CARD_METADATA_UPDATED", - "description": "A gift card metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A gift card metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114664,6 +119617,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ORDER_EXPIRED", + "description": "An order is expired.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_FULFILLED", "description": "An order is fulfilled.", @@ -114672,7 +119631,7 @@ }, { "name": "ORDER_METADATA_UPDATED", - "description": "An order metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "An order metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114756,7 +119715,7 @@ }, { "name": "CUSTOMER_METADATA_UPDATED", - "description": "A customer account metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A customer account metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114780,7 +119739,7 @@ }, { "name": "COLLECTION_METADATA_UPDATED", - "description": "A collection metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A collection metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114822,7 +119781,7 @@ }, { "name": "PRODUCT_METADATA_UPDATED", - "description": "A product metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A product metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114864,7 +119823,7 @@ }, { "name": "PRODUCT_VARIANT_METADATA_UPDATED", - "description": "A product variant metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A product variant metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114880,9 +119839,15 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "CHECKOUT_FULLY_PAID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CHECKOUT_METADATA_UPDATED", - "description": "A checkout metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A checkout metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -114906,7 +119871,7 @@ }, { "name": "FULFILLMENT_METADATA_UPDATED", - "description": "A fulfillment metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A fulfillment metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -115008,7 +119973,7 @@ }, { "name": "SHIPPING_ZONE_METADATA_UPDATED", - "description": "A shipping zone metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A shipping zone metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -115032,13 +119997,13 @@ }, { "name": "TRANSACTION_ACTION_REQUEST", - "description": "An action requested for transaction.", + "description": "An action requested for transaction.\n\nDEPRECATED: this subscription will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead.", "isDeprecated": false, "deprecationReason": null }, { "name": "TRANSACTION_ITEM_METADATA_UPDATED", - "description": "Transaction item metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Transaction item metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -115074,7 +120039,7 @@ }, { "name": "WAREHOUSE_METADATA_UPDATED", - "description": "A warehouse metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A warehouse metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -115098,7 +120063,7 @@ }, { "name": "VOUCHER_METADATA_UPDATED", - "description": "A voucher metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "A voucher metadata is updated.\n\nAdded in Saleor 3.8.", "isDeprecated": false, "deprecationReason": null }, @@ -115156,15 +120121,33 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "TRANSACTION_CHARGE_REQUESTED", + "description": "Event called when charge has been requested for transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_REFUND_REQUESTED", + "description": "Event called when refund has been requested for transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_CANCELATION_REQUESTED", + "description": "Event called when cancel has been requested for transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CHECKOUT_CALCULATE_TAXES", - "description": "Event called for checkout tax calculation.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event called for checkout tax calculation.\n\nAdded in Saleor 3.6.", "isDeprecated": false, "deprecationReason": null }, { "name": "ORDER_CALCULATE_TAXES", - "description": "Event called for order tax calculation.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event called for order tax calculation.\n\nAdded in Saleor 3.6.", "isDeprecated": false, "deprecationReason": null }, @@ -115185,6 +120168,24 @@ "description": "Filter shipping methods for checkout.", "isDeprecated": false, "deprecationReason": null + }, + { + "name": "PAYMENT_GATEWAY_INITIALIZE_SESSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_INITIALIZE_SESSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_PROCESS_SESSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -115239,15 +120240,33 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "TRANSACTION_CHARGE_REQUESTED", + "description": "Event called when charge has been requested for transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_REFUND_REQUESTED", + "description": "Event called when refund has been requested for transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_CANCELATION_REQUESTED", + "description": "Event called when cancel has been requested for transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CHECKOUT_CALCULATE_TAXES", - "description": "Event called for checkout tax calculation.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event called for checkout tax calculation.\n\nAdded in Saleor 3.6.", "isDeprecated": false, "deprecationReason": null }, { "name": "ORDER_CALCULATE_TAXES", - "description": "Event called for order tax calculation.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Event called for order tax calculation.\n\nAdded in Saleor 3.6.", "isDeprecated": false, "deprecationReason": null }, @@ -115268,6 +120287,24 @@ "description": "Filter shipping methods for checkout.", "isDeprecated": false, "deprecationReason": null + }, + { + "name": "PAYMENT_GATEWAY_INITIALIZE_SESSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_INITIALIZE_SESSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_PROCESS_SESSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -115418,6 +120455,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "GIFT_CARD_SENT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "GIFT_CARD_STATUS_CHANGED", "description": null, @@ -115496,6 +120539,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ORDER_EXPIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_FULFILLED", "description": null, @@ -115712,6 +120761,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "CHECKOUT_FULLY_PAID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CHECKOUT_METADATA_UPDATED", "description": null, @@ -116317,7 +121372,7 @@ }, { "name": "query", - "description": "Subscription query used to define a webhook payload.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "Subscription query used to define a webhook payload.\n\nAdded in Saleor 3.2.", "type": { "kind": "SCALAR", "name": "String", @@ -116507,6 +121562,11 @@ "name": "Collection", "ofType": null }, + { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, { "kind": "OBJECT", "name": "PageType", @@ -117433,11 +122493,45 @@ } ], "directives": [ + { + "name": "doc", + "description": "Groups fields and operations into named groups.", + "isRepeatable": false, + "locations": [ + "ENUM", + "FIELD", + "FIELD_DEFINITION", + "INPUT_OBJECT", + "OBJECT" + ], + "args": [ + { + "name": "category", + "description": "Name of the grouping category", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ] + }, { "name": "include", "description": "Directs the executor to include this field or fragment only when the `if` argument is true.", "isRepeatable": false, - "locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], + "locations": [ + "FIELD", + "FRAGMENT_SPREAD", + "INLINE_FRAGMENT" + ], "args": [ { "name": "if", @@ -117461,7 +122555,11 @@ "name": "skip", "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", "isRepeatable": false, - "locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], + "locations": [ + "FIELD", + "FRAGMENT_SPREAD", + "INLINE_FRAGMENT" + ], "args": [ { "name": "if", @@ -117510,7 +122608,9 @@ "name": "specifiedBy", "description": "Exposes a URL that specifies the behaviour of this scalar.", "isRepeatable": false, - "locations": ["SCALAR"], + "locations": [ + "SCALAR" + ], "args": [ { "name": "url", @@ -117532,4 +122632,4 @@ } ] } -} +} \ No newline at end of file diff --git a/introspection.transactions.json b/introspection.transactions.json deleted file mode 100644 index 29d854c90..000000000 --- a/introspection.transactions.json +++ /dev/null @@ -1,118926 +0,0 @@ -{ - "__schema": { - "queryType": { - "name": "Query" - }, - "mutationType": { - "name": "Mutation" - }, - "subscriptionType": { - "name": "Subscription" - }, - "types": [ - { - "kind": "OBJECT", - "name": "AccountAddressCreate", - "description": "Create a new address for the customer. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "user", - "description": "A user instance for which the address was created.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AccountAddressDelete", - "description": "Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.", - "fields": [ - { - "name": "user", - "description": "A user instance for which the address was deleted.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AccountAddressUpdate", - "description": "Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.", - "fields": [ - { - "name": "user", - "description": "A user object for which the address was edited.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AccountDelete", - "description": "Remove user account. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AccountError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AccountErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressType", - "description": "A type of address that causes the error.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AddressTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "String", - "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AccountErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ACTIVATE_OWN_ACCOUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACTIVATE_SUPERUSER_ACCOUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DEACTIVATE_OWN_ACCOUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DEACTIVATE_SUPERUSER_ACCOUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELETE_NON_STAFF_USER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELETE_OWN_ACCOUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELETE_STAFF_ACCOUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELETE_SUPERUSER_ACCOUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_PASSWORD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LEFT_NOT_MANAGEABLE_PERMISSION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_CREDENTIALS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUT_OF_SCOPE_USER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUT_OF_SCOPE_GROUP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUT_OF_SCOPE_PERMISSION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PASSWORD_ENTIRELY_NUMERIC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PASSWORD_TOO_COMMON", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PASSWORD_TOO_SHORT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PASSWORD_TOO_SIMILAR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JWT_SIGNATURE_EXPIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JWT_INVALID_TOKEN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JWT_DECODE_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JWT_MISSING_TOKEN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JWT_INVALID_CSRF_TOKEN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_INACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_CHANNEL_SLUG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACCOUNT_NOT_CONFIRMED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AccountInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "firstName", - "description": "Given name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": "Family name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "User language code.", - "type": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultBillingAddress", - "description": "Billing address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultShippingAddress", - "description": "Shipping address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AccountRegister", - "description": "Register a new user.", - "fields": [ - { - "name": "requiresConfirmation", - "description": "Informs whether users need to confirm their email address.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Boolean", - "description": "The `Boolean` scalar type represents `true` or `false`.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AccountRegisterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "firstName", - "description": "Given name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": "Family name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "User language code.", - "type": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "The email address of the user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "password", - "description": "Password.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "Base of frontend URL that will be needed to create confirmation URL.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "User public metadata.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel which will be used to notify users. Optional when only one channel exists.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AccountRequestDeletion", - "description": "Sends an email with the account removal link for the logged-in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AccountSetDefaultAddress", - "description": "Sets a default address for the authenticated user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "user", - "description": "An updated user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AccountUpdate", - "description": "Updates the account of the logged-in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Address", - "description": "Represents user address data.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.\n\nAdded in Saleor 3.10.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.10.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.10.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.\n\nAdded in Saleor 3.10.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.10.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.10.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "companyName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "streetAddress1", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "streetAddress2", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "city", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cityArea", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "postalCode", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "country", - "description": "Shop's default country.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryArea", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDefaultShippingAddress", - "description": "Address is user's default shipping address.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDefaultBillingAddress", - "description": "Address is user's default billing address.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "ID", - "description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AddressCreate", - "description": "Creates user address. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "user", - "description": "A user instance for which the address was created.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AddressCreated", - "description": "Event sent when new address is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": "The address the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AddressDelete", - "description": "Deletes an address. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "user", - "description": "A user instance for which the address was deleted.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AddressDeleted", - "description": "Event sent when address is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": "The address the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "firstName", - "description": "Given name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": "Family name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "companyName", - "description": "Company or organization.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "streetAddress1", - "description": "Address.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "streetAddress2", - "description": "Address.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "city", - "description": "City.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cityArea", - "description": "District.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "postalCode", - "description": "Postal code.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "country", - "description": "Country.", - "type": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryArea", - "description": "State or province.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": "Phone number.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AddressSetDefault", - "description": "Sets a default address for the given user. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "user", - "description": "An updated user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AddressTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "BILLING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AddressUpdate", - "description": "Updates an address. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "user", - "description": "A user object for which the address was edited.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AddressUpdated", - "description": "Event sent when address is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": "The address the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AddressValidationData", - "description": null, - "fields": [ - { - "name": "countryCode", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressFormat", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressLatinFormat", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "allowedFields", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "requiredFields", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "upperFields", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryAreaType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryAreaChoices", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChoiceValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cityType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cityChoices", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChoiceValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cityAreaType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cityAreaChoices", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChoiceValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "postalCodeType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "postalCodeMatchers", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "postalCodeExamples", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "postalCodePrefix", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Allocation", - "description": "Represents allocation.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "Quantity allocated for orders.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "The warehouse were items were allocated.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Int", - "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AllocationStrategyEnum", - "description": "Determine the allocation strategy for the channel.\n\n PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order\n within the channel\n\n PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock\n ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PRIORITIZE_SORTING_ORDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRIORITIZE_HIGH_STOCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "App", - "description": "Represents app data.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of the app's permissions.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Permission", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": "The date and time when the app was created.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "Determine if app will be set active or not.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Type of the app.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AppTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tokens", - "description": "Last 4 characters of the tokens.\n\nRequires one of the following permissions: MANAGE_APPS, OWNER.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppToken", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhooks", - "description": "List of webhooks assigned to this app.\n\nRequires one of the following permissions: MANAGE_APPS, OWNER.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Webhook", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "aboutApp", - "description": "Description of this app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dataPrivacy", - "description": "Description of the data privacy defined for this app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead." - }, - { - "name": "dataPrivacyUrl", - "description": "URL to details about the privacy policy on the app owner page.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "homepageUrl", - "description": "Homepage of the app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "supportUrl", - "description": "Support page for the app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "configurationUrl", - "description": "URL to iframe with the configuration for the app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `appUrl` instead." - }, - { - "name": "appUrl", - "description": "URL to iframe with the app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "manifestUrl", - "description": "URL to manifest used during app's installation.\n\nAdded in Saleor 3.5.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Version number of the app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accessToken", - "description": "JWT token used to authenticate by thridparty app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "extensions", - "description": "App's dashboard extensions.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppExtension", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppActivate", - "description": "Activate the app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "App", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppCreate", - "description": "Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS.", - "fields": [ - { - "name": "authToken", - "description": "The newly created authentication token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppDeactivate", - "description": "Deactivate the app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppDelete", - "description": "Deletes an app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppDeleteFailedInstallation", - "description": "Delete failed installation. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appInstallation", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AppInstallation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppDeleted", - "description": "Event sent when app is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "The application the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AppErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of permissions which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AppErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "FORBIDDEN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_STATUS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_PERMISSION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_URL_FORMAT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_MANIFEST_FORMAT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_CUSTOM_HEADERS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANIFEST_URL_CANT_CONNECT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUT_OF_SCOPE_APP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUT_OF_SCOPE_PERMISSION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppExtension", - "description": "Represents app data.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of the app extension's permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Permission", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "label", - "description": "Label of the extension to show in the dashboard.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL of a view where extension's iframe is placed.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mount", - "description": "Place where given extension will be mounted.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AppExtensionMountEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "target", - "description": "Type of way how app extension will be opened.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AppExtensionTargetEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "App", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accessToken", - "description": "JWT token used to authenticate by thridparty app extension.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppExtensionCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppExtensionCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppExtensionCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppExtension", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AppExtensionFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "mount", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AppExtensionMountEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "target", - "description": null, - "type": { - "kind": "ENUM", - "name": "AppExtensionTargetEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AppExtensionMountEnum", - "description": "All places where app extension can be mounted.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CUSTOMER_OVERVIEW_CREATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_OVERVIEW_MORE_ACTIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_DETAILS_MORE_ACTIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_OVERVIEW_CREATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_OVERVIEW_MORE_ACTIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_DETAILS_MORE_ACTIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAVIGATION_CATALOG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAVIGATION_ORDERS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAVIGATION_CUSTOMERS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAVIGATION_DISCOUNTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAVIGATION_TRANSLATIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAVIGATION_PAGES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_DETAILS_MORE_ACTIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_OVERVIEW_CREATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_OVERVIEW_MORE_ACTIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AppExtensionTargetEnum", - "description": "All available ways of opening an app extension.\n\n POPUP - app's extension will be mounted as a popup window\n APP_PAGE - redirect to app's page\n ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "POPUP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_PAGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppFetchManifest", - "description": "Fetch and validate manifest. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "manifest", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Manifest", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AppFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "type": { - "kind": "ENUM", - "name": "AppTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AppInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the app.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of permission code names to assign to this app.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppInstall", - "description": "Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS.", - "fields": [ - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appInstallation", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AppInstallation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AppInstallInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "appName", - "description": "Name of the app to install.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "manifestUrl", - "description": "Url to app's manifest in JSON format.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "activateAfterInstallation", - "description": "Determine if app will be set active or not.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "true", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of permission code names to assign to this app.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppInstallation", - "description": "Represents ongoing installation of app.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": "Job status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "JobStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": "Created date time of job in ISO 8601 format.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": "Date time of job last update in ISO 8601 format.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Job message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "manifestUrl", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "Job", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppInstalled", - "description": "Event sent when new app is installed.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "The application the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppManifestExtension", - "description": null, - "fields": [ - { - "name": "permissions", - "description": "List of the app extension's permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Permission", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "label", - "description": "Label of the extension to show in the dashboard.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL of a view where extension's iframe is placed.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mount", - "description": "Place where given extension will be mounted.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AppExtensionMountEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "target", - "description": "Type of way how app extension will be opened.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AppExtensionTargetEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppManifestWebhook", - "description": null, - "fields": [ - { - "name": "name", - "description": "The name of the webhook.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "asyncEvents", - "description": "The asynchronous events that webhook wants to subscribe.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeAsyncEnum", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "syncEvents", - "description": "The synchronous events that webhook wants to subscribe.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeSyncEnum", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "Subscription query of a webhook", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "targetUrl", - "description": "The url to receive the payload.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppRetryInstall", - "description": "Retry failed installation of new app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appInstallation", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AppInstallation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AppSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort apps by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATION_DATE", - "description": "Sort apps by creation date.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AppSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort apps by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AppSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppStatusChanged", - "description": "Event sent when app status has changed.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "The application the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppToken", - "description": "Represents token data.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the authenticated token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "authToken", - "description": "Last 4 characters of the token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppTokenCreate", - "description": "Creates a new token. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "authToken", - "description": "The newly created authentication token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appToken", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AppToken", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppTokenDelete", - "description": "Deletes an authentication token assigned to app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appToken", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AppToken", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AppTokenInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the token.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "ID of app.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppTokenVerify", - "description": "Verify provided app token.", - "fields": [ - { - "name": "valid", - "description": "Determine if token is valid or not.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AppTypeEnum", - "description": "Enum determining type of your App.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "LOCAL", - "description": "Local Saleor App. The app is fully manageable from dashboard. You can change assigned permissions, add webhooks, or authentication token", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "THIRDPARTY", - "description": "Third party external App. Installation is fully automated. Saleor uses a defined App manifest to gather all required information.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppUpdate", - "description": "Updates an existing app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "appErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AppUpdated", - "description": "Event sent when app is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "The application the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AreaUnitsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "SQ_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_M", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_KM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_FT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_YD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_INCH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AssignNavigation", - "description": "Assigns storefront's navigation menus. \n\nRequires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS.", - "fields": [ - { - "name": "menu", - "description": "Assigned navigation menu.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AssignedVariantAttribute", - "description": "Represents assigned attribute to variant with variant selection attached.\n\nAdded in Saleor 3.1.", - "fields": [ - { - "name": "attribute", - "description": "Attribute assigned to variant.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantSelection", - "description": "Determines, whether assigned attribute is allowed for variant selection. Supported variant types for variant selection are: ['dropdown', 'boolean', 'swatch', 'numeric']", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Attribute", - "description": "Custom attribute of a product. Attributes can be assigned to products and variants at the product type level.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputType", - "description": "The input type to use for entering attribute values in the dashboard.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AttributeInputTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "entityType", - "description": "The entity type which can be used as a reference.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AttributeEntityTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of an attribute displayed in the interface.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Internal representation of an attribute name.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The attribute type.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AttributeTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unit", - "description": "The unit of attribute values.", - "args": [], - "type": { - "kind": "ENUM", - "name": "MeasurementUnitsEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "choices", - "description": "List of attribute's values.", - "args": [ - { - "name": "sortBy", - "description": "Sort attribute choices.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeChoicesSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for attribute choices.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeValueCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "valueRequired", - "description": "Whether the attribute requires values to be passed or not. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visibleInStorefront", - "description": "Whether the attribute should be visible or not in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filterableInStorefront", - "description": "Whether the attribute can be filtered in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - }, - { - "name": "filterableInDashboard", - "description": "Whether the attribute can be filtered in dashboard. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableInGrid", - "description": "Whether the attribute can be displayed in the admin product list. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - }, - { - "name": "storefrontSearchPosition", - "description": "The position of the attribute in the storefront navigation (0 by default). Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - }, - { - "name": "translation", - "description": "Returns translated attribute fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for attribute.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "withChoices", - "description": "Flag indicating that attribute has predefined choices.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypes", - "description": null, - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductTypeCountableConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantTypes", - "description": null, - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductTypeCountableConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this attribute. \n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeBulkDelete", - "description": "Deletes attributes. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AttributeChoicesSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort attribute choice by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SLUG", - "description": "Sort attribute choice by slug.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeChoicesSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort attribute choices by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AttributeChoicesSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeCreate", - "description": "Creates an attribute.", - "fields": [ - { - "name": "attribute", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "inputType", - "description": "The input type to use for entering attribute values in the dashboard.", - "type": { - "kind": "ENUM", - "name": "AttributeInputTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "entityType", - "description": "The entity type which can be used as a reference.", - "type": { - "kind": "ENUM", - "name": "AttributeEntityTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of an attribute displayed in the interface.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Internal representation of an attribute name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The attribute type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AttributeTypeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unit", - "description": "The unit of attribute values.", - "type": { - "kind": "ENUM", - "name": "MeasurementUnitsEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "List of attribute's values.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueCreateInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "valueRequired", - "description": "Whether the attribute requires values to be passed or not.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isVariantOnly", - "description": "Whether the attribute is for variants only.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visibleInStorefront", - "description": "Whether the attribute should be visible or not in storefront.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filterableInStorefront", - "description": "Whether the attribute can be filtered in storefront.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filterableInDashboard", - "description": "Whether the attribute can be filtered in dashboard.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "storefrontSearchPosition", - "description": "The position of the attribute in the storefront navigation (0 by default).\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableInGrid", - "description": "Whether the attribute can be displayed in the admin product list.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this attribute.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeCreated", - "description": "Event sent when new attribute is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attribute", - "description": "The attribute the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeDelete", - "description": "Deletes an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attribute", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeDeleted", - "description": "Event sent when attribute is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attribute", - "description": "The attribute the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AttributeEntityTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PAGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeEntityTypeEnumFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "eq", - "description": "The value equal to.", - "type": { - "kind": "ENUM", - "name": "AttributeEntityTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oneOf", - "description": "The value included in.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AttributeEntityTypeEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AttributeErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AttributeErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "valueRequired", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isVariantOnly", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visibleInStorefront", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filterableInStorefront", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filterableInDashboard", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableInGrid", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "type": { - "kind": "ENUM", - "name": "AttributeTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inCollection", - "description": null, - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inCategory", - "description": null, - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Specifies the channel by which the data should be filtered. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "slug", - "description": "Internal representation of an attribute name.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "Internal representation of a value (unique per attribute).", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "valuesRange", - "description": "The range that the returned values should be in.", - "type": { - "kind": "INPUT_OBJECT", - "name": "IntRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dateTime", - "description": "The date/time range that the returned values should be in.", - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "date", - "description": "The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used.", - "type": { - "kind": "INPUT_OBJECT", - "name": "DateRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "boolean", - "description": "The boolean value of the attribute.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AttributeInputTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DROPDOWN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MULTISELECT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FILE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFERENCE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NUMERIC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RICH_TEXT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PLAIN_TEXT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SWATCH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BOOLEAN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DATE_TIME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeInputTypeEnumFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "eq", - "description": "The value equal to.", - "type": { - "kind": "ENUM", - "name": "AttributeInputTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oneOf", - "description": "The value included in.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AttributeInputTypeEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeReorderValues", - "description": "Reorder the values of an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "attribute", - "description": "Attribute from which values are reordered.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AttributeSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort attributes by name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SLUG", - "description": "Sort attributes by slug", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VALUE_REQUIRED", - "description": "Sort attributes by the value required flag", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IS_VARIANT_ONLY", - "description": "Sort attributes by the variant only flag", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VISIBLE_IN_STOREFRONT", - "description": "Sort attributes by visibility in the storefront", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FILTERABLE_IN_STOREFRONT", - "description": "Sort attributes by the filterable in storefront flag", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FILTERABLE_IN_DASHBOARD", - "description": "Sort attributes by the filterable in dashboard flag", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STOREFRONT_SEARCH_POSITION", - "description": "Sort attributes by their position in storefront", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AVAILABLE_IN_GRID", - "description": "Sort attributes based on whether they can be displayed or not in a product grid.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort attributes by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AttributeSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated attribute fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for attribute.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attribute", - "description": "Custom attribute of a product.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeTranslate", - "description": "Creates/updates translations for an attribute. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attribute", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AttributeTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PRODUCT_TYPE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeTypeEnumFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "eq", - "description": "The value equal to.", - "type": { - "kind": "ENUM", - "name": "AttributeTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oneOf", - "description": "The value included in.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AttributeTypeEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeUpdate", - "description": "Updates attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "attribute", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of an attribute displayed in the interface.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Internal representation of an attribute name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unit", - "description": "The unit of attribute values.", - "type": { - "kind": "ENUM", - "name": "MeasurementUnitsEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeValues", - "description": "IDs of values to be removed from this attribute.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addValues", - "description": "New values to be created for this attribute.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueUpdateInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "valueRequired", - "description": "Whether the attribute requires values to be passed or not.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isVariantOnly", - "description": "Whether the attribute is for variants only.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visibleInStorefront", - "description": "Whether the attribute should be visible or not in storefront.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filterableInStorefront", - "description": "Whether the attribute can be filtered in storefront.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filterableInDashboard", - "description": "Whether the attribute can be filtered in dashboard.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "storefrontSearchPosition", - "description": "The position of the attribute in the storefront navigation (0 by default).\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableInGrid", - "description": "Whether the attribute can be displayed in the admin product list.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeUpdated", - "description": "Event sent when attribute is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attribute", - "description": "The attribute the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValue", - "description": "Represents a value of an attribute.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of a value displayed in the interface.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Internal representation of a value (unique per attribute).", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Represent value of the attribute value (e.g. color values for swatch attributes).", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated attribute value fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for attribute value.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeValueTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputType", - "description": "The input type to use for entering attribute values in the dashboard.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AttributeInputTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reference", - "description": "The ID of the attribute reference.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "file", - "description": "Represents file URL and content type (if attribute value is a file).", - "args": [], - "type": { - "kind": "OBJECT", - "name": "File", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "richText", - "description": "Represents the text of the attribute value, includes formatting.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plainText", - "description": "Represents the text of the attribute value, plain text without formating.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "boolean", - "description": "Represents the boolean value of the attribute value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "date", - "description": "Represents the date value of the attribute value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dateTime", - "description": "Represents the date/time value of the attribute value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this attribute value. \n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueBulkDelete", - "description": "Deletes values of attributes. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeValueCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueCreate", - "description": "Creates a value for an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "attribute", - "description": "The updated attribute.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValue", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeValueCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "value", - "description": "Represent value of the attribute value (e.g. color values for swatch attributes).", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "richText", - "description": "Represents the text of the attribute value, includes formatting.\n\nRich text format. For reference see https://editorjs.io/\n\nDEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plainText", - "description": "Represents the text of the attribute value, plain text without formating.\n\nDEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fileUrl", - "description": "URL of the file attribute. Every time, a new value is created.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentType", - "description": "File content type.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this attribute value.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of a value displayed in the interface.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueCreated", - "description": "Event sent when new attribute value is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValue", - "description": "The attribute value the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueDelete", - "description": "Deletes a value of an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "attribute", - "description": "The updated attribute.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValue", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueDeleted", - "description": "Event sent when attribute value is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValue", - "description": "The attribute value the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeValueFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeValueInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "id", - "description": "ID of the selected attribute.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. This field will be removed in Saleor 4.0.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dropdown", - "description": "Attribute value ID.\n\nAdded in Saleor 3.9.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueSelectableTypeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "swatch", - "description": "Attribute value ID.\n\nAdded in Saleor 3.9.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueSelectableTypeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "multiselect", - "description": "List of attribute value IDs.\n\nAdded in Saleor 3.9.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueSelectableTypeInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "numeric", - "description": "Numeric value of an attribute.\n\nAdded in Saleor 3.9.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "file", - "description": "URL of the file attribute. Every time, a new value is created.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentType", - "description": "File content type.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "references", - "description": "List of entity IDs that will be used as references.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "richText", - "description": "Text content in JSON format.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plainText", - "description": "Plain text content.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "boolean", - "description": "Represents the boolean value of the attribute value.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "date", - "description": "Represents the date value of the attribute value.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dateTime", - "description": "Represents the date/time value of the attribute value.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeValueSelectableTypeInput", - "description": "Represents attribute value. If no ID provided, value will be resolved. \n\nAdded in Saleor 3.9.", - "fields": null, - "inputFields": [ - { - "name": "id", - "description": "ID of an attribute value.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "richText", - "description": "Attribute value.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plainText", - "description": "Attribute plain text value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated attribute value fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for attribute value.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeValueTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValue", - "description": "Represents a value of an attribute.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - }, - { - "name": "attribute", - "description": "Associated attribute that can be translated.\n\nAdded in Saleor 3.9.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeTranslatableContent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueTranslate", - "description": "Creates/updates translations for an attribute value. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValue", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "richText", - "description": "Attribute value.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plainText", - "description": "Attribute plain text value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeValueTranslationInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "richText", - "description": "Translated text.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plainText", - "description": "Translated text.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueUpdate", - "description": "Updates value of an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "attribute", - "description": "The updated attribute.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValue", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeValueUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "value", - "description": "Represent value of the attribute value (e.g. color values for swatch attributes).", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "richText", - "description": "Represents the text of the attribute value, includes formatting.\n\nRich text format. For reference see https://editorjs.io/\n\nDEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plainText", - "description": "Represents the text of the attribute value, plain text without formating.\n\nDEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fileUrl", - "description": "URL of the file attribute. Every time, a new value is created.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentType", - "description": "File content type.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this attribute value.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of a value displayed in the interface.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueUpdated", - "description": "Event sent when attribute value is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValue", - "description": "The attribute value the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AttributeWhereInput", - "description": "Where filtering options.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": null, - "inputFields": [ - { - "name": "valueRequired", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visibleInStorefront", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filterableInDashboard", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "withChoices", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputType", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeInputTypeEnumFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "entityType", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeEntityTypeEnumFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeTypeEnumFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unit", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "MeasurementUnitsEnumFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inCollection", - "description": null, - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inCategory", - "description": null, - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AND", - "description": "List of conditions that must be met.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeWhereInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OR", - "description": "A list of conditions of which at least one must be met.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeWhereInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "BulkAttributeValueInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "id", - "description": "ID of the selected attribute.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "boolean", - "description": "The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BulkProductError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "List of attribute values IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "index", - "description": "Index of an input list item that caused the error.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": "List of warehouse IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of channel IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BulkStockError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "List of attribute values IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "index", - "description": "Index of an input list item that caused the error.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CalculateTaxes", - "description": "Synchronous webhook for calculating checkout/order taxes.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxBase", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxableObject", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CardInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "code", - "description": "Payment method nonce, a token returned by the appropriate provider's SDK.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cvc", - "description": "Card security code.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "money", - "description": "Information about currency and amount.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CatalogueInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "products", - "description": "Products related to the discount.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categories", - "description": "Categories related to the discount.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": "Collections related to the discount.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "Product variant related to the discount.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Category", - "description": "Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the category.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "parent", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "level", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Description of the category.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - }, - { - "name": "ancestors", - "description": "List of ancestors of the category.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of products in the category. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for products.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort products.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductOrder", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "children", - "description": "List of children of the category.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "backgroundImage", - "description": null, - "args": [ - { - "name": "size", - "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "ThumbnailFormatEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Image", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated category fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for category.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryBulkDelete", - "description": "Deletes categories. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CategoryCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryCreate", - "description": "Creates a new category. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryCreated", - "description": "Event sent when new category is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "The category the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryDelete", - "description": "Deletes a category. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryDeleted", - "description": "Event sent when category is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "The category the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CategoryFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CategoryInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "description", - "description": "Category description.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Category name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Category slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seo", - "description": "Search engine optimization fields.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SeoInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "backgroundImage", - "description": "Background image file.", - "type": { - "kind": "SCALAR", - "name": "Upload", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "backgroundImageAlt", - "description": "Alt text for a product media.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the category metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the category private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CategorySortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort categories by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_COUNT", - "description": "Sort categories by product count.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SUBCATEGORY_COUNT", - "description": "Sort categories by subcategory count.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CategorySortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Specifies the channel in which to sort the data.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort categories by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CategorySortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the category.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Description of the category.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - }, - { - "name": "translation", - "description": "Returns translated category fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for category.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "Represents a single category of products.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryTranslate", - "description": "Creates/updates translations for a category. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Translated description of the category.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Translated description of the category.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryUpdate", - "description": "Updates a category. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CategoryUpdated", - "description": "Event sent when category is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "The category the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Channel", - "description": "Represents channel.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the channel.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the channel.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "Whether the channel is active.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currencyCode", - "description": "A currency that is assigned to the channel.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasOrders", - "description": "Whether a channel has associated orders.\n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultCountry", - "description": "Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": "List of warehouses assigned to this channel.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "List of shippable countries for the channel.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableShippingMethodsPerCountry", - "description": "Shipping methods that are available for the channel.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "countries", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethodsPerCountry", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stockSettings", - "description": "Define the stock setting for this channel.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StockSettings", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderSettings", - "description": "Channel-specific order settings.\n\nAdded in Saleor 3.12.\n\nRequires one of the following permissions: MANAGE_CHANNELS, MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderSettings", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelActivate", - "description": "Activate a channel. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "fields": [ - { - "name": "channel", - "description": "Activated channel.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelCreate", - "description": "Creates new channel. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "fields": [ - { - "name": "channelErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ChannelCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "isActive", - "description": "isActive flag.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stockSettings", - "description": "The channel stock settings.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "StockSettingsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addShippingZones", - "description": "List of shipping zones to assign to the channel.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addWarehouses", - "description": "List of warehouses to assign to the channel.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderSettings", - "description": "The channel order settings\n\nAdded in Saleor 3.12.", - "type": { - "kind": "INPUT_OBJECT", - "name": "OrderSettingsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currencyCode", - "description": "Currency of the channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultCountry", - "description": "Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelCreated", - "description": "Event sent when new channel is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "The channel the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelDeactivate", - "description": "Deactivate a channel. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "fields": [ - { - "name": "channel", - "description": "Deactivated channel.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelDelete", - "description": "Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "fields": [ - { - "name": "channelErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ChannelDeleteInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channelId", - "description": "ID of channel to migrate orders from origin channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelDeleted", - "description": "Event sent when channel is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "The channel the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ChannelErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZones", - "description": "List of shipping zone IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": "List of warehouses IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ChannelErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNELS_CURRENCY_MUST_BE_THE_SAME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_WITH_ORDERS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ChannelListingUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channelListing", - "description": "ID of a channel listing.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": "Price of the particular variant in channel.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "costPrice", - "description": "Cost price of the variant in channel.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "preorderThreshold", - "description": "The threshold for preorder variant in channel.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelReorderWarehouses", - "description": "Reorder the warehouses of a channel.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "fields": [ - { - "name": "channel", - "description": "Channel within the warehouses are reordered.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelStatusChanged", - "description": "Event sent when channel status has changed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "The channel the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelUpdate", - "description": "Update a channel.\n\nRequires one of the following permissions: MANAGE_CHANNELS.\nRequires one of the following permissions when updating only orderSettings field: MANAGE_CHANNELS, MANAGE_ORDERS.", - "fields": [ - { - "name": "channelErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChannelError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ChannelUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "isActive", - "description": "isActive flag.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stockSettings", - "description": "The channel stock settings.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "StockSettingsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addShippingZones", - "description": "List of shipping zones to assign to the channel.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addWarehouses", - "description": "List of warehouses to assign to the channel.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderSettings", - "description": "The channel order settings\n\nAdded in Saleor 3.12.", - "type": { - "kind": "INPUT_OBJECT", - "name": "OrderSettingsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the channel.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the channel.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultCountry", - "description": "Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeShippingZones", - "description": "List of shipping zones to unassign from the channel.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeWarehouses", - "description": "List of warehouses to unassign from the channel.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChannelUpdated", - "description": "Event sent when channel is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "The channel the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Checkout", - "description": "Checkout object.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastChange", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "billingAddress", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingAddress", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "note", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discount", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translatedDiscountName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherCode", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableShippingMethods", - "description": "Shipping methods that can be used with this checkout.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `shippingMethods` instead." - }, - { - "name": "shippingMethods", - "description": "Shipping methods that can be used with this checkout.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableCollectionPoints", - "description": "Collection points that can be used for this order.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availablePaymentGateways", - "description": "List of available payment gateways.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentGateway", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Email of a customer.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCards", - "description": "List of gift cards associated with this checkout.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isShippingRequired", - "description": "Returns True, if checkout requires shipping.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "The number of items purchased.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stockReservationExpires", - "description": "Date when oldest stock reservation for this checkout expires or null if no stock is reserved.\n\nAdded in Saleor 3.1.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "A list of checkout lines, each containing information about an item in the checkout.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutLine", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPrice", - "description": "The price of the shipping, with all the taxes included.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": "The shipping method related with checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead." - }, - { - "name": "deliveryMethod", - "description": "The delivery method selected for this checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "UNION", - "name": "DeliveryMethod", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "subtotalPrice", - "description": "The price of the checkout before shipping, with taxes included.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxExemption", - "description": "Returns True if checkout has to be exempt from taxes.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "The checkout's token.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalPrice", - "description": "The sum of the the checkout line prices, with all the taxes,shipping costs, and discounts included.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Checkout language code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactions", - "description": "List of transactions for the checkout. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayGrossPrices", - "description": "Determines whether checkout prices should include taxes when displayed in a storefront.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutAddPromoCode", - "description": "Adds a gift card or a voucher to a checkout.", - "fields": [ - { - "name": "checkout", - "description": "The checkout with the added gift card or voucher.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CheckoutAddressValidationRules", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "checkRequiredFields", - "description": "Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "true", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkFieldsFormat", - "description": "Determines if an error should be raised when the provided address doesn't match the expected format. Example: using letters for postal code when the numbers are expected.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "true", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "enableFieldsNormalization", - "description": "Determines if Saleor should apply normalization on address fields. Example: converting city field to uppercase letters.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "true", - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutBillingAddressUpdate", - "description": "Update billing address in the existing checkout.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutComplete", - "description": "Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation.", - "fields": [ - { - "name": "order", - "description": "Placed order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "confirmationNeeded", - "description": "Set to true if payment needs to be confirmed before checkout is complete.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "confirmationData", - "description": "Confirmation data used to process additional authorization steps.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutCreate", - "description": "Create a new checkout.", - "fields": [ - { - "name": "created", - "description": "Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Always returns `true`." - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CheckoutCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channel", - "description": "Slug of a channel in which to create a checkout.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "A list of checkout lines, each containing information about an item in the checkout.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CheckoutLineInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "The customer's email address.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingAddress", - "description": "The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn't contain shippable items.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "billingAddress", - "description": "Billing address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Checkout language code.", - "type": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "validationRules", - "description": "The checkout validation rules that can be changed.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CheckoutValidationRules", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutCreated", - "description": "Event sent when new checkout is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": "The checkout the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutCustomerAttach", - "description": "Sets the customer as the owner of the checkout. \n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutCustomerDetach", - "description": "Removes the user assigned as the owner of the checkout. \n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutDeliveryMethodUpdate", - "description": "Updates the delivery method (shipping method or pick up point) of the checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutEmailUpdate", - "description": "Updates email address in the existing checkout object.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CheckoutErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "List of varint IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "List of line Ids which cause the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressType", - "description": "A type of address that causes the error.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AddressTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CheckoutErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "BILLING_ADDRESS_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_NOT_FULLY_PAID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_NOT_PUBLISHED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_UNAVAILABLE_FOR_PURCHASE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INSUFFICIENT_STOCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_SHIPPING_METHOD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "QUANTITY_GREATER_THAN_LIMIT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ADDRESS_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_METHOD_NOT_APPLICABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELIVERY_METHOD_NOT_APPLICABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_METHOD_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_NOT_REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TAX_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_NOT_APPLICABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_NOT_APPLICABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZERO_QUANTITY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_CHANNEL_SLUG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_INACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNAVAILABLE_VARIANT_IN_CHANNEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EMAIL_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NO_LINES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INACTIVE_PAYMENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CheckoutFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "customer", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutFilterShippingMethods", - "description": "Filter shipping methods for checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": "The checkout the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethods", - "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLanguageCodeUpdate", - "description": "Update language code in the existing checkout.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLine", - "description": "Represents an item in the checkout.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variant", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unitPrice", - "description": "The unit price of the checkout line, with taxes and discounts.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "undiscountedUnitPrice", - "description": "The unit price of the checkout line, without discounts.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalPrice", - "description": "The sum of the checkout line price, taxes and discounts.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "undiscountedTotalPrice", - "description": "The sum of the checkout line price, without discounts.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "requiresShipping", - "description": "Indicates whether the item need to be delivered.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLineCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutLineCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLineCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutLine", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLineDelete", - "description": "Deletes a CheckoutLine.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CheckoutLineInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "quantity", - "description": "The number of items purchased.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of the product variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": "Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "forceNewLine", - "description": "Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. \n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the object's metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CheckoutLineUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "variantId", - "description": "ID of the product variant. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "The number of items purchased. Optional for apps, required for any other users.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": "Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lineId", - "description": "ID of the line.\n\nAdded in Saleor 3.6.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLinesAdd", - "description": "Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLinesDelete", - "description": "Deletes checkout lines.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLinesUpdate", - "description": "Updates checkout line in the existing checkout.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutMetadataUpdated", - "description": "Event sent when checkout metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": "The checkout the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutPaymentCreate", - "description": "Create a new payment for given checkout.", - "fields": [ - { - "name": "checkout", - "description": "Related checkout object.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": "A newly created payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutRemovePromoCode", - "description": "Remove a gift card or a voucher from a checkout.", - "fields": [ - { - "name": "checkout", - "description": "The checkout with the removed gift card or voucher.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutShippingAddressUpdate", - "description": "Update shipping address in the existing checkout.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutShippingMethodUpdate", - "description": "Updates the shipping method of the checkout.", - "fields": [ - { - "name": "checkout", - "description": "An updated checkout.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CheckoutSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CREATION_DATE", - "description": "Sort checkouts by creation date.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER", - "description": "Sort checkouts by customer.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT", - "description": "Sort checkouts by payment.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CheckoutSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort checkouts by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CheckoutSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CheckoutUpdated", - "description": "Event sent when checkout is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": "The checkout the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CheckoutValidationRules", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "shippingAddress", - "description": "The validation rules that can be applied to provided shipping address data.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CheckoutAddressValidationRules", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "billingAddress", - "description": "The validation rules that can be applied to provided billing address data.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CheckoutAddressValidationRules", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChoiceValue", - "description": null, - "fields": [ - { - "name": "raw", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "verbose", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Collection", - "description": "Represents a collection of products.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the collection.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Channel given to retrieve this collection. Also used by federation gateway to resolve this object in a federated query.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Description of the collection.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - }, - { - "name": "products", - "description": "List of products in this collection.", - "args": [ - { - "name": "filter", - "description": "Filtering options for products.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort products.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductOrder", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "backgroundImage", - "description": null, - "args": [ - { - "name": "size", - "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "ThumbnailFormatEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Image", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated collection fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for collection.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "List of channels in which the collection is available.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionChannelListing", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionAddProducts", - "description": "Adds products to a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "collection", - "description": "Collection to which products will be added.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionBulkDelete", - "description": "Deletes collections. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionChannelListing", - "description": "Represents collection channel listing.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date." - }, - { - "name": "publishedAt", - "description": "The collection publication date.\n\nAdded in Saleor 3.3.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPublished", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionChannelListingError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "List of attribute values IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of channels IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionChannelListingUpdate", - "description": "Manage collection's availability in channels. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "collection", - "description": "An updated collection instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionChannelListingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionChannelListingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionChannelListingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CollectionChannelListingUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "addChannels", - "description": "List of channels to which the collection should be assigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PublishableChannelListingInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeChannels", - "description": "List of channels from which the collection should be unassigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionCreate", - "description": "Creates a new collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "collectionErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CollectionCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "isPublished", - "description": "Informs whether a collection is published.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the collection.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the collection.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the collection.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "backgroundImage", - "description": "Background image file.", - "type": { - "kind": "SCALAR", - "name": "Upload", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "backgroundImageAlt", - "description": "Alt text for an image.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seo", - "description": "Search engine optimization fields.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SeoInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": "Publication date. ISO 8601 standard. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the collection metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the collection private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of products to be added to the collection.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionCreated", - "description": "Event sent when new collection is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "The collection the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionDelete", - "description": "Deletes a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "collectionErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionDeleted", - "description": "Event sent when collection is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "The collection the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of products IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CollectionErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CollectionErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CollectionFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "published", - "description": null, - "type": { - "kind": "ENUM", - "name": "CollectionPublished", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Specifies the channel by which the data should be filtered. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CollectionInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "isPublished", - "description": "Informs whether a collection is published.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the collection.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the collection.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the collection.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "backgroundImage", - "description": "Background image file.", - "type": { - "kind": "SCALAR", - "name": "Upload", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "backgroundImageAlt", - "description": "Alt text for an image.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seo", - "description": "Search engine optimization fields.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SeoInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": "Publication date. ISO 8601 standard. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the collection metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the collection private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionMetadataUpdated", - "description": "Event sent when collection metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "The collection the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CollectionPublished", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PUBLISHED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HIDDEN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionRemoveProducts", - "description": "Remove products from a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "collection", - "description": "Collection from which products will be removed.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionReorderProducts", - "description": "Reorder the products of a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "collection", - "description": "Collection from which products are reordered.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CollectionSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort collections by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AVAILABILITY", - "description": "Sort collections by availability.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_COUNT", - "description": "Sort collections by product count.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PUBLICATION_DATE", - "description": "Sort collections by publication date.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PUBLISHED_AT", - "description": "Sort collections by publication date.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CollectionSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Specifies the channel in which to sort the data.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort collections by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CollectionSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the collection.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Description of the collection.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - }, - { - "name": "translation", - "description": "Returns translated collection fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for collection.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "Represents a collection of products.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionTranslate", - "description": "Creates/updates translations for a collection. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Translated description of the collection.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Translated description of the collection.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionUpdate", - "description": "Updates a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "collectionErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CollectionError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CollectionUpdated", - "description": "Event sent when collection is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "The collection the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ConfigurationItem", - "description": "Stores information about a single configuration field.", - "fields": [ - { - "name": "name", - "description": "Name of the field.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Current value of the field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Type of the field.", - "args": [], - "type": { - "kind": "ENUM", - "name": "ConfigurationTypeFieldEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "helpText", - "description": "Help text for the field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "label", - "description": "Label for the field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ConfigurationItemInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the field to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Value of the given field to update.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ConfigurationTypeFieldEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "STRING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MULTILINE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BOOLEAN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SECRET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PASSWORD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SECRETMULTILINE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUTPUT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ConfirmAccount", - "description": "Confirm user account with token sent by email during registration.", - "fields": [ - { - "name": "user", - "description": "An activated user account.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ConfirmEmailChange", - "description": "Confirm the email change of the logged-in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "user", - "description": "A user instance with a new email.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CountryCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "AF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ML", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "QA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "US", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CountryDisplay", - "description": null, - "fields": [ - { - "name": "code", - "description": "Country code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "country", - "description": "Country name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "vat", - "description": "Country tax.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "VAT", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `TaxClassCountryRate` type to manage tax rates per country." - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CountryFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "attachedToShippingZones", - "description": "Boolean for filtering countries by having shipping zone assigned.If 'true', return countries with shipping zone assigned.If 'false', return countries without any shipping zone assigned.If the argument is not provided (null), return all countries.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CountryRateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "countryCode", - "description": "Country in which this rate applies.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rate", - "description": "Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Float", - "description": "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CountryRateUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "countryCode", - "description": "Country in which this rate applies.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rate", - "description": "Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. Provide `null` to remove the particular rate.", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CreateToken", - "description": "Create JWT token.", - "fields": [ - { - "name": "token", - "description": "JWT token, required to authenticate.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "refreshToken", - "description": "JWT refresh token, required to re-generate access token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "csrfToken", - "description": "CSRF token required to re-generate access token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "A user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CreditCard", - "description": null, - "fields": [ - { - "name": "brand", - "description": "Card brand.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstDigits", - "description": "First 4 digits of the card number.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastDigits", - "description": "Last 4 digits of the card number.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expMonth", - "description": "Two-digit number representing the card’s expiration month.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expYear", - "description": "Four-digit number representing the card’s expiration year.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CustomerBulkDelete", - "description": "Deletes customers. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CustomerCreate", - "description": "Creates a new customer. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CustomerCreated", - "description": "Event sent when new customer user is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "The user the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CustomerDelete", - "description": "Deletes a customer. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CustomerEvent", - "description": "History log of the customer.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "date", - "description": "Date when event happened at in ISO 8601 format.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Customer event type.", - "args": [], - "type": { - "kind": "ENUM", - "name": "CustomerEventsEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "User who performed the action.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "App that performed the action.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Content of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "count", - "description": "Number of objects concerned by the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The concerned order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLine", - "description": "The concerned order line.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CustomerEventsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ACCOUNT_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACCOUNT_ACTIVATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACCOUNT_DEACTIVATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PASSWORD_RESET_LINK_SENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PASSWORD_RESET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EMAIL_CHANGED_REQUEST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PASSWORD_CHANGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EMAIL_CHANGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PLACED_ORDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOTE_ADDED_TO_ORDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DIGITAL_LINK_DOWNLOADED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAME_ASSIGNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EMAIL_ASSIGNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOTE_ADDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CustomerFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "dateJoined", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "numberOfOrders", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "IntRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "placedOrders", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": "Filter by ids. \n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CustomerInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "defaultBillingAddress", - "description": "Billing address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultShippingAddress", - "description": "Shipping address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstName", - "description": "Given name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": "Family name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "The unique email address of the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "User account is active.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "note", - "description": "A note about the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "User language code.", - "type": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of the customer.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CustomerMetadataUpdated", - "description": "Event sent when customer user metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "The user the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CustomerUpdate", - "description": "Updates an existing customer. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CustomerUpdated", - "description": "Event sent when customer user is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "The user the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Date", - "description": "The `Date` scalar type represents a Date\nvalue as specified by\n[iso8601](https://en.wikipedia.org/wiki/ISO_8601).", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DateRangeInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "gte", - "description": "Start date.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lte", - "description": "End date.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "DateTime", - "description": "The `DateTime` scalar type represents a DateTime\nvalue as specified by\n[iso8601](https://en.wikipedia.org/wiki/ISO_8601).", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "gte", - "description": "Start date.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lte", - "description": "End date.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DeactivateAllUserTokens", - "description": "Deactivate all JWT tokens of the currently authenticated user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Decimal", - "description": "Custom Decimal implementation.\n\nReturns Decimal as a float in the API,\nparses float to the Decimal on the way back.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DeleteMetadata", - "description": "Delete metadata of an object. To use it, you need to have access to the modified object.", - "fields": [ - { - "name": "metadataErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "item", - "description": null, - "args": [], - "type": { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DeletePrivateMetadata", - "description": "Delete object's private metadata. To use it, you need to be an authenticated staff user or an app and have access to the modified object.", - "fields": [ - { - "name": "metadataErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "item", - "description": null, - "args": [], - "type": { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "DeliveryMethod", - "description": "Represents a delivery method chosen for the checkout. `Warehouse` type is used when checkout is marked as \"click and collect\" and `ShippingMethod` otherwise.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "DigitalContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "useDefaultSettings", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "automaticFulfillment", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentFile", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxDownloads", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "urlValidDays", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "urls", - "description": "List of URLs for the digital variant.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DigitalContentUrl", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "Product variant assigned to digital content.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DigitalContentCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DigitalContentCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DigitalContentCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DigitalContent", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DigitalContentCreate", - "description": "Create new digital content. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "variant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "DigitalContent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DigitalContentDelete", - "description": "Remove digital content assigned to given variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "variant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DigitalContentInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "useDefaultSettings", - "description": "Use default digital content settings for this product.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxDownloads", - "description": "Determines how many times a download link can be accessed by a customer.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "urlValidDays", - "description": "Determines for how many days a download link is active since it was generated.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "automaticFulfillment", - "description": "Overwrite default automatic_fulfillment setting for variant.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the digital content metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the digital content private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DigitalContentUpdate", - "description": "Update digital content. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "variant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "DigitalContent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DigitalContentUploadInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "useDefaultSettings", - "description": "Use default digital content settings for this product.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxDownloads", - "description": "Determines how many times a download link can be accessed by a customer.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "urlValidDays", - "description": "Determines for how many days a download link is active since it was generated.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "automaticFulfillment", - "description": "Overwrite default automatic_fulfillment setting for variant.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the digital content metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the digital content private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentFile", - "description": "Represents an file in a multipart request.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Upload", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DigitalContentUrl", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DigitalContent", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "downloadNum", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL for digital content.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "UUID of digital content.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DigitalContentUrlCreate", - "description": "Generate new URL to digital content. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContentUrl", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "DigitalContentUrl", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DigitalContentUrlCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "content", - "description": "Digital content ID which URL will belong to.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DiscountError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of products IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "DiscountErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of channels IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "DiscountErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "DiscountStatusEnum", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCHEDULED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "FIXED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERCENTAGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "DistanceUnitsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "M", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INCH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Domain", - "description": "Represents shop's domain.", - "fields": [ - { - "name": "host", - "description": "The host name of the domain.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sslEnabled", - "description": "Inform if SSL is enabled.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "Shop's absolute URL.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderBulkDelete", - "description": "Deletes draft orders. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderComplete", - "description": "Completes creating an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Completed order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderCreate", - "description": "Creates a new draft order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DraftOrderCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "billingAddress", - "description": "Billing address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "Customer associated with the draft order.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userEmail", - "description": "Email address of the customer.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discount", - "description": "Discount amount for the order.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingAddress", - "description": "Shipping address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": "ID of a selected shipping method.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": "ID of the voucher associated with the order.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerNote", - "description": "A note from a customer. Visible by customers in the order summary.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelId", - "description": "ID of the channel associated with the order.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this order.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "Variant line input consisting of variant ID and quantity of products.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderLineCreateInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderCreated", - "description": "Event sent when new draft order is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderDelete", - "description": "Deletes a draft order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderDeleted", - "description": "Event sent when draft order is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DraftOrderInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "billingAddress", - "description": "Billing address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "Customer associated with the draft order.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userEmail", - "description": "Email address of the customer.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discount", - "description": "Discount amount for the order.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingAddress", - "description": "Shipping address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": "ID of a selected shipping method.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": "ID of the voucher associated with the order.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerNote", - "description": "A note from a customer. Visible by customers in the order summary.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelId", - "description": "ID of the channel associated with the order.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this order.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderLinesBulkDelete", - "description": "Deletes order lines. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderUpdate", - "description": "Updates a draft order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderUpdated", - "description": "Event sent when draft order is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ErrorPolicyEnum", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "IGNORE_FAILED", - "description": "Save what is possible within a single row. If there are errors in an input data row, try to save it partially and skip the invalid part.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REJECT_EVERYTHING", - "description": "Reject all rows if there is at least one error in any of them.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REJECT_FAILED_ROWS", - "description": "Reject rows with errors.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INTERFACE", - "name": "Event", - "description": null, - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "AddressCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AddressDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AddressUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AppDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AppInstalled", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AppStatusChanged", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AppUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CalculateTaxes", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CategoryCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CategoryDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CategoryUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ChannelCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ChannelDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ChannelStatusChanged", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ChannelUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CheckoutCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CheckoutFilterShippingMethods", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CheckoutMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CheckoutUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CustomerCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CustomerMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CustomerUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "DraftOrderUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentApproved", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentCanceled", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCardCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCardDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCardMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCardStatusChanged", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCardUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "InvoiceDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "InvoiceRequested", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "InvoiceSent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItemCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItemDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItemUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderCancelled", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderConfirmed", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderFilterShippingMethods", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderFulfilled", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderFullyPaid", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageTypeCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageTypeDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageTypeUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PaymentAuthorize", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PaymentCaptureEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PaymentConfirmEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PaymentListGateways", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PaymentProcessEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PaymentRefundEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PaymentVoidEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantBackInStock", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantOutOfStock", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantStockUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleToggle", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingListMethodsForCheckout", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "StaffCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "StaffDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "StaffUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ThumbnailCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TransactionActionRequest", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TransactionCancelationRequested", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TransactionChargeRequested", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TransactionItemMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TransactionRefundRequested", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TranslationCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TranslationUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "WarehouseCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "WarehouseDeleted", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "WarehouseMetadataUpdated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "WarehouseUpdated", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "EventDelivery", - "description": "Event delivery.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": "Event delivery status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "EventDeliveryStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "eventType", - "description": "Webhook event type.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attempts", - "description": "Event delivery attempts.", - "args": [ - { - "name": "sortBy", - "description": "Event delivery sorter", - "type": { - "kind": "INPUT_OBJECT", - "name": "EventDeliveryAttemptSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "EventDeliveryAttemptCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payload", - "description": "Event payload.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "EventDeliveryAttempt", - "description": "Event delivery attempts.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": "Event delivery creation date and time.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taskId", - "description": "Task id for delivery attempt.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "duration", - "description": "Delivery attempt duration.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "response", - "description": "Delivery attempt response content.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "responseHeaders", - "description": "Response headers for delivery attempt.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "responseStatusCode", - "description": "Delivery attempt response status code.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "requestHeaders", - "description": "Request headers for delivery attempt.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": "Event delivery status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "EventDeliveryStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "EventDeliveryAttemptCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "EventDeliveryAttemptCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "EventDeliveryAttemptCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "EventDeliveryAttempt", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "EventDeliveryAttemptSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CREATED_AT", - "description": "Sort event delivery attempts by created at.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "EventDeliveryAttemptSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort attempts by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "EventDeliveryAttemptSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "EventDeliveryCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "EventDeliveryCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "EventDeliveryCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "EventDelivery", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "EventDeliveryFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "status", - "description": null, - "type": { - "kind": "ENUM", - "name": "EventDeliveryStatusEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "eventType", - "description": null, - "type": { - "kind": "ENUM", - "name": "WebhookEventTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "EventDeliveryRetry", - "description": "Retries event delivery. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "delivery", - "description": "Event delivery.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "EventDelivery", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "EventDeliverySortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CREATED_AT", - "description": "Sort event deliveries by created at.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "EventDeliverySortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort deliveries by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "EventDeliverySortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "EventDeliveryStatusEnum", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PENDING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SUCCESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FAILED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExportError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ExportErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ExportErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExportEvent", - "description": "History log of export file.", - "fields": [ - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "date", - "description": "Date when event happened at in ISO 8601 format.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Export event type.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ExportEventsEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "User who performed the action. Requires one of the following permissions: OWNER, MANAGE_STAFF.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "App which performed the action. Requires one of the following permissions: OWNER, MANAGE_APPS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Content of the event.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ExportEventsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "EXPORT_PENDING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPORT_SUCCESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPORT_FAILED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPORT_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPORTED_FILE_SENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPORT_FAILED_INFO_SENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExportFile", - "description": "Represents a job data of exported file.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": "Job status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "JobStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": "Created date time of job in ISO 8601 format.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": "Date time of job last update in ISO 8601 format.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Job message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "The URL of field to download.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": "List of events associated with the export.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExportEvent", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "Job", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExportFileCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExportFileCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExportFileCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExportFile", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ExportFileFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "createdAt", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "type": { - "kind": "ENUM", - "name": "JobStatusEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ExportFileSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "STATUS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UPDATED_AT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAST_MODIFIED_AT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ExportFileSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort export file by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ExportFileSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExportGiftCards", - "description": "Export gift cards to csv file.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "exportFile", - "description": "The newly created export file job which is responsible for export data.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ExportFile", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExportError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ExportGiftCardsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "scope", - "description": "Determine which gift cards should be exported.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ExportScope", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for gift cards.", - "type": { - "kind": "INPUT_OBJECT", - "name": "GiftCardFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": "List of gift cards IDs to export.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fileType", - "description": "Type of exported file.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "FileTypesEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ExportInfoInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "attributes", - "description": "List of attribute ids witch should be exported.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": "List of warehouse ids witch should be exported.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of channels ids which should be exported.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fields", - "description": "List of product fields witch should be exported.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductFieldEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExportProducts", - "description": "Export products to csv file. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "exportFile", - "description": "The newly created export file job which is responsible for export data.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ExportFile", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exportErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExportError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExportError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ExportProductsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "scope", - "description": "Determine which products should be exported.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ExportScope", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for products.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": "List of products IDs to export.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exportInfo", - "description": "Input with info about fields which should be exported.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ExportInfoInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fileType", - "description": "Type of exported file.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "FileTypesEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ExportScope", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALL", - "description": "Export all products.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IDS", - "description": "Export products with given ids.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FILTER", - "description": "Export the filtered products.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExternalAuthentication", - "description": null, - "fields": [ - { - "name": "id", - "description": "ID of external authentication plugin.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of external authentication plugin.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExternalAuthenticationUrl", - "description": "Prepare external authentication url for user by custom plugin.", - "fields": [ - { - "name": "authenticationData", - "description": "The data returned by authentication plugin.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExternalLogout", - "description": "Logout user by custom plugin.", - "fields": [ - { - "name": "logoutData", - "description": "The data returned by authentication plugin.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExternalNotificationError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ExternalNotificationErrorCodes", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ExternalNotificationErrorCodes", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_MODEL_TYPE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_INACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExternalNotificationTrigger", - "description": "Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload.\n\nAdded in Saleor 3.1.", - "fields": [ - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExternalNotificationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ExternalNotificationTriggerInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "ids", - "description": "The list of customers or orders node IDs that will be serialized and included in the notification payload.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "extraPayload", - "description": "Additional payload that will be merged with the one based on the bussines object ID.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalEventType", - "description": "External event type. This field is passed to a plugin as an event type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExternalObtainAccessTokens", - "description": "Obtain external access tokens for user by custom plugin.", - "fields": [ - { - "name": "token", - "description": "The token, required to authenticate.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "refreshToken", - "description": "The refresh token, required to re-generate external access token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "csrfToken", - "description": "CSRF token required to re-generate external access token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "A user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExternalRefresh", - "description": "Refresh user's access by custom plugin.", - "fields": [ - { - "name": "token", - "description": "The token, required to authenticate.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "refreshToken", - "description": "The refresh token, required to re-generate external access token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "csrfToken", - "description": "CSRF token required to re-generate external access token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "A user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ExternalVerify", - "description": "Verify external authentication data by plugin.", - "fields": [ - { - "name": "user", - "description": "User assigned to data.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isValid", - "description": "Determine if authentication data is valid or not.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "verifyData", - "description": "External data.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "File", - "description": null, - "fields": [ - { - "name": "url", - "description": "The URL of the file.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentType", - "description": "Content type of the file.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "FileTypesEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CSV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "XLSX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FileUpload", - "description": "Upload a file. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec \n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "fields": [ - { - "name": "uploadedFile", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "File", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "uploadErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UploadError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UploadError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Fulfillment", - "description": "Represents order fulfillment.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillmentOrder", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "FulfillmentStatus", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackingNumber", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "List of lines for the fulfillment.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "FulfillmentLine", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "statusDisplay", - "description": "User-friendly fulfillment status.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "Warehouse from fulfillment was fulfilled.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentApprove", - "description": "Approve existing fulfillment.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "fulfillment", - "description": "An approved fulfillment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order which fulfillment was approved.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentApproved", - "description": "Event sent when fulfillment is approved.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillment", - "description": "The fulfillment the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the fulfillment belongs to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentCancel", - "description": "Cancels existing fulfillment and optionally restocks items. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "fulfillment", - "description": "A canceled fulfillment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order which fulfillment was cancelled.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "FulfillmentCancelInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "warehouseId", - "description": "ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentCanceled", - "description": "Event sent when fulfillment is canceled.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillment", - "description": "The fulfillment the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the fulfillment belongs to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentCreated", - "description": "Event sent when new fulfillment is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillment", - "description": "The fulfillment the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the fulfillment belongs to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentLine", - "description": "Represents line of the fulfillment.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLine", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentMetadataUpdated", - "description": "Event sent when fulfillment metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillment", - "description": "The fulfillment the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the fulfillment belongs to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentRefundProducts", - "description": "Refund products. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "fulfillment", - "description": "A refunded fulfillment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order which fulfillment was refunded.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentReturnProducts", - "description": "Return products. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "returnFulfillment", - "description": "A return fulfillment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "replaceFulfillment", - "description": "A replace fulfillment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order which fulfillment was returned.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "replaceOrder", - "description": "A draft order which was created for products with replace flag.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "FulfillmentStatus", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "FULFILLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUNDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RETURNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REPLACED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUNDED_AND_RETURNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCELED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAITING_FOR_APPROVAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentUpdateTracking", - "description": "Updates a fulfillment for an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "fulfillment", - "description": "A fulfillment with updated tracking.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order for which fulfillment was updated.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "FulfillmentUpdateTrackingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "trackingNumber", - "description": "Fulfillment tracking number.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "notifyCustomer", - "description": "If true, send an email notification to the customer.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GatewayConfigLine", - "description": "Payment gateway client configuration key and value pair.", - "fields": [ - { - "name": "field", - "description": "Gateway config key.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Gateway config value for key.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "GenericScalar", - "description": "The `GenericScalar` scalar type represents a generic\nGraphQL scalar value that could be:\nString, Boolean, Int, Float, List or Object.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCard", - "description": "A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayCode", - "description": "Code in format which allows displaying in a user interface.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last4CodeChars", - "description": "Last 4 characters of gift card code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "Gift card code. Can be fetched by a staff member with MANAGE_GIFT_CARD when gift card wasn't yet used and by the gift card owner.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdBy", - "description": "The user who bought or issued a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "usedBy", - "description": "The customer who used a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdByEmail", - "description": "Email address of the user who bought or issued gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_USERS, OWNER.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "usedByEmail", - "description": "Email address of the customer who used a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastUsedOn", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expiryDate", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "App which created the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_APPS, OWNER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "Related gift card product.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": "List of events associated with the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "filter", - "description": "Filtering options for gift card events.", - "type": { - "kind": "INPUT_OBJECT", - "name": "GiftCardEventFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardEvent", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tags", - "description": "The gift card tag.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardTag", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "boughtInChannel", - "description": "Slug of the channel where the gift card was bought.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "initialBalance", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currentBalance", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "The customer who bought a gift card.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `createdBy` field instead." - }, - { - "name": "endDate", - "description": "End date of gift card.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `expiryDate` field instead." - }, - { - "name": "startDate", - "description": "Start date of gift card.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardActivate", - "description": "Activate a gift card. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "giftCard", - "description": "Activated gift card.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardAddNote", - "description": "Adds note to the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "giftCard", - "description": "Gift card with the note added.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "event", - "description": "Gift card note created.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCardEvent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardAddNoteInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "message", - "description": "Note message.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardBulkActivate", - "description": "Activate gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardBulkCreate", - "description": "Create gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were created.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCards", - "description": "List of created gift cards.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardBulkCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "count", - "description": "The number of cards to issue.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "balance", - "description": "Balance of the gift card.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PriceInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tags", - "description": "The gift card tags.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expiryDate", - "description": "The gift card expiry date.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "Determine if gift card is active.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardBulkDeactivate", - "description": "Deactivate gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardBulkDelete", - "description": "Delete gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardCreate", - "description": "Creates a new gift card. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "giftCardErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "addTags", - "description": "The gift card tags to add.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expiryDate", - "description": "The gift card expiry date.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startDate", - "description": "Start date of the gift card in ISO 8601 format. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endDate", - "description": "End date of the gift card in ISO 8601 format. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "balance", - "description": "Balance of the gift card.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PriceInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userEmail", - "description": "Email of the customer to whom gift card will be sent.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel from which the email should be sent.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "Determine if gift card is active.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "Code to use the gift card. \n\nDEPRECATED: this field will be removed in Saleor 4.0. The code is now auto generated.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "note", - "description": "The gift card note from the staff member.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardCreated", - "description": "Event sent when new gift card is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": "The gift card the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardDeactivate", - "description": "Deactivate a gift card. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "giftCard", - "description": "Deactivated gift card.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardDelete", - "description": "Delete gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "giftCardErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardDeleted", - "description": "Event sent when gift card is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": "The gift card the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "GiftCardErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tags", - "description": "List of tag values that cause the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "GiftCardErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPIRED_GIFT_CARD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardEvent", - "description": "History log of the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "date", - "description": "Date when event happened at in ISO 8601 format.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Gift card event type.", - "args": [], - "type": { - "kind": "ENUM", - "name": "GiftCardEventsEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "User who performed the action. Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "App that performed the action. Requires one of the following permissions: MANAGE_APPS, OWNER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Content of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Email of the customer.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderId", - "description": "The order ID where gift card was used or bought.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderNumber", - "description": "User-friendly number of an order where gift card was used or bought.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tags", - "description": "The list of gift card tags.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oldTags", - "description": "The list of old gift card tags.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "balance", - "description": "The gift card balance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCardEventBalance", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expiryDate", - "description": "The gift card expiry date.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oldExpiryDate", - "description": "Previous gift card expiry date.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardEventBalance", - "description": null, - "fields": [ - { - "name": "initialBalance", - "description": "Initial balance of the gift card.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currentBalance", - "description": "Current balance of the gift card.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oldInitialBalance", - "description": "Previous initial balance of the gift card.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oldCurrentBalance", - "description": "Previous current balance of the gift card.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardEventFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "type", - "description": null, - "type": { - "kind": "ENUM", - "name": "GiftCardEventsEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orders", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "GiftCardEventsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ISSUED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BOUGHT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACTIVATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DEACTIVATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BALANCE_RESET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPIRY_DATE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TAGS_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SENT_TO_CUSTOMER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RESENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOTE_ADDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "USED_IN_ORDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "isActive", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tags", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "usedBy", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "used", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currency", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currentBalance", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "PriceRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "initialBalance", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "PriceRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardMetadataUpdated", - "description": "Event sent when gift card metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": "The gift card the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardResend", - "description": "Resend a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "giftCard", - "description": "Gift card which has been sent.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardResendInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "id", - "description": "ID of a gift card to resend.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Email to which gift card should be send.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel from which the email should be sent.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardSettings", - "description": "Gift card related settings from site settings.", - "fields": [ - { - "name": "expiryType", - "description": "The gift card expiry type settings.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "GiftCardSettingsExpiryTypeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expiryPeriod", - "description": "The gift card expiry period settings.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TimePeriod", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardSettingsError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "GiftCardSettingsErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "GiftCardSettingsErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "GiftCardSettingsExpiryTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NEVER_EXPIRE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXPIRY_PERIOD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardSettingsUpdate", - "description": "Update gift card settings. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "giftCardSettings", - "description": "Gift card settings.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCardSettings", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardSettingsError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardSettingsUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "expiryType", - "description": "Defines gift card default expiry settings.", - "type": { - "kind": "ENUM", - "name": "GiftCardSettingsExpiryTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expiryPeriod", - "description": "Defines gift card expiry period.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TimePeriodInputType", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "GiftCardSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PRODUCT", - "description": "Sort gift cards by product.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "USED_BY", - "description": "Sort gift cards by used by.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CURRENT_BALANCE", - "description": "Sort gift cards by current balance.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT", - "description": "Sort gift cards by created at.\n\nAdded in Saleor 3.8.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort gift cards by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "GiftCardSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardStatusChanged", - "description": "Event sent when gift card status has changed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": "The gift card the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardTag", - "description": "The gift card tag.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardTagCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardTagCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardTagCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardTag", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardTagFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardUpdate", - "description": "Update a gift card. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "fields": [ - { - "name": "giftCardErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "GiftCardUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "addTags", - "description": "The gift card tags to add.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expiryDate", - "description": "The gift card expiry date.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startDate", - "description": "Start date of the gift card in ISO 8601 format. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endDate", - "description": "End date of the gift card in ISO 8601 format. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeTags", - "description": "The gift card tags to remove.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "balanceAmount", - "description": "The gift card balance amount.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GiftCardUpdated", - "description": "Event sent when gift card is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": "The gift card the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Group", - "description": "Represents permission group data.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "users", - "description": "List of group users\n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "User", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of group permissions", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Permission", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userCanManage", - "description": "True, if the currently authenticated user has rights to manage a group.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GroupCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GroupCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "GroupCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Image", - "description": "Represents an image.", - "fields": [ - { - "name": "url", - "description": "The URL of the image.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "alt", - "description": "Alt text for an image.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "IntRangeInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "gte", - "description": "Value greater than or equal to.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lte", - "description": "Value less than or equal to.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Invoice", - "description": "Represents an Invoice.", - "fields": [ - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": "Job status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "JobStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "number", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL to download an invoice.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order related to the invoice.\n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "Job", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceCreate", - "description": "Creates a ready to send invoice. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "invoiceErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "InvoiceCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "number", - "description": "Invoice number.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL of an invoice to download.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceDelete", - "description": "Deletes an invoice. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "invoiceErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceDeleted", - "description": "Event sent when invoice is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": "The invoice the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order related to the invoice.\n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "InvoiceErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "InvoiceErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_READY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "URL_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EMAIL_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NUMBER_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_STATUS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NO_INVOICE_PLUGIN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceRequest", - "description": "Request an invoice for the order using plugin. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order related to an invoice.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoiceErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceRequestDelete", - "description": "Requests deletion of an invoice. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "invoiceErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceRequested", - "description": "Event sent when invoice is requested.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": "The invoice the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order related to the invoice.\n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceSendNotification", - "description": "Send an invoice notification to the customer. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "invoiceErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceSent", - "description": "Event sent when invoice is sent.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": "The invoice the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order related to the invoice.\n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InvoiceUpdate", - "description": "Updates an invoice. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "invoiceErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "InvoiceError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoice", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "IssuingPrincipal", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "User", - "ofType": null - } - ] - }, - { - "kind": "SCALAR", - "name": "JSONString", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INTERFACE", - "name": "Job", - "description": null, - "fields": [ - { - "name": "status", - "description": "Job status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "JobStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": "Created date time of job in ISO 8601 format.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": "Date time of job last update in ISO 8601 format.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Job message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "AppInstallation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ExportFile", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - } - ] - }, - { - "kind": "ENUM", - "name": "JobStatusEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PENDING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SUCCESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FAILED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "AF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AF_NA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AF_ZA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AGQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AGQ_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AK_GH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AM_ET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_AE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_BH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_DJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_DZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_EG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_EH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_ER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_IL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_IQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_JO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_KM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_KW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_LB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_LY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_MA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_MR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_OM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_PS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_QA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_SA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_SD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_SO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_SS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_SY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_TD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_TN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AR_YE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AS_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ASA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ASA_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AST_ES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AZ_CYRL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AZ_CYRL_AZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AZ_LATN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AZ_LATN_AZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BAS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BAS_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BE_BY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BEM_ZM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BEZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BEZ_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BG_BG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BM_ML", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BN_BD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BN_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BO_CN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BO_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BR_FR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BRX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BRX_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BS_CYRL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BS_CYRL_BA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BS_LATN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BS_LATN_BA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CA_AD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CA_ES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CA_ES_VALENCIA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CA_FR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CA_IT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CCP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CCP_BD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CCP_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CE_RU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CEB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CEB_PH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CGG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CGG_UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHR_US", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CKB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CKB_IQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CKB_IR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CS_CZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CU_RU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CY_GB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DA_DK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DA_GL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DAV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DAV_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE_AT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE_BE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE_CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE_DE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE_IT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE_LI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DE_LU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DJE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DJE_NE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DSB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DSB_DE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUA_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DYO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DYO_SN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DZ_BT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EBU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EBU_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EE_GH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EE_TG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EL_CY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EL_GR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_AE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_AG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_AI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_AS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_AT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_AU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_BB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_BE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_BI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_BM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_BS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_BW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_BZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_CA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_CC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_CK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_CX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_CY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_DE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_DG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_DK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_DM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_ER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_FI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_FJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_FK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_FM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_GB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_GD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_GG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_GH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_GI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_GM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_GU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_GY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_HK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_IE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_IL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_IM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_IO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_JE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_JM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_KI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_KN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_KY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_LC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_LR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_LS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_MY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_NA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_NF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_NG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_NL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_NR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_NU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_NZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_PG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_PH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_PK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_PN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_PR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_PW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_RW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_SZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_TC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_TK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_TO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_TT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_TV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_UM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_US", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_VC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_VG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_VI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_VU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_WS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_ZA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_ZM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EN_ZW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_AR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_BO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_BR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_BZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_CL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_CO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_CR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_CU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_DO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_EA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_EC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_ES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_GQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_GT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_HN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_IC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_MX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_NI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_PA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_PE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_PH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_PR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_PY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_SV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_US", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_UY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ES_VE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ET_EE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EU_ES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EWO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EWO_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FA_AF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FA_IR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_BF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_GH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_GM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_GN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_GW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_LR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_MR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_NE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_NG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_SL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_ADLM_SN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_BF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_GH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_GM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_GN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_GW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_LR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_MR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_NE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_NG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_SL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FF_LATN_SN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FI_FI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIL_PH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FO_DK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FO_FO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_BE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_BF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_BI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_BJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_BL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_CA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_CD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_CF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_CG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_CI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_DJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_DZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_FR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_GA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_GF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_GN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_GP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_GQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_HT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_KM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_LU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_MA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_MC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_MF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_MG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_ML", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_MQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_MR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_MU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_NC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_NE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_PF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_PM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_RE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_RW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_SC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_SN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_SY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_TD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_TG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_TN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_VU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_WF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FR_YT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FUR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FUR_IT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FY_NL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GA_GB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GA_IE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GD_GB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GL_ES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GSW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GSW_CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GSW_FR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GSW_LI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GU_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GUZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GUZ_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GV_IM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HA_GH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HA_NE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HA_NG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HAW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HAW_US", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HE_IL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HI_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HR_BA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HR_HR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HSB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HSB_DE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HU_HU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HY_AM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ID_ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IG_NG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "II", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "II_CN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IS_IS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IT_CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IT_IT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IT_SM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IT_VA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JA_JP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JGO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JGO_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JMC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JMC_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JV_ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KA_GE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KAB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KAB_DZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KAM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KAM_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KDE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KDE_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KEA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KEA_CV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KHQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KHQ_ML", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KI_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KK_KZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KKJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KKJ_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KL_GL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KLN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KLN_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KM_KH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KN_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KO_KP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KO_KR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KOK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KOK_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KS_ARAB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KS_ARAB_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KSB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KSB_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KSF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KSF_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KSH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KSH_DE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KU_TR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KW_GB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KY_KG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAG_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LB_LU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LG_UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LKT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LKT_US", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LN_AO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LN_CD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LN_CF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LN_CG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LO_LA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LRC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LRC_IQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LRC_IR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LT_LT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LU_CD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LUO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LUO_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LUY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LUY_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LV_LV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MAI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MAI_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MAS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MAS_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MAS_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MER_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MFE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MFE_MU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MG_MG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MGH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MGH_MZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MGO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MGO_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MI_NZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MK_MK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ML", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ML_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MN_MN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MNI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MNI_BENG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MNI_BENG_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MR_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MS_BN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MS_ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MS_MY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MS_SG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MT_MT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MUA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MUA_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MY_MM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MZN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MZN_IR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NAQ_NA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NB_NO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NB_SJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ND_ZW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NDS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NDS_DE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NDS_NL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NE_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NE_NP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL_AW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL_BE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL_BQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL_CW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL_NL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL_SR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NL_SX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NMG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NMG_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NN_NO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NNH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NNH_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NUS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NUS_SS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NYN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NYN_UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OM_ET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OM_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OR_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OS_GE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OS_RU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PA_ARAB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PA_ARAB_PK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PA_GURU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PA_GURU_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PCM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PCM_NG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PL_PL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PS_AF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PS_PK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_AO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_BR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_CV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_GQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_GW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_LU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_MO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_MZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_PT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_ST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PT_TL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "QU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "QU_BO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "QU_EC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "QU_PE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RM_CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RN_BI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RO_MD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RO_RO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ROF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ROF_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RU_BY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RU_KG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RU_KZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RU_MD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RU_RU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RU_UA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RW_RW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RWK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RWK_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SAH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SAH_RU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SAQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SAQ_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SAT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SAT_OLCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SAT_OLCK_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SBP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SBP_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SD_ARAB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SD_ARAB_PK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SD_DEVA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SD_DEVA_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SE_FI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SE_NO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SE_SE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SEH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SEH_MZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SES_ML", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SG_CF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHI_LATN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHI_LATN_MA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHI_TFNG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHI_TFNG_MA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SI_LK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SK_SK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SL_SI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SMN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SMN_FI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SN_ZW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SO_DJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SO_ET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SO_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SO_SO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_AL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_MK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_XK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_CYRL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_CYRL_BA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_CYRL_ME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_CYRL_RS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_CYRL_XK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_LATN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_LATN_BA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_LATN_ME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_LATN_RS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SR_LATN_XK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SU_LATN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SU_LATN_ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SV_AX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SV_FI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SV_SE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SW_CD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SW_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SW_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SW_UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TA_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TA_LK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TA_MY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TA_SG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TE_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TEO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TEO_KE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TEO_UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TG_TJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TH_TH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TI_ER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TI_ET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TK_TM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TO_TO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TR_CY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TR_TR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TT_RU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TWQ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TWQ_NE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TZM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TZM_MA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UG_CN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UK_UA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UR_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UR_PK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UZ_ARAB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UZ_ARAB_AF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UZ_CYRL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UZ_CYRL_UZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UZ_LATN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UZ_LATN_UZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VAI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VAI_LATN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VAI_LATN_LR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VAI_VAII", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VAI_VAII_LR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VI_VN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VUN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VUN_TZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAE_CH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WO_SN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "XH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "XH_ZA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "XOG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "XOG_UG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YAV", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YAV_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YO_BJ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YO_NG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YUE_HANS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YUE_HANS_CN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YUE_HANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YUE_HANT_HK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZGH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZGH_MA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANS_CN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANS_HK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANS_MO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANS_SG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANT_HK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANT_MO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZH_HANT_TW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZU_ZA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "LanguageDisplay", - "description": null, - "fields": [ - { - "name": "code", - "description": "ISO 639 representation of the language name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Full name of the language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "LimitInfo", - "description": null, - "fields": [ - { - "name": "currentUsage", - "description": "Defines the current resource usage.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Limits", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "allowedUsage", - "description": "Defines the allowed maximum resource usage, null means unlimited.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Limits", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Limits", - "description": null, - "fields": [ - { - "name": "channels", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orders", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariants", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffUsers", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Manifest", - "description": "The manifest definition.", - "fields": [ - { - "name": "identifier", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "about", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Permission", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "configurationUrl", - "description": "URL to iframe with the configuration for the app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `appUrl` instead." - }, - { - "name": "tokenTargetUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dataPrivacy", - "description": "Description of the data privacy defined for this app.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead." - }, - { - "name": "dataPrivacyUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "homepageUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "supportUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "extensions", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppManifestExtension", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhooks", - "description": "List of the app's webhooks.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppManifestWebhook", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "audience", - "description": "The audience that will be included in all JWT tokens for the app.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Margin", - "description": null, - "fields": [ - { - "name": "start", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MarkAsPaidStrategyEnum", - "description": "Determine the mark as paid strategy for the channel.\n\n TRANSACTION_FLOW - new orders marked as paid will receive a\n `TransactionItem` object, that will cover the `order.total`.\n\n PAYMENT_FLOW - new orders marked as paid will receive a\n `Payment` object, that will cover the `order.total`.\n\n ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "TRANSACTION_FLOW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_FLOW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MeasurementUnitsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "M", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INCH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_CM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_M", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_KM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_FT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_YD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SQ_INCH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_MILLIMETER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_CENTIMETER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_DECIMETER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_METER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LITER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_FOOT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_INCH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_YARD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "QT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PINT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FL_OZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACRE_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACRE_FT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "G", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TONNE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MeasurementUnitsEnumFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "eq", - "description": "The value equal to.", - "type": { - "kind": "ENUM", - "name": "MeasurementUnitsEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oneOf", - "description": "The value included in.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "MeasurementUnitsEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MediaChoicesSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ID", - "description": "Sort media by ID.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MediaSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort media by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "MediaChoicesSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Menu", - "description": "Represents a single menu - an object that is used to help navigate through the store.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "items", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuBulkDelete", - "description": "Deletes menus. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuCreate", - "description": "Creates a new Menu. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menu", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the menu.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the menu. Will be generated if not provided.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "items", - "description": "List of menu items.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MenuItemInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuCreated", - "description": "Event sent when new menu is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menu", - "description": "The menu the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuDelete", - "description": "Deletes a menu. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menu", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuDeleted", - "description": "Event sent when menu is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menu", - "description": "The menu the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "MenuErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MenuErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CANNOT_ASSIGN_NODE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_MENU_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NO_MENU_ITEM_PROVIDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TOO_MANY_MENU_ITEMS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the menu.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the menu.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItem", - "description": "Represents a single item of the related menu. Can store categories, collection or pages.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menu", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "parent", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "A collection associated with this menu item. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": "A page associated with this menu item. Requires one of the following permissions to include unpublished items: MANAGE_PAGES.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "level", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "children", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL to the menu item.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated menu item fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for menu item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemBulkDelete", - "description": "Deletes menu items. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuItemCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemCreate", - "description": "Creates a new menu item. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuItemCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the menu item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL of the pointed item.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "Category to which item points.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "Collection to which item points.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": "Page to which item points.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menu", - "description": "Menu to which item belongs.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "parent", - "description": "ID of the parent menu. If empty, menu will be top level menu.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemCreated", - "description": "Event sent when new menu item is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": "The menu item the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemDelete", - "description": "Deletes a menu item. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemDeleted", - "description": "Event sent when menu item is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": "The menu item the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuItemFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuItemInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the menu item.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL of the pointed item.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "Category to which item points.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "Collection to which item points.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": "Page to which item points.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemMove", - "description": "Moves items of menus. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "menu", - "description": "Assigned menu to move within.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuItemMoveInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "itemId", - "description": "The menu item ID to move.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "parentId", - "description": "ID of the parent menu. If empty, menu will be top level menu.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortOrder", - "description": "The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuItemSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort menu items by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "MenuItemsSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated menu item fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for menu item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": "Represents a single item of the related menu. Can store categories, collection or pages.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemTranslate", - "description": "Creates/updates translations for a menu item. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemUpdate", - "description": "Updates a menu item. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuItemUpdated", - "description": "Event sent when menu item is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": "The menu item the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MenuItemsSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort menu items by name.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MenuSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort menus by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ITEMS_COUNT", - "description": "Sort menus by items count.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MenuSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort menus by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "MenuSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuUpdate", - "description": "Updates a menu. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "fields": [ - { - "name": "menuErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MenuError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menu", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MenuUpdated", - "description": "Event sent when menu is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menu", - "description": "The menu the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Metadata", - "description": "Metadata is a map of key-value pairs, both keys and values are `String`.\n\nExample:\n```\n{\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}\n```", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MetadataError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "MetadataErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MetadataErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "key", - "description": "Key of a metadata item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Value of a metadata item.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "key", - "description": "Key of a metadata item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Value of a metadata item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MetadataItem", - "description": null, - "fields": [ - { - "name": "key", - "description": "Key of a metadata item.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Value of a metadata item.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Money", - "description": "Represents amount of money in specific currency.", - "fields": [ - { - "name": "currency", - "description": "Currency code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Amount of money.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "currency", - "description": "Currency code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Amount of money.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MoneyRange", - "description": "Represents a range of amounts of money.", - "fields": [ - { - "name": "start", - "description": "Lower bound of a price range.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": "Upper bound of a price range.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MoveProductInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "productId", - "description": "The ID of the product to move.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortOrder", - "description": "The relative sorting position of the product (from -inf to +inf) starting from the first given product's actual position.1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Mutation", - "description": null, - "fields": [ - { - "name": "webhookCreate", - "description": "Creates a new webhook subscription. \n\nRequires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP.", - "args": [ - { - "name": "input", - "description": "Fields required to create a webhook.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "WebhookCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WebhookCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhookDelete", - "description": "Delete a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated. \n\nRequires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP.", - "args": [ - { - "name": "id", - "description": "ID of a webhook to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WebhookDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhookUpdate", - "description": "Updates a webhook subscription. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "id", - "description": "ID of a webhook to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a webhook.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "WebhookUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WebhookUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "eventDeliveryRetry", - "description": "Retries event delivery. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "id", - "description": "ID of the event delivery to retry.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "EventDeliveryRetry", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhookDryRun", - "description": "Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [ - { - "name": "objectId", - "description": "The ID of an object to serialize.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "The subscription query that defines the webhook event and its payload.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WebhookDryRun", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhookTrigger", - "description": "Trigger a webhook event. Supports a single event (the first, if multiple provided in the `webhook.subscription_query`). Requires permission relevant to processed event. Successfully delivered webhook returns `delivery` with status='PENDING' and empty payload.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [ - { - "name": "objectId", - "description": "The ID of an object to serialize.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhookId", - "description": "The ID of the webhook.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WebhookTrigger", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createWarehouse", - "description": "Creates new warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create warehouse.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "WarehouseCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WarehouseCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updateWarehouse", - "description": "Updates given warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a warehouse to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update warehouse.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "WarehouseUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WarehouseUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deleteWarehouse", - "description": "Deletes selected warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a warehouse to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WarehouseDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assignWarehouseShippingZone", - "description": "Add shipping zone to given warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a warehouse to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZoneIds", - "description": "List of shipping zone IDs.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WarehouseShippingZoneAssign", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unassignWarehouseShippingZone", - "description": "Remove shipping zone from given warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a warehouse to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZoneIds", - "description": "List of shipping zone IDs.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WarehouseShippingZoneUnassign", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClassCreate", - "description": "Create a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "args": [ - { - "name": "input", - "description": "Fields required to create a tax class.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TaxClassCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxClassCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClassDelete", - "description": "Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "args": [ - { - "name": "id", - "description": "ID of a tax class to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxClassDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClassUpdate", - "description": "Update a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "args": [ - { - "name": "id", - "description": "ID of the tax class.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a tax class.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TaxClassUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxClassUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxConfigurationUpdate", - "description": "Update tax configuration for a channel.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "args": [ - { - "name": "id", - "description": "ID of the tax configuration.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update the tax configuration.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TaxConfigurationUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxConfigurationUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCountryConfigurationUpdate", - "description": "Update tax class rates for a specific country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "args": [ - { - "name": "countryCode", - "description": "Country in which to update the tax class rates.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updateTaxClassRates", - "description": "List of tax rates per tax class to update. When `{taxClass: id, rate: null`} is passed, it deletes the rate object for given taxClass ID. When `{rate: Int}` is passed without a tax class, it updates the default tax class for this country.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TaxClassRateInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxCountryConfigurationUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCountryConfigurationDelete", - "description": "Remove all tax class rates for a specific country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "args": [ - { - "name": "countryCode", - "description": "Country in which to update the tax class rates.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxCountryConfigurationDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxExemptionManage", - "description": "Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "args": [ - { - "name": "id", - "description": "ID of the Checkout or Order object.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxExemption", - "description": "Determines if a taxes should be exempt.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxExemptionManage", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffNotificationRecipientCreate", - "description": "Creates a new staff notification recipient. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a staff notification recipient.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StaffNotificationRecipientInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StaffNotificationRecipientCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffNotificationRecipientUpdate", - "description": "Updates a staff notification recipient. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [ - { - "name": "id", - "description": "ID of a staff notification recipient to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a staff notification recipient.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StaffNotificationRecipientInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StaffNotificationRecipientUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffNotificationRecipientDelete", - "description": "Delete staff notification recipient. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [ - { - "name": "id", - "description": "ID of a staff notification recipient to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StaffNotificationRecipientDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shopDomainUpdate", - "description": "Updates site domain of the shop. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [ - { - "name": "input", - "description": "Fields required to update site.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SiteDomainInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShopDomainUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shopSettingsUpdate", - "description": "Updates shop settings. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [ - { - "name": "input", - "description": "Fields required to update shop settings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShopSettingsInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShopSettingsUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shopFetchTaxRates", - "description": "Fetch tax rates. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShopFetchTaxRates", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "\n\nDEPRECATED: this mutation will be removed in Saleor 4.0." - }, - { - "name": "shopSettingsTranslate", - "description": "Creates/updates translations for shop settings. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "input", - "description": "Fields required to update shop settings translations.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShopSettingsTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShopSettingsTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shopAddressUpdate", - "description": "Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [ - { - "name": "input", - "description": "Fields required to update shop address.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShopAddressUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderSettingsUpdate", - "description": "Update shop order settings across all channels. Returns `orderSettings` for the first `channel` in alphabetical order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "input", - "description": "Fields required to update shop order settings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderSettingsUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderSettingsUpdate", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "\n\nDEPRECATED: this mutation will be removed in Saleor 4.0. Use `channelUpdate` mutation instead." - }, - { - "name": "giftCardSettingsUpdate", - "description": "Update gift card settings. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "input", - "description": "Fields required to update gift card settings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "GiftCardSettingsUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardSettingsUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethodChannelListingUpdate", - "description": "Manage shipping method's availability in channels. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of a shipping method to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update shipping method channel listings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingMethodChannelListingInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodChannelListingUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPriceCreate", - "description": "Creates a new shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "input", - "description": "Fields required to create a shipping price.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingPriceInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingPriceCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPriceDelete", - "description": "Deletes a shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of a shipping price to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingPriceDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPriceBulkDelete", - "description": "Deletes shipping prices. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "ids", - "description": "List of shipping price IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingPriceBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPriceUpdate", - "description": "Updates a new shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of a shipping price to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a shipping price.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingPriceInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingPriceUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPriceTranslate", - "description": "Creates/updates translations for a shipping method. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "ShippingMethodType ID or ShippingMethodTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingPriceTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingPriceTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPriceExcludeProducts", - "description": "Exclude products from shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of a shipping price.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Exclude products input.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingPriceExcludeProductsInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingPriceExcludeProducts", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPriceRemoveProductFromExclude", - "description": "Remove product from excluded list for shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of a shipping price.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of products which will be removed from excluded list.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingPriceRemoveProductFromExclude", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZoneCreate", - "description": "Creates a new shipping zone. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "input", - "description": "Fields required to create a shipping zone.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingZoneCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZoneCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZoneDelete", - "description": "Deletes a shipping zone. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of a shipping zone to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZoneDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZoneBulkDelete", - "description": "Deletes shipping zones. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "ids", - "description": "List of shipping zone IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZoneBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZoneUpdate", - "description": "Updates a new shipping zone. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of a shipping zone to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a shipping zone.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingZoneUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZoneUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productAttributeAssign", - "description": "Assign attributes to a given product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "operations", - "description": "The operations to perform.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductAttributeAssignInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeId", - "description": "ID of the product type to assign the attributes into.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductAttributeAssign", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productAttributeAssignmentUpdate", - "description": "Update attributes assigned to product variant for given product type.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "operations", - "description": "The operations to perform.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductAttributeAssignmentUpdateInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeId", - "description": "ID of the product type to assign the attributes into.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductAttributeAssignmentUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productAttributeUnassign", - "description": "Un-assign attributes from a given product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "attributeIds", - "description": "The IDs of the attributes to unassign.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeId", - "description": "ID of the product type from which the attributes should be unassigned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductAttributeUnassign", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categoryCreate", - "description": "Creates a new category. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a category.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CategoryInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "parent", - "description": "ID of the parent category. If empty, category will be top level category.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categoryDelete", - "description": "Deletes a category. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a category to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categoryBulkDelete", - "description": "Deletes categories. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "ids", - "description": "List of category IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categoryUpdate", - "description": "Updates a category. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a category to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a category.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CategoryInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categoryTranslate", - "description": "Creates/updates translations for a category. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "Category ID or CategoryTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionAddProducts", - "description": "Adds products to a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "collectionId", - "description": "ID of a collection.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of product IDs.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionAddProducts", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionCreate", - "description": "Creates a new collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a collection.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CollectionCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionDelete", - "description": "Deletes a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a collection to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionReorderProducts", - "description": "Reorder the products of a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "collectionId", - "description": "ID of a collection.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "moves", - "description": "The collection products position operations.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MoveProductInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionReorderProducts", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionBulkDelete", - "description": "Deletes collections. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "ids", - "description": "List of collection IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionRemoveProducts", - "description": "Remove products from a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "collectionId", - "description": "ID of a collection.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of product IDs.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionRemoveProducts", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionUpdate", - "description": "Updates a collection. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a collection to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a collection.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CollectionInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionTranslate", - "description": "Creates/updates translations for a collection. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "Collection ID or CollectionTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionChannelListingUpdate", - "description": "Manage collection's availability in channels. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a collection to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to create or update collection channel listings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CollectionChannelListingUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionChannelListingUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productCreate", - "description": "Creates a new product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a product.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productDelete", - "description": "Deletes a product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a product to delete. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a product to delete.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productBulkDelete", - "description": "Deletes products. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "ids", - "description": "List of product IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productUpdate", - "description": "Updates an existing product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a product to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a product to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a product.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTranslate", - "description": "Creates/updates translations for a product. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "Product ID or ProductTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productChannelListingUpdate", - "description": "Manage product's availability in channels. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a product to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to create or update product channel listings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductChannelListingUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductChannelListingUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productMediaCreate", - "description": "Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a product media.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductMediaCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductMediaCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantReorder", - "description": "Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "moves", - "description": "The list of variant reordering operations.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productId", - "description": "Id of product that variants order will be altered.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantReorder", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productMediaDelete", - "description": "Deletes a product media. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a product media to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductMediaDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productMediaBulkDelete", - "description": "Deletes product media. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "ids", - "description": "List of product media IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductMediaBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productMediaReorder", - "description": "Changes ordering of the product media. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "mediaIds", - "description": "IDs of a product media in the desired order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productId", - "description": "ID of product that media order will be altered.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductMediaReorder", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productMediaUpdate", - "description": "Updates a product media. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a product media to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a product media.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductMediaUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductMediaUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeCreate", - "description": "Creates a new product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "input", - "description": "Fields required to create a product type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductTypeInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTypeCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeDelete", - "description": "Deletes a product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "id", - "description": "ID of a product type to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTypeDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeBulkDelete", - "description": "Deletes product types. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "ids", - "description": "List of product type IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTypeBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeUpdate", - "description": "Updates an existing product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "id", - "description": "ID of a product type to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a product type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductTypeInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTypeUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeReorderAttributes", - "description": "Reorder the attributes of a product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "moves", - "description": "The list of attribute reordering operations.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypeId", - "description": "ID of a product type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The attribute type to reorder.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductAttributeType", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTypeReorderAttributes", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productReorderAttributeValues", - "description": "Reorder product attribute values. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "attributeId", - "description": "ID of an attribute.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "moves", - "description": "The list of reordering operations for given attribute values.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productId", - "description": "ID of a product.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductReorderAttributeValues", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContentCreate", - "description": "Create new digital content. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a digital content.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DigitalContentUploadInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of a product variant to upload digital content.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DigitalContentCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContentDelete", - "description": "Remove digital content assigned to given variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "variantId", - "description": "ID of a product variant with digital content to remove.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DigitalContentDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContentUpdate", - "description": "Update digital content. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to update a digital content.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DigitalContentInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of a product variant with digital content to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DigitalContentUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContentUrlCreate", - "description": "Generate new URL to digital content. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a new url.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DigitalContentUrlCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DigitalContentUrlCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantCreate", - "description": "Creates a new variant for a product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a product variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantDelete", - "description": "Deletes a product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a product variant to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a product variant to delete.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "SKU of a product variant to delete.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantBulkCreate", - "description": "Creates product variants for a given product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "errorPolicy", - "description": "Policies of error handling. DEFAULT: REJECT_EVERYTHING\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "ErrorPolicyEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "ID of the product to create the variants for.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "Input list of product variants to create.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantBulkCreateInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantBulkCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantBulkUpdate", - "description": "Update multiple product variants.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "errorPolicy", - "description": "Policies of error handling. DEFAULT: REJECT_EVERYTHING", - "type": { - "kind": "ENUM", - "name": "ErrorPolicyEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "ID of the product to update the variants for.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "Input list of product variants to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantBulkUpdateInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantBulkUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantBulkDelete", - "description": "Deletes product variants. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "ids", - "description": "List of product variant IDs to delete.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "skus", - "description": "List of product variant SKUs to delete.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantStocksCreate", - "description": "Creates stocks for product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "stocks", - "description": "Input list of stocks to create.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StockInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of a product variant for which stocks will be created.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantStocksCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantStocksDelete", - "description": "Delete stocks from product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "sku", - "description": "SKU of product variant for which stocks will be deleted.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of product variant for which stocks will be deleted.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouseIds", - "description": "Input list of warehouse IDs.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantStocksDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantStocksUpdate", - "description": "Update stocks for product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "sku", - "description": "SKU of product variant for which stocks will be updated.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": "Input list of stocks to create or update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StockInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of a product variant for which stocks will be updated.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantStocksUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantUpdate", - "description": "Updates an existing variant for product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a product variant to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a product to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a product variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "SKU of a product variant to update.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantSetDefault", - "description": "Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "productId", - "description": "Id of a product that will have the default variant set.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "Id of a variant that will be set as default.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantSetDefault", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantTranslate", - "description": "Creates/updates translations for a product variant. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "ProductVariant ID or ProductVariantTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NameTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantChannelListingUpdate", - "description": "Manage product variant prices in channels. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a product variant to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "List of fields required to create or upgrade product variant channel listings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantChannelListingAddInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "SKU of a product variant to update.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantChannelListingUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantReorderAttributeValues", - "description": "Reorder product variant attribute values. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "attributeId", - "description": "ID of an attribute.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "moves", - "description": "The list of reordering operations for given attribute values.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of a product variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantReorderAttributeValues", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantPreorderDeactivate", - "description": "Deactivates product variant preorder. It changes all preorder allocation into regular allocation.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of a variant which preorder should be deactivated.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantPreorderDeactivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantMediaAssign", - "description": "Assign an media to a product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "mediaId", - "description": "ID of a product media to assign to a variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of a product variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VariantMediaAssign", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantMediaUnassign", - "description": "Unassign an media from a product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "mediaId", - "description": "ID of a product media to unassign from a variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "ID of a product variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VariantMediaUnassign", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentCapture", - "description": "Captures the authorized payment amount. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "amount", - "description": "Transaction amount.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentId", - "description": "Payment ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PaymentCapture", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentRefund", - "description": "Refunds the captured payment amount. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "amount", - "description": "Transaction amount.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentId", - "description": "Payment ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PaymentRefund", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentVoid", - "description": "Voids the authorized payment. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "paymentId", - "description": "Payment ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PaymentVoid", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentInitialize", - "description": "Initializes payment process when it is required by gateway.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gateway", - "description": "A gateway name used to initialize the payment.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentData", - "description": "Client-side generated data required to initialize the payment.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PaymentInitialize", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentCheckBalance", - "description": "Check payment balance.", - "args": [ - { - "name": "input", - "description": "Fields required to check payment balance.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PaymentCheckBalanceInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PaymentCheckBalance", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionCreate", - "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS.", - "args": [ - { - "name": "id", - "description": "The ID of the checkout or order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "Input data required to create a new transaction object.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TransactionCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionEvent", - "description": "Data that defines a transaction event.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TransactionEventInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TransactionCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionUpdate", - "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", - "args": [ - { - "name": "id", - "description": "The ID of the transaction.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "Input data required to create a new transaction object.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TransactionUpdateInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionEvent", - "description": "Data that defines a transaction transaction.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TransactionEventInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TransactionUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionRequestAction", - "description": "Request an action for payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS.", - "args": [ - { - "name": "actionType", - "description": "Determines the action type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionActionEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Transaction request amount. If empty for refund or capture, maximal possible amount will be used.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The ID of the transaction.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TransactionRequestAction", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionEventReport", - "description": "Report the event for the transaction.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", - "args": [ - { - "name": "amount", - "description": "The amount of the event to report.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableActions", - "description": "List of all possible actions for the transaction", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionActionEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalUrl", - "description": "The url that will allow to redirect user to payment provider page with event details.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The ID of the transaction.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The message related to the event.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pspReference", - "description": "PSP Reference of the event to report.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "time", - "description": "The time of the event to report. If not provide, the current time will be used.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Current status of the event to report.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionEventTypeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TransactionEventReport", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageCreate", - "description": "Creates a new page. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "args": [ - { - "name": "input", - "description": "Fields required to create a page.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PageCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageDelete", - "description": "Deletes a page. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "args": [ - { - "name": "id", - "description": "ID of a page to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageBulkDelete", - "description": "Deletes pages. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "args": [ - { - "name": "ids", - "description": "List of page IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageBulkPublish", - "description": "Publish pages. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "args": [ - { - "name": "ids", - "description": "List of page IDs to (un)publish.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPublished", - "description": "Determine if pages will be published or not.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageBulkPublish", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageUpdate", - "description": "Updates an existing page. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "args": [ - { - "name": "id", - "description": "ID of a page to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a page.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PageInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTranslate", - "description": "Creates/updates translations for a page. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "Page ID or PageTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PageTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypeCreate", - "description": "Create a new page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "input", - "description": "Fields required to create page type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PageTypeCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTypeCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypeUpdate", - "description": "Update page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "id", - "description": "ID of the page type to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update page type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PageTypeUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTypeUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypeDelete", - "description": "Delete a page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "id", - "description": "ID of the page type to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTypeDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypeBulkDelete", - "description": "Delete page types. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "ids", - "description": "List of page type IDs to delete", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTypeBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageAttributeAssign", - "description": "Assign attributes to a given page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "attributeIds", - "description": "The IDs of the attributes to assign.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypeId", - "description": "ID of the page type to assign the attributes into.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageAttributeAssign", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageAttributeUnassign", - "description": "Unassign attributes from a given page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "attributeIds", - "description": "The IDs of the attributes to unassign.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypeId", - "description": "ID of the page type from which the attributes should be unassign.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageAttributeUnassign", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypeReorderAttributes", - "description": "Reorder the attributes of a page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "moves", - "description": "The list of attribute reordering operations.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypeId", - "description": "ID of a page type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTypeReorderAttributes", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageReorderAttributeValues", - "description": "Reorder page attribute values. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "args": [ - { - "name": "attributeId", - "description": "ID of an attribute.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "moves", - "description": "The list of reordering operations for given attribute values.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageId", - "description": "ID of a page.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageReorderAttributeValues", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "draftOrderComplete", - "description": "Completes creating an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the order that will be completed.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DraftOrderComplete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "draftOrderCreate", - "description": "Creates a new draft order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "input", - "description": "Fields required to create an order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DraftOrderCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DraftOrderCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "draftOrderDelete", - "description": "Deletes a draft order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a product to delete. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a product to delete.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DraftOrderDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "draftOrderBulkDelete", - "description": "Deletes draft orders. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "ids", - "description": "List of draft order IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DraftOrderBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "draftOrderLinesBulkDelete", - "description": "Deletes order lines. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "ids", - "description": "List of order lines IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DraftOrderLinesBulkDelete", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - }, - { - "name": "draftOrderUpdate", - "description": "Updates a draft order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a draft order to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a draft order to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update an order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DraftOrderInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DraftOrderUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderAddNote", - "description": "Adds note to the order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "order", - "description": "ID of the order to add a note for.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to create a note for the order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderAddNoteInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderAddNote", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderCancel", - "description": "Cancel an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the order to cancel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderCancel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderCapture", - "description": "Capture an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "amount", - "description": "Amount of money to capture.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of the order to capture.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderCapture", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderConfirm", - "description": "Confirms an unconfirmed order by changing status to unfulfilled. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of an order to confirm.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderConfirm", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderFulfill", - "description": "Creates new fulfillments for an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a fulfillment.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderFulfillInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "ID of the order to be fulfilled.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderFulfill", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderFulfillmentCancel", - "description": "Cancels existing fulfillment and optionally restocks items. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of a fulfillment to cancel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to cancel a fulfillment.", - "type": { - "kind": "INPUT_OBJECT", - "name": "FulfillmentCancelInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "FulfillmentCancel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderFulfillmentApprove", - "description": "Approve existing fulfillment.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "allowStockToBeExceeded", - "description": "True if stock could be exceeded.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a fulfillment to approve.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "notifyCustomer", - "description": "True if confirmation email should be send.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "FulfillmentApprove", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderFulfillmentUpdateTracking", - "description": "Updates a fulfillment for an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of a fulfillment to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a fulfillment.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "FulfillmentUpdateTrackingInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "FulfillmentUpdateTracking", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderFulfillmentRefundProducts", - "description": "Refund products. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "input", - "description": "Fields required to create an refund fulfillment.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderRefundProductsInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "ID of the order to be refunded.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "FulfillmentRefundProducts", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderFulfillmentReturnProducts", - "description": "Return products. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "input", - "description": "Fields required to return products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderReturnProductsInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "ID of the order to be returned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "FulfillmentReturnProducts", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderGrantRefundCreate", - "description": "Adds granted refund to the order.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to create a granted refund for the order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderGrantRefundCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderGrantRefundCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderGrantRefundUpdate", - "description": "Updates granted refund.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the granted refund.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a granted refund.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderGrantRefundUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderGrantRefundUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLinesCreate", - "description": "Create order lines for an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the order to add the lines to.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to add order lines.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderLineCreateInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderLinesCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLineDelete", - "description": "Deletes an order line from an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the order line to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderLineDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLineUpdate", - "description": "Updates an order line of an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the order line to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update an order line.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderLineInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderLineUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderDiscountAdd", - "description": "Adds discount to the order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a discount for the order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderDiscountCommonInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderId", - "description": "ID of an order to discount.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderDiscountAdd", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderDiscountUpdate", - "description": "Update discount for the order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "discountId", - "description": "ID of a discount to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a discount for the order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderDiscountCommonInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderDiscountUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderDiscountDelete", - "description": "Remove discount from the order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "discountId", - "description": "ID of a discount to remove.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderDiscountDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLineDiscountUpdate", - "description": "Update discount for the order line. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "input", - "description": "Fields required to update price for the order line.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderDiscountCommonInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLineId", - "description": "ID of a order line to update price", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderLineDiscountUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLineDiscountRemove", - "description": "Remove discount applied to the order line. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "orderLineId", - "description": "ID of a order line to remove its discount", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderLineDiscountRemove", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderMarkAsPaid", - "description": "Mark order as manually paid. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the order to mark paid.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionReference", - "description": "The external transaction reference.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderMarkAsPaid", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderRefund", - "description": "Refund an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "amount", - "description": "Amount of money to refund.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of the order to refund.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderRefund", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderUpdate", - "description": "Updates an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of an order to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of an order to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update an order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderUpdateShipping", - "description": "Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "order", - "description": "ID of the order to update a shipping method.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to change shipping method of the order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderUpdateShippingInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderUpdateShipping", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderVoid", - "description": "Void an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the order to void.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderVoid", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderBulkCancel", - "description": "Cancels orders. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "ids", - "description": "List of orders IDs to cancel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderBulkCancel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deleteMetadata", - "description": "Delete metadata of an object. To use it, you need to have access to the modified object.", - "args": [ - { - "name": "id", - "description": "ID or token (for Order and Checkout) of an object to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "keys", - "description": "Metadata keys to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DeleteMetadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deletePrivateMetadata", - "description": "Delete object's private metadata. To use it, you need to be an authenticated staff user or an app and have access to the modified object.", - "args": [ - { - "name": "id", - "description": "ID or token (for Order and Checkout) of an object to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "keys", - "description": "Metadata keys to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DeletePrivateMetadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updateMetadata", - "description": "Updates metadata of an object. To use it, you need to have access to the modified object.", - "args": [ - { - "name": "id", - "description": "ID or token (for Order and Checkout) of an object to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update the object's metadata.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "UpdateMetadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatePrivateMetadata", - "description": "Updates private metadata of an object. To use it, you need to be an authenticated staff user or an app and have access to the modified object.", - "args": [ - { - "name": "id", - "description": "ID or token (for Order and Checkout) of an object to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update the object's metadata.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "UpdatePrivateMetadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assignNavigation", - "description": "Assigns storefront's navigation menus. \n\nRequires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS.", - "args": [ - { - "name": "menu", - "description": "ID of the menu.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "navigationType", - "description": "Type of the navigation bar to assign the menu to.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "NavigationType", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AssignNavigation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuCreate", - "description": "Creates a new Menu. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a menu.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MenuCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuDelete", - "description": "Deletes a menu. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "id", - "description": "ID of a menu to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuBulkDelete", - "description": "Deletes menus. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "ids", - "description": "List of menu IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuUpdate", - "description": "Updates a menu. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "id", - "description": "ID of a menu to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a menu.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MenuInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItemCreate", - "description": "Creates a new menu item. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "input", - "description": "Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MenuItemCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItemDelete", - "description": "Deletes a menu item. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "id", - "description": "ID of a menu item to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItemBulkDelete", - "description": "Deletes menu items. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "ids", - "description": "List of menu item IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItemUpdate", - "description": "Updates a menu item. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "id", - "description": "ID of a menu item to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MenuItemInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItemTranslate", - "description": "Creates/updates translations for a menu item. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "MenuItem ID or MenuItemTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NameTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItemMove", - "description": "Moves items of menus. \n\nRequires one of the following permissions: MANAGE_MENUS.", - "args": [ - { - "name": "menu", - "description": "ID of the menu.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "moves", - "description": "The menu position data.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MenuItemMoveInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemMove", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoiceRequest", - "description": "Request an invoice for the order using plugin. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "number", - "description": "Invoice number, if not provided it will be generated.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderId", - "description": "ID of the order related to invoice.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "InvoiceRequest", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoiceRequestDelete", - "description": "Requests deletion of an invoice. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of an invoice to request the deletion.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "InvoiceRequestDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoiceCreate", - "description": "Creates a ready to send invoice. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "input", - "description": "Fields required when creating an invoice.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "InvoiceCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderId", - "description": "ID of the order related to invoice.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "InvoiceCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoiceDelete", - "description": "Deletes an invoice. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of an invoice to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "InvoiceDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoiceUpdate", - "description": "Updates an invoice. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of an invoice to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields to use when updating an invoice.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdateInvoiceInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "InvoiceUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoiceSendNotification", - "description": "Send an invoice notification to the customer. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of an invoice to be sent.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "InvoiceSendNotification", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardActivate", - "description": "Activate a gift card. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "id", - "description": "ID of a gift card to activate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardActivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardCreate", - "description": "Creates a new gift card. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "input", - "description": "Fields required to create a gift card.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "GiftCardCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardDelete", - "description": "Delete gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "id", - "description": "ID of the gift card to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardDeactivate", - "description": "Deactivate a gift card. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "id", - "description": "ID of a gift card to deactivate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardDeactivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardUpdate", - "description": "Update a gift card. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "id", - "description": "ID of a gift card to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a gift card.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "GiftCardUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardResend", - "description": "Resend a gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "input", - "description": "Fields required to resend a gift card.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "GiftCardResendInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardResend", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardAddNote", - "description": "Adds note to the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "id", - "description": "ID of the gift card to add a note for.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to create a note for the gift card.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "GiftCardAddNoteInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardAddNote", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardBulkCreate", - "description": "Create gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "input", - "description": "Fields required to create gift cards.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "GiftCardBulkCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardBulkCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardBulkDelete", - "description": "Delete gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "ids", - "description": "List of gift card IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardBulkActivate", - "description": "Activate gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "ids", - "description": "List of gift card IDs to activate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardBulkActivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardBulkDeactivate", - "description": "Deactivate gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "ids", - "description": "List of gift card IDs to deactivate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardBulkDeactivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pluginUpdate", - "description": "Update plugin configuration. \n\nRequires one of the following permissions: MANAGE_PLUGINS.", - "args": [ - { - "name": "channelId", - "description": "ID of a channel for which the data should be modified.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of plugin to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a plugin configuration.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PluginUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PluginUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalNotificationTrigger", - "description": "Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload.\n\nAdded in Saleor 3.1.", - "args": [ - { - "name": "channel", - "description": "Channel slug. Saleor will send a notification within a provided channel. Please, make sure that necessary plugins are active.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Input for External Notification Trigger.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ExternalNotificationTriggerInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pluginId", - "description": "The ID of notification plugin.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExternalNotificationTrigger", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleCreate", - "description": "Creates a new sale. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "SaleInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleDelete", - "description": "Deletes a sale. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a sale to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleBulkDelete", - "description": "Deletes sales. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "ids", - "description": "List of sale IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleUpdate", - "description": "Updates a sale. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a sale to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "SaleInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleCataloguesAdd", - "description": "Adds products, categories, collections to a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to modify catalogue IDs of sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CatalogueInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleAddCatalogues", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleCataloguesRemove", - "description": "Removes products, categories, collections from a sale. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to modify catalogue IDs of sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CatalogueInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleRemoveCatalogues", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleTranslate", - "description": "Creates/updates translations for a sale. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "Sale ID or SaleTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NameTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleChannelListingUpdate", - "description": "Manage sale's availability in channels. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a sale to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update sale channel listings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "SaleChannelListingInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleChannelListingUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherCreate", - "description": "Creates a new voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "VoucherInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherDelete", - "description": "Deletes a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a voucher to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherBulkDelete", - "description": "Deletes vouchers. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "ids", - "description": "List of voucher IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherUpdate", - "description": "Updates a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a voucher to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "VoucherInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherCataloguesAdd", - "description": "Adds products, categories, collections to a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to modify catalogue IDs of voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CatalogueInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherAddCatalogues", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherCataloguesRemove", - "description": "Removes products, categories, collections from a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to modify catalogue IDs of voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CatalogueInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherRemoveCatalogues", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherTranslate", - "description": "Creates/updates translations for a voucher. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "Voucher ID or VoucherTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NameTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucherChannelListingUpdate", - "description": "Manage voucher's availability in channels. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of a voucher to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update voucher channel listings.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "VoucherChannelListingInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherChannelListingUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exportProducts", - "description": "Export products to csv file. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "input", - "description": "Fields required to export product data.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ExportProductsInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExportProducts", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exportGiftCards", - "description": "Export gift cards to csv file.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "input", - "description": "Fields required to export gift cards data.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ExportGiftCardsInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExportGiftCards", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fileUpload", - "description": "Upload a file. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec \n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [ - { - "name": "file", - "description": "Represents a file in a multipart request.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Upload", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "FileUpload", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutAddPromoCode", - "description": "Adds a gift card or a voucher to a checkout.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "promoCode", - "description": "Gift card code or voucher code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutAddPromoCode", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutBillingAddressUpdate", - "description": "Update billing address in the existing checkout.", - "args": [ - { - "name": "billingAddress", - "description": "The billing address of the checkout.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "validationRules", - "description": "The rules for changing validation for received billing address data.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CheckoutAddressValidationRules", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutBillingAddressUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutComplete", - "description": "Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the checkout metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentData", - "description": "Client-side generated data required to finalize the payment.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "storeSource", - "description": "Determines whether to store the payment source for future usage. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use checkoutPaymentCreate for this action.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutComplete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutCreate", - "description": "Create a new checkout.", - "args": [ - { - "name": "input", - "description": "Fields required to create checkout.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CheckoutCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutCustomerAttach", - "description": "Sets the customer as the owner of the checkout. \n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerId", - "description": "ID of customer to attach to checkout. Requires IMPERSONATE_USER permission when customerId is different than the logged-in user.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutCustomerAttach", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutCustomerDetach", - "description": "Removes the user assigned as the owner of the checkout. \n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutCustomerDetach", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutEmailUpdate", - "description": "Updates email address in the existing checkout object.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "email.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutEmailUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutLineDelete", - "description": "Deletes a CheckoutLine.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lineId", - "description": "ID of the checkout line to delete.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutLineDelete", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead." - }, - { - "name": "checkoutLinesDelete", - "description": "Deletes checkout lines.", - "args": [ - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "linesIds", - "description": "A list of checkout lines.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutLinesDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutLinesAdd", - "description": "Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "A list of checkout lines, each containing information about an item in the checkout.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CheckoutLineInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutLinesAdd", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutLinesUpdate", - "description": "Updates checkout line in the existing checkout.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "A list of checkout lines, each containing information about an item in the checkout.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CheckoutLineUpdateInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutLinesUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutRemovePromoCode", - "description": "Remove a gift card or a voucher from a checkout.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "promoCode", - "description": "Gift card code or voucher code.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "promoCodeId", - "description": "Gift card or voucher ID.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutRemovePromoCode", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutPaymentCreate", - "description": "Create a new payment for given checkout.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Data required to create a new payment.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PaymentInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutPaymentCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutShippingAddressUpdate", - "description": "Update shipping address in the existing checkout.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingAddress", - "description": "The mailing address to where the checkout will be shipped.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "validationRules", - "description": "The rules for changing validation for received shipping address data.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CheckoutAddressValidationRules", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutShippingAddressUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutShippingMethodUpdate", - "description": "Updates the shipping method of the checkout.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethodId", - "description": "Shipping method.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutShippingMethodUpdate", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead." - }, - { - "name": "checkoutDeliveryMethodUpdate", - "description": "Updates the delivery method (shipping method or pick up point) of the checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "deliveryMethodId", - "description": "Delivery Method ID (`Warehouse` ID or `ShippingMethod` ID).", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutDeliveryMethodUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutLanguageCodeUpdate", - "description": "Update language code in the existing checkout.", - "args": [ - { - "name": "checkoutId", - "description": "The ID of the checkout. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "New language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Checkout token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutLanguageCodeUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderCreateFromCheckout", - "description": "Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "id", - "description": "ID of a checkout that will be converted to an order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the checkout metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the checkout private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeCheckout", - "description": "Determines if checkout should be removed after creating an order. Default true.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "true", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderCreateFromCheckout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelCreate", - "description": "Creates new channel. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "args": [ - { - "name": "input", - "description": "Fields required to create channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ChannelCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ChannelCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelUpdate", - "description": "Update a channel.\n\nRequires one of the following permissions: MANAGE_CHANNELS.\nRequires one of the following permissions when updating only orderSettings field: MANAGE_CHANNELS, MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of a channel to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ChannelUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ChannelUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelDelete", - "description": "Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "args": [ - { - "name": "id", - "description": "ID of a channel to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to delete a channel.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ChannelDeleteInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ChannelDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelActivate", - "description": "Activate a channel. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "args": [ - { - "name": "id", - "description": "ID of the channel to activate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ChannelActivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelDeactivate", - "description": "Deactivate a channel. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "args": [ - { - "name": "id", - "description": "ID of the channel to deactivate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ChannelDeactivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelReorderWarehouses", - "description": "Reorder the warehouses of a channel.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_CHANNELS.", - "args": [ - { - "name": "channelId", - "description": "ID of a channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "moves", - "description": "The list of reordering operations for the given channel warehouses.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ChannelReorderWarehouses", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeCreate", - "description": "Creates an attribute.", - "args": [ - { - "name": "input", - "description": "Fields required to create an attribute.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeDelete", - "description": "Deletes an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "externalReference", - "description": "External ID of an attribute to delete. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of an attribute to delete.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeUpdate", - "description": "Updates attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "externalReference", - "description": "External ID of an attribute to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of an attribute to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update an attribute.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeTranslate", - "description": "Creates/updates translations for an attribute. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "Attribute ID or AttributeTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NameTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeBulkDelete", - "description": "Deletes attributes. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "ids", - "description": "List of attribute IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValueBulkDelete", - "description": "Deletes values of attributes. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "ids", - "description": "List of attribute value IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeValueBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValueCreate", - "description": "Creates a value for an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "attribute", - "description": "Attribute to which value will be assigned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to create an AttributeValue.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeValueCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValueDelete", - "description": "Deletes a value of an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a value to delete. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a value to delete.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeValueDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValueUpdate", - "description": "Updates value of an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "externalReference", - "description": "External ID of an AttributeValue to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of an AttributeValue to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update an AttributeValue.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeValueUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeValueTranslate", - "description": "Creates/updates translations for an attribute value. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "AttributeValue ID or AttributeValueTranslatableContent ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueTranslationInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "Translation language code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeValueTranslate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeReorderValues", - "description": "Reorder the values of an attribute. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "args": [ - { - "name": "attributeId", - "description": "ID of an attribute.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "moves", - "description": "The list of reordering operations for given attribute values.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeReorderValues", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appCreate", - "description": "Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a new app.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AppInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appUpdate", - "description": "Updates an existing app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "id", - "description": "ID of an app to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update an existing app.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AppInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appDelete", - "description": "Deletes an app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "id", - "description": "ID of an app to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appTokenCreate", - "description": "Creates a new token. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a new auth token.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AppTokenInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppTokenCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appTokenDelete", - "description": "Deletes an authentication token assigned to app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "id", - "description": "ID of an auth token to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppTokenDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appTokenVerify", - "description": "Verify provided app token.", - "args": [ - { - "name": "token", - "description": "App token to verify.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppTokenVerify", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appInstall", - "description": "Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS.", - "args": [ - { - "name": "input", - "description": "Fields required to install a new app.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AppInstallInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppInstall", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appRetryInstall", - "description": "Retry failed installation of new app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "activateAfterInstallation", - "description": "Determine if app will be set active or not.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "true", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of failed installation.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppRetryInstall", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appDeleteFailedInstallation", - "description": "Delete failed installation. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "id", - "description": "ID of failed installation to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppDeleteFailedInstallation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appFetchManifest", - "description": "Fetch and validate manifest. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "manifestUrl", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppFetchManifest", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appActivate", - "description": "Activate the app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "id", - "description": "ID of app to activate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppActivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appDeactivate", - "description": "Deactivate the app. \n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [ - { - "name": "id", - "description": "ID of app to deactivate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppDeactivate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tokenCreate", - "description": "Create JWT token.", - "args": [ - { - "name": "audience", - "description": "The audience that will be included to JWT tokens with prefix `custom:`.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Email of a user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "password", - "description": "Password of a user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CreateToken", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tokenRefresh", - "description": "Refresh JWT token. Mutation tries to take refreshToken from the input.If it fails it will try to take refreshToken from the http-only cookie -refreshToken. csrfToken is required when refreshToken is provided as a cookie.", - "args": [ - { - "name": "csrfToken", - "description": "CSRF token required to refresh token. This argument is required when refreshToken is provided as a cookie.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "refreshToken", - "description": "Refresh token.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "RefreshToken", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tokenVerify", - "description": "Verify JWT token.", - "args": [ - { - "name": "token", - "description": "JWT token to validate.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VerifyToken", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tokensDeactivateAll", - "description": "Deactivate all JWT tokens of the currently authenticated user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "DeactivateAllUserTokens", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalAuthenticationUrl", - "description": "Prepare external authentication url for user by custom plugin.", - "args": [ - { - "name": "input", - "description": "The data required by plugin to create external authentication url.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pluginId", - "description": "The ID of the authentication plugin.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExternalAuthenticationUrl", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalObtainAccessTokens", - "description": "Obtain external access tokens for user by custom plugin.", - "args": [ - { - "name": "input", - "description": "The data required by plugin to create authentication data.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pluginId", - "description": "The ID of the authentication plugin.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExternalObtainAccessTokens", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalRefresh", - "description": "Refresh user's access by custom plugin.", - "args": [ - { - "name": "input", - "description": "The data required by plugin to proceed the refresh process.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pluginId", - "description": "The ID of the authentication plugin.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExternalRefresh", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalLogout", - "description": "Logout user by custom plugin.", - "args": [ - { - "name": "input", - "description": "The data required by plugin to proceed the logout process.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pluginId", - "description": "The ID of the authentication plugin.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExternalLogout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalVerify", - "description": "Verify external authentication data by plugin.", - "args": [ - { - "name": "input", - "description": "The data required by plugin to proceed the verification.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pluginId", - "description": "The ID of the authentication plugin.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExternalVerify", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "requestPasswordReset", - "description": "Sends an email with the account password modification link.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel which will be used for notify user. Optional when only one channel exists.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Email of the user that will be used for password recovery.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "URL of a view where users should be redirected to reset the password. URL in RFC 1808 format.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "RequestPasswordReset", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "confirmAccount", - "description": "Confirm user account with token sent by email during registration.", - "args": [ - { - "name": "email", - "description": "E-mail of the user performing account confirmation.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "A one-time token required to confirm the account.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ConfirmAccount", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "setPassword", - "description": "Sets the user's password from the token sent by email using the RequestPasswordReset mutation.", - "args": [ - { - "name": "email", - "description": "Email of a user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "password", - "description": "Password of a user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "A one-time token required to set the password.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SetPassword", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "passwordChange", - "description": "Change the password of the logged in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [ - { - "name": "newPassword", - "description": "New user password.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oldPassword", - "description": "Current user password.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PasswordChange", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "requestEmailChange", - "description": "Request email change of the logged in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel which will be used to notify users. Optional when only one channel exists.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "newEmail", - "description": "New user email.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "password", - "description": "User password.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "URL of a view where users should be redirected to update the email address. URL in RFC 1808 format.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "RequestEmailChange", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "confirmEmailChange", - "description": "Confirm the email change of the logged-in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel which will be used to notify users. Optional when only one channel exists.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "A one-time token required to change the email.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ConfirmEmailChange", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountAddressCreate", - "description": "Create a new address for the customer. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [ - { - "name": "input", - "description": "Fields required to create address.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "A type of address. If provided, the new address will be automatically assigned as the customer's default address of that type.", - "type": { - "kind": "ENUM", - "name": "AddressTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AccountAddressCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountAddressUpdate", - "description": "Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.", - "args": [ - { - "name": "id", - "description": "ID of the address to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update the address.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AccountAddressUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountAddressDelete", - "description": "Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.", - "args": [ - { - "name": "id", - "description": "ID of the address to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AccountAddressDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountSetDefaultAddress", - "description": "Sets a default address for the authenticated user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [ - { - "name": "id", - "description": "ID of the address to set as default.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The type of address.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AddressTypeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AccountSetDefaultAddress", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountRegister", - "description": "Register a new user.", - "args": [ - { - "name": "input", - "description": "Fields required to create a user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AccountRegisterInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AccountRegister", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountUpdate", - "description": "Updates the account of the logged-in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [ - { - "name": "input", - "description": "Fields required to update the account of the logged-in user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AccountInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AccountUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountRequestDeletion", - "description": "Sends an email with the account removal link for the logged-in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel which will be used to notify users. Optional when only one channel exists.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "URL of a view where users should be redirected to delete their account. URL in RFC 1808 format.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AccountRequestDeletion", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountDelete", - "description": "Remove user account. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "args": [ - { - "name": "token", - "description": "A one-time token required to remove account. Sent by email using AccountRequestDeletion mutation.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AccountDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressCreate", - "description": "Creates user address. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "input", - "description": "Fields required to create address.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userId", - "description": "ID of a user to create address for.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AddressCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressUpdate", - "description": "Updates an address. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "id", - "description": "ID of the address to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update the address.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AddressUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressDelete", - "description": "Deletes an address. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "id", - "description": "ID of the address to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AddressDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressSetDefault", - "description": "Sets a default address for the given user. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "addressId", - "description": "ID of the address.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The type of address.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AddressTypeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userId", - "description": "ID of the user to change the address for.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AddressSetDefault", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerCreate", - "description": "Creates a new customer. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "input", - "description": "Fields required to create a customer.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UserCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CustomerCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerUpdate", - "description": "Updates an existing customer. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a customer to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a customer to update.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a customer.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CustomerInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CustomerUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerDelete", - "description": "Deletes a customer. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "externalReference", - "description": "External ID of a customer to update. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of a customer to delete.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CustomerDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerBulkDelete", - "description": "Deletes customers. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "ids", - "description": "List of user IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CustomerBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffCreate", - "description": "Creates a new staff user. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "input", - "description": "Fields required to create a staff user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StaffCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StaffCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffUpdate", - "description": "Updates an existing staff user. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "id", - "description": "ID of a staff user to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Fields required to update a staff user.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StaffUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StaffUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffDelete", - "description": "Deletes a staff user. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "id", - "description": "ID of a staff user to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StaffDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffBulkDelete", - "description": "Deletes staff users. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "ids", - "description": "List of user IDs to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StaffBulkDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userAvatarUpdate", - "description": "Create a user avatar. Only for staff members. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [ - { - "name": "image", - "description": "Represents an image file in a multipart request.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Upload", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "UserAvatarUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userAvatarDelete", - "description": "Deletes a user avatar. Only for staff members. \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "UserAvatarDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userBulkSetActive", - "description": "Activate or deactivate users. \n\nRequires one of the following permissions: MANAGE_USERS.", - "args": [ - { - "name": "ids", - "description": "List of user IDs to (de)activate).", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "Determine if users will be set active or not.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "UserBulkSetActive", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroupCreate", - "description": "Create new permission group. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "input", - "description": "Input fields to create permission group.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PermissionGroupCreateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PermissionGroupCreate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroupUpdate", - "description": "Update permission group. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "id", - "description": "ID of the group to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "input", - "description": "Input fields to create permission group.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PermissionGroupUpdateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PermissionGroupUpdate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroupDelete", - "description": "Delete permission group. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "id", - "description": "ID of the group to delete.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PermissionGroupDelete", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "NameTranslationInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "NavigationType", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "MAIN", - "description": "Main storefront navigation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SECONDARY", - "description": "Secondary storefront navigation.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INTERFACE", - "name": "Node", - "description": "An object with an ID", - "fields": [ - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Allocation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AppExtension", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AppInstallation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AppToken", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CategoryTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CategoryTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLine", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionChannelListing", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CustomerEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "DigitalContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "DigitalContentUrl", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "EventDelivery", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "EventDeliveryAttempt", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ExportEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ExportFile", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FulfillmentLine", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCardEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCardTag", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItemTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItemTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderDiscount", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductChannelListing", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantChannelListing", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleChannelListing", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodChannelListing", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodPostalCodeRule", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShopTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "StaffNotificationRecipient", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Stock", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TaxConfiguration", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Transaction", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TransactionEvent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherChannelListing", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Webhook", - "ofType": null - } - ] - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "description": null, - "fields": [ - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CheckoutLine", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "DigitalContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TaxConfiguration", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "Order", - "description": "Represents an order in the shop.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderStatus", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "User who placed the order. This field is set only for orders placed by authenticated users. Can be fetched for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_USERS, MANAGE_ORDERS, OWNER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackingClientId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "billingAddress", - "description": "Billing address. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingAddress", - "description": "Shipping address. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethodName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collectionPointName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillments", - "description": "List of shipments for the order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "List of order lines.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "actions", - "description": "List of actions that can be performed in the current state of an order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderAction", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableShippingMethods", - "description": "Shipping methods that can be used with this order.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - }, - "isDeprecated": true, - "deprecationReason": "Use `shippingMethods`, this field will be removed in 4.0" - }, - { - "name": "shippingMethods", - "description": "Shipping methods related to this order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableCollectionPoints", - "description": "Collection points that can be used for this order.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoices", - "description": "List of order invoices. Can be fetched for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Invoice", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "number", - "description": "User-friendly number of an order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "original", - "description": "The ID of the order that was the base for this order.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "origin", - "description": "The order origin.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderOriginEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPaid", - "description": "Informs if an order is fully paid.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentStatus", - "description": "Internal payment status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PaymentChargeStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentStatusDisplay", - "description": "User-friendly payment status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "authorizeStatus", - "description": "The authorize status of the order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderAuthorizeStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeStatus", - "description": "The charge status of the order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderChargeStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxExemption", - "description": "Returns True if order has to be exempt from taxes.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactions", - "description": "List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payments", - "description": "List of payments for the order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "total", - "description": "Total amount of the order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "undiscountedTotal", - "description": "Undiscounted total amount of the order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": "Shipping method for this order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead." - }, - { - "name": "shippingPrice", - "description": "Total price of shipping.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingTaxRate", - "description": "The shipping tax rate value.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingTaxClass", - "description": "Denormalized tax class assigned to the shipping method.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingTaxClassName", - "description": "Denormalized name of the tax class assigned to the shipping method.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingTaxClassMetadata", - "description": "Denormalized public metadata of the shipping method's tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingTaxClassPrivateMetadata", - "description": "Denormalized private metadata of the shipping method's tax class. Requires staff permissions to access.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `id` instead." - }, - { - "name": "voucher", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCards", - "description": "List of user gift cards.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerNote", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Weight", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "subtotal", - "description": "The sum of line prices not including shipping.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "statusDisplay", - "description": "User-friendly order status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "canFinalize", - "description": "Informs whether a draft order can be finalized(turned into a regular order).", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalAuthorized", - "description": "Amount authorized for the order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCaptured", - "description": "Amount captured for the order. ", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `totalCharged` instead." - }, - { - "name": "totalCharged", - "description": "Amount charged for the order.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCanceled", - "description": "Amount canceled for the order.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": "List of events associated with the order.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderEvent", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalBalance", - "description": "The difference between the paid and the order total amount.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userEmail", - "description": "Email address of the customer. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isShippingRequired", - "description": "Returns True, if order requires shipping.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deliveryMethod", - "description": "The delivery method selected for this order.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "UNION", - "name": "DeliveryMethod", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. " - }, - { - "name": "languageCodeEnum", - "description": "Order language code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discount", - "description": "Returns applied discount.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `discounts` field instead." - }, - { - "name": "discountName", - "description": "Discount name.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `discounts` field instead." - }, - { - "name": "translatedDiscountName", - "description": "Translated discount name.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `discounts` field instead. " - }, - { - "name": "discounts", - "description": "List of all discounts assigned to the order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderDiscount", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": "List of errors that occurred during order validation.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayGrossPrices", - "description": "Determines whether checkout prices should include taxes when displayed in a storefront.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this order. \n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutId", - "description": "ID of the checkout that the order was created from. \n\nAdded in Saleor 3.11.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "grantedRefunds", - "description": "List of granted refunds.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderGrantedRefund", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalGrantedRefund", - "description": "Total amount of granted refund.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalRefunded", - "description": "Total refund amount for the order.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalRefundPending", - "description": "Total amount of ongoing refund requests for the order's transactions.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalAuthorizePending", - "description": "Total amount of ongoing authorize requests for the order's transactions.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalChargePending", - "description": "Total amount of ongoing charge requests for the order's transactions.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCancelPending", - "description": "Total amount of ongoing cancel requests for the order's transactions.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalRemainingGrant", - "description": "The difference amount between granted refund and the amounts that are pending and refunded.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderAction", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CAPTURE", - "description": "Represents the capture action.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MARK_AS_PAID", - "description": "Represents a mark-as-paid action.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUND", - "description": "Represents a refund action.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOID", - "description": "Represents a void action.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderAddNote", - "description": "Adds note to the order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order with the note added.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "event", - "description": "Order note created.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderEvent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderAddNoteInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "message", - "description": "Note message.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderAuthorizeStatusEnum", - "description": "Determine a current authorize status for order.\n\n We treat the order as fully authorized when the sum of authorized and charged funds\n cover the order.total.\n We treat the order as partially authorized when the sum of authorized and charged\n funds covers only part of the order.total\n We treat the order as not authorized when the sum of authorized and charged funds is\n 0.\n\n NONE - the funds are not authorized\n PARTIAL - the funds that are authorized or charged don't cover fully the order's\n total\n FULL - the funds that are authorized or charged fully cover the order's total\n ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NONE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PARTIAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderBulkCancel", - "description": "Cancels orders. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderCancel", - "description": "Cancel an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Canceled order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderCancelled", - "description": "Event sent when order is canceled.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderCapture", - "description": "Capture an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Captured order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderChargeStatusEnum", - "description": "Determine the current charge status for the order.\n\n We treat the order as overcharged when the charged amount is bigger that order.total\n We treat the order as fully charged when the charged amount is equal to order.total.\n We treat the order as partially charged when the charged amount covers only part of\n the order.total\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the order's total\n FULL - the funds that are charged fully cover the order's total\n OVERCHARGED - the charged funds are bigger than order's total\n ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NONE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PARTIAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OVERCHARGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderConfirm", - "description": "Confirms an unconfirmed order by changing status to unfulfilled. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderConfirmed", - "description": "Event sent when order is confirmed.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderCreateFromCheckout", - "description": "Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "order", - "description": "Placed order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderCreateFromCheckoutError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderCreateFromCheckoutError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderCreateFromCheckoutErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "List of variant IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "List of line Ids which cause the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderCreateFromCheckoutErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_INACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INSUFFICIENT_STOCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_NOT_APPLICABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_NOT_APPLICABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TAX_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_METHOD_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BILLING_ADDRESS_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ADDRESS_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_SHIPPING_METHOD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NO_LINES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EMAIL_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNAVAILABLE_VARIANT_IN_CHANNEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderCreated", - "description": "Event sent when new order is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderDirection", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ASC", - "description": "Specifies an ascending sort order.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DESC", - "description": "Specifies a descending sort order.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderDiscount", - "description": "Contains all details related to the applied discount to the order.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDiscountType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translatedName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "valueType", - "description": "Type of the discount: fixed or percent", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Value of the discount. Can store fixed value or percent value", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reason", - "description": "Explanation for the applied discount.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Returns amount of discount.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderDiscountAdd", - "description": "Adds discount to the order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order which has been discounted.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderDiscountCommonInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "valueType", - "description": "Type of the discount: fixed or percent", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Value of the discount. Can store fixed value or percent value", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reason", - "description": "Explanation for the applied discount.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderDiscountDelete", - "description": "Remove discount from the order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order which has removed discount.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderDiscountType", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "VOUCHER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANUAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderDiscountUpdate", - "description": "Update discount for the order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order which has been discounted.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderDraftFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "customer", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "Warehouse ID which causes the error.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLines", - "description": "List of order line IDs that cause the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "List of product variants that are associated with the error", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressType", - "description": "A type of address that causes the error.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AddressTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "BILLING_ADDRESS_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_CANCEL_FULFILLMENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_CANCEL_ORDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_DELETE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_DISCOUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_REFUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_FULFILL_UNPAID_ORDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CAPTURE_INACTIVE_PAYMENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_LINE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_EDITABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILL_ORDER_LINE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_NOT_PUBLISHED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_UNAVAILABLE_FOR_PURCHASE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_NO_SHIPPING_ADDRESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_MISSING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_METHOD_NOT_APPLICABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_METHOD_REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TAX_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOID_INACTIVE_PAYMENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ZERO_QUANTITY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_QUANTITY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INSUFFICIENT_STOCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_AVAILABLE_IN_CHANNEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_INACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderEvent", - "description": "History log of the order.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "date", - "description": "Date when event happened at in ISO 8601 format.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Order event type.", - "args": [], - "type": { - "kind": "ENUM", - "name": "OrderEventsEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "User who performed the action.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "App that performed the action. Requires of of the following permissions: MANAGE_APPS, MANAGE_ORDERS, OWNER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Content of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Email of the customer.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "emailType", - "description": "Type of an email sent to the customer.", - "args": [], - "type": { - "kind": "ENUM", - "name": "OrderEventsEmailsEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Amount of money.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentId", - "description": "The payment reference from the payment provider.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentGateway", - "description": "The payment gateway of the payment.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "Number of items.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "composedId", - "description": "Composed ID of the Fulfillment.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderNumber", - "description": "User-friendly number of an order.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "invoiceNumber", - "description": "Number of an invoice related to the order.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oversoldItems", - "description": "List of oversold lines names.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "The concerned lines.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderEventOrderLineObject", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfilledItems", - "description": "The lines fulfilled.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "FulfillmentLine", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "The warehouse were items were restocked.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionReference", - "description": "The transaction reference of captured payment.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingCostsIncluded", - "description": "Define if shipping costs were included to the refund.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "relatedOrder", - "description": "The order which is related to this order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discount", - "description": "The discount applied to the order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderEventDiscountObject", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": "The status of payment's transaction.", - "args": [], - "type": { - "kind": "ENUM", - "name": "TransactionStatus", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.13 (Preview Feature).Use `TransactionEvent` to track the status of `TransactionItem`." - }, - { - "name": "reference", - "description": "The reference of payment's transaction.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderEventCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderEventCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderEventCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderEvent", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderEventDiscountObject", - "description": null, - "fields": [ - { - "name": "valueType", - "description": "Type of the discount: fixed or percent.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Value of the discount. Can store fixed value or percent value.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reason", - "description": "Explanation for the applied discount.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Returns amount of discount.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oldValueType", - "description": "Type of the discount: fixed or percent.", - "args": [], - "type": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oldValue", - "description": "Value of the discount. Can store fixed value or percent value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oldAmount", - "description": "Returns amount of discount.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderEventOrderLineObject", - "description": null, - "fields": [ - { - "name": "quantity", - "description": "The variant quantity.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLine", - "description": "The order line.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "itemName", - "description": "The variant name.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discount", - "description": "The discount applied to the order line.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderEventDiscountObject", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderEventsEmailsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PAYMENT_CONFIRMATION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CONFIRMED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_CONFIRMATION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRACKING_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CONFIRMATION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CANCEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_REFUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_CONFIRMATION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DIGITAL_LINKS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderEventsEnum", - "description": "The different order event types. ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DRAFT_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_CREATED_FROM_REPLACE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDED_PRODUCTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REMOVED_PRODUCTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PLACED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PLACED_FROM_DRAFT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OVERSOLD_ITEMS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCELED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_MARKED_AS_PAID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FULLY_PAID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_REPLACEMENT_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_DISCOUNT_ADDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_DISCOUNT_AUTOMATICALLY_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_DISCOUNT_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_DISCOUNT_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_LINE_DISCOUNT_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_LINE_DISCOUNT_REMOVED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_LINE_PRODUCT_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_LINE_VARIANT_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UPDATED_ADDRESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EMAIL_SENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CONFIRMED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_AUTHORIZED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_CAPTURED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXTERNAL_SERVICE_NOTIFICATION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_REFUNDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_VOIDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_FAILED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_EVENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_CHARGE_REQUESTED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_CAPTURE_REQUESTED", - "description": "This field will be removed in Saleor 3.13 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_REFUND_REQUESTED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_VOID_REQUESTED", - "description": "This field will be removed in Saleor 3.13 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_CANCEL_REQUESTED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_MARK_AS_PAID_FAILED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_REQUESTED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_GENERATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_SENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_CANCELED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_RESTOCKED_ITEMS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_FULFILLED_ITEMS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_REFUNDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_RETURNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_REPLACED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_AWAITS_APPROVAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRACKING_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOTE_ADDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OTHER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "paymentStatus", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PaymentChargeStatusEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderStatusFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customer", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "authorizeStatus", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderAuthorizeStatusEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeStatus", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderChargeStatusEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isClickAndCollect", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPreorder", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardUsed", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardBought", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "numbers", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutIds", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderFilterShippingMethods", - "description": "Filter shipping methods for order.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethods", - "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderFulfill", - "description": "Creates new fulfillments for an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "fulfillments", - "description": "List of created fulfillments.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Fulfillment", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Fulfilled order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderFulfillInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "lines", - "description": "List of items informing how to fulfill the order.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderFulfillLineInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "notifyCustomer", - "description": "If true, send an email notification to the customer.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "allowStockToBeExceeded", - "description": "If true, then allow proceed fulfillment when stock is exceeded.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackingNumber", - "description": "Fulfillment tracking number.\n\nAdded in Saleor 3.6.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderFulfillLineInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "orderLineId", - "description": "The ID of the order line.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": "List of stock items to create.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderFulfillStockInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderFulfillStockInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "quantity", - "description": "The number of line items to be fulfilled from given warehouse.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "ID of the warehouse from which the item will be fulfilled.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderFulfilled", - "description": "Event sent when order is fulfilled.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderFullyPaid", - "description": "Event sent when order is fully paid.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderGrantRefundCreate", - "description": "Adds granted refund to the order.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order which has assigned new grant refund.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "grantedRefund", - "description": "Created granted refund.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderGrantedRefund", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderGrantRefundCreateError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderGrantRefundCreateError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderGrantRefundCreateErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderGrantRefundCreateErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderGrantRefundCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "amount", - "description": "Amount of the granted refund.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Decimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reason", - "description": "Reason of the granted refund.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderGrantRefundUpdate", - "description": "Updates granted refund.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order which has assigned updated grant refund.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "grantedRefund", - "description": "Created granted refund.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderGrantedRefund", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderGrantRefundUpdateError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderGrantedRefund", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderGrantedRefund", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderGrantRefundUpdateError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderGrantRefundUpdateErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderGrantRefundUpdateErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderGrantRefundUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "amount", - "description": "Amount of the granted refund.", - "type": { - "kind": "SCALAR", - "name": "Decimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reason", - "description": "Reason of the granted refund.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderGrantedRefund", - "description": "The details of granted refund.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": "Time of creation.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": "Time of last update.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Refund amount.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reason", - "description": "Reason of the refund.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "User who performed the action. Requires of of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "App that performed the action.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderLine", - "description": "Represents order line of particular order.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productSku", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariantId", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isShippingRequired", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityFulfilled", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unitDiscountReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxRate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContentUrl", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "DigitalContentUrl", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "thumbnail", - "description": null, - "args": [ - { - "name": "size", - "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "ThumbnailFormatEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Image", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unitPrice", - "description": "Price of the single item in the order line.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "undiscountedUnitPrice", - "description": "Price of the single item in the order line without applied an order line discount.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unitDiscount", - "description": "The discount applied to the single order line.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unitDiscountValue", - "description": "Value of the discount. Can store fixed value or percent value", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalPrice", - "description": "Price of the order line.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variant", - "description": "A purchased product variant. Note: this field may be null if the variant has been removed from stock at all. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translatedProductName", - "description": "Product name in the customer's language", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translatedVariantName", - "description": "Variant name in the customer's language", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "allocations", - "description": "List of allocations across warehouses.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Allocation", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityToFulfill", - "description": "A quantity of items remaining to be fulfilled.\n\nAdded in Saleor 3.1.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unitDiscountType", - "description": "Type of the discount: fixed or percent", - "args": [], - "type": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "Denormalized tax class of the product in this order line.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClassName", - "description": "Denormalized name of the tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClassMetadata", - "description": "Denormalized public metadata of the tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClassPrivateMetadata", - "description": "Denormalized private metadata of the tax class. Requires staff permissions to access.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderLineCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "quantity", - "description": "Number of variant items ordered.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantId", - "description": "Product variant ID.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "forceNewLine", - "description": "Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. \n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderLineDelete", - "description": "Deletes an order line from an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "A related order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLine", - "description": "An order line that was deleted.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderLineDiscountRemove", - "description": "Remove discount applied to the order line. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "orderLine", - "description": "Order line which has removed discount.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order which is related to line which has removed discount.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderLineDiscountUpdate", - "description": "Update discount for the order line. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "orderLine", - "description": "Order line which has been discounted.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Order which is related to the discounted line.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderLineInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "quantity", - "description": "Number of variant items ordered.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderLineUpdate", - "description": "Updates an order line of an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Related order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLine", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderLinesCreate", - "description": "Create order lines for an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Related order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderLines", - "description": "List of added order lines.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderMarkAsPaid", - "description": "Mark order as manually paid. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order marked as paid.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderMetadataUpdated", - "description": "Event sent when order metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderOriginEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CHECKOUT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REISSUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderRefund", - "description": "Refund an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "A refunded order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderRefundFulfillmentLineInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "fulfillmentLineId", - "description": "The ID of the fulfillment line to refund.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "The number of items to be refunded.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderRefundLineInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "orderLineId", - "description": "The ID of the order line to refund.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "The number of items to be refunded.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderRefundProductsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "orderLines", - "description": "List of unfulfilled lines to refund.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderRefundLineInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillmentLines", - "description": "List of fulfilled lines to refund.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderRefundFulfillmentLineInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountToRefund", - "description": "The total amount of refund when the value is provided manually.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "includeShippingCosts", - "description": "If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderReturnFulfillmentLineInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "fulfillmentLineId", - "description": "The ID of the fulfillment line to return.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "The number of items to be returned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "replace", - "description": "Determines, if the line should be added to replace order.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderReturnLineInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "orderLineId", - "description": "The ID of the order line to return.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "The number of items to be returned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "replace", - "description": "Determines, if the line should be added to replace order.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderReturnProductsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "orderLines", - "description": "List of unfulfilled lines to return.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderReturnLineInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillmentLines", - "description": "List of fulfilled lines to return.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "OrderReturnFulfillmentLineInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountToRefund", - "description": "The total amount of refund when the value is provided manually.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "includeShippingCosts", - "description": "If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "refund", - "description": "If true, Saleor will call refund action for all lines.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderSettings", - "description": "Represents the channel-specific order settings.", - "fields": [ - { - "name": "automaticallyConfirmAllNewOrders", - "description": "When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "automaticallyFulfillNonShippableGiftCard", - "description": "When enabled, all non-shippable gift card orders will be fulfilled automatically.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "markAsPaidStrategy", - "description": "Determine what strategy will be used to mark the order as paid. Based on the choosen option the proper object will be created and attached to the order, when order is manualy marked as paid.\n`PAYMENT_FLOW` - [default option] creates the `Payment` object.\n`TRANSACTION_FLOW` - creates the `TransactionItem` object.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "MarkAsPaidStrategyEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderSettingsError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderSettingsErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderSettingsErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderSettingsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "automaticallyConfirmAllNewOrders", - "description": "When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "automaticallyFulfillNonShippableGiftCard", - "description": "When enabled, all non-shippable gift card orders will be fulfilled automatically. By defualt set to True.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "markAsPaidStrategy", - "description": "Determine what strategy will be used to mark the order as paid. Based on the choosen option the proper object will be created and attached to the order, when order is manualy marked as paid.\n`PAYMENT_FLOW` - [default option] creates the `Payment` object.\n`TRANSACTION_FLOW` - creates the `TransactionItem` object.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "MarkAsPaidStrategyEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderSettingsUpdate", - "description": "Update shop order settings across all channels. Returns `orderSettings` for the first `channel` in alphabetical order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "orderSettings", - "description": "Order settings.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderSettings", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderSettingsErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderSettingsError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderSettingsError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderSettingsUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "automaticallyConfirmAllNewOrders", - "description": "When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "automaticallyFulfillNonShippableGiftCard", - "description": "When enabled, all non-shippable gift card orders will be fulfilled automatically. By defualt set to True.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NUMBER", - "description": "Sort orders by number.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RANK", - "description": "Sort orders by rank. Note: This option is available only with the `search` filter.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATION_DATE", - "description": "Sort orders by creation date. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT", - "description": "Sort orders by creation date. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAST_MODIFIED_AT", - "description": "Sort orders by last modified at.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER", - "description": "Sort orders by customer.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT", - "description": "Sort orders by payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_STATUS", - "description": "Sort orders by fulfillment status.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort orders by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderStatus", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DRAFT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNCONFIRMED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNFULFILLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PARTIALLY_FULFILLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PARTIALLY_RETURNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RETURNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCELED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrderStatusFilter", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "READY_TO_FULFILL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "READY_TO_CAPTURE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNFULFILLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNCONFIRMED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PARTIALLY_FULFILLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCELED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderUpdate", - "description": "Updates an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "billingAddress", - "description": "Billing address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userEmail", - "description": "Email address of the customer.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingAddress", - "description": "Shipping address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this order.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderUpdateShipping", - "description": "Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "Order with updated shipping method.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OrderUpdateShippingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "shippingMethod", - "description": "ID of the selected shipping method, pass null to remove currently assigned shipping method.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderUpdated", - "description": "Event sent when order is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The order the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OrderVoid", - "description": "Void an order. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "order", - "description": "A voided order.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Page", - "description": "A static page that can be manually added by a shop operator through the dashboard.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": "Content of the page.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date." - }, - { - "name": "publishedAt", - "description": "The page publication date.\n\nAdded in Saleor 3.3.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPublished", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentJson", - "description": "Content of the page.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `content` field instead." - }, - { - "name": "translation", - "description": "Returns translated page fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for page.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes assigned to this product.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "SelectedAttribute", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageAttributeAssign", - "description": "Assign attributes to a given page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "pageType", - "description": "The updated page type.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageAttributeUnassign", - "description": "Unassign attributes from a given page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "pageType", - "description": "The updated page type.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageBulkDelete", - "description": "Deletes pages. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageBulkPublish", - "description": "Publish pages. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageCreate", - "description": "Creates a new page. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "fields": [ - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "slug", - "description": "Page internal name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", - "description": "Page title.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": "Page content.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPublished", - "description": "Determines if page is visible in the storefront.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": "Publication date. ISO 8601 standard. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publishedAt", - "description": "Publication date time. ISO 8601 standard.\n\nAdded in Saleor 3.3.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seo", - "description": "Search engine optimization fields.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SeoInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": "ID of the page type that page belongs to.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageCreated", - "description": "Event sent when new page is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": "The page the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageDelete", - "description": "Deletes a page. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "fields": [ - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageDeleted", - "description": "Event sent when page is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": "The page the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PageErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "List of attribute values IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PageErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_ALREADY_ASSIGNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypes", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageInfo", - "description": "The Relay compliant `PageInfo` type, containing data necessary to paginate this connection.", - "fields": [ - { - "name": "hasNextPage", - "description": "When paginating forwards, are there more items?", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasPreviousPage", - "description": "When paginating backwards, are there more items?", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startCursor", - "description": "When paginating backwards, the cursor to continue.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endCursor", - "description": "When paginating forwards, the cursor to continue.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "slug", - "description": "Page internal name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", - "description": "Page title.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": "Page content.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPublished", - "description": "Determines if page is visible in the storefront.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": "Publication date. ISO 8601 standard. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publishedAt", - "description": "Publication date time. ISO 8601 standard.\n\nAdded in Saleor 3.3.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seo", - "description": "Search engine optimization fields.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SeoInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageReorderAttributeValues", - "description": "Reorder page attribute values. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "fields": [ - { - "name": "page", - "description": "Page from which attribute values are reordered.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PageSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "TITLE", - "description": "Sort pages by title.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SLUG", - "description": "Sort pages by slug.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VISIBILITY", - "description": "Sort pages by visibility.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATION_DATE", - "description": "Sort pages by creation date.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PUBLICATION_DATE", - "description": "Sort pages by publication date.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PUBLISHED_AT", - "description": "Sort pages by publication date.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT", - "description": "Sort pages by creation date.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort pages by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PageSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": "Content of the page.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentJson", - "description": "Content of the page.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `content` field instead." - }, - { - "name": "translation", - "description": "Returns translated page fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for page.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": "A static page that can be manually added by a shop operator through the dashboard.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - }, - { - "name": "attributeValues", - "description": "List of page content attribute values that can be translated.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeValueTranslatableContent", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTranslate", - "description": "Creates/updates translations for a page. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageTranslatableContent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": "Translated content of the page.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentJson", - "description": "Translated description of the page.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `content` field instead." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageTranslationInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "seoTitle", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "content", - "description": "Translated page content.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageType", - "description": "Represents a type of page. It defines what attributes are available to pages of this type.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "Page attributes of that page type.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableAttributes", - "description": "Attributes that can be assigned to the page type.\n\nRequires one of the following permissions: MANAGE_PAGES.", - "args": [ - { - "name": "filter", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeWhereInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasPages", - "description": "Whether page type has pages assigned.\n\nRequires one of the following permissions: MANAGE_PAGES.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeBulkDelete", - "description": "Delete page types. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageTypeCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeCreate", - "description": "Create a new page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageTypeCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the page type.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Page type slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addAttributes", - "description": "List of attribute IDs to be assigned to the page type.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeCreated", - "description": "Event sent when new page type is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": "The page type the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeDelete", - "description": "Delete a page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeDeleted", - "description": "Event sent when page type is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": "The page type the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageTypeFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeReorderAttributes", - "description": "Reorder the attributes of a page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "pageType", - "description": "Page type from which attributes are reordered.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PageTypeSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort page types by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SLUG", - "description": "Sort page types by slug.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageTypeSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort page types by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PageTypeSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeUpdate", - "description": "Update page type. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PageTypeUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the page type.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Page type slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addAttributes", - "description": "List of attribute IDs to be assigned to the page type.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeAttributes", - "description": "List of attribute IDs to be assigned to the page type.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageTypeUpdated", - "description": "Event sent when page type is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": "The page type the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageUpdate", - "description": "Updates an existing page. \n\nRequires one of the following permissions: MANAGE_PAGES.", - "fields": [ - { - "name": "pageErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PageUpdated", - "description": "Event sent when page is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": "The page the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PasswordChange", - "description": "Change the password of the logged in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "user", - "description": "A user instance with a new password.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Payment", - "description": "Represents a payment of a given type.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gateway", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "modified", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentMethodType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerIpAddress", - "description": "IP address of the user who created the payment.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeStatus", - "description": "Internal payment status.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PaymentChargeStatusEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "actions", - "description": "List of actions that can be performed in the current state of a payment.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderAction", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "total", - "description": "Total amount of the payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "capturedAmount", - "description": "Total amount captured for this payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactions", - "description": "List of all transactions within this payment.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Transaction", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableCaptureAmount", - "description": "Maximum amount of money that can be captured.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableRefundAmount", - "description": "Maximum amount of money that can be refunded.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "creditCard", - "description": "The details of the card used for this payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "CreditCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentAuthorize", - "description": "Authorize payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": "Look up a payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentCapture", - "description": "Captures the authorized payment amount. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "payment", - "description": "Updated payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentCaptureEvent", - "description": "Capture payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": "Look up a payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PaymentChargeStatusEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NOT_CHARGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PENDING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PARTIALLY_CHARGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULLY_CHARGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PARTIALLY_REFUNDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULLY_REFUNDED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUSED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCELLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentCheckBalance", - "description": "Check payment balance.", - "fields": [ - { - "name": "data", - "description": "Response from the gateway.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PaymentCheckBalanceInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "gatewayId", - "description": "An ID of a payment gateway to check.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "method", - "description": "Payment method name.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "card", - "description": "Information about card.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CardInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentConfirmEvent", - "description": "Confirm payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": "Look up a payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PaymentErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "List of variant IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PaymentErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "BILLING_ADDRESS_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PARTIAL_PAYMENT_NOT_ALLOWED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ADDRESS_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_SHIPPING_METHOD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_METHOD_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_SUPPORTED_GATEWAY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_INACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "BALANCE_CHECK_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_EMAIL_NOT_SET", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNAVAILABLE_VARIANT_IN_CHANNEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NO_CHECKOUT_LINES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PaymentFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "ids", - "description": "Filter by ids. \n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkouts", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentGateway", - "description": "Available payment gateway backend with configuration necessary to setup client.", - "fields": [ - { - "name": "name", - "description": "Payment gateway name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "Payment gateway ID.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "config", - "description": "Payment gateway client configuration.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GatewayConfigLine", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currencies", - "description": "Payment gateway supported currencies.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentInitialize", - "description": "Initializes payment process when it is required by gateway.", - "fields": [ - { - "name": "initializedPayment", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "PaymentInitialized", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentInitialized", - "description": "Server-side data generated by a payment gateway. Optional step when the payment provider requires an additional action to initialize payment session.", - "fields": [ - { - "name": "gateway", - "description": "ID of a payment gateway.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Payment gateway name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "data", - "description": "Initialized data by gateway.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PaymentInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "gateway", - "description": "A gateway to use with that payment.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "Client-side generated payment token, representing customer's billing data in a secure manner.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "returnUrl", - "description": "URL of a storefront view where user should be redirected after requiring additional actions. Payment with additional actions will not be finished if this field is not provided.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "storePaymentMethod", - "description": "Payment store type.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "ENUM", - "name": "StorePaymentMethodEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "User public metadata.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentListGateways", - "description": "List payment gateways.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": "The checkout the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentProcessEvent", - "description": "Process payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": "Look up a payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentRefund", - "description": "Refunds the captured payment amount. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "payment", - "description": "Updated payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentRefundEvent", - "description": "Refund payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": "Look up a payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentSource", - "description": "Represents a payment source stored for user in payment gateway, such as credit card.", - "fields": [ - { - "name": "gateway", - "description": "Payment gateway name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentMethodId", - "description": "ID of stored payment method.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "creditCardInfo", - "description": "Stored credit card details if available.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "CreditCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items.\n\nAdded in Saleor 3.1.\n\nCan be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentVoid", - "description": "Voids the authorized payment. \n\nRequires one of the following permissions: MANAGE_ORDERS.", - "fields": [ - { - "name": "payment", - "description": "Updated payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "paymentErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PaymentVoidEvent", - "description": "Void payment.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": "Look up a payment.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Permission", - "description": "Represents a permission object in a friendly form.", - "fields": [ - { - "name": "code", - "description": "Internal code for permission.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Describe action(s) allowed to do by permission.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PermissionEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "MANAGE_USERS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_STAFF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IMPERSONATE_USER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_APPS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_OBSERVABILITY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_CHECKOUTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HANDLE_CHECKOUTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HANDLE_TAXES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_TAXES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_CHANNELS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_DISCOUNTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_GIFT_CARD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_MENUS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_ORDERS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_PAGES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_PAGE_TYPES_AND_ATTRIBUTES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "HANDLE_PAYMENTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_PLUGINS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_PRODUCTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_SHIPPING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_SETTINGS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MANAGE_TRANSLATIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupCreate", - "description": "Create new permission group. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "fields": [ - { - "name": "permissionGroupErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PermissionGroupError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PermissionGroupError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "group", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PermissionGroupCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "addPermissions", - "description": "List of permission code names to assign to this group.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addUsers", - "description": "List of users to assign to this group.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Group name.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupCreated", - "description": "Event sent when new permission group is created.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroup", - "description": "The permission group the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupDelete", - "description": "Delete permission group. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "fields": [ - { - "name": "permissionGroupErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PermissionGroupError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PermissionGroupError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "group", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupDeleted", - "description": "Event sent when permission group is deleted.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroup", - "description": "The permission group the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionGroupErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of permissions which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "users", - "description": "List of user IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PermissionGroupErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ASSIGN_NON_STAFF_MEMBER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_REMOVE_FROM_LAST_GROUP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LEFT_NOT_MANAGEABLE_PERMISSION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUT_OF_SCOPE_PERMISSION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUT_OF_SCOPE_USER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PermissionGroupFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PermissionGroupSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort permission group accounts by name.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PermissionGroupSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort permission group by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionGroupSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupUpdate", - "description": "Update permission group. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "fields": [ - { - "name": "permissionGroupErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PermissionGroupError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PermissionGroupError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "group", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PermissionGroupUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "addPermissions", - "description": "List of permission code names to assign to this group.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addUsers", - "description": "List of users to assign to this group.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Group name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removePermissions", - "description": "List of permission code names to unassign from this group.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeUsers", - "description": "List of users to unassign from this group.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PermissionGroupUpdated", - "description": "Event sent when permission group is updated.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroup", - "description": "The permission group the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Plugin", - "description": "Plugin.", - "fields": [ - { - "name": "id", - "description": "Identifier of the plugin.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the plugin.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the plugin.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "globalConfiguration", - "description": "Global configuration of the plugin (not channel-specific).", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PluginConfiguration", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelConfigurations", - "description": "Channel-specific plugin configuration.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PluginConfiguration", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PluginConfiguration", - "description": "Stores information about a configuration of plugin.", - "fields": [ - { - "name": "active", - "description": "Determines if plugin is active or not.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "The channel to which the plugin configuration is assigned to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "configuration", - "description": "Configuration of the plugin.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ConfigurationItem", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PluginConfigurationType", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PER_CHANNEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GLOBAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PluginCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PluginCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PluginCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Plugin", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PluginError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PluginErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PluginErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PLUGIN_MISCONFIGURED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PluginFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "statusInChannels", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "PluginStatusInChannelsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "type": { - "kind": "ENUM", - "name": "PluginConfigurationType", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PluginSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IS_ACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PluginSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort plugins by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PluginSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PluginStatusInChannelsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "active", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PluginUpdate", - "description": "Update plugin configuration. \n\nRequires one of the following permissions: MANAGE_PLUGINS.", - "fields": [ - { - "name": "plugin", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Plugin", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pluginsErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PluginError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PluginError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PluginUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "active", - "description": "Indicates whether the plugin should be enabled.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "configuration", - "description": "Configuration of the plugin.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ConfigurationItemInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "PositiveDecimal", - "description": "Nonnegative Decimal scalar implementation.\n\nShould be used in places where value must be nonnegative (0 or greater).", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "PostalCodeRuleInclusionTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "INCLUDE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EXCLUDE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PreorderData", - "description": "Represents preorder settings for product variant.", - "fields": [ - { - "name": "globalThreshold", - "description": "The global preorder threshold for product variant.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "globalSoldUnits", - "description": "Total number of sold product variant during preorder.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endDate", - "description": "Preorder end date.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PreorderSettingsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "globalThreshold", - "description": "The global threshold for preorder variant.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endDate", - "description": "The end date for preorder.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PreorderThreshold", - "description": "Represents preorder variant data for channel.", - "fields": [ - { - "name": "quantity", - "description": "Preorder threshold for product variant in this channel.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "soldUnits", - "description": "Number of sold product variant in this channel.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PriceInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "currency", - "description": "Currency code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Amount of money.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PriceRangeInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "gte", - "description": "Price greater than or equal to.", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lte", - "description": "Price less than or equal to.", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Product", - "description": "Represents an individual item for sale in the storefront.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the product.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeTaxes", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` field to determine whether tax collection is enabled." - }, - { - "name": "weight", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Weight", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultVariant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rating", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Channel given to retrieve this product. Also used by federation gateway to resolve this object in a federated query.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Description of the product.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - }, - { - "name": "thumbnail", - "description": null, - "args": [ - { - "name": "size", - "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "ThumbnailFormatEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Image", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pricing", - "description": "Lists the storefront product's pricing, the current price and discounts, only meant for displaying.", - "args": [ - { - "name": "address", - "description": "Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductPricingInfo", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isAvailable", - "description": "Whether the product is in stock and visible or not.", - "args": [ - { - "name": "address", - "description": "Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxType", - "description": "A type of tax. Assigned by enabled tax gateway", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxType", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `taxClass` field instead." - }, - { - "name": "attribute", - "description": "Get a single attribute attached to product by attribute slug.\n\nAdded in Saleor 3.9.", - "args": [ - { - "name": "slug", - "description": "Slug of the attribute", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SelectedAttribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes assigned to this product.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "SelectedAttribute", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "List of availability in channels for the product.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductChannelListing", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mediaById", - "description": "Get a single product media by ID.", - "args": [ - { - "name": "id", - "description": "ID of a product media.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "imageById", - "description": "Get a single product image by ID.", - "args": [ - { - "name": "id", - "description": "ID of a product image.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductImage", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `mediaById` field instead." - }, - { - "name": "variant", - "description": "Get a single variant by SKU or ID. \n\nAdded in Saleor 3.9.", - "args": [ - { - "name": "id", - "description": "ID of the variant.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "SKU of the variant.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use top-level `variant` query." - }, - { - "name": "variants", - "description": "List of variants for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "media", - "description": "List of media for the product.", - "args": [ - { - "name": "sortBy", - "description": "Sort media. \n\nAdded in Saleor 3.9.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MediaSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "images", - "description": "List of images for the product.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductImage", - "ofType": null - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `media` field instead." - }, - { - "name": "collections", - "description": "List of collections for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated product fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for product.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableForPurchase", - "description": "Date when product is available for purchase.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date." - }, - { - "name": "availableForPurchaseAt", - "description": "Date when product is available for purchase.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isAvailableForPurchase", - "description": "Whether the product is available for purchase.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product. \n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductAttributeAssign", - "description": "Assign attributes to a given product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "productType", - "description": "The updated product type.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductAttributeAssignInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "id", - "description": "The ID of the attribute to assign.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The attribute type to be assigned as.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductAttributeType", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantSelection", - "description": "Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric'].\n\nAdded in Saleor 3.1.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductAttributeAssignmentUpdate", - "description": "Update attributes assigned to product variant for given product type.\n\nAdded in Saleor 3.1. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "productType", - "description": "The updated product type.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductAttributeAssignmentUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "id", - "description": "The ID of the attribute to assign.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantSelection", - "description": "Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric'].\n\nAdded in Saleor 3.1.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductAttributeType", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PRODUCT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductAttributeUnassign", - "description": "Un-assign attributes from a given product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "productType", - "description": "The updated product type.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductBulkDelete", - "description": "Deletes products. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductChannelListing", - "description": "Represents product channel listing.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date." - }, - { - "name": "publishedAt", - "description": "The product publication date time.\n\nAdded in Saleor 3.3.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPublished", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visibleInListings", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableForPurchase", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date." - }, - { - "name": "availableForPurchaseAt", - "description": "The product available for purchase date time.\n\nAdded in Saleor 3.3.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountedPrice", - "description": "The price of the cheapest variant (including discounts).", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "purchaseCost", - "description": "Purchase cost of product.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "MoneyRange", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "margin", - "description": "Range of margin percentage value.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Margin", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isAvailableForPurchase", - "description": "Whether the product is available for purchase.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pricing", - "description": "Lists the storefront product's pricing, the current price and discounts, only meant for displaying.", - "args": [ - { - "name": "address", - "description": "Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductPricingInfo", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductChannelListingAddInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channelId", - "description": "ID of a channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPublished", - "description": "Determines if object is visible to customers.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": "Publication date. ISO 8601 standard. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publishedAt", - "description": "Publication date time. ISO 8601 standard.\n\nAdded in Saleor 3.3.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visibleInListings", - "description": "Determines if product is visible in product listings (doesn't apply to product collections).", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isAvailableForPurchase", - "description": "Determine if product should be available for purchase.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableForPurchaseDate", - "description": "A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `availableForPurchaseAt` field instead.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableForPurchaseAt", - "description": "A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed.\n\nAdded in Saleor 3.3.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addVariants", - "description": "List of variants to which the channel should be assigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeVariants", - "description": "List of variants from which the channel should be unassigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductChannelListingError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "List of attribute values IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of channels IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "List of variants IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductChannelListingUpdate", - "description": "Manage product's availability in channels. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "product", - "description": "An updated product instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productChannelListingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductChannelListingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductChannelListingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductChannelListingUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "updateChannels", - "description": "List of channels to which the product should be assigned or updated.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductChannelListingAddInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeChannels", - "description": "List of channels from which the product should be unassigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductCreate", - "description": "Creates a new product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "attributes", - "description": "List of attributes.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "ID of the product's category.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeTaxes", - "description": "Determine if taxes are being charged for the product. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": "List of IDs of collections that the product belongs to.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Product description.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Product name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Product slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCode", - "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seo", - "description": "Search engine optimization fields.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SeoInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": "Weight of the Product.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rating", - "description": "Defines the product rating value.", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the product metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the product private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productType", - "description": "ID of the type that product belongs to.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductCreated", - "description": "Event sent when new product is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "The product the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "The category of the product.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductDelete", - "description": "Deletes a product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductDeleted", - "description": "Event sent when product is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "The product the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "The category of the product.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "List of attribute values IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_ALREADY_ASSIGNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_CANNOT_BE_ASSIGNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VARIANTS_DISABLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MEDIA_ALREADY_ASSIGNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_PRICE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_WITHOUT_CATEGORY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_PRODUCTS_IMAGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_PRODUCTS_VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT_NO_DIGITAL_CONTENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_NOT_ASSIGNED_TO_CHANNEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNSUPPORTED_MEDIA_PROVIDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PREORDER_VARIANT_CANNOT_BE_DEACTIVATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductFieldEnum", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DESCRIPTION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_TYPE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_WEIGHT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTIONS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHARGE_TAXES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT_ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT_SKU", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT_WEIGHT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT_MEDIA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "isPublished", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categories", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasCategory", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stockAvailability", - "description": "Filter by variants having specific stock status.", - "type": { - "kind": "ENUM", - "name": "StockAvailability", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductStockFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publishedFrom", - "description": "Filter by the publication date. \n\nAdded in Saleor 3.8.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isAvailable", - "description": "Filter by availability for purchase. \n\nAdded in Saleor 3.8.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableFrom", - "description": "Filter by the date of availability for purchase. \n\nAdded in Saleor 3.8.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isVisibleInListing", - "description": "Filter by visibility in product listings. \n\nAdded in Saleor 3.8.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "PriceRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimalPrice", - "description": "Filter by the lowest variant price after discounts.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PriceRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": "Filter by when was the most recent update.", - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypes", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": "Filter on whether product is a gift card or not.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasPreorderedVariants", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Specifies the channel by which the data should be filtered. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductImage", - "description": "Represents a product image.", - "fields": [ - { - "name": "id", - "description": "The ID of the image.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "alt", - "description": "The alt text of the image.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortOrder", - "description": "The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": null, - "args": [ - { - "name": "size", - "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "ThumbnailFormatEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "attributes", - "description": "List of attributes.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "ID of the product's category.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeTaxes", - "description": "Determine if taxes are being charged for the product. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": "List of IDs of collections that the product belongs to.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Product description.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Product name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Product slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCode", - "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seo", - "description": "Search engine optimization fields.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SeoInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": "Weight of the Product.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rating", - "description": "Defines the product rating value.", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the product metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the product private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMedia", - "description": "Represents a product media.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortOrder", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "alt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductMediaType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oembedData", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": null, - "args": [ - { - "name": "size", - "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "ThumbnailFormatEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productId", - "description": "Product id the media refers to.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaBulkDelete", - "description": "Deletes product media. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaCreate", - "description": "Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "media", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductMediaCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "alt", - "description": "Alt text for a product media.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "image", - "description": "Represents an image file in a multipart request.", - "type": { - "kind": "SCALAR", - "name": "Upload", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "ID of an product.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mediaUrl", - "description": "Represents an URL to an external media.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaCreated", - "description": "Event sent when new product media is created.\n\nAdded in Saleor 3.12.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productMedia", - "description": "The product media the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaDelete", - "description": "Deletes a product media. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "media", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaDeleted", - "description": "Event sent when product media is deleted.\n\nAdded in Saleor 3.12.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productMedia", - "description": "The product media the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaReorder", - "description": "Changes ordering of the product media. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "media", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductMediaType", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "IMAGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VIDEO", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaUpdate", - "description": "Updates a product media. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "media", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductMediaUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "alt", - "description": "Alt text for a product media.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMediaUpdated", - "description": "Event sent when product media is updated.\n\nAdded in Saleor 3.12.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productMedia", - "description": "The product media the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductMetadataUpdated", - "description": "Event sent when product metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "The product the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "The category of the product.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductOrder", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Specifies the channel in which to sort the data.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributeId", - "description": "Sort product by the selected attribute's values.\nNote: this doesn't take translations into account yet.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort products by the selected field.", - "type": { - "kind": "ENUM", - "name": "ProductOrderField", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductOrderField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort products by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RANK", - "description": "Sort products by rank. Note: This option is available only with the `search` filter.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRICE", - "description": "Sort products by price.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MINIMAL_PRICE", - "description": "Sort products by a minimal price of a product's variant.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAST_MODIFIED", - "description": "Sort products by update date.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DATE", - "description": "Sort products by update date.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TYPE", - "description": "Sort products by type.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PUBLISHED", - "description": "Sort products by publication status.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PUBLICATION_DATE", - "description": "Sort products by publication date.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PUBLISHED_AT", - "description": "Sort products by publication date.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAST_MODIFIED_AT", - "description": "Sort products by update date.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION", - "description": "Sort products by collection. Note: This option is available only for the `Collection.products` query.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RATING", - "description": "Sort products by rating.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT", - "description": "Sort products by creation date.\n\nAdded in Saleor 3.8.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductPricingInfo", - "description": "Represents availability of a product in the storefront.", - "fields": [ - { - "name": "onSale", - "description": "Whether it is in sale or not.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discount", - "description": "The discount amount if in sale (null otherwise).", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountLocalCurrency", - "description": "The discount amount in the local currency.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "priceRange", - "description": "The discounted price range of the product variants.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoneyRange", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "priceRangeUndiscounted", - "description": "The undiscounted price range of the product variants.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoneyRange", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "priceRangeLocalCurrency", - "description": "The discounted price range of the product variants in the local currency.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoneyRange", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayGrossPrices", - "description": "Determines whether this product's price displayed in a storefront should include taxes.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductReorderAttributeValues", - "description": "Reorder product attribute values. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "product", - "description": "Product from which attribute values are reordered.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductStockFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "warehouseIds", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "IntRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the product.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Description of the product.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - }, - { - "name": "translation", - "description": "Returns translated product fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for product.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "Represents an individual item for sale in the storefront.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - }, - { - "name": "attributeValues", - "description": "List of product attribute values that can be translated.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeValueTranslatableContent", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTranslate", - "description": "Creates/updates translations for a product. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoTitle", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Translated description of the product.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "descriptionJson", - "description": "Translated description of the product.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `description` field instead." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductType", - "description": "Represents a type of product. It defines what attributes are available to products of this type.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasVariants", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isShippingRequired", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDigital", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Weight", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "kind", - "description": "The product type kind.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductTypeKindEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of products of this type.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductCountableConnection", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter." - }, - { - "name": "taxType", - "description": "A type of tax. Assigned by enabled tax gateway", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxType", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `taxClass` field instead." - }, - { - "name": "taxClass", - "description": "Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantAttributes", - "description": "Variant attributes of that product type.", - "args": [ - { - "name": "variantSelection", - "description": "Define scope of returned attributes.", - "type": { - "kind": "ENUM", - "name": "VariantAttributeScope", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead." - }, - { - "name": "assignedVariantAttributes", - "description": "Variant attributes of that product type with attached variant selection.\n\nAdded in Saleor 3.1.", - "args": [ - { - "name": "variantSelection", - "description": "Define scope of returned attributes.", - "type": { - "kind": "ENUM", - "name": "VariantAttributeScope", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AssignedVariantAttribute", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productAttributes", - "description": "Product attributes of that product type.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableAttributes", - "description": "List of attributes which can be assigned to this product type.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "filter", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeWhereInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTypeBulkDelete", - "description": "Deletes product types. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductTypeConfigurable", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CONFIGURABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SIMPLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTypeCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductTypeCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTypeCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTypeCreate", - "description": "Creates a new product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTypeDelete", - "description": "Deletes a product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductTypeEnum", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DIGITAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPABLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductTypeFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "configurable", - "description": null, - "type": { - "kind": "ENUM", - "name": "ProductTypeConfigurable", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productType", - "description": null, - "type": { - "kind": "ENUM", - "name": "ProductTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "kind", - "description": null, - "type": { - "kind": "ENUM", - "name": "ProductTypeKindEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductTypeInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the product type.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Product type slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "kind", - "description": "The product type kind.", - "type": { - "kind": "ENUM", - "name": "ProductTypeKindEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasVariants", - "description": "Determines if product of this type has multiple variants. This option mainly simplifies product management in the dashboard. There is always at least one variant created under the hood.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productAttributes", - "description": "List of attributes shared among all product variants.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantAttributes", - "description": "List of attributes used to distinguish between different variants of a product.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isShippingRequired", - "description": "Determines if shipping is required for products of this variant.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDigital", - "description": "Determines if products are digital.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": "Weight of the ProductType items.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCode", - "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductTypeKindEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NORMAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTypeReorderAttributes", - "description": "Reorder the attributes of a product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "productType", - "description": "Product type from which attributes are reordered.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductTypeSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort products by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DIGITAL", - "description": "Sort products by type.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_REQUIRED", - "description": "Sort products by shipping.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductTypeSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort product types by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductTypeSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductTypeUpdate", - "description": "Updates an existing product type. \n\nRequires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductUpdate", - "description": "Updates an existing product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductUpdated", - "description": "Event sent when product is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "The product the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "The category of the product.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariant", - "description": "Represents a version of a product such as different size or color.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackInventory", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityLimitPerCustomer", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Weight", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Channel given to retrieve this product variant. Also used by federation gateway to resolve this object in a federated query.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "List of price information in channels for the product.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariantChannelListing", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pricing", - "description": "Lists the storefront variant's pricing, the current price and discounts, only meant for displaying.", - "args": [ - { - "name": "address", - "description": "Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VariantPricingInfo", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes assigned to this variant.", - "args": [ - { - "name": "variantSelection", - "description": "Define scope of returned attributes.", - "type": { - "kind": "ENUM", - "name": "VariantAttributeScope", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "SelectedAttribute", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "margin", - "description": "Gross margin percentage value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityOrdered", - "description": "Total quantity ordered.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "revenue", - "description": "Total revenue generated by a variant in given period of time. Note: this field should be queried using `reportProductSales` query as it uses optimizations suitable for such calculations.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "period", - "description": null, - "type": { - "kind": "ENUM", - "name": "ReportingPeriod", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "images", - "description": "List of images for the product variant.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductImage", - "ofType": null - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `media` field instead." - }, - { - "name": "media", - "description": "List of media for the product variant.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated product variant fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for product variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContent", - "description": "Digital content for the product variant.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "DigitalContent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": "Stocks for the product variant.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.", - "args": [ - { - "name": "address", - "description": "Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryCode", - "description": "Two-letter ISO 3166-1 country code. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead.", - "type": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Stock", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityAvailable", - "description": "Quantity of a product available for sale in one checkout. Field value will be `null` when no `limitQuantityPerCheckout` in global settings has been set, and `productVariant` stocks are not tracked.", - "args": [ - { - "name": "address", - "description": "Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryCode", - "description": "Two-letter ISO 3166-1 country code. When provided, the exact quantity from a warehouse operating in shipping zones that contain this country will be returned. Otherwise, it will return the maximum quantity from all shipping zones. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead.", - "type": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "preorder", - "description": "Preorder data for product variant.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PreorderData", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product. \n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantBackInStock", - "description": "Event sent when product variant is back in stock.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "The product variant the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "Look up a warehouse.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantBulkCreate", - "description": "Creates product variants for a given product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were created.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariants", - "description": "List of the created variants.This field will be removed in Saleor 4.0.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "results", - "description": "List of the created variants.\n\nAdded in Saleor 3.11.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariantBulkResult", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "bulkProductErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BulkProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BulkProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantBulkCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "attributes", - "description": "List of attributes specific to this variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "BulkAttributeValueInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "Stock keeping unit.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Variant name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackInventory", - "description": "Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": "Weight of the Product Variant.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "preorder", - "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PreorderSettingsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityLimitPerCustomer", - "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the product variant metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the product variant private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product variant.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": "Stocks of a product available for sale.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StockInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "List of prices assigned to channels.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantChannelListingAddInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantBulkDelete", - "description": "Deletes product variants. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantBulkError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductVariantBulkErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of attributes IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "List of attribute values IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": "List of warehouse IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": "List of stocks IDs which causes the error.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of channel IDs which causes the error.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "List of channel listings IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductVariantBulkErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ATTRIBUTE_ALREADY_ASSIGNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_CANNOT_BE_ASSIGNED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VARIANTS_DISABLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_PRICE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_PRODUCTS_VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_NOT_ASSIGNED_TO_CHANNEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantBulkResult", - "description": null, - "fields": [ - { - "name": "productVariant", - "description": "Product variant data.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": "List of errors occurred on create attempt.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariantBulkError", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantBulkUpdate", - "description": "Update multiple product variants.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were updated.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "results", - "description": "List of the updated variants.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariantBulkResult", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariantBulkError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantBulkUpdateInput", - "description": "Input fields to update product variants.\n\nAdded in Saleor 3.11.", - "fields": null, - "inputFields": [ - { - "name": "attributes", - "description": "List of attributes specific to this variant.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "BulkAttributeValueInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "Stock keeping unit.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Variant name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackInventory", - "description": "Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": "Weight of the Product Variant.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "preorder", - "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PreorderSettingsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityLimitPerCustomer", - "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the product variant metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the product variant private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product variant.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": "Stocks input.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantStocksUpdateInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "Channel listings input.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantChannelListingUpdateInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of the product variant to update.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantChannelListing", - "description": "Represents product varaint channel listing.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "costPrice", - "description": "Cost price of the variant.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "margin", - "description": "Gross margin percentage value.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "preorderThreshold", - "description": "Preorder variant data.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PreorderThreshold", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantChannelListingAddInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channelId", - "description": "ID of a channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": "Price of the particular variant in channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "costPrice", - "description": "Cost price of the variant in channel.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "preorderThreshold", - "description": "The threshold for preorder variant in channel.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantChannelListingUpdate", - "description": "Manage product variant prices in channels. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "variant", - "description": "An updated product variant instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productChannelListingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductChannelListingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductChannelListingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantChannelListingUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "create", - "description": "List of channels to create variant channel listings.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantChannelListingAddInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update", - "description": "List of channel listings to update.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ChannelListingUpdateInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "remove", - "description": "List of channel listings to remove.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariantCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantCreate", - "description": "Creates a new variant for a product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "attributes", - "description": "List of attributes specific to this variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "Stock keeping unit.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Variant name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackInventory", - "description": "Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": "Weight of the Product Variant.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "preorder", - "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PreorderSettingsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityLimitPerCustomer", - "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the product variant metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the product variant private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product variant.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "Product ID of which type is the variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": "Stocks of a product available for sale.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StockInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantCreated", - "description": "Event sent when new product variant is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "The product variant the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantDelete", - "description": "Deletes a product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantDeleted", - "description": "Event sent when product variant is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "The product variant the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPreorder", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "attributes", - "description": "List of attributes specific to this variant.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AttributeValueInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "Stock keeping unit.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Variant name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackInventory", - "description": "Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "weight", - "description": "Weight of the Product Variant.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "preorder", - "description": "Determines if variant is in preorder.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PreorderSettingsInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityLimitPerCustomer", - "description": "Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Fields required to update the product variant metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Fields required to update the product variant private metadata.\n\nAdded in Saleor 3.8.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this product variant.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantMetadataUpdated", - "description": "Event sent when product variant metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "The product variant the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantOutOfStock", - "description": "Event sent when product variant is out of stock.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "The product variant the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "Look up a warehouse.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantPreorderDeactivate", - "description": "Deactivates product variant preorder. It changes all preorder allocation into regular allocation.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productVariant", - "description": "Product variant with ended preorder.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantReorder", - "description": "Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantReorderAttributeValues", - "description": "Reorder product variant attribute values. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productVariant", - "description": "Product variant from which attribute values are reordered.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantSetDefault", - "description": "Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "product", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ProductVariantSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "LAST_MODIFIED_AT", - "description": "Sort products variants by last modified at.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort productVariants by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProductVariantSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantStockUpdated", - "description": "Event sent when product variant stock is updated.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "The product variant the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "Look up a warehouse.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantStocksCreate", - "description": "Creates stocks for product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productVariant", - "description": "Updated product variant.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "bulkStockErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BulkStockError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BulkStockError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantStocksDelete", - "description": "Delete stocks from product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productVariant", - "description": "Updated product variant.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stockErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StockError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StockError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantStocksUpdate", - "description": "Update stocks for product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productVariant", - "description": "Updated product variant.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "bulkStockErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BulkStockError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BulkStockError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProductVariantStocksUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "create", - "description": "List of warehouses to create stocks.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StockInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update", - "description": "List of stocks to update.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "StockUpdateInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "remove", - "description": "List of stocks to remove.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated product variant fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for product variant.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "Represents a version of a product such as different size or color.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - }, - { - "name": "attributeValues", - "description": "List of product variant attribute values that can be translated.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeValueTranslatableContent", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantTranslate", - "description": "Creates/updates translations for a product variant. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantUpdate", - "description": "Updates an existing variant for product. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantUpdated", - "description": "Event sent when product variant is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "The product variant the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "PublishableChannelListingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channelId", - "description": "ID of a channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPublished", - "description": "Determines if object is visible to customers.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publicationDate", - "description": "Publication date. ISO 8601 standard. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead.", - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "publishedAt", - "description": "Publication date time. ISO 8601 standard.\n\nAdded in Saleor 3.3.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Query", - "description": null, - "fields": [ - { - "name": "webhook", - "description": "Look up a webhook by ID. Requires one of the following permissions: MANAGE_APPS, OWNER.", - "args": [ - { - "name": "id", - "description": "ID of the webhook.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Webhook", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhookEvents", - "description": "List of all available webhook events.\n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookEvent", - "ofType": null - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types." - }, - { - "name": "webhookSamplePayload", - "description": "Retrieve a sample payload for a given webhook event based on real data. It can be useful for some integrations where sample payload is required.", - "args": [ - { - "name": "eventType", - "description": "Name of the requested event type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookSampleEventTypeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "Look up a warehouse by ID.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS, MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of a warehouse.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of a warehouse. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": "List of warehouses.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS, MANAGE_SHIPPING.", - "args": [ - { - "name": "filter", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "WarehouseFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "WarehouseSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "WarehouseCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translations", - "description": "Returns a list of all translatable items of a given kind.\n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "kind", - "description": "Kind of objects to retrieve.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TranslatableKinds", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TranslatableItemConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Lookup a translatable item by ID.\n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "args": [ - { - "name": "id", - "description": "ID of the object to retrieve.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "kind", - "description": "Kind of the object to retrieve.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TranslatableKinds", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "UNION", - "name": "TranslatableItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxConfiguration", - "description": "Look up a tax configuration.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [ - { - "name": "id", - "description": "ID of a tax configuration.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxConfiguration", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxConfigurations", - "description": "List of tax configurations.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [ - { - "name": "filter", - "description": "Filtering options for tax configurations.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TaxConfigurationFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxConfigurationCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "Look up a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [ - { - "name": "id", - "description": "ID of a tax class.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClasses", - "description": "List of tax classes.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [ - { - "name": "sortBy", - "description": "Sort tax classes.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TaxClassSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for tax classes.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TaxClassFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxClassCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCountryConfiguration", - "description": "Tax class rates grouped by country.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [ - { - "name": "countryCode", - "description": "Country for which to return tax class rates.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxCountryConfiguration", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCountryConfigurations", - "description": "\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxCountryConfiguration", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stock", - "description": "Look up a stock by ID\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of an warehouse", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Stock", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stocks", - "description": "List of stocks.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "filter", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StockFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StockCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shop", - "description": "Return information about the shop.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Shop", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderSettings", - "description": "Order related settings from site settings. Returns `orderSettings` for the first `channel` in alphabetical order.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrderSettings", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `channel` query to fetch the `orderSettings` field instead." - }, - { - "name": "giftCardSettings", - "description": "Gift card related settings from site settings.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GiftCardSettings", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "Look up a shipping zone by ID.\n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "id", - "description": "ID of the shipping zone.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZones", - "description": "List of the shop's shipping zones.\n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "filter", - "description": "Filtering options for shipping zones.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ShippingZoneFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZoneCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContent", - "description": "Look up digital content by ID.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of the digital content.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DigitalContent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digitalContents", - "description": "List of digital content.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "DigitalContentCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categories", - "description": "List of the shop's categories.", - "args": [ - { - "name": "filter", - "description": "Filtering options for categories.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CategoryFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort categories.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CategorySortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "level", - "description": "Filter categories by the nesting level in the category tree.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "category", - "description": "Look up a category by ID or slug.", - "args": [ - { - "name": "id", - "description": "ID of the category.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the category", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collection", - "description": "Look up a collection by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of the collection.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the category", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": "List of the shop's collections. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for collections.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CollectionFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort collections.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CollectionSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "product", - "description": "Look up a product by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of the product.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the product.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of the product. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of the shop's products. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for products.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort products.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductOrder", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productType", - "description": "Look up a product type by ID.", - "args": [ - { - "name": "id", - "description": "ID of the product type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productTypes", - "description": "List of the shop's product types.", - "args": [ - { - "name": "filter", - "description": "Filtering options for product types.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductTypeFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort product types.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductTypeSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductTypeCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": "Look up a product variant by ID or SKU. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of the product variant.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sku", - "description": "Sku of the product variant.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of the product. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariants", - "description": "List of product variants. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.", - "args": [ - { - "name": "ids", - "description": "Filter product variants by given IDs.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for product variant.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort products variants.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ProductVariantSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reportProductSales", - "description": "List of top selling products.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "period", - "description": "Span of time.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ReportingPeriod", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": "Look up a payment by ID.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the payment.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payments", - "description": "List of payments.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for payments.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PaymentFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PaymentCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "Look up a transaction by ID.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: HANDLE_PAYMENTS.", - "args": [ - { - "name": "id", - "description": "ID of a transaction.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "page", - "description": "Look up a page by ID or slug.", - "args": [ - { - "name": "id", - "description": "ID of the page.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "The slug of the page.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Page", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pages", - "description": "List of the shop's pages.", - "args": [ - { - "name": "sortBy", - "description": "Sort pages.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PageSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for pages.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PageFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageType", - "description": "Look up a page type by ID.", - "args": [ - { - "name": "id", - "description": "ID of the page type.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageTypes", - "description": "List of the page types.", - "args": [ - { - "name": "sortBy", - "description": "Sort page types.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PageTypeSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for page types.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PageTypeFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PageTypeCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "homepageEvents", - "description": "List of activity events to display on homepage (at the moment it only contains order-events).\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderEventCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "Look up an order by ID or external reference.", - "args": [ - { - "name": "id", - "description": "ID of an order.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of an order. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orders", - "description": "List of orders.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "sortBy", - "description": "Sort orders.", - "type": { - "kind": "INPUT_OBJECT", - "name": "OrderSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for orders.", - "type": { - "kind": "INPUT_OBJECT", - "name": "OrderFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "draftOrders", - "description": "List of draft orders.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "sortBy", - "description": "Sort draft orders.", - "type": { - "kind": "INPUT_OBJECT", - "name": "OrderSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for draft orders.", - "type": { - "kind": "INPUT_OBJECT", - "name": "OrderDraftFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ordersTotal", - "description": "Return the total sales amount from a specific period.\n\nRequires one of the following permissions: MANAGE_ORDERS.", - "args": [ - { - "name": "period", - "description": "A period of time.", - "type": { - "kind": "ENUM", - "name": "ReportingPeriod", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderByToken", - "description": "Look up an order by token.", - "args": [ - { - "name": "token", - "description": "The order's token.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - }, - { - "name": "menu", - "description": "Look up a navigation menu by ID or name.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of the menu.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "The menu's name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "The menu's slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Menu", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menus", - "description": "List of the storefront's menus.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort menus.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MenuSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for menus. \n\n`slug`: This field will be removed in Saleor 4.0. Use `slugs` instead.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MenuFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItem", - "description": "Look up a menu item by ID.", - "args": [ - { - "name": "id", - "description": "ID of the menu item.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "menuItems", - "description": "List of the storefronts's menu items.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort menus items.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MenuItemSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for menu items.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MenuItemFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MenuItemCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCard", - "description": "Look up a gift card by ID.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "id", - "description": "ID of the gift card.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCard", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCards", - "description": "List of gift cards.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "sortBy", - "description": "Sort gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "GiftCardSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for gift cards.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "GiftCardFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardCurrencies", - "description": "List of gift card currencies.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCardTags", - "description": "List of gift card tags.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_GIFT_CARD.", - "args": [ - { - "name": "filter", - "description": "Filtering options for gift card tags.", - "type": { - "kind": "INPUT_OBJECT", - "name": "GiftCardTagFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardTagCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plugin", - "description": "Look up a plugin by ID.\n\nRequires one of the following permissions: MANAGE_PLUGINS.", - "args": [ - { - "name": "id", - "description": "ID of the plugin.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Plugin", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "plugins", - "description": "List of plugins.\n\nRequires one of the following permissions: MANAGE_PLUGINS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for plugins.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PluginFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort plugins.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PluginSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "PluginCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": "Look up a sale by ID.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of the sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sales", - "description": "List of the shop's sales.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for sales.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SaleFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort sales.", - "type": { - "kind": "INPUT_OBJECT", - "name": "SaleSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "Search sales by name, value or type. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": "Look up a voucher by ID.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "id", - "description": "ID of the voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "vouchers", - "description": "List of the shop's vouchers.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for vouchers.", - "type": { - "kind": "INPUT_OBJECT", - "name": "VoucherFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort voucher.", - "type": { - "kind": "INPUT_OBJECT", - "name": "VoucherSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "Search vouchers by name or code. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exportFile", - "description": "Look up a export file by ID.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "id", - "description": "ID of the export file job.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExportFile", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exportFiles", - "description": "List of export files.\n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for export files.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ExportFileFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort export files.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ExportFileSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ExportFileCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxTypes", - "description": "List of all tax rates available from tax gateway.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxType", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": "Look up a checkout by token and slug of channel.", - "args": [ - { - "name": "id", - "description": "The checkout's ID.\n\nAdded in Saleor 3.4.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": "The checkout's token.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead.", - "type": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkouts", - "description": "List of checkouts.\n\nRequires one of the following permissions: MANAGE_CHECKOUTS.", - "args": [ - { - "name": "sortBy", - "description": "Sort checkouts.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CheckoutSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for checkouts.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CheckoutFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkoutLines", - "description": "List of checkout lines.\n\nRequires one of the following permissions: MANAGE_CHECKOUTS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutLineCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Look up a channel by ID or slug.", - "args": [ - { - "name": "id", - "description": "ID of the channel.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the channel.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of all channels.\n\nRequires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attributes", - "description": "List of the shop's attributes.", - "args": [ - { - "name": "filter", - "description": "Filtering options for attributes.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "Filtering options for attributes.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeWhereInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": "Search attributes.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sorting options for attributes.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AttributeSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AttributeCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attribute", - "description": "Look up an attribute by ID, slug or external reference.", - "args": [ - { - "name": "id", - "description": "ID of the attribute.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "Slug of the attribute.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of the attribute. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appsInstallations", - "description": "List of all apps installations\n\nRequires one of the following permissions: MANAGE_APPS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppInstallation", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "apps", - "description": "List of the apps.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, MANAGE_APPS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for apps.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AppFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort apps.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AppSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "Look up an app by ID. If ID is not provided, return the currently authenticated app.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER AUTHENTICATED_APP. The authenticated app has access to its resources. Fetching different apps requires MANAGE_APPS permission.", - "args": [ - { - "name": "id", - "description": "ID of the app.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appExtensions", - "description": "List of all extensions.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [ - { - "name": "filter", - "description": "Filtering options for apps extensions.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AppExtensionFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppExtensionCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "appExtension", - "description": "Look up an app extension by ID.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [ - { - "name": "id", - "description": "ID of the app extension.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AppExtension", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressValidationRules", - "description": "Returns address validation rules.", - "args": [ - { - "name": "countryCode", - "description": "Two-letter ISO 3166-1 country code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryArea", - "description": "Designation of a region, province or state.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "city", - "description": "City or a town name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cityArea", - "description": "Sublocality like a district.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "AddressValidationData", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": "Look up an address by ID.", - "args": [ - { - "name": "id", - "description": "ID of an address.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customers", - "description": "List of the shop's customers.\n\nRequires one of the following permissions: MANAGE_ORDERS, MANAGE_USERS.", - "args": [ - { - "name": "filter", - "description": "Filtering options for customers.", - "type": { - "kind": "INPUT_OBJECT", - "name": "CustomerFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort customers.", - "type": { - "kind": "INPUT_OBJECT", - "name": "UserSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "UserCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroups", - "description": "List of permission groups.\n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "filter", - "description": "Filtering options for permission groups.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PermissionGroupFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort permission groups.", - "type": { - "kind": "INPUT_OBJECT", - "name": "PermissionGroupSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GroupCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroup", - "description": "Look up permission group by ID.\n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "id", - "description": "ID of the group.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "me", - "description": "Return the currently authenticated user.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffUsers", - "description": "List of the shop's staff users.\n\nRequires one of the following permissions: MANAGE_STAFF.", - "args": [ - { - "name": "filter", - "description": "Filtering options for staff users.", - "type": { - "kind": "INPUT_OBJECT", - "name": "StaffUserInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort staff users.", - "type": { - "kind": "INPUT_OBJECT", - "name": "UserSortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "UserCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "Look up a user by ID or email address.\n\nRequires one of the following permissions: MANAGE_STAFF, MANAGE_USERS, MANAGE_ORDERS.", - "args": [ - { - "name": "id", - "description": "ID of the user.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Email address of the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of the user. \n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_entities", - "description": null, - "args": [ - { - "name": "representations", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "_Any", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "UNION", - "name": "_Entity", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_service", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "_Service", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ReducedRate", - "description": "Represents a reduced VAT rate for a particular type of goods.", - "fields": [ - { - "name": "rate", - "description": "Reduced VAT rate in percent.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rateType", - "description": "A type of goods.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "RefreshToken", - "description": "Refresh JWT token. Mutation tries to take refreshToken from the input.If it fails it will try to take refreshToken from the http-only cookie -refreshToken. csrfToken is required when refreshToken is provided as a cookie.", - "fields": [ - { - "name": "token", - "description": "JWT token, required to authenticate.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "A user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ReorderInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "id", - "description": "The ID of the item to move.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortOrder", - "description": "The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ReportingPeriod", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "TODAY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "THIS_MONTH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "RequestEmailChange", - "description": "Request email change of the logged in user. \n\nRequires one of the following permissions: AUTHENTICATED_USER.", - "fields": [ - { - "name": "user", - "description": "A user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "RequestPasswordReset", - "description": "Sends an email with the account password modification link.", - "fields": [ - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Sale", - "description": "Sales allow creating discounts for categories, collections or products and are visible to all the customers.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "SaleType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startDate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endDate", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categories", - "description": "List of categories this sale applies to.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": "List of collections this sale applies to.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of products this sale applies to.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "List of product variants this sale applies to.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated sale fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "List of channels available for the sale.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "SaleChannelListing", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountValue", - "description": "Sale value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currency", - "description": "Currency code for sale.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleAddCatalogues", - "description": "Adds products, categories, collections to a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "sale", - "description": "Sale of which catalogue IDs will be modified.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleBulkDelete", - "description": "Deletes sales. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleChannelListing", - "description": "Represents sale channel listing.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountValue", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currency", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SaleChannelListingAddInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channelId", - "description": "ID of a channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountValue", - "description": "The value of the discount.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SaleChannelListingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "addChannels", - "description": "List of channels to which the sale should be assigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "SaleChannelListingAddInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeChannels", - "description": "List of channels from which the sale should be unassigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleChannelListingUpdate", - "description": "Manage sale's availability in channels. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "sale", - "description": "An updated sale instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "SaleCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleCreate", - "description": "Creates a new sale. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleCreated", - "description": "Event sent when new sale is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": "The sale the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleDelete", - "description": "Deletes a sale. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleDeleted", - "description": "Event sent when sale is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": "The sale the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SaleFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "status", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "DiscountStatusEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "saleType", - "description": null, - "type": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "started", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SaleInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Voucher name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Fixed or percentage.", - "type": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Value of the voucher.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "Products related to the discount.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categories", - "description": "Categories related to the discount.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": "Collections related to the discount.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startDate", - "description": "Start date of the voucher in ISO 8601 format.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endDate", - "description": "End date of the voucher in ISO 8601 format.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleRemoveCatalogues", - "description": "Removes products, categories, collections from a sale. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "sale", - "description": "Sale of which catalogue IDs will be modified.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "SaleSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort sales by name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "START_DATE", - "description": "Sort sales by start date.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "END_DATE", - "description": "Sort sales by end date.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VALUE", - "description": "Sort sales by value.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TYPE", - "description": "Sort sales by type.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT", - "description": "Sort sales by created at.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAST_MODIFIED_AT", - "description": "Sort sales by last modified at.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SaleSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Specifies the channel in which to sort the data.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort sales by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "SaleSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleToggle", - "description": "The event informs about the start or end of the sale.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": "The sale the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated sale fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for sale.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "SaleTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": "Sales allow creating discounts for categories, collections or products and are visible to all the customers.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleTranslate", - "description": "Creates/updates translations for a sale. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "SaleType", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "FIXED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERCENTAGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleUpdate", - "description": "Updates a sale. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SaleUpdated", - "description": "Event sent when sale is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sale", - "description": "The sale the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Sale", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SelectedAttribute", - "description": "Represents a custom attribute.", - "fields": [ - { - "name": "attribute", - "description": "Name of an attribute displayed in the interface.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Attribute", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "values", - "description": "Values of an attribute.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AttributeValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SeoInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "title", - "description": "SEO title.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "SEO description.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SetPassword", - "description": "Sets the user's password from the token sent by email using the RequestPasswordReset mutation.", - "fields": [ - { - "name": "token", - "description": "JWT token, required to authenticate.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "refreshToken", - "description": "JWT refresh token, required to re-generate access token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "csrfToken", - "description": "CSRF token required to re-generate access token.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "A user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ShippingErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": "List of warehouse IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of channels IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ShippingErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MAX_LESS_THAN_MIN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingListMethodsForCheckout", - "description": "List shipping methods for checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": "The checkout the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethods", - "description": "Shipping methods that can be used with this checkout.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethod", - "description": "Shipping methods that can be used as means of shipping for orders and checkouts.", - "fields": [ - { - "name": "id", - "description": "Unique ID of ShippingMethod available for Order.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Type of the shipping method.", - "args": [], - "type": { - "kind": "ENUM", - "name": "ShippingMethodTypeEnum", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - }, - { - "name": "name", - "description": "Shipping method name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Shipping method description.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumDeliveryDays", - "description": "Maximum delivery days for this shipping method.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumDeliveryDays", - "description": "Minimum delivery days for this shipping method.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumOrderWeight", - "description": "Maximum order weight for this shipping method.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Weight", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - }, - { - "name": "minimumOrderWeight", - "description": "Minimum order weight for this shipping method.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Weight", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0." - }, - { - "name": "translation", - "description": "Returns translated shipping method fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for shipping method.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": "The price of selected shipping method.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumOrderPrice", - "description": "Maximum order price for this shipping method.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumOrderPrice", - "description": "Minimal order price for this shipping method.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "active", - "description": "Describes if this shipping method is active and can be selected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Message connected to this shipping method.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodChannelListing", - "description": "Represents shipping method channel listing.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumOrderPrice", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumOrderPrice", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingMethodChannelListingAddInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channelId", - "description": "ID of a channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": "Shipping price of the shipping method in this channel.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumOrderPrice", - "description": "Minimum order price to use this shipping method.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumOrderPrice", - "description": "Maximum order price to use this shipping method.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingMethodChannelListingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "addChannels", - "description": "List of channels to which the shipping method should be assigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingMethodChannelListingAddInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeChannels", - "description": "List of channels from which the shipping method should be unassigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodChannelListingUpdate", - "description": "Manage shipping method's availability in channels. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingMethod", - "description": "An updated shipping method instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodPostalCodeRule", - "description": "Represents shipping method postal code rule.", - "fields": [ - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": "Start address range.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "end", - "description": "End address range.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inclusionType", - "description": "Inclusion type of the postal code rule.", - "args": [], - "type": { - "kind": "ENUM", - "name": "PostalCodeRuleInclusionTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the shipping method.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated shipping method fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for shipping method.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": "Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers.\n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Translated description of the shipping method.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodType", - "description": "Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers.", - "fields": [ - { - "name": "id", - "description": "Shipping method ID.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Shipping method name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Shipping method description.\n\nRich text format. For reference see https://editorjs.io/", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Type of the shipping method.", - "args": [], - "type": { - "kind": "ENUM", - "name": "ShippingMethodTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated shipping method fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for shipping method.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "List of channels available for the method.\n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethodChannelListing", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumOrderPrice", - "description": "The price of the cheapest variant (including discounts).", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumOrderPrice", - "description": "The price of the cheapest variant (including discounts).", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "postalCodeRules", - "description": "Postal code ranges rule of exclusion or inclusion of the shipping method.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethodPostalCodeRule", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "excludedProducts", - "description": "List of excluded products for the shipping method.\n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumOrderWeight", - "description": "Minimum order weight to use this shipping method.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Weight", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumOrderWeight", - "description": "Maximum order weight to use this shipping method.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Weight", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumDeliveryDays", - "description": "Maximum number of days for delivery.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumDeliveryDays", - "description": "Minimal number of days for delivery.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "Tax class assigned to this shipping method.\n\nRequires one of the following permissions: MANAGE_TAXES, MANAGE_SHIPPING.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ShippingMethodTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PRICE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WEIGHT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodsPerCountry", - "description": "List of shipping methods available for the country.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "countryCode", - "description": "The country code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethods", - "description": "List of available shipping methods.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingPostalCodeRulesCreateInputRange", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "start", - "description": "Start range of the postal code.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "end", - "description": "End range of the postal code.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceBulkDelete", - "description": "Deletes shipping prices. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceCreate", - "description": "Creates a new shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingZone", - "description": "A shipping zone to which the shipping method belongs.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceCreated", - "description": "Event sent when new shipping price is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": "The shipping method the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "The shipping zone the shipping method belongs to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceDelete", - "description": "Deletes a shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingMethod", - "description": "A shipping method to delete.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "A shipping zone to which the shipping method belongs.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceDeleted", - "description": "Event sent when shipping price is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": "The shipping method the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "The shipping zone the shipping method belongs to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceExcludeProducts", - "description": "Exclude products from shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingMethod", - "description": "A shipping method with new list of excluded products.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingPriceExcludeProductsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "products", - "description": "List of products which will be excluded.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingPriceInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the shipping method.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Shipping method description.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumOrderWeight", - "description": "Minimum order weight to use this shipping method.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumOrderWeight", - "description": "Maximum order weight to use this shipping method.", - "type": { - "kind": "SCALAR", - "name": "WeightScalar", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maximumDeliveryDays", - "description": "Maximum number of days for delivery.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minimumDeliveryDays", - "description": "Minimal number of days for delivery.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Shipping type: price or weight based.", - "type": { - "kind": "ENUM", - "name": "ShippingMethodTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "Shipping zone this method belongs to.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addPostalCodeRules", - "description": "Postal code rules to add.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ShippingPostalCodeRulesCreateInputRange", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deletePostalCodeRules", - "description": "Postal code rules to delete.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inclusionType", - "description": "Inclusion type for currently assigned postal code rules.", - "type": { - "kind": "ENUM", - "name": "PostalCodeRuleInclusionTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "ID of a tax class to assign to this shipping method. If not provided, the default tax class will be used.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceRemoveProductFromExclude", - "description": "Remove product from excluded list for shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingMethod", - "description": "A shipping method with new list of excluded products.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceTranslate", - "description": "Creates/updates translations for a shipping method. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingPriceTranslationInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Translated shipping method description.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceUpdate", - "description": "Updates a new shipping price. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingZone", - "description": "A shipping zone to which the shipping method belongs.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingPriceUpdated", - "description": "Event sent when shipping price is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethod", - "description": "The shipping method the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "The shipping zone the shipping method belongs to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZone", - "description": "Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "default", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "priceRange", - "description": "Lowest and highest prices for the shipping.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "MoneyRange", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "List of countries available for the method.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingMethods", - "description": "List of shipping methods available for orders shipped to countries within this shipping zone.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethodType", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouses", - "description": "List of warehouses for shipping zone.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": "List of channels for shipping zone.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of a shipping zone.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneBulkDelete", - "description": "Deletes shipping zones. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingZoneCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneCreate", - "description": "Creates a new shipping zone. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingZoneCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Shipping zone's name. Visible only to the staff.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the shipping zone.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "List of countries in this shipping zone.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "default", - "description": "Default shipping zone will be used for countries not covered by other zones.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addWarehouses", - "description": "List of warehouses to assign to a shipping zone", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addChannels", - "description": "List of channels to assign to the shipping zone.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneCreated", - "description": "Event sent when new shipping zone is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "The shipping zone the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneDelete", - "description": "Deletes a shipping zone. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneDeleted", - "description": "Event sent when shipping zone is deleted.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "The shipping zone the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingZoneFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneMetadataUpdated", - "description": "Event sent when shipping zone metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "The shipping zone the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneUpdate", - "description": "Updates a new shipping zone. \n\nRequires one of the following permissions: MANAGE_SHIPPING.", - "fields": [ - { - "name": "shippingErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShippingZoneUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Shipping zone's name. Visible only to the staff.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the shipping zone.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "List of countries in this shipping zone.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "default", - "description": "Default shipping zone will be used for countries not covered by other zones.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addWarehouses", - "description": "List of warehouses to assign to a shipping zone", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addChannels", - "description": "List of channels to assign to the shipping zone.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeWarehouses", - "description": "List of warehouses to unassign from a shipping zone", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeChannels", - "description": "List of channels to unassign from the shipping zone.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShippingZoneUpdated", - "description": "Event sent when shipping zone is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZone", - "description": "The shipping zone the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShippingZone", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Shop", - "description": "Represents a shop resource containing general shop data and configuration.", - "fields": [ - { - "name": "availablePaymentGateways", - "description": "List of available payment gateways.", - "args": [ - { - "name": "currency", - "description": "A currency for which gateways will be returned. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `channel` argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentGateway", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableExternalAuthentications", - "description": "List of available external authentications.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExternalAuthentication", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableShippingMethods", - "description": "Shipping methods that are available for the shop.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": "Address for which available shipping methods should be returned.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingMethod", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelCurrencies", - "description": "List of all currencies supported by shop's channels.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "List of countries available in the shop.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", - "type": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Filtering options for countries", - "type": { - "kind": "INPUT_OBJECT", - "name": "CountryFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultCountry", - "description": "Shop's default country.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultMailSenderName", - "description": "Default shop's email sender's name.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultMailSenderAddress", - "description": "Default shop's email sender's address.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Shop's description.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "domain", - "description": "Shop's domain data.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Domain", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languages", - "description": "List of the shops's supported languages.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Shop's name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of available permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Permission", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phonePrefixes", - "description": "List of possible phone prefixes.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "headerText", - "description": "Header text.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillmentAutoApprove", - "description": "Automatically approve all new fulfillments.\n\nAdded in Saleor 3.1.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillmentAllowUnpaid", - "description": "Allow to approve fulfillments which are unpaid.\n\nAdded in Saleor 3.1.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackInventoryByDefault", - "description": "Enable inventory tracking.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultWeightUnit", - "description": "Default weight unit.", - "args": [], - "type": { - "kind": "ENUM", - "name": "WeightUnitsEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated shop fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for shop.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ShopTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "automaticFulfillmentDigitalProducts", - "description": "Enable automatic fulfillment for all digital products.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reserveStockDurationAnonymousUser", - "description": "Default number of minutes stock will be reserved for anonymous checkout or null when stock reservation is disabled.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reserveStockDurationAuthenticatedUser", - "description": "Default number of minutes stock will be reserved for authenticated checkout or null when stock reservation is disabled.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limitQuantityPerCheckout", - "description": "Default number of maximum line quantity in single checkout (per single checkout line).\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultDigitalMaxDownloads", - "description": "Default number of max downloads per digital content URL.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultDigitalUrlValidDays", - "description": "Default number of days which digital content URL will be valid.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "companyAddress", - "description": "Company address.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerSetPasswordUrl", - "description": "URL of a view where customers can set their password.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffNotificationRecipients", - "description": "List of staff notification recipients.\n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffNotificationRecipient", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limits", - "description": "Resource limitations and current usage if any set for a shop\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LimitInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor API version.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "schemaVersion", - "description": "Minor Saleor API version.\n\nAdded in Saleor 3.5.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "includeTaxesInPrices", - "description": "Include taxes in prices.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration.pricesEnteredWithTax` to determine whether prices are entered with tax." - }, - { - "name": "displayGrossPrices", - "description": "Display prices with tax in store.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to determine whether to display gross or net prices." - }, - { - "name": "chargeTaxesOnShipping", - "description": "Charge taxes on shipping.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `ShippingMethodType.taxClass` to determine whether taxes are calculated for shipping methods; if a tax class is set, the taxes will be calculated, otherwise no tax rate will be applied." - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShopAddressUpdate", - "description": "Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "fields": [ - { - "name": "shop", - "description": "Updated shop.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Shop", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shopErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShopDomainUpdate", - "description": "Updates site domain of the shop. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "fields": [ - { - "name": "shop", - "description": "Updated shop.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Shop", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shopErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShopError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ShopErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ShopErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_FETCH_TAX_RATES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShopFetchTaxRates", - "description": "Fetch tax rates. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "fields": [ - { - "name": "shop", - "description": "Updated shop.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Shop", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shopErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShopSettingsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "headerText", - "description": "Header text.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "SEO description.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trackInventoryByDefault", - "description": "Enable inventory tracking.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultWeightUnit", - "description": "Default weight unit.", - "type": { - "kind": "ENUM", - "name": "WeightUnitsEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "automaticFulfillmentDigitalProducts", - "description": "Enable automatic fulfillment for all digital products.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillmentAutoApprove", - "description": "Enable automatic approval of all new fulfillments.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fulfillmentAllowUnpaid", - "description": "Enable ability to approve fulfillments which are unpaid.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultDigitalMaxDownloads", - "description": "Default number of max downloads per digital content URL.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultDigitalUrlValidDays", - "description": "Default number of days which digital content URL will be valid.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultMailSenderName", - "description": "Default email sender's name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultMailSenderAddress", - "description": "Default email sender's address.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customerSetPasswordUrl", - "description": "URL of a view where customers can set their password.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reserveStockDurationAnonymousUser", - "description": "Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reserveStockDurationAuthenticatedUser", - "description": "Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limitQuantityPerCheckout", - "description": "Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "includeTaxesInPrices", - "description": "Include taxes in prices. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayGrossPrices", - "description": "Display prices with tax in store. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeTaxesOnShipping", - "description": "Charge taxes on shipping. \n\nDEPRECATED: this field will be removed in Saleor 4.0. To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShopSettingsTranslate", - "description": "Creates/updates translations for shop settings. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "shop", - "description": "Updated shop settings.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Shop", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShopSettingsTranslationInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "headerText", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShopSettingsUpdate", - "description": "Updates shop settings. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "fields": [ - { - "name": "shop", - "description": "Updated shop.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Shop", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shopErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShopTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "headerText", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SiteDomainInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "domain", - "description": "Domain name for shop.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Shop site name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffBulkDelete", - "description": "Deletes staff users. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffCreate", - "description": "Creates a new staff user. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "fields": [ - { - "name": "staffErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StaffCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "firstName", - "description": "Given name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": "Family name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "The unique email address of the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "User account is active.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "note", - "description": "A note about the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addGroups", - "description": "List of permission group IDs to which user should be assigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "URL of a view where users should be redirected to set the password. URL in RFC 1808 format.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffCreated", - "description": "Event sent when new staff user is created.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "The user the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffDelete", - "description": "Deletes a staff user. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "fields": [ - { - "name": "staffErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffDeleted", - "description": "Event sent when staff user is deleted.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "The user the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AccountErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addressType", - "description": "A type of address that causes the error.", - "args": [], - "type": { - "kind": "ENUM", - "name": "AddressTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissions", - "description": "List of permissions which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "groups", - "description": "List of permission group IDs which cause the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "users", - "description": "List of user IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "StaffMemberStatus", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ACTIVE", - "description": "User account has been activated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DEACTIVATED", - "description": "User account has not been activated yet.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffNotificationRecipient", - "description": "Represents a recipient of email notifications send by Saleor, such as notifications about new orders. Notifications can be assigned to staff users or arbitrary email addresses.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "Returns a user subscribed to email notifications.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Returns email address of a user subscribed to email notifications.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "active", - "description": "Determines if a notification active.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffNotificationRecipientCreate", - "description": "Creates a new staff notification recipient. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "fields": [ - { - "name": "shopErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffNotificationRecipient", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "StaffNotificationRecipient", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffNotificationRecipientDelete", - "description": "Delete staff notification recipient. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "fields": [ - { - "name": "shopErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffNotificationRecipient", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "StaffNotificationRecipient", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StaffNotificationRecipientInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "user", - "description": "The ID of the user subscribed to email notifications..", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "Email address of a user subscribed to email notifications.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "active", - "description": "Determines if a notification active.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffNotificationRecipientUpdate", - "description": "Updates a staff notification recipient. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", - "fields": [ - { - "name": "shopErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShopError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "staffNotificationRecipient", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "StaffNotificationRecipient", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffUpdate", - "description": "Updates an existing staff user. Apps are not allowed to perform this mutation. \n\nRequires one of the following permissions: MANAGE_STAFF.", - "fields": [ - { - "name": "staffErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StaffError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StaffUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "firstName", - "description": "Given name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": "Family name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "The unique email address of the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "User account is active.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "note", - "description": "A note about the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addGroups", - "description": "List of permission group IDs to which user should be assigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeGroups", - "description": "List of permission group IDs from which user should be unassigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StaffUpdated", - "description": "Event sent when staff user is updated.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": "The user the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StaffUserInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "status", - "description": null, - "type": { - "kind": "ENUM", - "name": "StaffMemberStatus", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Stock", - "description": "Represents stock.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productVariant", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "Quantity of a product in the warehouse's possession, including the allocated stock that is waiting for shipment.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityAllocated", - "description": "Quantity allocated for orders.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantityReserved", - "description": "Quantity reserved for checkouts.\n\nRequires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "StockAvailability", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "IN_STOCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OUT_OF_STOCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StockCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StockCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StockCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Stock", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StockError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "StockErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "StockErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StockFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "quantity", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StockInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "warehouse", - "description": "Warehouse in which stock is located.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "Quantity of items available for sell.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StockSettings", - "description": "Represents the channel stock settings.\n\nAdded in Saleor 3.7.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "allocationStrategy", - "description": "Allocation strategy defines the preference of warehouses for allocations and reservations.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AllocationStrategyEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StockSettingsInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "allocationStrategy", - "description": "Allocation strategy options. Strategy defines the preference of warehouses for allocations and reservations.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AllocationStrategyEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StockUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "stock", - "description": "Stock.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "Quantity of items available for sell.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "StorePaymentMethodEnum", - "description": "Enum representing the type of a payment storage in a gateway.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ON_SESSION", - "description": "On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OFF_SESSION", - "description": "Off session storage type. The payment is stored to be reused even if the customer is absent.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NONE", - "description": "Storage is disabled. The payment is not stored.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "StringFilterInput", - "description": "Define the filtering options for string fields.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": null, - "inputFields": [ - { - "name": "eq", - "description": "The value equal to.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "oneOf", - "description": "The value included in.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Subscription", - "description": null, - "fields": [ - { - "name": "event", - "description": "Look up subscription event.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxCalculationStrategy", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "FLAT_RATES", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TAX_APP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClass", - "description": "Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the tax class.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "Country-specific tax rates for this tax class.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxClassCountryRate", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxClassCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassCountryRate", - "description": "Tax rate for a country. When tax class is null, it represents the default tax rate for that country; otherwise it's a country tax rate specific to the given tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "country", - "description": "Country in which this tax rate applies.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rate", - "description": "Tax rate value.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": "Related tax class.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassCreate", - "description": "Create a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "fields": [ - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxClassCreateError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassCreateError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TaxClassCreateErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryCodes", - "description": "List of country codes for which the configuration is invalid.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxClassCreateErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxClassCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the tax class.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createCountryRates", - "description": "List of country-specific tax rates to create for this tax class.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CountryRateInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassDelete", - "description": "Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "fields": [ - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxClassDeleteError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassDeleteError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TaxClassDeleteErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxClassDeleteErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxClassFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxClassRateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "taxClassId", - "description": "ID of a tax class for which to update the tax rate", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rate", - "description": "Tax rate value.", - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxClassSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort tax classes by name.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxClassSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort tax classes by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TaxClassSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassUpdate", - "description": "Update a tax class.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "fields": [ - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxClassUpdateError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClass", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxClass", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxClassUpdateError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TaxClassUpdateErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryCodes", - "description": "List of country codes for which the configuration is invalid.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxClassUpdateErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxClassUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "Name of the tax class.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updateCountryRates", - "description": "List of country-specific tax rates to create or update for this tax class.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CountryRateUpdateInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeCountryRates", - "description": "List of country codes for which to remove the tax class rates. Note: It removes all rates for given country code.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxConfiguration", - "description": "Channel-specific tax configuration.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "A channel to which the tax configuration applies to.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeTaxes", - "description": "Determines whether taxes are charged in the given channel.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCalculationStrategy", - "description": "The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated.", - "args": [], - "type": { - "kind": "ENUM", - "name": "TaxCalculationStrategy", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayGrossPrices", - "description": "Determines whether prices displayed in a storefront should include taxes.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pricesEnteredWithTax", - "description": "Determines whether prices are entered with the tax included.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "List of country-specific exceptions in tax configuration.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxConfigurationPerCountry", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxConfigurationCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxConfigurationCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxConfigurationCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxConfiguration", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxConfigurationFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxConfigurationPerCountry", - "description": "Country-specific exceptions of a channel's tax configuration.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "country", - "description": "Country in which this configuration applies.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeTaxes", - "description": "Determines whether taxes are charged in this country.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCalculationStrategy", - "description": "A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration.", - "args": [], - "type": { - "kind": "ENUM", - "name": "TaxCalculationStrategy", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayGrossPrices", - "description": "Determines whether prices displayed in a storefront should include taxes for this country.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxConfigurationPerCountryInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "countryCode", - "description": "Country in which this configuration applies.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeTaxes", - "description": "Determines whether taxes are charged in this country.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCalculationStrategy", - "description": "A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration.", - "type": { - "kind": "ENUM", - "name": "TaxCalculationStrategy", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayGrossPrices", - "description": "Determines whether prices displayed in a storefront should include taxes for this country.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxConfigurationUpdate", - "description": "Update tax configuration for a channel.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "fields": [ - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxConfigurationUpdateError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxConfiguration", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxConfiguration", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxConfigurationUpdateError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TaxConfigurationUpdateErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countryCodes", - "description": "List of country codes for which the configuration is invalid.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxConfigurationUpdateErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DUPLICATED_INPUT_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxConfigurationUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "chargeTaxes", - "description": "Determines whether taxes are charged in the given channel.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCalculationStrategy", - "description": "The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated.", - "type": { - "kind": "ENUM", - "name": "TaxCalculationStrategy", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayGrossPrices", - "description": "Determines whether prices displayed in a storefront should include taxes.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pricesEnteredWithTax", - "description": "Determines whether prices are entered with the tax included.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updateCountriesConfiguration", - "description": "List of tax country configurations to create or update (identified by a country code).", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TaxConfigurationPerCountryInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeCountriesConfiguration", - "description": "List of country codes for which to remove the tax configuration.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CountryCode", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxCountryConfiguration", - "description": "Tax class rates grouped by country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "country", - "description": "A country for which tax class rates are grouped.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClassCountryRates", - "description": "List of tax class rates.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxClassCountryRate", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxCountryConfigurationDelete", - "description": "Remove all tax class rates for a specific country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "fields": [ - { - "name": "taxCountryConfiguration", - "description": "Updated tax class rates grouped by a country.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxCountryConfiguration", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxCountryConfigurationDeleteError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxCountryConfigurationDeleteError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TaxCountryConfigurationDeleteErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxCountryConfigurationDeleteErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxCountryConfigurationUpdate", - "description": "Update tax class rates for a specific country.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "fields": [ - { - "name": "taxCountryConfiguration", - "description": "Updated tax class rates grouped by a country.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxCountryConfiguration", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxCountryConfigurationUpdateError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxCountryConfigurationUpdateError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TaxCountryConfigurationUpdateErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxClassIds", - "description": "List of tax class IDs for which the update failed.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxCountryConfigurationUpdateErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANNOT_CREATE_NEGATIVE_RATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxExemptionManage", - "description": "Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_TAXES.", - "fields": [ - { - "name": "taxableObject", - "description": null, - "args": [], - "type": { - "kind": "UNION", - "name": "TaxSourceObject", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxExemptionManageError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxExemptionManageError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TaxExemptionManageErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TaxExemptionManageErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_EDITABLE_ORDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "TaxSourceLine", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "CheckoutLine", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OrderLine", - "ofType": null - } - ] - }, - { - "kind": "UNION", - "name": "TaxSourceObject", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Order", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "TaxType", - "description": "Representation of tax types fetched from tax gateway.", - "fields": [ - { - "name": "description", - "description": "Description of the tax type.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "taxCode", - "description": "External tax code used to identify given tax group.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxableObject", - "description": "Taxable object.", - "fields": [ - { - "name": "sourceObject", - "description": "The source object related to this tax object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "TaxSourceObject", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pricesEnteredWithTax", - "description": "Determines if prices contain entered tax..", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currency", - "description": "The currency of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingPrice", - "description": "The price of shipping method.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": "The address data.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discounts", - "description": "List of discounts.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxableObjectDiscount", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lines", - "description": "List of lines assigned to the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TaxableObjectLine", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxableObjectDiscount", - "description": "Taxable object discount.", - "fields": [ - { - "name": "name", - "description": "The name of the discount.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "The amount of the discount.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxableObjectLine", - "description": null, - "fields": [ - { - "name": "sourceLine", - "description": "The source line related to this tax line.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "TaxSourceLine", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": "Number of items.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargeTaxes", - "description": "Determines if taxes are being charged for the product.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productName", - "description": "The product name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantName", - "description": "The variant name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productSku", - "description": "The product sku.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "unitPrice", - "description": "Price of the single item in the order line.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalPrice", - "description": "Price of the order line.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxedMoney", - "description": "Represents a monetary value with taxes. In cases where taxes were not applied, net and gross values will be equal.", - "fields": [ - { - "name": "currency", - "description": "Currency code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gross", - "description": "Amount of money including taxes.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "net", - "description": "Amount of money without taxes.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tax", - "description": "Amount of taxes.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TaxedMoneyRange", - "description": "Represents a range of monetary values.", - "fields": [ - { - "name": "start", - "description": "Lower bound of a price range.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": "Upper bound of a price range.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ThumbnailCreated", - "description": "Event sent when thumbnail is created.\n\nAdded in Saleor 3.12.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "Thumbnail id.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "Thumbnail url.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "objectId", - "description": "Object the thumbnail refers to.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mediaUrl", - "description": "Original media url.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ThumbnailFormatEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ORIGINAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AVIF", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WEBP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TimePeriod", - "description": null, - "fields": [ - { - "name": "amount", - "description": "The length of the period.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The type of the period.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TimePeriodTypeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TimePeriodInputType", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "amount", - "description": "The length of the period.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The type of the period.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TimePeriodTypeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TimePeriodTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DAY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WEEK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MONTH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "YEAR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Transaction", - "description": "An object representing a single payment.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payment", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Payment", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "token", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "kind", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionKind", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isSuccess", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "error", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gatewayResponse", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Total amount of the transaction.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionAction", - "description": null, - "fields": [ - { - "name": "actionType", - "description": "Determines the action type.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionActionEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "Transaction request amount. Null when action type is VOID.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TransactionActionEnum", - "description": "Represents possible actions on payment transaction.\n\n The following actions are possible:\n CHARGE - Represents the charge action.\n REFUND - Represents a refund action.\n VOID - Represents a void action. This field will be removed\n in Saleor 3.13 (Preview Feature). Use `CANCEL` instead.\n CANCEL - Represents a cancel action. Added in Saleor 3.12.\n ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CHARGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionActionRequest", - "description": "Event sent when transaction action is requested.\n\nAdded in Saleor 3.4.\n\nDEPRECATED: this subscription will be removed in Saleor 3.13 (Preview Feature). Use `TransactionChargeRequested`, `TransactionRefundRequested`, `TransactionCancelationRequested` instead.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "Look up a transaction.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "action", - "description": "Requested action data.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionAction", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionCancelationRequested", - "description": "Event sent when transaction cancelation is requested.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "Look up a transaction.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "action", - "description": "Requested action data.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionAction", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionChargeRequested", - "description": "Event sent when transaction charge is requested.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "Look up a transaction.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "action", - "description": "Requested action data.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionAction", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionCreate", - "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS.", - "fields": [ - { - "name": "transaction", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionCreateError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionCreateError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionCreateErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TransactionCreateErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INCORRECT_CURRENCY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "METADATA_KEY_REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TransactionCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "status", - "description": "Status of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Payment type used for this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `name` and `message` instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Payment name of the transaction.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The message of the transaction.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reference", - "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `pspReference` instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pspReference", - "description": "PSP Reference of the transaction. \n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableActions", - "description": "List of all possible actions for the transaction", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionActionEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountAuthorized", - "description": "Amount authorized by this transaction.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountCharged", - "description": "Amount charged by this transaction.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountRefunded", - "description": "Amount refunded by this transaction.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountVoided", - "description": "Amount voided by this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `amountCanceled` instead.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountCanceled", - "description": "Amount canceled by this transaction.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Payment public metadata.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Payment private metadata.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalUrl", - "description": "The url that will allow to redirect user to payment provider page with transaction event details.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionEvent", - "description": "Represents transaction's event.", - "fields": [ - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": "Status of transaction's event.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionStatus", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.13 (Preview Feature). Use `type` instead." - }, - { - "name": "reference", - "description": "Reference of transaction's event.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.13 (Preview Feature).Use `pspReference` instead." - }, - { - "name": "pspReference", - "description": "PSP reference of transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the transaction's event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.13 (Preview Feature). Use `message` instead." - }, - { - "name": "message", - "description": "Message related to the transaction's event.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalUrl", - "description": "The url that will allow to redirect user to payment provider page with transaction details.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amount", - "description": "The amount related to this event.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "The type of action related to this event.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "ENUM", - "name": "TransactionEventTypeEnum", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdBy", - "description": "User or App that created the transaction event.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "UNION", - "name": "UserOrApp", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TransactionEventInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "status", - "description": "Current status of the payment transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Status will be calculated by Saleor.", - "type": { - "kind": "ENUM", - "name": "TransactionStatus", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reference", - "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `pspReference` instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pspReference", - "description": "PSP Reference related to this action.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Name of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `message` instead. `name` field will be added to `message`.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The message related to the event.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionEventReport", - "description": "Report the event for the transaction.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", - "fields": [ - { - "name": "alreadyProcessed", - "description": "Defines if the reported event hasn't been processed earlier.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "The transaction related to the reported event.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionEvent", - "description": "The event assigned to this report. if `alreadyProcessed` is set to `true`, the previously processed event will be returned.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionEvent", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionEventReportError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionEventReportError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionEventReportErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TransactionEventReportErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INCORRECT_DETAILS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TransactionEventTypeEnum", - "description": "Represents possible event types.\n\n Added in Saleor 3.12.\n\n The following types are possible:\n AUTHORIZATION_SUCCESS - represents success authorization.\n AUTHORIZATION_FAILURE - represents failure authorization.\n AUTHORIZATION_ADJUSTMENT - represents authorization adjustment.\n AUTHORIZATION_REQUEST - represents authorization request.\n CHARGE_SUCCESS - represents success charge.\n CHARGE_FAILURE - represents failure charge.\n CHARGE_BACK - represents chargeback.\n CHARGE_REQUEST - represents charge request.\n REFUND_SUCCESS - represents success refund.\n REFUND_FAILURE - represents failure refund.\n REFUND_REVERSE - represents reverse refund.\n REFUND_REQUEST - represents refund request.\n CANCEL_SUCCESS - represents success cancel.\n CANCEL_FAILURE - represents failure cancel.\n CANCEL_REQUEST - represents cancel request.\n ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "AUTHORIZATION_SUCCESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AUTHORIZATION_FAILURE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AUTHORIZATION_ADJUSTMENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AUTHORIZATION_REQUEST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHARGE_SUCCESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHARGE_FAILURE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHARGE_BACK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHARGE_REQUEST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUND_SUCCESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUND_FAILURE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUND_REVERSE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUND_REQUEST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCEL_SUCCESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCEL_FAILURE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCEL_REQUEST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionItem", - "description": "Represents a payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "modifiedAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "actions", - "description": "List of actions that can be performed in the current state of a payment.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionActionEnum", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "authorizedAmount", - "description": "Total amount authorized for this payment.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "authorizePendingAmount", - "description": "Total amount of ongoing authorization requests for the transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "refundedAmount", - "description": "Total amount refunded for this payment.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "refundPendingAmount", - "description": "Total amount of ongoing refund requests for the transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voidedAmount", - "description": "Total amount voided for this payment.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.13 (Preview Feature).Use `canceledAmount` instead." - }, - { - "name": "canceledAmount", - "description": "Total amount canceled for this payment.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cancelPendingAmount", - "description": "Total amount of ongoing cancel requests for the transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargedAmount", - "description": "Total amount charged for this payment.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chargePendingAmount", - "description": "Total amount of ongoing charge requests for the transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": "Status of transaction.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.13 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions." - }, - { - "name": "type", - "description": "Type of transaction.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.13 (Preview Feature). Use `name` or `message` instead." - }, - { - "name": "name", - "description": "Name of the transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "Message related to the transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reference", - "description": "Reference of transaction.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.13 (Preview Feature).Use `pspReference` instead." - }, - { - "name": "pspReference", - "description": "PSP reference of transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order", - "description": "The related order.\n\nAdded in Saleor 3.6.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Order", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": "List of all transaction's events.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionEvent", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdBy", - "description": "User or App that created the transaction.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "UNION", - "name": "UserOrApp", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalUrl", - "description": "The url that will allow to redirect user to payment provider page with transaction details.\n\nAdded in Saleor 3.12.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionItemMetadataUpdated", - "description": "Event sent when transaction item metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "Look up a transaction.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TransactionKind", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "EXTERNAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AUTH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PENDING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACTION_TO_CONFIRM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REFUND_ONGOING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CAPTURE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CONFIRM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CANCEL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionRefundRequested", - "description": "Event sent when transaction refund is requested.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": "Look up a transaction.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "action", - "description": "Requested action data.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionAction", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionRequestAction", - "description": "Request an action for payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS.", - "fields": [ - { - "name": "transaction", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionRequestActionError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionRequestActionError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionRequestActionErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TransactionRequestActionErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TransactionStatus", - "description": "Represents a status of payment transaction.\n\n The following statuses are possible:\n SUCCESS - Represents a sucess action.\n FAILURE - Represents a failure action.\n PENDING - Represents a pending action.\n ", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PENDING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SUCCESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FAILURE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionUpdate", - "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", - "fields": [ - { - "name": "transaction", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "TransactionItem", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionUpdateError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionUpdateError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionUpdateErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TransactionUpdateErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INCORRECT_CURRENCY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "METADATA_KEY_REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TransactionUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "status", - "description": "Status of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Payment type used for this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `name` and `message` instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Payment name of the transaction.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The message of the transaction.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reference", - "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `pspReference` instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pspReference", - "description": "PSP Reference of the transaction. \n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "availableActions", - "description": "List of all possible actions for the transaction", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TransactionActionEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountAuthorized", - "description": "Amount authorized by this transaction.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountCharged", - "description": "Amount charged by this transaction.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountRefunded", - "description": "Amount refunded by this transaction.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountVoided", - "description": "Amount voided by this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `amountCanceled` instead.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "amountCanceled", - "description": "Amount canceled by this transaction.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "INPUT_OBJECT", - "name": "MoneyInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "Payment public metadata.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "Payment private metadata.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalUrl", - "description": "The url that will allow to redirect user to payment provider page with transaction event details.\n\nAdded in Saleor 3.12.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "TranslatableItem", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "ProductTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CategoryTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherTranslatableContent", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItemTranslatableContent", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "TranslatableItemConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslatableItemEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TranslatableItemEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "TranslatableItem", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TranslatableKinds", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ATTRIBUTE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_METHOD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TranslationCreated", - "description": "Event sent when new translation is created.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "The translation the event relates to.", - "args": [], - "type": { - "kind": "UNION", - "name": "TranslationTypes", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TranslationError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TranslationErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TranslationErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TranslationInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "seoTitle", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "seoDescription", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Translated description.\n\nRich text format. For reference see https://editorjs.io/", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "TranslationTypes", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "ProductTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CollectionTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CategoryTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "AttributeValueTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariantTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ShippingMethodTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SaleTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VoucherTranslation", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MenuItemTranslation", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "TranslationUpdated", - "description": "Event sent when translation is updated.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "The translation the event relates to.", - "args": [], - "type": { - "kind": "UNION", - "name": "TranslationTypes", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "UUID", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "UpdateInvoiceInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "number", - "description": "Invoice number", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL of an invoice to download.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UpdateMetadata", - "description": "Updates metadata of an object. To use it, you need to have access to the modified object.", - "fields": [ - { - "name": "metadataErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "item", - "description": null, - "args": [], - "type": { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UpdatePrivateMetadata", - "description": "Updates private metadata of an object. To use it, you need to be an authenticated staff user or an app and have access to the modified object.", - "fields": [ - { - "name": "metadataErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "item", - "description": null, - "args": [], - "type": { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Upload", - "description": "Variables of this type must be set to null in mutations. They will be replaced with a filename from a following multipart part containing a binary file. See: https://github.com/jaydenseric/graphql-multipart-request-spec.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UploadError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "UploadErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "UploadErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "User", - "description": "Represents user data.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isStaff", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "addresses", - "description": "List of all user's addresses.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkout", - "description": "Returns the last open checkout of this user.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Checkout", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts." - }, - { - "name": "checkoutTokens", - "description": "Returns the checkout UUID's assigned to this user.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `checkoutIds` instead." - }, - { - "name": "checkoutIds", - "description": "Returns the checkout ID's assigned to this user.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "checkouts", - "description": "Returns checkouts assigned to this user.\n\nAdded in Saleor 3.8.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CheckoutCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "giftCards", - "description": "List of the user gift cards.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "GiftCardCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "note", - "description": "A note about the customer.\n\nRequires one of the following permissions: MANAGE_USERS, MANAGE_STAFF.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orders", - "description": "List of user's orders. Requires one of the following permissions: MANAGE_STAFF, OWNER.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "OrderCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userPermissions", - "description": "List of user's permissions.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserPermission", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "permissionGroups", - "description": "List of user's permission groups.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "editableGroups", - "description": "List of user's permission groups which user can manage.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "avatar", - "description": null, - "args": [ - { - "name": "size", - "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "format", - "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "ThumbnailFormatEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Image", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": "List of events associated with the user.\n\nRequires one of the following permissions: MANAGE_USERS, MANAGE_STAFF.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CustomerEvent", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "storedPaymentSources", - "description": "List of stored payment sources.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PaymentSource", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "User language code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultShippingAddress", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultBillingAddress", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this user. \n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastLogin", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dateJoined", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UserAvatarDelete", - "description": "Deletes a user avatar. Only for staff members. \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "fields": [ - { - "name": "user", - "description": "An updated user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UserAvatarUpdate", - "description": "Create a user avatar. Only for staff members. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "fields": [ - { - "name": "user", - "description": "An updated user instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UserBulkSetActive", - "description": "Activate or deactivate users. \n\nRequires one of the following permissions: MANAGE_USERS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UserCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UserCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "User", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "UserCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "defaultBillingAddress", - "description": "Billing address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultShippingAddress", - "description": "Shipping address of the customer.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstName", - "description": "Given name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": "Family name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "The unique email address of the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "User account is active.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "note", - "description": "A note about the user.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "languageCode", - "description": "User language code.", - "type": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of the customer.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "redirectUrl", - "description": "URL of a view where users should be redirected to set the password. URL in RFC 1808 format.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Slug of a channel which will be used for notify user. Optional when only one channel exists.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "UserOrApp", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "App", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "UserPermission", - "description": null, - "fields": [ - { - "name": "code", - "description": "Internal code for permission.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "PermissionEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Describe action(s) allowed to do by permission.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sourcePermissionGroups", - "description": "List of user permission groups which contains this permission.", - "args": [ - { - "name": "userId", - "description": "ID of user whose groups should be returned.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Group", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "UserSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "FIRST_NAME", - "description": "Sort users by first name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAST_NAME", - "description": "Sort users by last name.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EMAIL", - "description": "Sort users by email.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_COUNT", - "description": "Sort users by order count.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT", - "description": "Sort users by created at.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LAST_MODIFIED_AT", - "description": "Sort users by last modified at.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "UserSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort users by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "UserSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VAT", - "description": "Represents a VAT rate for a country.", - "fields": [ - { - "name": "countryCode", - "description": "Country code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "standardRate", - "description": "Standard VAT rate in percent.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reducedRates", - "description": "Country's VAT rate exceptions for specific types of goods.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ReducedRate", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "VariantAttributeScope", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT_SELECTION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_VARIANT_SELECTION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VariantMediaAssign", - "description": "Assign an media to a product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productVariant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "media", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VariantMediaUnassign", - "description": "Unassign an media from a product variant. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "productVariant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "media", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "productErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProductError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VariantPricingInfo", - "description": "Represents availability of a variant in the storefront.", - "fields": [ - { - "name": "onSale", - "description": "Whether it is in sale or not.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discount", - "description": "The discount amount if in sale (null otherwise).", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountLocalCurrency", - "description": "The discount amount in the local currency.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "price", - "description": "The price, with any discount subtracted.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "priceUndiscounted", - "description": "The price without any discount.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "priceLocalCurrency", - "description": "The discounted price in the local currency.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "TaxedMoney", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VerifyToken", - "description": "Verify JWT token.", - "fields": [ - { - "name": "user", - "description": "User assigned to token.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isValid", - "description": "Determine if token is valid or not.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payload", - "description": "JWT payload.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "GenericScalar", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AccountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "VolumeUnitsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CUBIC_MILLIMETER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_CENTIMETER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_DECIMETER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_METER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LITER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_FOOT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_INCH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUBIC_YARD", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "QT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PINT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FL_OZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACRE_IN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ACRE_FT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Voucher", - "description": "Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "usageLimit", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "used", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startDate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endDate", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "applyOncePerOrder", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "applyOncePerCustomer", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "onlyForStaff", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minCheckoutItemsQuantity", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categories", - "description": "List of categories this voucher applies to.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CategoryCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": "List of collections this voucher applies to.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CollectionCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "List of products this voucher applies to.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "List of product variants this voucher applies to.\n\nAdded in Saleor 3.1.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ProductVariantCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "List of countries available for the shipping voucher.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CountryDisplay", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated voucher fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountValueType", - "description": "Determines a type of discount for voucher - value or percentage", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountValue", - "description": "Voucher value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currency", - "description": "Currency code for voucher.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minSpent", - "description": "Minimum order value to apply voucher.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "Determines a type of voucher.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "VoucherTypeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channelListings", - "description": "List of availability in channels for the voucher.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "VoucherChannelListing", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherAddCatalogues", - "description": "Adds products, categories, collections to a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "voucher", - "description": "Voucher of which catalogue IDs will be modified.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherBulkDelete", - "description": "Deletes vouchers. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "count", - "description": "Returns how many objects were affected.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherChannelListing", - "description": "Represents voucher channel listing.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Channel", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountValue", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "currency", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minSpent", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Money", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "VoucherChannelListingAddInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "channelId", - "description": "ID of a channel.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountValue", - "description": "Value of the voucher.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minAmountSpent", - "description": "Min purchase amount required to apply the voucher.", - "type": { - "kind": "SCALAR", - "name": "PositiveDecimal", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "VoucherChannelListingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "addChannels", - "description": "List of channels to which the voucher should be assigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "VoucherChannelListingAddInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "removeChannels", - "description": "List of channels from which the voucher should be unassigned.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherChannelListingUpdate", - "description": "Manage voucher's availability in channels. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "voucher", - "description": "An updated voucher instance.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "VoucherCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherCreate", - "description": "Creates a new voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherCreated", - "description": "Event sent when new voucher is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": "The voucher the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherDelete", - "description": "Deletes a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherDeleted", - "description": "Event sent when voucher is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": "The voucher the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "VoucherDiscountType", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "FIXED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERCENTAGE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "VoucherFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "status", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "DiscountStatusEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "timesUsed", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "IntRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountType", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "VoucherDiscountType", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "started", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateTimeRangeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MetadataFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "VoucherInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "type", - "description": "Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER.", - "type": { - "kind": "ENUM", - "name": "VoucherTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Voucher name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "Code to use the voucher.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startDate", - "description": "Start date of the voucher in ISO 8601 format.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endDate", - "description": "End date of the voucher in ISO 8601 format.", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountValueType", - "description": "Choices: fixed or percentage.", - "type": { - "kind": "ENUM", - "name": "DiscountValueTypeEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": "Products discounted by the voucher.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variants", - "description": "Variants discounted by the voucher.\n\nAdded in Saleor 3.1.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "collections", - "description": "Collections discounted by the voucher.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "categories", - "description": "Categories discounted by the voucher.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minCheckoutItemsQuantity", - "description": "Minimal quantity of checkout items required to apply the voucher.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "countries", - "description": "Country codes that can be used with the shipping voucher.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "applyOncePerOrder", - "description": "Voucher should be applied to the cheapest item or entire order.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "applyOncePerCustomer", - "description": "Voucher should be applied once per customer.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "onlyForStaff", - "description": "Voucher can be used only by staff user.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "usageLimit", - "description": "Limit number of times this voucher can be used in total.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherMetadataUpdated", - "description": "Event sent when voucher metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": "The voucher the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherRemoveCatalogues", - "description": "Removes products, categories, collections from a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "voucher", - "description": "Voucher of which catalogue IDs will be modified.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "VoucherSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CODE", - "description": "Sort vouchers by code.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "START_DATE", - "description": "Sort vouchers by start date.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "END_DATE", - "description": "Sort vouchers by end date.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VALUE", - "description": "Sort vouchers by value.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TYPE", - "description": "Sort vouchers by type.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "USAGE_LIMIT", - "description": "Sort vouchers by usage limit.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MINIMUM_SPENT_AMOUNT", - "description": "Sort vouchers by minimum spent amount.\n\nThis option requires a channel filter to work as the values can vary between channels.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "VoucherSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channel", - "description": "Specifies the channel in which to sort the data.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort vouchers by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "VoucherSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherTranslatableContent", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "translation", - "description": "Returns translated voucher fields for the given language code.", - "args": [ - { - "name": "languageCode", - "description": "A language code to return the translation for voucher.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "LanguageCodeEnum", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "VoucherTranslation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": "Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes.\n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Get model fields from the root level queries." - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherTranslate", - "description": "Creates/updates translations for a voucher. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", - "fields": [ - { - "name": "translationErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TranslationError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherTranslation", - "description": null, - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "language", - "description": "Translation language.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LanguageDisplay", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "VoucherTypeEnum", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "SHIPPING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENTIRE_ORDER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SPECIFIC_PRODUCT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherUpdate", - "description": "Updates a voucher. \n\nRequires one of the following permissions: MANAGE_DISCOUNTS.", - "fields": [ - { - "name": "discountErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VoucherUpdated", - "description": "Event sent when voucher is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "voucher", - "description": "The voucher the event relates to.", - "args": [ - { - "name": "channel", - "description": "Slug of a channel for which the data should be returned.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Voucher", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Warehouse", - "description": "Represents warehouse.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetadata", - "description": "List of private metadata items. Requires staff permissions to access.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafield", - "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "privateMetafields", - "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metadata", - "description": "List of public metadata items. Can be accessed without permissions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MetadataItem", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafield", - "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "key", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "metafields", - "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [ - { - "name": "keys", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "SCALAR", - "name": "Metadata", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPrivate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "companyName", - "description": "Warehouse company name.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `Address.companyName` instead." - }, - { - "name": "clickAndCollectOption", - "description": "Click and collect options: local, all or disabled.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WarehouseClickAndCollectOptionEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZones", - "description": null, - "args": [ - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShippingZoneCountableConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of this warehouse. \n\nAdded in Saleor 3.10.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "ObjectWithMetadata", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WarehouseClickAndCollectOptionEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "DISABLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LOCAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ALL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseCountableConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseCountableEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "A total count of items in the collection.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseCountableEdge", - "description": null, - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseCreate", - "description": "Creates new warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "warehouseErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "WarehouseCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "slug", - "description": "Warehouse slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "The email address of the warehouse.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of the warehouse.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Warehouse name.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": "Address of the warehouse.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZones", - "description": "Shipping zones supported by the warehouse.\n\nDEPRECATED: this field will be removed in Saleor 4.0. Providing the zone ids will raise a ValidationError.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseCreated", - "description": "Event sent when new warehouse is created.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "The warehouse the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseDelete", - "description": "Deletes selected warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "warehouseErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseDeleted", - "description": "Event sent when warehouse is deleted.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "The warehouse the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WarehouseErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shippingZones", - "description": "List of shipping zones IDs which causes the error.", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WarehouseErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ALREADY_EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "WarehouseFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "clickAndCollectOption", - "description": null, - "type": { - "kind": "ENUM", - "name": "WarehouseClickAndCollectOptionEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "search", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ids", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPrivate", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "channels", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slugs", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseMetadataUpdated", - "description": "Event sent when warehouse metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "The warehouse the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseShippingZoneAssign", - "description": "Add shipping zone to given warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "warehouseErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseShippingZoneUnassign", - "description": "Remove shipping zone from given warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "warehouseErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WarehouseSortField", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": "Sort warehouses by name.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "WarehouseSortingInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "direction", - "description": "Specifies the direction in which to sort products.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "OrderDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "field", - "description": "Sort warehouses by the selected field.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WarehouseSortField", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseUpdate", - "description": "Updates given warehouse. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", - "fields": [ - { - "name": "warehouseErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WarehouseError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "WarehouseUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "slug", - "description": "Warehouse slug.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "The email address of the warehouse.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalReference", - "description": "External ID of the warehouse.\n\nAdded in Saleor 3.10.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Warehouse name.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "address", - "description": "Address of the warehouse.", - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "clickAndCollectOption", - "description": "Click and collect options: local, all or disabled.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "ENUM", - "name": "WarehouseClickAndCollectOptionEnum", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPrivate", - "description": "Visibility of warehouse stocks.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WarehouseUpdated", - "description": "Event sent when warehouse is updated.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "fields": [ - { - "name": "issuedAt", - "description": "Time of the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": "Saleor version that triggered the event.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issuingPrincipal", - "description": "The user or application that triggered the event.", - "args": [], - "type": { - "kind": "UNION", - "name": "IssuingPrincipal", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": "The application receiving the webhook.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "warehouse", - "description": "The warehouse the event relates to.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Warehouse", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Event", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Webhook", - "description": "Webhook.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": "List of webhook events.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookEvent", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead." - }, - { - "name": "syncEvents", - "description": "List of synchronous webhook events.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookEventSync", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "asyncEvents", - "description": "List of asynchronous webhook events.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookEventAsync", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "App", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "eventDeliveries", - "description": "Event deliveries.", - "args": [ - { - "name": "sortBy", - "description": "Event delivery sorter.", - "type": { - "kind": "INPUT_OBJECT", - "name": "EventDeliverySortingInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "Event delivery filter options.", - "type": { - "kind": "INPUT_OBJECT", - "name": "EventDeliveryFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Return the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Return the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Return the first n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Return the last n elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "EventDeliveryCountableConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "targetUrl", - "description": "Target URL for webhook.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "Informs if webhook is activated.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "secretKey", - "description": "Used to create a hash signature for each payload.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS." - }, - { - "name": "subscriptionQuery", - "description": "Used to define payloads for specific events.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customHeaders", - "description": "Custom headers, which will be added to HTTP request.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookCreate", - "description": "Creates a new webhook subscription. \n\nRequires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP.", - "fields": [ - { - "name": "webhookErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhook", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Webhook", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "WebhookCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "The name of the webhook.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "targetUrl", - "description": "The url to receive the payload.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": "The events that webhook wants to subscribe. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "asyncEvents", - "description": "The asynchronous events that webhook wants to subscribe.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeAsyncEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "syncEvents", - "description": "The synchronous events that webhook wants to subscribe.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeSyncEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "ID of the app to which webhook belongs.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "Determine if webhook will be set active or not.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "secretKey", - "description": "The secret key used to create a hash signature with each payload.\n\nDEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "Subscription query used to define a webhook payload.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customHeaders", - "description": "Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only \"X-*\" and \"Authorization*\" keys are allowed.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookDelete", - "description": "Delete a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated. \n\nRequires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP.", - "fields": [ - { - "name": "webhookErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhook", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Webhook", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookDryRun", - "description": "Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "fields": [ - { - "name": "payload", - "description": "JSON payload, that would be sent out to webhook's target URL.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookDryRunError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookDryRunError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookDryRunErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WebhookDryRunErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_PERMISSION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TYPE_NOT_SUPPORTED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SYNTAX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_SUBSCRIPTION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNABLE_TO_PARSE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_EVENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WebhookErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REQUIRED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNIQUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELETE_FAILED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SYNTAX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_SUBSCRIPTION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNABLE_TO_PARSE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_EVENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_CUSTOM_HEADERS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookEvent", - "description": "Webhook event.", - "fields": [ - { - "name": "name", - "description": "Display name of the event.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "eventType", - "description": "Internal name of the event type.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookEventAsync", - "description": "Asynchronous webhook event.", - "fields": [ - { - "name": "name", - "description": "Display name of the event.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "eventType", - "description": "Internal name of the event type.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeAsyncEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookEventSync", - "description": "Synchronous webhook event.", - "fields": [ - { - "name": "name", - "description": "Display name of the event.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "eventType", - "description": "Internal name of the event type.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeSyncEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WebhookEventTypeAsyncEnum", - "description": "Enum determining type of webhook.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ANY_EVENTS", - "description": "All the events.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDRESS_CREATED", - "description": "A new address created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDRESS_UPDATED", - "description": "An address updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDRESS_DELETED", - "description": "An address deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_INSTALLED", - "description": "A new app installed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_UPDATED", - "description": "An app updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_DELETED", - "description": "An app deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_STATUS_CHANGED", - "description": "An app status is changed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_CREATED", - "description": "A new attribute is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_UPDATED", - "description": "An attribute is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_DELETED", - "description": "An attribute is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_CREATED", - "description": "A new attribute value is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_UPDATED", - "description": "An attribute value is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_DELETED", - "description": "An attribute value is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_CREATED", - "description": "A new category created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_UPDATED", - "description": "A category is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_DELETED", - "description": "A category is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_CREATED", - "description": "A new channel created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_UPDATED", - "description": "A channel is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_DELETED", - "description": "A channel is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_STATUS_CHANGED", - "description": "A channel status is changed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_CREATED", - "description": "A new gift card created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_UPDATED", - "description": "A gift card is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_DELETED", - "description": "A gift card is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_STATUS_CHANGED", - "description": "A gift card status is changed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_METADATA_UPDATED", - "description": "A gift card metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_CREATED", - "description": "A new menu created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_UPDATED", - "description": "A menu is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_DELETED", - "description": "A menu is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_CREATED", - "description": "A new menu item created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_UPDATED", - "description": "A menu item is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_DELETED", - "description": "A menu item is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CREATED", - "description": "A new order is placed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CONFIRMED", - "description": "An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FULLY_PAID", - "description": "Payment is made and an order is fully paid.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_UPDATED", - "description": "An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CANCELLED", - "description": "An order is cancelled.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FULFILLED", - "description": "An order is fulfilled.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_METADATA_UPDATED", - "description": "An order metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_CREATED", - "description": "A draft order is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_UPDATED", - "description": "A draft order is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_DELETED", - "description": "A draft order is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_CREATED", - "description": "A sale is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_UPDATED", - "description": "A sale is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_DELETED", - "description": "A sale is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_TOGGLE", - "description": "A sale is activated or deactivated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_REQUESTED", - "description": "An invoice for order requested.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_DELETED", - "description": "An invoice is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_SENT", - "description": "Invoice has been sent.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_CREATED", - "description": "A new customer account is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_UPDATED", - "description": "A customer account is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_DELETED", - "description": "A customer account is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_METADATA_UPDATED", - "description": "A customer account metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_CREATED", - "description": "A new collection is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_UPDATED", - "description": "A collection is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_DELETED", - "description": "A collection is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_METADATA_UPDATED", - "description": "A collection metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_CREATED", - "description": "A new product is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_UPDATED", - "description": "A product is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_DELETED", - "description": "A product is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_CREATED", - "description": "A new product media is created.\n\nAdded in Saleor 3.12.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_UPDATED", - "description": "A product media is updated.\n\nAdded in Saleor 3.12.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_DELETED", - "description": "A product media is deleted.\n\nAdded in Saleor 3.12.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_METADATA_UPDATED", - "description": "A product metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_CREATED", - "description": "A new product variant is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_UPDATED", - "description": "A product variant is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_DELETED", - "description": "A product variant is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_OUT_OF_STOCK", - "description": "A product variant is out of stock.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_BACK_IN_STOCK", - "description": "A product variant is back in stock.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_STOCK_UPDATED", - "description": "A product variant stock is updated", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_METADATA_UPDATED", - "description": "A product variant metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_CREATED", - "description": "A new checkout is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_UPDATED", - "description": "A checkout is updated. It also triggers all updates related to the checkout.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_METADATA_UPDATED", - "description": "A checkout metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_CREATED", - "description": "A new fulfillment is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_CANCELED", - "description": "A fulfillment is cancelled.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_APPROVED", - "description": "A fulfillment is approved.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_METADATA_UPDATED", - "description": "A fulfillment metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOTIFY_USER", - "description": "User notification triggered.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_CREATED", - "description": "A new page is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_UPDATED", - "description": "A page is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_DELETED", - "description": "A page is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_CREATED", - "description": "A new page type is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_UPDATED", - "description": "A page type is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_DELETED", - "description": "A page type is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_CREATED", - "description": "A new permission group is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_UPDATED", - "description": "A permission group is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_DELETED", - "description": "A permission group is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_CREATED", - "description": "A new shipping price is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_UPDATED", - "description": "A shipping price is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_DELETED", - "description": "A shipping price is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_CREATED", - "description": "A new shipping zone is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_UPDATED", - "description": "A shipping zone is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_DELETED", - "description": "A shipping zone is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_METADATA_UPDATED", - "description": "A shipping zone metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_CREATED", - "description": "A new staff user is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_UPDATED", - "description": "A staff user is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_DELETED", - "description": "A staff user is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_ACTION_REQUEST", - "description": "An action requested for transaction.\n\nDEPRECATED: this subscription will be removed in Saleor 3.13 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_ITEM_METADATA_UPDATED", - "description": "Transaction item metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSLATION_CREATED", - "description": "A new translation is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSLATION_UPDATED", - "description": "A translation is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_CREATED", - "description": "A new warehouse created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_UPDATED", - "description": "A warehouse is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_DELETED", - "description": "A warehouse is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_METADATA_UPDATED", - "description": "A warehouse metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_CREATED", - "description": "A new voucher created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_UPDATED", - "description": "A voucher is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_DELETED", - "description": "A voucher is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_METADATA_UPDATED", - "description": "A voucher metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBSERVABILITY", - "description": "An observability event is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "THUMBNAIL_CREATED", - "description": "A thumbnail is created.\n\nAdded in Saleor 3.12.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WebhookEventTypeEnum", - "description": "Enum determining type of webhook.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ANY_EVENTS", - "description": "All the events.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDRESS_CREATED", - "description": "A new address created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDRESS_UPDATED", - "description": "An address updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDRESS_DELETED", - "description": "An address deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_INSTALLED", - "description": "A new app installed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_UPDATED", - "description": "An app updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_DELETED", - "description": "An app deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_STATUS_CHANGED", - "description": "An app status is changed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_CREATED", - "description": "A new attribute is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_UPDATED", - "description": "An attribute is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_DELETED", - "description": "An attribute is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_CREATED", - "description": "A new attribute value is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_UPDATED", - "description": "An attribute value is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_DELETED", - "description": "An attribute value is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_CREATED", - "description": "A new category created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_UPDATED", - "description": "A category is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_DELETED", - "description": "A category is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_CREATED", - "description": "A new channel created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_UPDATED", - "description": "A channel is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_DELETED", - "description": "A channel is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_STATUS_CHANGED", - "description": "A channel status is changed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_CREATED", - "description": "A new gift card created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_UPDATED", - "description": "A gift card is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_DELETED", - "description": "A gift card is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_STATUS_CHANGED", - "description": "A gift card status is changed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_METADATA_UPDATED", - "description": "A gift card metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_CREATED", - "description": "A new menu created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_UPDATED", - "description": "A menu is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_DELETED", - "description": "A menu is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_CREATED", - "description": "A new menu item created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_UPDATED", - "description": "A menu item is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_DELETED", - "description": "A menu item is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CREATED", - "description": "A new order is placed.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CONFIRMED", - "description": "An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FULLY_PAID", - "description": "Payment is made and an order is fully paid.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_UPDATED", - "description": "An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CANCELLED", - "description": "An order is cancelled.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FULFILLED", - "description": "An order is fulfilled.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_METADATA_UPDATED", - "description": "An order metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_CREATED", - "description": "A draft order is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_UPDATED", - "description": "A draft order is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_DELETED", - "description": "A draft order is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_CREATED", - "description": "A sale is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_UPDATED", - "description": "A sale is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_DELETED", - "description": "A sale is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_TOGGLE", - "description": "A sale is activated or deactivated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_REQUESTED", - "description": "An invoice for order requested.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_DELETED", - "description": "An invoice is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_SENT", - "description": "Invoice has been sent.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_CREATED", - "description": "A new customer account is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_UPDATED", - "description": "A customer account is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_DELETED", - "description": "A customer account is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_METADATA_UPDATED", - "description": "A customer account metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_CREATED", - "description": "A new collection is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_UPDATED", - "description": "A collection is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_DELETED", - "description": "A collection is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_METADATA_UPDATED", - "description": "A collection metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_CREATED", - "description": "A new product is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_UPDATED", - "description": "A product is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_DELETED", - "description": "A product is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_CREATED", - "description": "A new product media is created.\n\nAdded in Saleor 3.12.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_UPDATED", - "description": "A product media is updated.\n\nAdded in Saleor 3.12.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_DELETED", - "description": "A product media is deleted.\n\nAdded in Saleor 3.12.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_METADATA_UPDATED", - "description": "A product metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_CREATED", - "description": "A new product variant is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_UPDATED", - "description": "A product variant is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_DELETED", - "description": "A product variant is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_OUT_OF_STOCK", - "description": "A product variant is out of stock.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_BACK_IN_STOCK", - "description": "A product variant is back in stock.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_STOCK_UPDATED", - "description": "A product variant stock is updated", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_METADATA_UPDATED", - "description": "A product variant metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_CREATED", - "description": "A new checkout is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_UPDATED", - "description": "A checkout is updated. It also triggers all updates related to the checkout.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_METADATA_UPDATED", - "description": "A checkout metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_CREATED", - "description": "A new fulfillment is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_CANCELED", - "description": "A fulfillment is cancelled.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_APPROVED", - "description": "A fulfillment is approved.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_METADATA_UPDATED", - "description": "A fulfillment metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOTIFY_USER", - "description": "User notification triggered.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_CREATED", - "description": "A new page is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_UPDATED", - "description": "A page is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_DELETED", - "description": "A page is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_CREATED", - "description": "A new page type is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_UPDATED", - "description": "A page type is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_DELETED", - "description": "A page type is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_CREATED", - "description": "A new permission group is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_UPDATED", - "description": "A permission group is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_DELETED", - "description": "A permission group is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_CREATED", - "description": "A new shipping price is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_UPDATED", - "description": "A shipping price is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_DELETED", - "description": "A shipping price is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_CREATED", - "description": "A new shipping zone is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_UPDATED", - "description": "A shipping zone is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_DELETED", - "description": "A shipping zone is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_METADATA_UPDATED", - "description": "A shipping zone metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_CREATED", - "description": "A new staff user is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_UPDATED", - "description": "A staff user is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_DELETED", - "description": "A staff user is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_ACTION_REQUEST", - "description": "An action requested for transaction.\n\nDEPRECATED: this subscription will be removed in Saleor 3.13 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_ITEM_METADATA_UPDATED", - "description": "Transaction item metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSLATION_CREATED", - "description": "A new translation is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSLATION_UPDATED", - "description": "A translation is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_CREATED", - "description": "A new warehouse created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_UPDATED", - "description": "A warehouse is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_DELETED", - "description": "A warehouse is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_METADATA_UPDATED", - "description": "A warehouse metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_CREATED", - "description": "A new voucher created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_UPDATED", - "description": "A voucher is updated.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_DELETED", - "description": "A voucher is deleted.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_METADATA_UPDATED", - "description": "A voucher metadata is updated.\n\nAdded in Saleor 3.8.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBSERVABILITY", - "description": "An observability event is created.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "THUMBNAIL_CREATED", - "description": "A thumbnail is created.\n\nAdded in Saleor 3.12.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_AUTHORIZE", - "description": "Authorize payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_CAPTURE", - "description": "Capture payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_CONFIRM", - "description": "Confirm payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_LIST_GATEWAYS", - "description": "Listing available payment gateways.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_PROCESS", - "description": "Process payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_REFUND", - "description": "Refund payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_VOID", - "description": "Void payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_CHARGE_REQUESTED", - "description": "Event called when charge has been requested for transaction.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_REFUND_REQUESTED", - "description": "Event called when refund has been requested for transaction.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_CANCELATION_REQUESTED", - "description": "Event called when cancel has been requested for transaction.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_CALCULATE_TAXES", - "description": "Event called for checkout tax calculation.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CALCULATE_TAXES", - "description": "Event called for order tax calculation.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_LIST_METHODS_FOR_CHECKOUT", - "description": "Fetch external shipping methods for checkout.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FILTER_SHIPPING_METHODS", - "description": "Filter shipping methods for order.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_FILTER_SHIPPING_METHODS", - "description": "Filter shipping methods for checkout.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WebhookEventTypeSyncEnum", - "description": "Enum determining type of webhook.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PAYMENT_AUTHORIZE", - "description": "Authorize payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_CAPTURE", - "description": "Capture payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_CONFIRM", - "description": "Confirm payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_LIST_GATEWAYS", - "description": "Listing available payment gateways.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_PROCESS", - "description": "Process payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_REFUND", - "description": "Refund payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAYMENT_VOID", - "description": "Void payment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_CHARGE_REQUESTED", - "description": "Event called when charge has been requested for transaction.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_REFUND_REQUESTED", - "description": "Event called when refund has been requested for transaction.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_CANCELATION_REQUESTED", - "description": "Event called when cancel has been requested for transaction.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_CALCULATE_TAXES", - "description": "Event called for checkout tax calculation.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CALCULATE_TAXES", - "description": "Event called for order tax calculation.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_LIST_METHODS_FOR_CHECKOUT", - "description": "Fetch external shipping methods for checkout.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FILTER_SHIPPING_METHODS", - "description": "Filter shipping methods for order.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_FILTER_SHIPPING_METHODS", - "description": "Filter shipping methods for checkout.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WebhookSampleEventTypeEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ADDRESS_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDRESS_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ADDRESS_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_INSTALLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "APP_STATUS_CHANGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ATTRIBUTE_VALUE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CATEGORY_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHANNEL_STATUS_CHANGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_STATUS_CHANGED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GIFT_CARD_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MENU_ITEM_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CONFIRMED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FULLY_PAID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_CANCELLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_FULFILLED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ORDER_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DRAFT_ORDER_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SALE_TOGGLE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_REQUESTED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVOICE_SENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CUSTOMER_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLLECTION_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_MEDIA_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_OUT_OF_STOCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_BACK_IN_STOCK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_STOCK_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCT_VARIANT_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CHECKOUT_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_CANCELED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_APPROVED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULFILLMENT_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOTIFY_USER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PAGE_TYPE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PERMISSION_GROUP_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_PRICE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SHIPPING_ZONE_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STAFF_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_ACTION_REQUEST", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSACTION_ITEM_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSLATION_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSLATION_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WAREHOUSE_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VOUCHER_METADATA_UPDATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBSERVABILITY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "THUMBNAIL_CREATED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookTrigger", - "description": "Trigger a webhook event. Supports a single event (the first, if multiple provided in the `webhook.subscription_query`). Requires permission relevant to processed event. Successfully delivered webhook returns `delivery` with status='PENDING' and empty payload.\n\nAdded in Saleor 3.11.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", - "fields": [ - { - "name": "delivery", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "EventDelivery", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookTriggerError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookTriggerError", - "description": null, - "fields": [ - { - "name": "field", - "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "message", - "description": "The error message.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "code", - "description": "The error code.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookTriggerErrorCode", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WebhookTriggerErrorCode", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GRAPHQL_ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NOT_FOUND", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INVALID_ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_PERMISSION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TYPE_NOT_SUPPORTED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SYNTAX", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_SUBSCRIPTION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNABLE_TO_PARSE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_QUERY", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING_EVENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "WebhookUpdate", - "description": "Updates a webhook subscription. \n\nRequires one of the following permissions: MANAGE_APPS.", - "fields": [ - { - "name": "webhookErrors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookError", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use `errors` field instead." - }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebhookError", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webhook", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Webhook", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "WebhookUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", - "description": "The new name of the webhook.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "targetUrl", - "description": "The url to receive the payload.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": "The events that webhook wants to subscribe. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "asyncEvents", - "description": "The asynchronous events that webhook wants to subscribe.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeAsyncEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "syncEvents", - "description": "The synchronous events that webhook wants to subscribe.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WebhookEventTypeSyncEnum", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": "ID of the app to which webhook belongs.", - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isActive", - "description": "Determine if webhook will be set active or not.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "secretKey", - "description": "Use to create a hash signature with each payload.\n\nDEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "Subscription query used to define a webhook payload.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "customHeaders", - "description": "Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only \"X-*\" and \"Authorization*\" keys are allowed.\n\nAdded in Saleor 3.12.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", - "type": { - "kind": "SCALAR", - "name": "JSONString", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Weight", - "description": "Represents weight value in a specific weight unit.", - "fields": [ - { - "name": "unit", - "description": "Weight unit.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "WeightUnitsEnum", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "Weight value.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "WeightScalar", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "WeightUnitsEnum", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "G", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "KG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TONNE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "_Any", - "description": "_Any value scalar as defined by Federation spec.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "_Entity", - "description": "_Entity union as defined by Federation spec.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Group", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Product", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductType", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ProductMedia", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Category", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Collection", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PageType", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "_Service", - "description": "_Service manifest as defined by Federation spec.", - "fields": [ - { - "name": "sdl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Schema", - "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", - "fields": [ - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "types", - "description": "A list of all types supported by this server.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "queryType", - "description": "The type that query operations will be rooted at.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mutationType", - "description": "If this server supports mutation, the type that mutation operations will be rooted at.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "subscriptionType", - "description": "If this server support subscription, the type that subscription operations will be rooted at.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "directives", - "description": "A list of all directives supported by this server.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Directive", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Type", - "description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", - "fields": [ - { - "name": "kind", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "__TypeKind", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "specifiedByUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fields", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Field", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "interfaces", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "possibleTypes", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "enumValues", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__EnumValue", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputFields", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ofType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "__TypeKind", - "description": "An enum describing what kind of type a given `__Type` is.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "SCALAR", - "description": "Indicates this type is a scalar.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBJECT", - "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INTERFACE", - "description": "Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNION", - "description": "Indicates this type is a union. `possibleTypes` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM", - "description": "Indicates this type is an enum. `enumValues` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_OBJECT", - "description": "Indicates this type is an input object. `inputFields` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LIST", - "description": "Indicates this type is a list. `ofType` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NON_NULL", - "description": "Indicates this type is a non-null. `ofType` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Field", - "description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "args", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__InputValue", - "description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultValue", - "description": "A GraphQL-formatted string representing the default value for this input value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__EnumValue", - "description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Directive", - "description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isRepeatable", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "locations", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "__DirectiveLocation", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "args", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "__DirectiveLocation", - "description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "QUERY", - "description": "Location adjacent to a query operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MUTATION", - "description": "Location adjacent to a mutation operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SUBSCRIPTION", - "description": "Location adjacent to a subscription operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIELD", - "description": "Location adjacent to a field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FRAGMENT_DEFINITION", - "description": "Location adjacent to a fragment definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FRAGMENT_SPREAD", - "description": "Location adjacent to a fragment spread.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INLINE_FRAGMENT", - "description": "Location adjacent to an inline fragment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIABLE_DEFINITION", - "description": "Location adjacent to a variable definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCHEMA", - "description": "Location adjacent to a schema definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCALAR", - "description": "Location adjacent to a scalar definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBJECT", - "description": "Location adjacent to an object type definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIELD_DEFINITION", - "description": "Location adjacent to a field definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ARGUMENT_DEFINITION", - "description": "Location adjacent to an argument definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INTERFACE", - "description": "Location adjacent to an interface definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNION", - "description": "Location adjacent to a union definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM", - "description": "Location adjacent to an enum definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM_VALUE", - "description": "Location adjacent to an enum value definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_OBJECT", - "description": "Location adjacent to an input object type definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_FIELD_DEFINITION", - "description": "Location adjacent to an input object field definition.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - } - ], - "directives": [ - { - "name": "include", - "description": "Directs the executor to include this field or fragment only when the `if` argument is true.", - "isRepeatable": false, - "locations": [ - "FIELD", - "FRAGMENT_SPREAD", - "INLINE_FRAGMENT" - ], - "args": [ - { - "name": "if", - "description": "Included when true.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "skip", - "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", - "isRepeatable": false, - "locations": [ - "FIELD", - "FRAGMENT_SPREAD", - "INLINE_FRAGMENT" - ], - "args": [ - { - "name": "if", - "description": "Skipped when true.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "deprecated", - "description": "Marks an element of a GraphQL schema as no longer supported.", - "isRepeatable": false, - "locations": [ - "FIELD_DEFINITION", - "ARGUMENT_DEFINITION", - "INPUT_FIELD_DEFINITION", - "ENUM_VALUE" - ], - "args": [ - { - "name": "reason", - "description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": "\"No longer supported\"", - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "specifiedBy", - "description": "Exposes a URL that specifies the behaviour of this scalar.", - "isRepeatable": false, - "locations": [ - "SCALAR" - ], - "args": [ - { - "name": "url", - "description": "The URL that specifies the behaviour of this scalar.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - } - ] - } -} \ No newline at end of file diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index ae88cd495..972bcf116 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -448,6 +448,9 @@ "context": "sum of all pending refunds inside an order", "string": "Pending refunds" }, + "1+ROfp": { + "string": "Transaction" + }, "1/oG76": { "context": "dialog header", "string": "Delete Sale" @@ -972,6 +975,9 @@ "context": "content", "string": "Saleor couldn’t fetch crucial information regarding installation. Without those System can’t install the app in your Saleor. Please use the button below to get back to system’s dashboard." }, + "50lR2F": { + "string": "- used by Payment Plugins" + }, "51HE+Q": { "string": "No sales found" }, @@ -2298,9 +2304,6 @@ "context": "sale name", "string": "Name" }, - "F5OqYa": { - "string": "Creates a single payment when unchecked" - }, "F69lwk": { "context": "settings menu item", "string": "Settings" @@ -2421,6 +2424,9 @@ "FpIcp9": { "string": "No customers found" }, + "Fqe4aB": { + "string": "- used by Payment Apps" + }, "Ftz7VI": { "context": "input label, transaction amount", "string": "Transaction amount" @@ -3306,6 +3312,9 @@ "context": "custom app token key", "string": "Key" }, + "MDOw8D": { + "string": "\"Mark as paid\" feature creates a" + }, "MHVglr": { "context": "deactivate", "string": "Deactivate" @@ -3514,9 +3523,6 @@ "context": "table header column", "string": "Tax rate" }, - "NkLZBG": { - "string": "Mark as paid uses Transactions API" - }, "NlEVVT": { "context": "label for button", "string": "Create class" @@ -6163,6 +6169,9 @@ "context": "product type name", "string": "Type Name" }, + "hHv0ih": { + "string": "If left unchecked it creates a" + }, "hJZwTS": { "string": "Email address" }, diff --git a/schema.graphql b/schema.graphql index 7b351a998..ecc98769e 100644 --- a/schema.graphql +++ b/schema.graphql @@ -1,3 +1,9 @@ +"""Groups fields and operations into named groups.""" +directive @doc( + """Name of the grouping category""" + category: String! +) on ENUM | FIELD | FIELD_DEFINITION | INPUT_OBJECT | OBJECT + """ Create a new address for the customer. @@ -44,6 +50,7 @@ type AccountDelete { user: User } +"""Represents errors in account mutations.""" type AccountError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -98,6 +105,7 @@ enum AccountErrorCode { ACCOUNT_NOT_CONFIRMED } +"""Fields required to update the user.""" input AccountInput { """Given name.""" firstName: String @@ -124,6 +132,7 @@ type AccountRegister { user: User } +"""Fields required to create a user.""" input AccountRegisterInput { """Given name.""" firstName: String @@ -284,8 +293,6 @@ type AddressCreate { Event sent when new address is created. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AddressCreated implements Event { """Time of the event.""" @@ -321,8 +328,6 @@ type AddressDelete { Event sent when address is deleted. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AddressDeleted implements Event { """Time of the event.""" @@ -411,8 +416,6 @@ type AddressUpdate { Event sent when address is updated. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AddressUpdated implements Event { """Time of the event.""" @@ -431,6 +434,7 @@ type AddressUpdated implements Event { address: Address } +"""Represents address validation rules for a country.""" type AddressValidationData { countryCode: String! countryName: String! @@ -610,8 +614,6 @@ type App implements Node & ObjectWithMetadata { App's dashboard extensions. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ extensions: [AppExtension!]! } @@ -692,8 +694,6 @@ type AppDeleteFailedInstallation { Event sent when app is deleted. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AppDeleted implements Event { """Time of the event.""" @@ -895,8 +895,6 @@ type AppInstallation implements Node & Job { Event sent when new app is installed. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AppInstalled implements Event { """Time of the event.""" @@ -989,7 +987,7 @@ enum AppSortField { } input AppSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort apps.""" direction: OrderDirection! """Sort apps by the selected field.""" @@ -1000,8 +998,6 @@ input AppSortingInput { Event sent when app status has changed. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AppStatusChanged implements Event { """Time of the event.""" @@ -1099,8 +1095,6 @@ type AppUpdate { Event sent when app is updated. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AppUpdated implements Event { """Time of the event.""" @@ -1240,10 +1234,14 @@ type Attribute implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): AttributeValueCountableConnection @@ -1292,10 +1290,14 @@ type Attribute implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductTypeCountableConnection! productVariantTypes( @@ -1305,10 +1307,14 @@ type Attribute implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductTypeCountableConnection! @@ -1341,7 +1347,7 @@ enum AttributeChoicesSortField { } input AttributeChoicesSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort attribute choices.""" direction: OrderDirection! """Sort attribute choices by the selected field.""" @@ -1439,8 +1445,6 @@ input AttributeCreateInput { Event sent when new attribute is created. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AttributeCreated implements Event { """Time of the event.""" @@ -1474,8 +1478,6 @@ type AttributeDelete { Event sent when attribute is deleted. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AttributeDeleted implements Event { """Time of the event.""" @@ -1644,7 +1646,7 @@ enum AttributeSortField { } input AttributeSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort attributes.""" direction: OrderDirection! """Sort attributes by the selected field.""" @@ -1770,8 +1772,6 @@ input AttributeUpdateInput { Event sent when attribute is updated. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AttributeUpdated implements Event { """Time of the event.""" @@ -1934,8 +1934,6 @@ input AttributeValueCreateInput { Event sent when new attribute value is created. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AttributeValueCreated implements Event { """Time of the event.""" @@ -1971,8 +1969,6 @@ type AttributeValueDelete { Event sent when attribute value is deleted. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AttributeValueDeleted implements Event { """Time of the event.""" @@ -2203,8 +2199,6 @@ input AttributeValueUpdateInput { Event sent when attribute value is updated. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type AttributeValueUpdated implements Event { """Time of the event.""" @@ -2399,8 +2393,6 @@ type BulkStockError { Synchronous webhook for calculating checkout/order taxes. Added in Saleor 3.7. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CalculateTaxes implements Event { """Time of the event.""" @@ -2528,10 +2520,14 @@ type Category implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CategoryCountableConnection @@ -2562,10 +2558,14 @@ type Category implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductCountableConnection @@ -2577,10 +2577,14 @@ type Category implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CategoryCountableConnection backgroundImage( @@ -2593,8 +2597,6 @@ type Category implements Node & ObjectWithMetadata { The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ format: ThumbnailFormatEnum ): Image @@ -2650,8 +2652,6 @@ type CategoryCreate { Event sent when new category is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CategoryCreated implements Event { """Time of the event.""" @@ -2685,8 +2685,6 @@ type CategoryDelete { Event sent when category is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CategoryDeleted implements Event { """Time of the event.""" @@ -2762,7 +2760,7 @@ enum CategorySortField { } input CategorySortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort categories.""" direction: OrderDirection! """ @@ -2856,8 +2854,6 @@ type CategoryUpdate { Event sent when category is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CategoryUpdated implements Event { """Time of the event.""" @@ -2925,8 +2921,6 @@ type Channel implements Node { Added in Saleor 3.5. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. """ warehouses: [Warehouse!]! @@ -2935,8 +2929,6 @@ type Channel implements Node { List of shippable countries for the channel. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ countries: [CountryDisplay!] @@ -2944,8 +2936,6 @@ type Channel implements Node { Shipping methods that are available for the channel. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ availableShippingMethodsPerCountry(countries: [CountryCode!]): [ShippingMethodsPerCountry!] @@ -2954,8 +2944,6 @@ type Channel implements Node { Added in Saleor 3.7. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. """ stockSettings: StockSettings! @@ -3001,8 +2989,6 @@ input ChannelCreateInput { The channel stock settings. Added in Saleor 3.7. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ stockSettings: StockSettingsInput @@ -3013,8 +2999,6 @@ input ChannelCreateInput { List of warehouses to assign to the channel. Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ addWarehouses: [ID!] @@ -3038,8 +3022,6 @@ input ChannelCreateInput { Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ defaultCountry: CountryCode! } @@ -3048,8 +3030,6 @@ input ChannelCreateInput { Event sent when new channel is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ChannelCreated implements Event { """Time of the event.""" @@ -3100,8 +3080,6 @@ input ChannelDeleteInput { Event sent when channel is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ChannelDeleted implements Event { """Time of the event.""" @@ -3169,9 +3147,7 @@ input ChannelListingUpdateInput { """ Reorder the warehouses of a channel. -Added in Saleor 3.7. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.7. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -3185,8 +3161,6 @@ type ChannelReorderWarehouses { Event sent when channel status has changed. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ChannelStatusChanged implements Event { """Time of the event.""" @@ -3225,8 +3199,6 @@ input ChannelUpdateInput { The channel stock settings. Added in Saleor 3.7. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ stockSettings: StockSettingsInput @@ -3237,8 +3209,6 @@ input ChannelUpdateInput { List of warehouses to assign to the channel. Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ addWarehouses: [ID!] @@ -3269,8 +3239,6 @@ input ChannelUpdateInput { List of warehouses to unassign from the channel. Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ removeWarehouses: [ID!] } @@ -3279,8 +3247,6 @@ input ChannelUpdateInput { Event sent when channel is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ChannelUpdated implements Event { """Time of the event.""" @@ -3349,7 +3315,14 @@ type Checkout implements Node & ObjectWithMetadata { """ metafields(keys: [String!]): Metadata created: DateTime! - lastChange: DateTime! + + """ + Time of last modification of the given checkout. + + Added in Saleor 3.13. + """ + updatedAt: DateTime! + lastChange: DateTime! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `updatedAt` instead.") user: User channel: Channel! billingAddress: Address @@ -3370,8 +3343,6 @@ type Checkout implements Node & ObjectWithMetadata { Collection points that can be used for this order. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ availableCollectionPoints: [Warehouse!]! @@ -3412,8 +3383,6 @@ type Checkout implements Node & ObjectWithMetadata { The delivery method selected for this checkout. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ deliveryMethod: DeliveryMethod @@ -3424,8 +3393,6 @@ type Checkout implements Node & ObjectWithMetadata { Returns True if checkout has to be exempt from taxes. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ taxExemption: Boolean! @@ -3437,6 +3404,15 @@ type Checkout implements Node & ObjectWithMetadata { """ totalPrice: TaxedMoney! + """ + The difference between the paid and the checkout total amount. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + totalBalance: Money! + """Checkout language code.""" languageCode: LanguageCodeEnum! @@ -3453,10 +3429,26 @@ type Checkout implements Node & ObjectWithMetadata { Determines whether checkout prices should include taxes when displayed in a storefront. Added in Saleor 3.9. + """ + displayGrossPrices: Boolean! + + """ + The authorize status of the checkout. + + Added in Saleor 3.13. Note: this API is currently in Feature Preview and can be subject to changes at later point. """ - displayGrossPrices: Boolean! + authorizeStatus: CheckoutAuthorizeStatusEnum! + + """ + The charge status of the checkout. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + chargeStatus: CheckoutChargeStatusEnum! } """Adds a gift card or a voucher to a checkout.""" @@ -3484,6 +3476,27 @@ input CheckoutAddressValidationRules { enableFieldsNormalization: Boolean = true } +""" +Determine a current authorize status for checkout. + + We treat the checkout as fully authorized when the sum of authorized and charged + funds cover the checkout.total. + We treat the checkout as partially authorized when the sum of authorized and charged + funds covers only part of the checkout.total + We treat the checkout as not authorized when the sum of authorized and charged funds + is 0. + + NONE - the funds are not authorized + PARTIAL - the cover funds don't cover fully the checkout's total + FULL - the cover funds covers the checkout's total + +""" +enum CheckoutAuthorizeStatusEnum { + NONE + PARTIAL + FULL +} + """Update billing address in the existing checkout.""" type CheckoutBillingAddressUpdate { """An updated checkout.""" @@ -3492,6 +3505,30 @@ type CheckoutBillingAddressUpdate { errors: [CheckoutError!]! } +""" +Determine the current charge status for the checkout. + + The checkout is considered overcharged when the sum of the transactionItem's charge + amounts exceeds the value of `checkout.total`. + If the sum of the transactionItem's charge amounts equals + `checkout.total`, we consider the checkout to be fully charged. + If the sum of the transactionItem's charge amounts covers a part of the + `checkout.total`, we treat the checkout as partially charged. + + + NONE - the funds are not charged. + PARTIAL - the funds that are charged don't cover the checkout's total + FULL - the funds that are charged fully cover the checkout's total + OVERCHARGED - the charged funds are bigger than checkout's total + +""" +enum CheckoutChargeStatusEnum { + NONE + PARTIAL + FULL + OVERCHARGED +} + """ Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation. """ @@ -3565,8 +3602,6 @@ input CheckoutCreateInput { The checkout validation rules that can be changed. Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ validationRules: CheckoutValidationRules } @@ -3575,8 +3610,6 @@ input CheckoutCreateInput { Event sent when new checkout is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CheckoutCreated implements Event { """Time of the event.""" @@ -3623,8 +3656,6 @@ type CheckoutCustomerDetach { Updates the delivery method (shipping method or pick up point) of the checkout. Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CheckoutDeliveryMethodUpdate { """An updated checkout.""" @@ -3700,14 +3731,15 @@ input CheckoutFilterInput { search: String metadata: [MetadataFilter!] channels: [ID!] + updatedAt: DateRangeInput + authorizeStatus: [CheckoutAuthorizeStatusEnum!] + chargeStatus: [CheckoutChargeStatusEnum!] } """ Filter shipping methods for checkout. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CheckoutFilterShippingMethods implements Event { """Time of the event.""" @@ -3729,12 +3761,34 @@ type CheckoutFilterShippingMethods implements Event { Shipping methods that can be used with this checkout. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ shippingMethods: [ShippingMethod!] } +""" +Event sent when checkout is fully paid with transactions. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type CheckoutFullyPaid implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The checkout the event relates to.""" + checkout: Checkout +} + """Update language code in the existing checkout.""" type CheckoutLanguageCodeUpdate { """An updated checkout.""" @@ -3859,8 +3913,6 @@ input CheckoutLineInput { Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ price: PositiveDecimal @@ -3868,8 +3920,6 @@ input CheckoutLineInput { Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ forceNewLine: Boolean = false @@ -3898,8 +3948,6 @@ input CheckoutLineUpdateInput { Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ price: PositiveDecimal @@ -3940,8 +3988,6 @@ type CheckoutLinesUpdate { Event sent when checkout metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CheckoutMetadataUpdated implements Event { """Time of the event.""" @@ -4007,7 +4053,7 @@ enum CheckoutSortField { } input CheckoutSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort checkouts.""" direction: OrderDirection! """Sort checkouts by the selected field.""" @@ -4018,8 +4064,6 @@ input CheckoutSortingInput { Event sent when checkout is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CheckoutUpdated implements Event { """Time of the event.""" @@ -4142,10 +4186,14 @@ type Collection implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductCountableConnection backgroundImage( @@ -4158,8 +4206,6 @@ type Collection implements Node & ObjectWithMetadata { The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ format: ThumbnailFormatEnum ): Image @@ -4342,8 +4388,6 @@ input CollectionCreateInput { Event sent when new collection is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CollectionCreated implements Event { """Time of the event.""" @@ -4380,8 +4424,6 @@ type CollectionDelete { Event sent when collection is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CollectionDeleted implements Event { """Time of the event.""" @@ -4497,8 +4539,6 @@ input CollectionInput { Event sent when collection metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CollectionMetadataUpdated implements Event { """Time of the event.""" @@ -4579,7 +4619,7 @@ enum CollectionSortField { } input CollectionSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort collections.""" direction: OrderDirection! """ @@ -4673,8 +4713,6 @@ type CollectionUpdate { Event sent when collection is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CollectionUpdated implements Event { """Time of the event.""" @@ -5091,6 +5129,68 @@ type CustomerBulkDelete { errors: [AccountError!]! } +type CustomerBulkResult { + """Customer data.""" + customer: User + + """List of errors that occurred during the update attempt.""" + errors: [CustomerBulkUpdateError!] +} + +""" +Updates customers. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: MANAGE_USERS. +""" +type CustomerBulkUpdate { + """Returns how many objects were created.""" + count: Int! + + """List of the updated customers.""" + results: [CustomerBulkResult!]! + errors: [CustomerBulkUpdateError!]! +} + +type CustomerBulkUpdateError { + """ + Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + path: String + + """The error message.""" + message: String + + """The error code.""" + code: CustomerBulkUpdateErrorCode! +} + +"""An enumeration.""" +enum CustomerBulkUpdateErrorCode { + BLANK + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INVALID + REQUIRED + UNIQUE + NOT_FOUND + MAX_LENGTH +} + +input CustomerBulkUpdateInput { + """ID of a customer to update.""" + id: ID + + """External ID of a customer to update.""" + externalReference: String + + """Fields required to update a customer.""" + input: CustomerInput! +} + """ Creates a new customer. @@ -5106,8 +5206,6 @@ type CustomerCreate { Event sent when new customer user is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CustomerCreated implements Event { """Time of the event.""" @@ -5238,8 +5336,6 @@ input CustomerInput { Event sent when customer user metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CustomerMetadataUpdated implements Event { """Time of the event.""" @@ -5273,8 +5369,6 @@ type CustomerUpdate { Event sent when customer user is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type CustomerUpdated implements Event { """Time of the event.""" @@ -5333,6 +5427,14 @@ type DeactivateAllUserTokens { errors: [AccountError!]! } +""" +Custom Decimal implementation. + +Returns Decimal as a float in the API, +parses float to the Decimal on the way back. +""" +scalar Decimal + """ Delete metadata of an object. To use it, you need to have access to the modified object. """ @@ -5355,8 +5457,6 @@ type DeletePrivateMetadata { Represents a delivery method chosen for the checkout. `Warehouse` type is used when checkout is marked as "click and collect" and `ShippingMethod` otherwise. Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ union DeliveryMethod = Warehouse | ShippingMethod @@ -5716,8 +5816,6 @@ input DraftOrderCreateInput { Event sent when new draft order is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type DraftOrderCreated implements Event { """Time of the event.""" @@ -5751,8 +5849,6 @@ type DraftOrderDelete { Event sent when draft order is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type DraftOrderDeleted implements Event { """Time of the event.""" @@ -5839,8 +5935,6 @@ type DraftOrderUpdate { Event sent when draft order is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type DraftOrderUpdated implements Event { """Time of the event.""" @@ -5908,10 +6002,14 @@ type EventDelivery implements Node { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): EventDeliveryAttemptCountableConnection @@ -5971,7 +6069,7 @@ enum EventDeliveryAttemptSortField { } input EventDeliveryAttemptSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort attempts.""" direction: OrderDirection! """Sort attempts by the selected field.""" @@ -6017,7 +6115,7 @@ enum EventDeliverySortField { } input EventDeliverySortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort deliveries.""" direction: OrderDirection! """Sort deliveries by the selected field.""" @@ -6144,7 +6242,7 @@ enum ExportFileSortField { } input ExportFileSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort export file.""" direction: OrderDirection! """Sort export file by the selected field.""" @@ -6154,9 +6252,7 @@ input ExportFileSortingInput { """ Export gift cards to csv file. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -6246,7 +6342,7 @@ type ExternalAuthentication { name: String } -"""Prepare external authentication url for user by custom plugin.""" +"""Prepare external authentication URL for user by custom plugin.""" type ExternalAuthenticationUrl { """The data returned by authentication plugin.""" authenticationData: JSONString @@ -6467,8 +6563,6 @@ type FulfillmentApprove { Event sent when fulfillment is approved. Added in Saleor 3.7. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type FulfillmentApproved implements Event { """Time of the event.""" @@ -6516,8 +6610,6 @@ input FulfillmentCancelInput { Event sent when fulfillment is canceled. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type FulfillmentCanceled implements Event { """Time of the event.""" @@ -6543,8 +6635,6 @@ type FulfillmentCanceled implements Event { Event sent when new fulfillment is created. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type FulfillmentCreated implements Event { """Time of the event.""" @@ -6577,8 +6667,6 @@ type FulfillmentLine implements Node { Event sent when fulfillment metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type FulfillmentMetadataUpdated implements Event { """Time of the event.""" @@ -6754,8 +6842,6 @@ type GiftCard implements Node & ObjectWithMetadata { The user who bought or issued a gift card. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ createdBy: User @@ -6763,8 +6849,6 @@ type GiftCard implements Node & ObjectWithMetadata { The customer who used a gift card. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ usedBy: User @@ -6773,8 +6857,6 @@ type GiftCard implements Node & ObjectWithMetadata { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: MANAGE_USERS, OWNER. """ createdByEmail: String @@ -6783,8 +6865,6 @@ type GiftCard implements Node & ObjectWithMetadata { Email address of the customer who used a gift card. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ usedByEmail: String lastUsedOn: DateTime @@ -6795,8 +6875,6 @@ type GiftCard implements Node & ObjectWithMetadata { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: MANAGE_APPS, OWNER. """ app: App @@ -6805,8 +6883,6 @@ type GiftCard implements Node & ObjectWithMetadata { Related gift card product. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ product: Product @@ -6815,8 +6891,6 @@ type GiftCard implements Node & ObjectWithMetadata { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: MANAGE_GIFT_CARD. """ events( @@ -6829,8 +6903,6 @@ type GiftCard implements Node & ObjectWithMetadata { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: MANAGE_GIFT_CARD. """ tags: [GiftCardTag!]! @@ -6839,8 +6911,6 @@ type GiftCard implements Node & ObjectWithMetadata { Slug of the channel where the gift card was bought. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ boughtInChannel: String isActive: Boolean! @@ -6872,9 +6942,7 @@ type GiftCardActivate { """ Adds note to the gift card. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -6895,9 +6963,7 @@ input GiftCardAddNoteInput { """ Activate gift cards. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -6910,9 +6976,7 @@ type GiftCardBulkActivate { """ Create gift cards. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -6945,9 +7009,7 @@ input GiftCardBulkCreateInput { """ Deactivate gift cards. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -6960,9 +7022,7 @@ type GiftCardBulkDeactivate { """ Delete gift cards. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -7005,8 +7065,6 @@ input GiftCardCreateInput { The gift card tags to add. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ addTags: [String!] @@ -7014,8 +7072,6 @@ input GiftCardCreateInput { The gift card expiry date. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ expiryDate: Date @@ -7043,8 +7099,6 @@ input GiftCardCreateInput { Slug of a channel from which the email should be sent. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ channel: String @@ -7052,8 +7106,6 @@ input GiftCardCreateInput { Determine if gift card is active. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ isActive: Boolean! @@ -7068,8 +7120,6 @@ input GiftCardCreateInput { The gift card note from the staff member. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ note: String } @@ -7078,8 +7128,6 @@ input GiftCardCreateInput { Event sent when new gift card is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type GiftCardCreated implements Event { """Time of the event.""" @@ -7113,9 +7161,7 @@ type GiftCardDeactivate { """ Delete gift card. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -7129,8 +7175,6 @@ type GiftCardDelete { Event sent when gift card is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type GiftCardDeleted implements Event { """Time of the event.""" @@ -7181,8 +7225,6 @@ enum GiftCardErrorCode { History log of the gift card. Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type GiftCardEvent implements Node { id: ID! @@ -7283,8 +7325,6 @@ input GiftCardFilterInput { Event sent when gift card metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type GiftCardMetadataUpdated implements Event { """Time of the event.""" @@ -7306,9 +7346,7 @@ type GiftCardMetadataUpdated implements Event { """ Resend a gift card. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -7329,6 +7367,36 @@ input GiftCardResendInput { channel: String! } +""" +Event sent when gift card is e-mailed. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type GiftCardSent implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The gift card the event relates to.""" + giftCard: GiftCard + + """Slug of a channel for which this gift card email was sent.""" + channel: String + + """E-mail address to which gift card was sent.""" + sentToEmail: String +} + """Gift card related settings from site settings.""" type GiftCardSettings { """The gift card expiry type settings.""" @@ -7402,7 +7470,7 @@ enum GiftCardSortField { } input GiftCardSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort gift cards.""" direction: OrderDirection! """Sort gift cards by the selected field.""" @@ -7413,8 +7481,6 @@ input GiftCardSortingInput { Event sent when gift card status has changed. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type GiftCardStatusChanged implements Event { """Time of the event.""" @@ -7437,8 +7503,6 @@ type GiftCardStatusChanged implements Event { The gift card tag. Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type GiftCardTag implements Node { id: ID! @@ -7482,8 +7546,6 @@ input GiftCardUpdateInput { The gift card tags to add. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ addTags: [String!] @@ -7491,8 +7553,6 @@ input GiftCardUpdateInput { The gift card expiry date. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ expiryDate: Date @@ -7514,8 +7574,6 @@ input GiftCardUpdateInput { The gift card tags to remove. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ removeTags: [String!] @@ -7523,8 +7581,6 @@ input GiftCardUpdateInput { The gift card balance amount. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ balanceAmount: PositiveDecimal } @@ -7533,8 +7589,6 @@ input GiftCardUpdateInput { Event sent when gift card is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type GiftCardUpdated implements Event { """Time of the event.""" @@ -7712,8 +7766,6 @@ type InvoiceDelete { Event sent when invoice is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type InvoiceDeleted implements Event { """Time of the event.""" @@ -7792,8 +7844,6 @@ type InvoiceRequestDelete { Event sent when invoice is requested. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type InvoiceRequested implements Event { """Time of the event.""" @@ -7834,8 +7884,6 @@ type InvoiceSendNotification { Event sent when invoice is sent. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type InvoiceSent implements Event { """Time of the event.""" @@ -7874,6 +7922,8 @@ type InvoiceUpdate { union IssuingPrincipal = App | User +scalar JSON + scalar JSONString interface Job { @@ -8729,8 +8779,6 @@ type Manifest { List of the app's webhooks. Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ webhooks: [AppManifestWebhook!]! @@ -8738,8 +8786,6 @@ type Manifest { The audience that will be included in all JWT tokens for the app. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ audience: String @@ -8767,6 +8813,22 @@ type Margin { stop: Int } +""" +Determine the mark as paid strategy for the channel. + + TRANSACTION_FLOW - new orders marked as paid will receive a + `TransactionItem` object, that will cover the `order.total`. + + PAYMENT_FLOW - new orders marked as paid will receive a + `Payment` object, that will cover the `order.total`. + + +""" +enum MarkAsPaidStrategyEnum { + TRANSACTION_FLOW + PAYMENT_FLOW +} + """An enumeration.""" enum MeasurementUnitsEnum { CM @@ -8814,8 +8876,19 @@ enum MediaChoicesSortField { ID } +input MediaInput { + """Alt text for a product media.""" + alt: String + + """Represents an image file in a multipart request.""" + image: Upload + + """Represents an URL to an external media.""" + mediaUrl: String +} + input MediaSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort media.""" direction: OrderDirection! """Sort media by the selected field.""" @@ -8933,8 +9006,6 @@ input MenuCreateInput { Event sent when new menu is created. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type MenuCreated implements Event { """Time of the event.""" @@ -8971,8 +9042,6 @@ type MenuDelete { Event sent when menu is deleted. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type MenuDeleted implements Event { """Time of the event.""" @@ -9180,8 +9249,6 @@ input MenuItemCreateInput { Event sent when new menu item is created. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type MenuItemCreated implements Event { """Time of the event.""" @@ -9218,8 +9285,6 @@ type MenuItemDelete { Event sent when menu item is deleted. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type MenuItemDeleted implements Event { """Time of the event.""" @@ -9289,7 +9354,7 @@ input MenuItemMoveInput { } input MenuItemSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort menu items.""" direction: OrderDirection! """Sort menu items by the selected field.""" @@ -9346,8 +9411,6 @@ type MenuItemUpdate { Event sent when menu item is updated. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type MenuItemUpdated implements Event { """Time of the event.""" @@ -9383,7 +9446,7 @@ enum MenuSortField { } input MenuSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort menus.""" direction: OrderDirection! """Sort menus by the selected field.""" @@ -9405,8 +9468,6 @@ type MenuUpdate { Event sent when menu is updated. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type MenuUpdated implements Event { """Time of the event.""" @@ -9487,6 +9548,11 @@ type MetadataItem { value: String! } +""" +The `Minute` scalar type represents number of minutes by integer value. +""" +scalar Minute + """Represents amount of money in specific currency.""" type Money { """Currency code.""" @@ -9663,9 +9729,7 @@ type Mutation { """ Create a tax class. - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -9677,9 +9741,7 @@ type Mutation { """ Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class. - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -9691,9 +9753,7 @@ type Mutation { """ Update a tax class. - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -9708,9 +9768,7 @@ type Mutation { """ Update tax configuration for a channel. - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -9725,9 +9783,7 @@ type Mutation { """ Update tax class rates for a specific country. - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -9744,9 +9800,7 @@ type Mutation { """ Remove all tax class rates for a specific country. - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -9758,9 +9812,7 @@ type Mutation { """ Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known. - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.8. Requires one of the following permissions: MANAGE_TAXES. """ @@ -10270,6 +10322,23 @@ type Mutation { id: ID ): ProductDelete + """ + Creates products. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productBulkCreate( + """Policies of error handling.""" + errorPolicy: ErrorPolicyEnum + + """Input list of products to create.""" + products: [ProductBulkCreateInput!]! + ): ProductBulkCreate + """ Deletes products. @@ -10750,9 +10819,7 @@ type Mutation { """ Deactivates product variant preorder. It changes all preorder allocation into regular allocation. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10842,11 +10909,13 @@ type Mutation { ): PaymentCheckBalance """ - Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + Create transaction for checkout or order. Added in Saleor 3.4. - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: HANDLE_PAYMENTS. """ transactionCreate( """The ID of the checkout or order.""" @@ -10860,11 +10929,13 @@ type Mutation { ): TransactionCreate """ - Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + Create transaction for checkout or order. Added in Saleor 3.4. Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires the following permissions: OWNER and HANDLE_PAYMENTS. """ transactionUpdate( """The ID of the transaction.""" @@ -10884,7 +10955,7 @@ type Mutation { Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS. + Requires one of the following permissions: HANDLE_PAYMENTS. """ transactionRequestAction( """Determines the action type.""" @@ -10899,6 +10970,105 @@ type Mutation { id: ID! ): TransactionRequestAction + """ + Report the event for the transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires the following permissions: OWNER and HANDLE_PAYMENTS. + """ + transactionEventReport( + """The amount of the event to report.""" + amount: PositiveDecimal! + + """List of all possible actions for the transaction""" + availableActions: [TransactionActionEnum!] + + """ + The url that will allow to redirect user to payment provider page with event details. + """ + externalUrl: String + + """The ID of the transaction.""" + id: ID! + + """The message related to the event.""" + message: String + + """PSP Reference of the event to report.""" + pspReference: String! + + """ + The time of the event to report. If not provide, the current time will be used. + """ + time: DateTime + + """Current status of the event to report.""" + type: TransactionEventTypeEnum! + ): TransactionEventReport + + """ + Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + paymentGatewayInitialize( + """ + The amount requested for initializing the payment gateway. If not provided, the difference between checkout.total - transactions that are already processed will be send. + """ + amount: PositiveDecimal + + """The ID of the checkout or order.""" + id: ID! + + """List of payment gateways to initialize.""" + paymentGateways: [PaymentGatewayToInitialize!] + ): PaymentGatewayInitialize + + """ + Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + transactionInitialize( + """ + The expected action called for the transaction. By default, the `channel.defaultTransactionFlowStrategy` will be used. The field can be used only by app that has `HANDLE_PAYMENTS` permission. + """ + action: TransactionFlowStrategyEnum + + """ + The amount requested for initializing the payment gateway. If not provided, the difference between checkout.total - transactions that are already processed will be send. + """ + amount: PositiveDecimal + + """The ID of the checkout or order.""" + id: ID! + + """Payment gateway used to initialize the transaction.""" + paymentGateway: PaymentGatewayToInitialize! + ): TransactionInitialize + + """ + Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + transactionProcess( + """The data that will be passed to the payment gateway.""" + data: JSON + + """The ID of the transaction to process.""" + id: ID! + ): TransactionProcess + """ Creates a new page. @@ -11273,6 +11443,40 @@ type Mutation { order: ID! ): FulfillmentReturnProducts + """ + Adds granted refund to the order. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orderGrantRefundCreate( + """ID of the order.""" + id: ID! + + """Fields required to create a granted refund for the order.""" + input: OrderGrantRefundCreateInput! + ): OrderGrantRefundCreate + + """ + Updates granted refund. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orderGrantRefundUpdate( + """ID of the granted refund.""" + id: ID! + + """Fields required to update a granted refund.""" + input: OrderGrantRefundUpdateInput! + ): OrderGrantRefundUpdate + """ Create order lines for an order. @@ -11713,9 +11917,7 @@ type Mutation { """ Delete gift card. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -11750,9 +11952,7 @@ type Mutation { """ Resend a gift card. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -11764,9 +11964,7 @@ type Mutation { """ Adds note to the gift card. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -11781,9 +11979,7 @@ type Mutation { """ Create gift cards. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -11795,9 +11991,7 @@ type Mutation { """ Delete gift cards. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -11809,9 +12003,7 @@ type Mutation { """ Activate gift cards. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -11823,9 +12015,7 @@ type Mutation { """ Deactivate gift cards. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -12073,9 +12263,7 @@ type Mutation { """ Export gift cards to csv file. - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -12151,8 +12339,6 @@ type Mutation { The rules for changing validation for received billing address data. Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ validationRules: CheckoutAddressValidationRules ): CheckoutBillingAddressUpdate @@ -12493,8 +12679,6 @@ type Mutation { The rules for changing validation for received shipping address data. Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ validationRules: CheckoutAddressValidationRules ): CheckoutShippingAddressUpdate @@ -12530,8 +12714,6 @@ type Mutation { Updates the delivery method (shipping method or pick up point) of the checkout. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ checkoutDeliveryMethodUpdate( """Delivery Method ID (`Warehouse` ID or `ShippingMethod` ID).""" @@ -12583,8 +12765,6 @@ type Mutation { Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS. Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ orderCreateFromCheckout( """ID of a checkout that will be converted to an order.""" @@ -12670,9 +12850,7 @@ type Mutation { """ Reorder the warehouses of a channel. - Added in Saleor 3.7. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. + Added in Saleor 3.7. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -12959,8 +13137,6 @@ type Mutation { The audience that will be included to JWT tokens with prefix `custom:`. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ audience: String @@ -12997,7 +13173,7 @@ type Mutation { """ tokensDeactivateAll: DeactivateAllUserTokens - """Prepare external authentication url for user by custom plugin.""" + """Prepare external authentication URL for user by custom plugin.""" externalAuthenticationUrl( """The data required by plugin to create external authentication url.""" input: JSONString! @@ -13333,6 +13509,23 @@ type Mutation { ids: [ID!]! ): CustomerBulkDelete + """ + Updates customers. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_USERS. + """ + customerBulkUpdate( + """Input list of customers to update.""" + customers: [CustomerBulkUpdateInput!]! + + """Policies of error handling. DEFAULT: REJECT_EVERYTHING""" + errorPolicy: ErrorPolicyEnum + ): CustomerBulkUpdate + """ Creates a new staff user. Apps are not allowed to perform this mutation. @@ -13399,7 +13592,7 @@ type Mutation { Requires one of the following permissions: MANAGE_USERS. """ userBulkSetActive( - """List of user IDs to (de)activate).""" + """List of user IDs to activate/deactivate.""" ids: [ID!]! """Determine if users will be set active or not.""" @@ -13583,8 +13776,6 @@ type Order implements Node & ObjectWithMetadata { Collection points that can be used for this order. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ availableCollectionPoints: [Warehouse!]! @@ -13615,8 +13806,6 @@ type Order implements Node & ObjectWithMetadata { The authorize status of the order. Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ authorizeStatus: OrderAuthorizeStatusEnum! @@ -13624,8 +13813,6 @@ type Order implements Node & ObjectWithMetadata { The charge status of the order. Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ chargeStatus: OrderChargeStatusEnum! @@ -13633,8 +13820,6 @@ type Order implements Node & ObjectWithMetadata { Returns True if order has to be exempt from taxes. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ taxExemption: Boolean! @@ -13642,8 +13827,6 @@ type Order implements Node & ObjectWithMetadata { List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS. Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ transactions: [TransactionItem!]! @@ -13670,8 +13853,6 @@ type Order implements Node & ObjectWithMetadata { Added in Saleor 3.9. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ shippingTaxClass: TaxClass @@ -13680,8 +13861,6 @@ type Order implements Node & ObjectWithMetadata { Denormalized name of the tax class assigned to the shipping method. Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ shippingTaxClassName: String @@ -13689,8 +13868,6 @@ type Order implements Node & ObjectWithMetadata { Denormalized public metadata of the shipping method's tax class. Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ shippingTaxClassMetadata: [MetadataItem!]! @@ -13698,8 +13875,6 @@ type Order implements Node & ObjectWithMetadata { Denormalized private metadata of the shipping method's tax class. Requires staff permissions to access. Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ shippingTaxClassPrivateMetadata: [MetadataItem!]! token: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `id` instead.") @@ -13725,8 +13900,22 @@ type Order implements Node & ObjectWithMetadata { """Amount authorized for the order.""" totalAuthorized: Money! - """Amount captured by payment.""" - totalCaptured: Money! + """Amount captured for the order. """ + totalCaptured: Money! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `totalCharged` instead.") + + """ + Amount charged for the order. + + Added in Saleor 3.13. + """ + totalCharged: Money! + + """ + Amount canceled for the order. + + Added in Saleor 3.13. + """ + totalCanceled: Money! """ List of events associated with the order. @@ -13750,8 +13939,6 @@ type Order implements Node & ObjectWithMetadata { The delivery method selected for this order. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ deliveryMethod: DeliveryMethod languageCode: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. ") @@ -13778,8 +13965,6 @@ type Order implements Node & ObjectWithMetadata { Determines whether checkout prices should include taxes when displayed in a storefront. Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ displayGrossPrices: Boolean! @@ -13796,6 +13981,92 @@ type Order implements Node & ObjectWithMetadata { Added in Saleor 3.11. """ checkoutId: ID + + """ + List of granted refunds. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + grantedRefunds: [OrderGrantedRefund!]! + + """ + Total amount of granted refund. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + totalGrantedRefund: Money! + + """ + Total refund amount for the order. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + totalRefunded: Money! + + """ + Total amount of ongoing refund requests for the order's transactions. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + totalRefundPending: Money! + + """ + Total amount of ongoing authorize requests for the order's transactions. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + totalAuthorizePending: Money! + + """ + Total amount of ongoing charge requests for the order's transactions. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + totalChargePending: Money! + + """ + Total amount of ongoing cancel requests for the order's transactions. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + totalCancelPending: Money! + + """ + The difference amount between granted refund and the amounts that are pending and refunded. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + totalRemainingGrant: Money! } enum OrderAction { @@ -13836,16 +14107,17 @@ input OrderAddNoteInput { Determine a current authorize status for order. We treat the order as fully authorized when the sum of authorized and charged funds - cover the order.total. + cover the `order.total`-`order.totalGrantedRefund`. We treat the order as partially authorized when the sum of authorized and charged - funds covers only part of the order.total + funds covers only part of the `order.total`-`order.totalGrantedRefund`. We treat the order as not authorized when the sum of authorized and charged funds is 0. NONE - the funds are not authorized - PARTIAL - the funds that are authorized or charged don't cover fully the order's - total - FULL - the funds that are authorized or charged fully cover the order's total + PARTIAL - the funds that are authorized and charged don't cover fully the + `order.total`-`order.totalGrantedRefund` + FULL - the funds that are authorized and charged fully cover the + `order.total`-`order.totalGrantedRefund` """ enum OrderAuthorizeStatusEnum { @@ -13882,8 +14154,6 @@ type OrderCancel { Event sent when order is canceled. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderCancelled implements Event { """Time of the event.""" @@ -13917,15 +14187,22 @@ type OrderCapture { """ Determine the current charge status for the order. - We treat the order as overcharged when the charged amount is bigger that order.total - We treat the order as fully charged when the charged amount is equal to order.total. - We treat the order as partially charged when the charged amount covers only part of - the order.total + An order is considered overcharged when the sum of the + transactionItem's charge amounts exceeds the value of + `order.total` - `order.totalGrantedRefund`. + If the sum of the transactionItem's charge amounts equals + `order.total` - `order.totalGrantedRefund`, we consider the order to be fully + charged. + If the sum of the transactionItem's charge amounts covers a part of the + `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged. NONE - the funds are not charged. - PARTIAL - the funds that are charged don't cover the order's total - FULL - the funds that are charged fully cover the order's total - OVERCHARGED - the charged funds are bigger than order's total + PARTIAL - the funds that are charged don't cover the + `order.total`-`order.totalGrantedRefund` + FULL - the funds that are charged fully cover the + `order.total`-`order.totalGrantedRefund` + OVERCHARGED - the charged funds are bigger than the + `order.total`-`order.totalGrantedRefund` """ enum OrderChargeStatusEnum { @@ -13950,8 +14227,6 @@ type OrderConfirm { Event sent when order is confirmed. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderConfirmed implements Event { """Time of the event.""" @@ -13991,8 +14266,6 @@ type OrderCountableEdge { Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderCreateFromCheckout { """Placed order.""" @@ -14041,8 +14314,6 @@ enum OrderCreateFromCheckoutErrorCode { Event sent when new order is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderCreated implements Event { """Time of the event.""" @@ -14200,6 +14471,7 @@ enum OrderErrorCode { ORDER_NO_SHIPPING_ADDRESS PAYMENT_ERROR PAYMENT_MISSING + TRANSACTION_ERROR REQUIRED SHIPPING_METHOD_NOT_APPLICABLE SHIPPING_METHOD_REQUIRED @@ -14212,7 +14484,6 @@ enum OrderErrorCode { DUPLICATED_INPUT_ITEM NOT_AVAILABLE_IN_CHANNEL CHANNEL_INACTIVE - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK } """History log of the order.""" @@ -14288,7 +14559,7 @@ type OrderEvent implements Node { discount: OrderEventDiscountObject """The status of payment's transaction.""" - status: TransactionStatus + status: TransactionStatus @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature).Use `TransactionEvent` to track the status of `TransactionItem`.") """The reference of payment's transaction.""" reference: String @@ -14361,7 +14632,7 @@ enum OrderEventsEmailsEnum { DIGITAL_LINKS } -"""An enumeration.""" +"""The different order event types. """ enum OrderEventsEnum { DRAFT_CREATED DRAFT_CREATED_FROM_REPLACE @@ -14371,6 +14642,7 @@ enum OrderEventsEnum { PLACED_FROM_DRAFT OVERSOLD_ITEMS CANCELED + EXPIRED ORDER_MARKED_AS_PAID ORDER_FULLY_PAID ORDER_REPLACEMENT_CREATED @@ -14392,9 +14664,20 @@ enum OrderEventsEnum { PAYMENT_VOIDED PAYMENT_FAILED TRANSACTION_EVENT + TRANSACTION_CHARGE_REQUESTED + + """ + This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead. + """ TRANSACTION_CAPTURE_REQUESTED TRANSACTION_REFUND_REQUESTED + + """ + This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead. + """ TRANSACTION_VOID_REQUESTED + TRANSACTION_CANCEL_REQUESTED + TRANSACTION_MARK_AS_PAID_FAILED INVOICE_REQUESTED INVOICE_GENERATED INVOICE_UPDATED @@ -14411,6 +14694,30 @@ enum OrderEventsEnum { OTHER } +""" +Event sent when order becomes expired. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type OrderExpired implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The order the event relates to.""" + order: Order +} + input OrderFilterInput { paymentStatus: [PaymentChargeStatusEnum!] status: [OrderStatusFilter!] @@ -14435,8 +14742,6 @@ input OrderFilterInput { Filter shipping methods for order. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderFilterShippingMethods implements Event { """Time of the event.""" @@ -14458,8 +14763,6 @@ type OrderFilterShippingMethods implements Event { Shipping methods that can be used with this checkout. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ shippingMethods: [ShippingMethod!] } @@ -14517,8 +14820,6 @@ input OrderFulfillStockInput { Event sent when order is fulfilled. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderFulfilled implements Event { """Time of the event.""" @@ -14541,8 +14842,6 @@ type OrderFulfilled implements Event { Event sent when order is fully paid. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderFullyPaid implements Event { """Time of the event.""" @@ -14561,6 +14860,129 @@ type OrderFullyPaid implements Event { order: Order } +""" +Adds granted refund to the order. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderGrantRefundCreate { + """Order which has assigned new grant refund.""" + order: Order + + """Created granted refund.""" + grantedRefund: OrderGrantedRefund + errors: [OrderGrantRefundCreateError!]! +} + +type OrderGrantRefundCreateError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: OrderGrantRefundCreateErrorCode! +} + +"""An enumeration.""" +enum OrderGrantRefundCreateErrorCode { + GRAPHQL_ERROR + NOT_FOUND +} + +input OrderGrantRefundCreateInput { + """Amount of the granted refund.""" + amount: Decimal! + + """Reason of the granted refund.""" + reason: String +} + +""" +Updates granted refund. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderGrantRefundUpdate { + """Order which has assigned updated grant refund.""" + order: Order + + """Created granted refund.""" + grantedRefund: OrderGrantedRefund + errors: [OrderGrantRefundUpdateError!]! + orderGrantedRefund: OrderGrantedRefund +} + +type OrderGrantRefundUpdateError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: OrderGrantRefundUpdateErrorCode! +} + +"""An enumeration.""" +enum OrderGrantRefundUpdateErrorCode { + GRAPHQL_ERROR + NOT_FOUND + REQUIRED +} + +input OrderGrantRefundUpdateInput { + """Amount of the granted refund.""" + amount: Decimal + + """Reason of the granted refund.""" + reason: String +} + +""" +The details of granted refund. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type OrderGrantedRefund { + id: ID! + + """Time of creation.""" + createdAt: DateTime! + + """Time of last update.""" + updatedAt: DateTime! + + """Refund amount.""" + amount: Money! + + """Reason of the refund.""" + reason: String + + """ + User who performed the action. Requires of of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER. + """ + user: User + + """App that performed the action.""" + app: App +} + """Represents order line of particular order.""" type OrderLine implements Node & ObjectWithMetadata { id: ID! @@ -14642,8 +15064,6 @@ type OrderLine implements Node & ObjectWithMetadata { The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ format: ThumbnailFormatEnum ): Image @@ -14698,8 +15118,6 @@ type OrderLine implements Node & ObjectWithMetadata { Added in Saleor 3.9. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxClass: TaxClass @@ -14708,8 +15126,6 @@ type OrderLine implements Node & ObjectWithMetadata { Denormalized name of the tax class. Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ taxClassName: String @@ -14717,8 +15133,6 @@ type OrderLine implements Node & ObjectWithMetadata { Denormalized public metadata of the tax class. Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ taxClassMetadata: [MetadataItem!]! @@ -14726,8 +15140,6 @@ type OrderLine implements Node & ObjectWithMetadata { Denormalized private metadata of the tax class. Requires staff permissions to access. Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ taxClassPrivateMetadata: [MetadataItem!]! } @@ -14743,8 +15155,6 @@ input OrderLineCreateInput { Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ forceNewLine: Boolean = false } @@ -14843,8 +15253,6 @@ type OrderMarkAsPaid { Event sent when order metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderMetadataUpdated implements Event { """Time of the event.""" @@ -14863,6 +15271,8 @@ type OrderMetadataUpdated implements Event { order: Order } +union OrderOrCheckout = Checkout | Order + """An enumeration.""" enum OrderOriginEnum { CHECKOUT @@ -14966,6 +15376,35 @@ type OrderSettings { When enabled, all non-shippable gift card orders will be fulfilled automatically. """ automaticallyFulfillNonShippableGiftCard: Boolean! + + """ + Expiration time in minutes. Default null - means do not expire any orders. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + expireOrdersAfter: Minute + + """ + Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. + `PAYMENT_FLOW` - [default option] creates the `Payment` object. + `TRANSACTION_FLOW` - creates the `TransactionItem` object. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + markAsPaidStrategy: MarkAsPaidStrategyEnum! + + """ + Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + defaultTransactionFlowStrategy: TransactionFlowStrategyEnum! } type OrderSettingsError { @@ -14996,6 +15435,35 @@ input OrderSettingsInput { When enabled, all non-shippable gift card orders will be fulfilled automatically. By defualt set to True. """ automaticallyFulfillNonShippableGiftCard: Boolean + + """ + Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + expireOrdersAfter: Minute + + """ + Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. + `PAYMENT_FLOW` - [default option] creates the `Payment` object. + `TRANSACTION_FLOW` - creates the `TransactionItem` object. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + markAsPaidStrategy: MarkAsPaidStrategyEnum + + """ + Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + defaultTransactionFlowStrategy: TransactionFlowStrategyEnum } """ @@ -15059,7 +15527,7 @@ enum OrderSortField { } input OrderSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort orders.""" direction: OrderDirection! """Sort orders by the selected field.""" @@ -15076,6 +15544,7 @@ enum OrderStatus { RETURNED FULFILLED CANCELED + EXPIRED } enum OrderStatusFilter { @@ -15140,8 +15609,6 @@ input OrderUpdateShippingInput { Event sent when order is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderUpdated implements Event { """Time of the event.""" @@ -15384,8 +15851,6 @@ input PageCreateInput { Event sent when new page is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PageCreated implements Event { """Time of the event.""" @@ -15419,8 +15884,6 @@ type PageDelete { Event sent when page is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PageDeleted implements Event { """Time of the event.""" @@ -15584,7 +16047,7 @@ enum PageSortField { } input PageSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort pages.""" direction: OrderDirection! """Sort pages by the selected field.""" @@ -15746,10 +16209,14 @@ type PageType implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): AttributeCountableConnection @@ -15816,8 +16283,6 @@ input PageTypeCreateInput { Event sent when new page type is created. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PageTypeCreated implements Event { """Time of the event.""" @@ -15851,8 +16316,6 @@ type PageTypeDelete { Event sent when page type is deleted. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PageTypeDeleted implements Event { """Time of the event.""" @@ -15897,7 +16360,7 @@ enum PageTypeSortField { } input PageTypeSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort page types.""" direction: OrderDirection! """Sort page types by the selected field.""" @@ -15933,8 +16396,6 @@ input PageTypeUpdateInput { Event sent when page type is updated. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PageTypeUpdated implements Event { """Time of the event.""" @@ -15968,8 +16429,6 @@ type PageUpdate { Event sent when page is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PageUpdated implements Event { """Time of the event.""" @@ -16110,8 +16569,6 @@ type Payment implements Node & ObjectWithMetadata { Authorize payment. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PaymentAuthorize implements Event { """Time of the event.""" @@ -16146,8 +16603,6 @@ type PaymentCapture { Capture payment. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PaymentCaptureEvent implements Event { """Time of the event.""" @@ -16204,8 +16659,6 @@ input PaymentCheckBalanceInput { Confirm payment. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PaymentConfirmEvent implements Event { """Time of the event.""" @@ -16305,6 +16758,105 @@ type PaymentGateway { currencies: [String!]! } +type PaymentGatewayConfig { + """The app identifier.""" + id: String! + + """The JSON data required to initialize the payment gateway.""" + data: JSON + errors: [PaymentGatewayConfigError!] +} + +type PaymentGatewayConfigError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: PaymentGatewayConfigErrorCode! +} + +"""An enumeration.""" +enum PaymentGatewayConfigErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND +} + +""" +Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentGatewayInitialize { + gatewayConfigs: [PaymentGatewayConfig!] + errors: [PaymentGatewayInitializeError!]! +} + +type PaymentGatewayInitializeError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: PaymentGatewayInitializeErrorCode! +} + +"""An enumeration.""" +enum PaymentGatewayInitializeErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND +} + +""" +Event sent when user wants to initialize the payment gateway. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type PaymentGatewayInitializeSession implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Checkout or order""" + sourceObject: OrderOrCheckout! + + """Payment gateway data in JSON format, recieved from storefront.""" + data: JSON + + """Amount requested for initializing the payment gateway.""" + amount: PositiveDecimal +} + +input PaymentGatewayToInitialize { + """The identifier of the payment gateway app to initialize.""" + id: String! + + """The data that will be passed to the payment gateway.""" + data: JSON +} + """Initializes payment process when it is required by gateway.""" type PaymentInitialize { initializedPayment: PaymentInitialized @@ -16364,8 +16916,6 @@ input PaymentInput { List payment gateways. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PaymentListGateways implements Event { """Time of the event.""" @@ -16388,8 +16938,6 @@ type PaymentListGateways implements Event { Process payment. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PaymentProcessEvent implements Event { """Time of the event.""" @@ -16424,8 +16972,6 @@ type PaymentRefund { Refund payment. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PaymentRefundEvent implements Event { """Time of the event.""" @@ -16483,8 +17029,6 @@ type PaymentVoid { Void payment. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PaymentVoidEvent implements Event { """Time of the event.""" @@ -16565,8 +17109,6 @@ input PermissionGroupCreateInput { Event sent when new permission group is created. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PermissionGroupCreated implements Event { """Time of the event.""" @@ -16600,8 +17142,6 @@ type PermissionGroupDelete { Event sent when permission group is deleted. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PermissionGroupDeleted implements Event { """Time of the event.""" @@ -16656,13 +17196,14 @@ input PermissionGroupFilterInput { ids: [ID!] } +"""Sorting options for permission groups.""" enum PermissionGroupSortField { """Sort permission group accounts by name.""" NAME } input PermissionGroupSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort permission group.""" direction: OrderDirection! """Sort permission group by the selected field.""" @@ -16701,8 +17242,6 @@ input PermissionGroupUpdateInput { Event sent when permission group is updated. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type PermissionGroupUpdated implements Event { """Time of the event.""" @@ -16808,7 +17347,7 @@ enum PluginSortField { } input PluginSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort plugins.""" direction: OrderDirection! """Sort plugins by the selected field.""" @@ -16995,8 +17534,6 @@ type Product implements Node & ObjectWithMetadata { The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ format: ThumbnailFormatEnum ): Image @@ -17190,6 +17727,141 @@ type ProductAttributeUnassign { errors: [ProductError!]! } +""" +Creates products. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductBulkCreate { + """Returns how many objects were created.""" + count: Int! + + """List of the created products.""" + results: [ProductBulkResult!]! + errors: [ProductBulkCreateError!]! +} + +type ProductBulkCreateError { + """ + Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + path: String + + """The error message.""" + message: String + + """The error code.""" + code: ProductBulkCreateErrorCode! + + """List of attributes IDs which causes the error.""" + attributes: [ID!] + + """List of attribute values IDs which causes the error.""" + values: [ID!] + + """List of warehouse IDs which causes the error.""" + warehouses: [ID!] + + """List of channel IDs which causes the error.""" + channels: [ID!] +} + +"""An enumeration.""" +enum ProductBulkCreateErrorCode { + ATTRIBUTE_ALREADY_ASSIGNED + ATTRIBUTE_CANNOT_BE_ASSIGNED + ATTRIBUTE_VARIANTS_DISABLED + BLANK + MAX_LENGTH + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INVALID + INVALID_PRICE + PRODUCT_WITHOUT_CATEGORY + NOT_FOUND + REQUIRED + UNIQUE + PRODUCT_NOT_ASSIGNED_TO_CHANNEL + UNSUPPORTED_MEDIA_PROVIDER +} + +input ProductBulkCreateInput { + """List of attributes.""" + attributes: [AttributeValueInput!] + + """ID of the product's category.""" + category: ID + + """ + Determine if taxes are being charged for the product. + + DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + """ + chargeTaxes: Boolean + + """List of IDs of collections that the product belongs to.""" + collections: [ID!] + + """ + Product description. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + + """Product name.""" + name: String + + """Product slug.""" + slug: String + + """ + ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. + """ + taxClass: ID + + """ + Tax rate for enabled tax gateway. + + DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + """ + taxCode: String + + """Search engine optimization fields.""" + seo: SeoInput + + """Weight of the Product.""" + weight: WeightScalar + + """Defines the product rating value.""" + rating: Float + + """Fields required to update the product metadata.""" + metadata: [MetadataInput!] + + """Fields required to update the product private metadata.""" + privateMetadata: [MetadataInput!] + + """External ID of this product.""" + externalReference: String + + """ID of the type that product belongs to.""" + productType: ID! + + """List of media inputs associated with the product.""" + media: [MediaInput!] + + """List of channels in which the product is available.""" + channelListings: [ProductChannelListingCreateInput!] + + """Input list of product variants to create.""" + variants: [ProductVariantBulkCreateInput!] +} + """ Deletes products. @@ -17202,6 +17874,14 @@ type ProductBulkDelete { errors: [ProductError!]! } +type ProductBulkResult { + """Product data.""" + product: Product + + """List of errors occurred on create attempt.""" + errors: [ProductBulkCreateError!] +} + """Represents product channel listing.""" type ProductChannelListing implements Node { id: ID! @@ -17306,6 +17986,30 @@ input ProductChannelListingAddInput { removeVariants: [ID!] } +input ProductChannelListingCreateInput { + """ID of a channel.""" + channelId: ID! + + """Determines if object is visible to customers.""" + isPublished: Boolean + + """Publication date time. ISO 8601 standard.""" + publishedAt: DateTime + + """ + Determines if product is visible in product listings (doesn't apply to product collections). + """ + visibleInListings: Boolean + + """Determine if product should be available for purchase.""" + isAvailableForPurchase: Boolean + + """ + A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. + """ + availableForPurchaseAt: DateTime +} + type ProductChannelListingError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -17459,8 +18163,6 @@ input ProductCreateInput { Event sent when new product is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductCreated implements Event { """Time of the event.""" @@ -17500,8 +18202,6 @@ type ProductDelete { Event sent when product is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductDeleted implements Event { """Time of the event.""" @@ -17669,8 +18369,6 @@ type ProductImage { The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ format: ThumbnailFormatEnum ): String! @@ -17824,8 +18522,6 @@ type ProductMedia implements Node & ObjectWithMetadata { The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ format: ThumbnailFormatEnum ): String! @@ -17993,8 +18689,6 @@ type ProductMediaUpdated implements Event { Event sent when product metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductMetadataUpdated implements Event { """Time of the event.""" @@ -18140,8 +18834,6 @@ type ProductPricingInfo { Determines whether this product's price displayed in a storefront should include taxes. Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ displayGrossPrices: Boolean! } @@ -18303,10 +18995,14 @@ type ProductType implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductCountableConnection @deprecated(reason: "This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter.") @@ -18354,10 +19050,14 @@ type ProductType implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): AttributeCountableConnection } @@ -18508,7 +19208,7 @@ enum ProductTypeSortField { } input ProductTypeSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort product types.""" direction: OrderDirection! """Sort product types by the selected field.""" @@ -18541,8 +19241,6 @@ type ProductUpdate { Event sent when product is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductUpdated implements Event { """Time of the event.""" @@ -18727,8 +19425,6 @@ type ProductVariant implements Node & ObjectWithMetadata { Preorder data for product variant. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ preorder: PreorderData created: DateTime! @@ -18746,8 +19442,6 @@ type ProductVariant implements Node & ObjectWithMetadata { Event sent when product variant is back in stock. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductVariantBackInStock implements Event { """Time of the event.""" @@ -18816,8 +19510,6 @@ input ProductVariantBulkCreateInput { Determines if variant is in preorder. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ preorder: PreorderSettingsInput @@ -18825,8 +19517,6 @@ input ProductVariantBulkCreateInput { Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ quantityLimitPerCustomer: Int @@ -18978,8 +19668,6 @@ input ProductVariantBulkUpdateInput { Determines if variant is in preorder. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ preorder: PreorderSettingsInput @@ -18987,8 +19675,6 @@ input ProductVariantBulkUpdateInput { Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ quantityLimitPerCustomer: Int @@ -19055,8 +19741,6 @@ type ProductVariantChannelListing implements Node { Preorder variant data. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ preorderThreshold: PreorderThreshold } @@ -19075,8 +19759,6 @@ input ProductVariantChannelListingAddInput { The threshold for preorder variant in channel. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ preorderThreshold: Int } @@ -19154,8 +19836,6 @@ input ProductVariantCreateInput { Determines if variant is in preorder. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ preorder: PreorderSettingsInput @@ -19163,8 +19843,6 @@ input ProductVariantCreateInput { Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ quantityLimitPerCustomer: Int @@ -19200,8 +19878,6 @@ input ProductVariantCreateInput { Event sent when new product variant is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductVariantCreated implements Event { """Time of the event.""" @@ -19238,8 +19914,6 @@ type ProductVariantDelete { Event sent when product variant is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductVariantDeleted implements Event { """Time of the event.""" @@ -19291,8 +19965,6 @@ input ProductVariantInput { Determines if variant is in preorder. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ preorder: PreorderSettingsInput @@ -19300,8 +19972,6 @@ input ProductVariantInput { Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ quantityLimitPerCustomer: Int @@ -19331,8 +20001,6 @@ input ProductVariantInput { Event sent when product variant metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductVariantMetadataUpdated implements Event { """Time of the event.""" @@ -19358,8 +20026,6 @@ type ProductVariantMetadataUpdated implements Event { Event sent when product variant is out of stock. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductVariantOutOfStock implements Event { """Time of the event.""" @@ -19387,9 +20053,7 @@ type ProductVariantOutOfStock implements Event { """ Deactivates product variant preorder. It changes all preorder allocation into regular allocation. -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -19439,7 +20103,7 @@ enum ProductVariantSortField { } input ProductVariantSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort productVariants.""" direction: OrderDirection! """Sort productVariants by the selected field.""" @@ -19574,8 +20238,6 @@ type ProductVariantUpdate { Event sent when product variant is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ProductVariantUpdated implements Event { """Time of the event.""" @@ -19675,10 +20337,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): WarehouseCountableConnection @@ -19697,10 +20363,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): TranslatableItemConnection @@ -19722,8 +20392,6 @@ type Query { Added in Saleor 3.9. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxConfiguration( @@ -19736,8 +20404,6 @@ type Query { Added in Saleor 3.9. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxConfigurations( @@ -19750,10 +20416,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): TaxConfigurationCountableConnection @@ -19762,8 +20432,6 @@ type Query { Added in Saleor 3.9. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxClass( @@ -19776,8 +20444,6 @@ type Query { Added in Saleor 3.9. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxClasses( @@ -19793,10 +20459,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): TaxClassCountableConnection @@ -19841,10 +20511,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): StockCountableConnection @@ -19896,10 +20570,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ShippingZoneCountableConnection @@ -19925,10 +20603,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): DigitalContentCountableConnection @@ -19949,10 +20631,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CategoryCountableConnection @@ -19998,10 +20684,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CollectionCountableConnection @@ -20045,10 +20735,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductCountableConnection @@ -20072,10 +20766,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductTypeCountableConnection @@ -20086,7 +20784,7 @@ type Query { """ID of the product variant.""" id: ID - """Sku of the product variant.""" + """SKU of the product variant.""" sku: String """ @@ -20122,10 +20820,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductVariantCountableConnection @@ -20147,10 +20849,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductVariantCountableConnection @@ -20179,10 +20885,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): PaymentCountableConnection @@ -20223,10 +20933,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): PageCountableConnection @@ -20250,10 +20964,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): PageTypeCountableConnection @@ -20269,10 +20987,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): OrderEventCountableConnection @@ -20310,10 +21032,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): OrderCountableConnection @@ -20335,10 +21061,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): OrderCountableConnection @@ -20397,10 +21127,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): MenuCountableConnection @@ -20430,10 +21164,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): MenuItemCountableConnection @@ -20457,8 +21195,6 @@ type Query { Sort gift cards. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ sortBy: GiftCardSortingInput @@ -20466,8 +21202,6 @@ type Query { Filtering options for gift cards. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ filter: GiftCardFilterInput @@ -20477,10 +21211,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): GiftCardCountableConnection @@ -20489,8 +21227,6 @@ type Query { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: MANAGE_GIFT_CARD. """ giftCardCurrencies: [String!]! @@ -20500,8 +21236,6 @@ type Query { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: MANAGE_GIFT_CARD. """ giftCardTags( @@ -20514,10 +21248,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): GiftCardTagCountableConnection @@ -20549,10 +21287,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): PluginCountableConnection @@ -20597,10 +21339,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): SaleCountableConnection @@ -20645,10 +21391,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): VoucherCountableConnection @@ -20680,10 +21430,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ExportFileCountableConnection @@ -20736,10 +21490,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CheckoutCountableConnection @@ -20755,10 +21513,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CheckoutLineCountableConnection @@ -20771,8 +21533,6 @@ type Query { Slug of the channel. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ slug: String ): Channel @@ -20793,8 +21553,6 @@ type Query { Filtering options for attributes. Added in Saleor 3.11. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ where: AttributeWhereInput @@ -20819,10 +21577,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): AttributeCountableConnection @@ -20867,10 +21629,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): AppCountableConnection @@ -20889,8 +21655,6 @@ type Query { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ appExtensions( @@ -20903,10 +21667,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): AppExtensionCountableConnection @@ -20915,8 +21683,6 @@ type Query { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ appExtension( @@ -20963,10 +21729,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): UserCountableConnection @@ -20988,10 +21758,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): GroupCountableConnection @@ -21026,10 +21800,14 @@ type Query { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): UserCountableConnection @@ -21177,10 +21955,14 @@ type Sale implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CategoryCountableConnection @@ -21196,10 +21978,14 @@ type Sale implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CollectionCountableConnection @@ -21215,10 +22001,14 @@ type Sale implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductCountableConnection @@ -21236,10 +22026,14 @@ type Sale implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductVariantCountableConnection @@ -21355,8 +22149,6 @@ type SaleCreate { Event sent when new sale is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type SaleCreated implements Event { """Time of the event.""" @@ -21393,8 +22185,6 @@ type SaleDelete { Event sent when sale is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type SaleDeleted implements Event { """Time of the event.""" @@ -21492,7 +22282,7 @@ enum SaleSortField { } input SaleSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort sales.""" direction: OrderDirection! """ @@ -21510,8 +22300,6 @@ input SaleSortingInput { The event informs about the start or end of the sale. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type SaleToggle implements Event { """Time of the event.""" @@ -21530,8 +22318,6 @@ type SaleToggle implements Event { The sale the event relates to. Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ sale( """Slug of a channel for which the data should be returned.""" @@ -21596,8 +22382,6 @@ type SaleUpdate { Event sent when sale is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type SaleUpdated implements Event { """Time of the event.""" @@ -21690,8 +22474,6 @@ enum ShippingErrorCode { List shipping methods for checkout. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingListMethodsForCheckout implements Event { """Time of the event.""" @@ -21713,8 +22495,6 @@ type ShippingListMethodsForCheckout implements Event { Shipping methods that can be used with this checkout. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ shippingMethods: [ShippingMethod!] } @@ -22003,10 +22783,14 @@ type ShippingMethodType implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductCountableConnection @@ -22040,8 +22824,6 @@ enum ShippingMethodTypeEnum { List of shipping methods available for the country. Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingMethodsPerCountry { """The country code.""" @@ -22088,8 +22870,6 @@ type ShippingPriceCreate { Event sent when new shipping price is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingPriceCreated implements Event { """Time of the event.""" @@ -22136,8 +22916,6 @@ type ShippingPriceDelete { Event sent when shipping price is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingPriceDeleted implements Event { """Time of the event.""" @@ -22273,8 +23051,6 @@ type ShippingPriceUpdate { Event sent when shipping price is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingPriceUpdated implements Event { """Time of the event.""" @@ -22443,8 +23219,6 @@ input ShippingZoneCreateInput { Event sent when new shipping zone is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingZoneCreated implements Event { """Time of the event.""" @@ -22481,8 +23255,6 @@ type ShippingZoneDelete { Event sent when shipping zone is deleted. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingZoneDeleted implements Event { """Time of the event.""" @@ -22513,8 +23285,6 @@ input ShippingZoneFilterInput { Event sent when shipping zone metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingZoneMetadataUpdated implements Event { """Time of the event.""" @@ -22579,8 +23349,6 @@ input ShippingZoneUpdateInput { Event sent when shipping zone is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type ShippingZoneUpdated implements Event { """Time of the event.""" @@ -22747,8 +23515,6 @@ type Shop { Added in Saleor 3.1. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: MANAGE_SETTINGS. """ limitQuantityPerCheckout: Int @@ -22934,8 +23700,6 @@ input ShopSettingsInput { Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ limitQuantityPerCheckout: Int @@ -23030,6 +23794,7 @@ type StaffCreate { user: User } +"""Fields required to create a staff user.""" input StaffCreateInput { """Given name.""" firstName: String @@ -23059,8 +23824,6 @@ input StaffCreateInput { Event sent when new staff user is created. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type StaffCreated implements Event { """Time of the event.""" @@ -23094,8 +23857,6 @@ type StaffDelete { Event sent when staff user is deleted. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type StaffDeleted implements Event { """Time of the event.""" @@ -23139,6 +23900,7 @@ type StaffError { users: [ID!] } +"""Represents status of a staff account.""" enum StaffMemberStatus { """User account has been activated.""" ACTIVE @@ -23218,6 +23980,7 @@ type StaffUpdate { user: User } +"""Fields required to update a staff user.""" input StaffUpdateInput { """Given name.""" firstName: String @@ -23245,8 +24008,6 @@ input StaffUpdateInput { Event sent when staff user is updated. Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type StaffUpdated implements Event { """Time of the event.""" @@ -23425,8 +24186,6 @@ input StockInput { Represents the channel stock settings. Added in Saleor 3.7. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type StockSettings { """ @@ -23486,8 +24245,6 @@ type Subscription { Look up subscription event. Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ event: Event } @@ -23501,8 +24258,6 @@ enum TaxCalculationStrategy { Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates. Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TaxClass implements Node & ObjectWithMetadata { """The ID of the object.""" @@ -23582,8 +24337,6 @@ type TaxClassCountableEdge { Tax rate for a country. When tax class is null, it represents the default tax rate for that country; otherwise it's a country tax rate specific to the given tax class. Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TaxClassCountryRate { """Country in which this tax rate applies.""" @@ -23599,9 +24352,7 @@ type TaxClassCountryRate { """ Create a tax class. -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -23644,9 +24395,7 @@ input TaxClassCreateInput { """ Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class. -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -23695,7 +24444,7 @@ enum TaxClassSortField { } input TaxClassSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort tax classes.""" direction: OrderDirection! """Sort tax classes by the selected field.""" @@ -23705,9 +24454,7 @@ input TaxClassSortingInput { """ Update a tax class. -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -23759,8 +24506,6 @@ input TaxClassUpdateInput { Channel-specific tax configuration. Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TaxConfiguration implements Node & ObjectWithMetadata { """The ID of the object.""" @@ -23861,8 +24606,6 @@ input TaxConfigurationFilterInput { Country-specific exceptions of a channel's tax configuration. Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TaxConfigurationPerCountry { """Country in which this configuration applies.""" @@ -23903,9 +24646,7 @@ input TaxConfigurationPerCountryInput { """ Update tax configuration for a channel. -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -23968,8 +24709,6 @@ input TaxConfigurationUpdateInput { Tax class rates grouped by country. Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TaxCountryConfiguration { """A country for which tax class rates are grouped.""" @@ -23982,9 +24721,7 @@ type TaxCountryConfiguration { """ Remove all tax class rates for a specific country. -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -24017,9 +24754,7 @@ enum TaxCountryConfigurationDeleteErrorCode { """ Update tax class rates for a specific country. -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.9. Requires one of the following permissions: MANAGE_TAXES. """ @@ -24057,9 +24792,7 @@ enum TaxCountryConfigurationUpdateErrorCode { """ Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known. -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Added in Saleor 3.8. Requires one of the following permissions: MANAGE_TAXES. """ @@ -24295,13 +25028,16 @@ Represents possible actions on payment transaction. The following actions are possible: CHARGE - Represents the charge action. REFUND - Represents a refund action. - VOID - Represents a void action. + VOID - Represents a void action. This field will be removed + in Saleor 3.14 (Preview Feature). Use `CANCEL` instead. + CANCEL - Represents a cancel action. Added in Saleor 3.12. """ enum TransactionActionEnum { CHARGE REFUND VOID + CANCEL } """ @@ -24309,7 +25045,7 @@ Event sent when transaction action is requested. Added in Saleor 3.4. -Note: this API is currently in Feature Preview and can be subject to changes at later point. +DEPRECATED: this subscription will be removed in Saleor 3.14 (Preview Feature). Use `TransactionChargeRequested`, `TransactionRefundRequested`, `TransactionCancelationRequested` instead. """ type TransactionActionRequest implements Event { """Time of the event.""" @@ -24324,31 +25060,75 @@ type TransactionActionRequest implements Event { """The application receiving the webhook.""" recipient: App - """ - Look up a transaction. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """Look up a transaction.""" transaction: TransactionItem - """ - Requested action data. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """Requested action data.""" action: TransactionAction! } """ -Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. +Event sent when transaction cancelation is requested. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionCancelationRequested implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a transaction.""" + transaction: TransactionItem + + """Requested action data.""" + action: TransactionAction! +} + +""" +Event sent when transaction charge is requested. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionChargeRequested implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a transaction.""" + transaction: TransactionItem + + """Requested action data.""" + action: TransactionAction! +} + +""" +Create transaction for checkout or order. Added in Saleor 3.4. -Note: this API is currently in Feature Preview and can be subject to changes at later point. +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: HANDLE_PAYMENTS. """ type TransactionCreate { transaction: TransactionItem @@ -24375,18 +25155,52 @@ enum TransactionCreateErrorCode { NOT_FOUND INCORRECT_CURRENCY METADATA_KEY_REQUIRED + UNIQUE } input TransactionCreateInput { - """Status of the transaction.""" - status: String! + """ + Status of the transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. + """ + status: String - """Payment type used for this transaction.""" - type: String! + """ + Payment type used for this transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead. + """ + type: String - """Reference of the transaction.""" + """ + Payment name of the transaction. + + Added in Saleor 3.13. + """ + name: String + + """ + The message of the transaction. + + Added in Saleor 3.13. + """ + message: String + + """ + Reference of the transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + """ reference: String + """ + PSP Reference of the transaction. + + Added in Saleor 3.13. + """ + pspReference: String + """List of all possible actions for the transaction""" availableActions: [TransactionActionEnum!] @@ -24399,14 +25213,32 @@ input TransactionCreateInput { """Amount refunded by this transaction.""" amountRefunded: MoneyInput - """Amount voided by this transaction.""" + """ + Amount voided by this transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead. + """ amountVoided: MoneyInput + """ + Amount canceled by this transaction. + + Added in Saleor 3.13. + """ + amountCanceled: MoneyInput + """Payment public metadata.""" metadata: [MetadataInput!] """Payment private metadata.""" privateMetadata: [MetadataInput!] + + """ + The url that will allow to redirect user to payment provider page with transaction event details. + + Added in Saleor 3.13. + """ + externalUrl: String } """Represents transaction's event.""" @@ -24416,24 +25248,273 @@ type TransactionEvent implements Node { createdAt: DateTime! """Status of transaction's event.""" - status: TransactionStatus! + status: TransactionStatus @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature). Use `type` instead.") """Reference of transaction's event.""" - reference: String! + reference: String! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature).Use `pspReference` instead.") + + """ + PSP reference of transaction. + + Added in Saleor 3.13. + """ + pspReference: String! """Name of the transaction's event.""" - name: String + name: String @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead.") + + """ + Message related to the transaction's event. + + Added in Saleor 3.13. + """ + message: String! + + """ + The url that will allow to redirect user to payment provider page with transaction details. + + Added in Saleor 3.13. + """ + externalUrl: String! + + """ + The amount related to this event. + + Added in Saleor 3.13. + """ + amount: Money! + + """ + The type of action related to this event. + + Added in Saleor 3.13. + """ + type: TransactionEventTypeEnum + + """ + User or App that created the transaction event. + + Added in Saleor 3.13. + """ + createdBy: UserOrApp } input TransactionEventInput { - """Current status of the payment transaction.""" - status: TransactionStatus! + """ + Current status of the payment transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Status will be calculated by Saleor. + """ + status: TransactionStatus - """Reference of the transaction.""" + """ + Reference of the transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + """ reference: String - """Name of the transaction.""" + """ + PSP Reference related to this action. + + Added in Saleor 3.13. + """ + pspReference: String + + """ + Name of the transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead. `name` field will be added to `message`. + """ name: String + + """ + The message related to the event. + + Added in Saleor 3.13. + """ + message: String +} + +""" +Report the event for the transaction. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires the following permissions: OWNER and HANDLE_PAYMENTS. +""" +type TransactionEventReport { + """Defines if the reported event hasn't been processed earlier.""" + alreadyProcessed: Boolean + + """The transaction related to the reported event.""" + transaction: TransactionItem + + """ + The event assigned to this report. if `alreadyProcessed` is set to `true`, the previously processed event will be returned. + """ + transactionEvent: TransactionEvent + errors: [TransactionEventReportError!]! +} + +type TransactionEventReportError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: TransactionEventReportErrorCode! +} + +"""An enumeration.""" +enum TransactionEventReportErrorCode { + INVALID + GRAPHQL_ERROR + NOT_FOUND + INCORRECT_DETAILS + ALREADY_EXISTS +} + +""" +Represents possible event types. + + Added in Saleor 3.12. + + The following types are possible: + AUTHORIZATION_SUCCESS - represents success authorization. + AUTHORIZATION_FAILURE - represents failure authorization. + AUTHORIZATION_ADJUSTMENT - represents authorization adjustment. + AUTHORIZATION_REQUEST - represents authorization request. + AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs + additional actions from the customer. + CHARGE_ACTION_REQUIRED - represents charge that needs + additional actions from the customer. + CHARGE_SUCCESS - represents success charge. + CHARGE_FAILURE - represents failure charge. + CHARGE_BACK - represents chargeback. + CHARGE_REQUEST - represents charge request. + REFUND_SUCCESS - represents success refund. + REFUND_FAILURE - represents failure refund. + REFUND_REVERSE - represents reverse refund. + REFUND_REQUEST - represents refund request. + CANCEL_SUCCESS - represents success cancel. + CANCEL_FAILURE - represents failure cancel. + CANCEL_REQUEST - represents cancel request. + INFO - represents info event. + +""" +enum TransactionEventTypeEnum { + AUTHORIZATION_SUCCESS + AUTHORIZATION_FAILURE + AUTHORIZATION_ADJUSTMENT + AUTHORIZATION_REQUEST + AUTHORIZATION_ACTION_REQUIRED + CHARGE_ACTION_REQUIRED + CHARGE_SUCCESS + CHARGE_FAILURE + CHARGE_BACK + CHARGE_REQUEST + REFUND_SUCCESS + REFUND_FAILURE + REFUND_REVERSE + REFUND_REQUEST + CANCEL_SUCCESS + CANCEL_FAILURE + CANCEL_REQUEST + INFO +} + +""" +Determine the transaction flow strategy. + + AUTHORIZATION - the processed transaction should be only authorized + CHARGE - the processed transaction should be charged. + +""" +enum TransactionFlowStrategyEnum { + AUTHORIZATION + CHARGE +} + +""" +Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionInitialize { + """The initialized transaction.""" + transaction: TransactionItem + + """The event created for the initialized transaction.""" + transactionEvent: TransactionEvent + + """The JSON data required to finalize the payment.""" + data: JSON + errors: [TransactionInitializeError!]! +} + +type TransactionInitializeError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: TransactionInitializeErrorCode! +} + +"""An enumeration.""" +enum TransactionInitializeErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND +} + +""" +Event sent when user starts processing the payment. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionInitializeSession implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a transaction.""" + transaction: TransactionItem! + + """Checkout or order""" + sourceObject: OrderOrCheckout! + + """Payment gateway data in JSON format, recieved from storefront.""" + data: JSON + + """Merchant reference assigned to this payment.""" + merchantReference: String! + + """Action to proceed for the transaction""" + action: TransactionProcessAction! } """ @@ -24503,23 +25584,79 @@ type TransactionItem implements Node & ObjectWithMetadata { """Total amount authorized for this payment.""" authorizedAmount: Money! + """ + Total amount of ongoing authorization requests for the transaction. + + Added in Saleor 3.13. + """ + authorizePendingAmount: Money! + """Total amount refunded for this payment.""" refundedAmount: Money! + """ + Total amount of ongoing refund requests for the transaction. + + Added in Saleor 3.13. + """ + refundPendingAmount: Money! + """Total amount voided for this payment.""" - voidedAmount: Money! + voidedAmount: Money! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature).Use `canceledAmount` instead.") + + """ + Total amount canceled for this payment. + + Added in Saleor 3.13. + """ + canceledAmount: Money! + + """ + Total amount of ongoing cancel requests for the transaction. + + Added in Saleor 3.13. + """ + cancelPendingAmount: Money! """Total amount charged for this payment.""" chargedAmount: Money! + """ + Total amount of ongoing charge requests for the transaction. + + Added in Saleor 3.13. + """ + chargePendingAmount: Money! + """Status of transaction.""" - status: String! + status: String! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.") """Type of transaction.""" - type: String! + type: String! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature). Use `name` or `message` instead.") + + """ + Name of the transaction. + + Added in Saleor 3.13. + """ + name: String! + + """ + Message related to the transaction. + + Added in Saleor 3.13. + """ + message: String! """Reference of transaction.""" - reference: String! + reference: String! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature).Use `pspReference` instead.") + + """ + PSP reference of transaction. + + Added in Saleor 3.13. + """ + pspReference: String! """ The related order. @@ -24530,14 +25667,26 @@ type TransactionItem implements Node & ObjectWithMetadata { """List of all transaction's events.""" events: [TransactionEvent!]! + + """ + User or App that created the transaction. + + Added in Saleor 3.13. + """ + createdBy: UserOrApp + + """ + The url that will allow to redirect user to payment provider page with transaction details. + + Added in Saleor 3.13. + """ + externalUrl: String! } """ Event sent when transaction item metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TransactionItemMetadataUpdated implements Event { """Time of the event.""" @@ -24552,11 +25701,7 @@ type TransactionItemMetadataUpdated implements Event { """The application receiving the webhook.""" recipient: App - """ - Look up a transaction. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ + """Look up a transaction.""" transaction: TransactionItem } @@ -24574,6 +25719,120 @@ enum TransactionKind { CANCEL } +""" +Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionProcess { + """The processed transaction.""" + transaction: TransactionItem + + """The event created for the processed transaction.""" + transactionEvent: TransactionEvent + + """The json data required to finalize the payment.""" + data: JSON + errors: [TransactionProcessError!]! +} + +type TransactionProcessAction { + """Transaction amount to process.""" + amount: PositiveDecimal! + + """Currency of the amount.""" + currency: String! + actionType: TransactionFlowStrategyEnum! +} + +type TransactionProcessError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: TransactionProcessErrorCode! +} + +"""An enumeration.""" +enum TransactionProcessErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + TRANSACTION_ALREADY_PROCESSED + MISSING_PAYMENT_APP_RELATION + MISSING_PAYMENT_APP +} + +""" +Event sent when user has additional payment action to process. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionProcessSession implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a transaction.""" + transaction: TransactionItem! + + """Checkout or order""" + sourceObject: OrderOrCheckout! + + """Payment gateway data in JSON format, recieved from storefront.""" + data: JSON + + """Merchant reference assigned to this payment.""" + merchantReference: String! + + """Action to proceed for the transaction""" + action: TransactionProcessAction! +} + +""" +Event sent when transaction refund is requested. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionRefundRequested implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """Look up a transaction.""" + transaction: TransactionItem + + """Requested action data.""" + action: TransactionAction! +} + """ Request an action for payment transaction. @@ -24581,7 +25840,7 @@ Added in Saleor 3.4. Note: this API is currently in Feature Preview and can be subject to changes at later point. -Requires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS. +Requires one of the following permissions: HANDLE_PAYMENTS. """ type TransactionRequestAction { transaction: TransactionItem @@ -24609,7 +25868,15 @@ enum TransactionRequestActionErrorCode { MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK } -"""An enumeration.""" +""" +Represents a status of payment transaction. + + The following statuses are possible: + SUCCESS - Represents a sucess action. + FAILURE - Represents a failure action. + PENDING - Represents a pending action. + +""" enum TransactionStatus { PENDING SUCCESS @@ -24617,11 +25884,13 @@ enum TransactionStatus { } """ -Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. +Create transaction for checkout or order. Added in Saleor 3.4. Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires the following permissions: OWNER and HANDLE_PAYMENTS. """ type TransactionUpdate { transaction: TransactionItem @@ -24648,18 +25917,52 @@ enum TransactionUpdateErrorCode { NOT_FOUND INCORRECT_CURRENCY METADATA_KEY_REQUIRED + UNIQUE } input TransactionUpdateInput { - """Status of the transaction.""" + """ + Status of the transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. + """ status: String - """Payment type used for this transaction.""" + """ + Payment type used for this transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead. + """ type: String - """Reference of the transaction.""" + """ + Payment name of the transaction. + + Added in Saleor 3.13. + """ + name: String + + """ + The message of the transaction. + + Added in Saleor 3.13. + """ + message: String + + """ + Reference of the transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + """ reference: String + """ + PSP Reference of the transaction. + + Added in Saleor 3.13. + """ + pspReference: String + """List of all possible actions for the transaction""" availableActions: [TransactionActionEnum!] @@ -24672,14 +25975,32 @@ input TransactionUpdateInput { """Amount refunded by this transaction.""" amountRefunded: MoneyInput - """Amount voided by this transaction.""" + """ + Amount voided by this transaction. + + DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead. + """ amountVoided: MoneyInput + """ + Amount canceled by this transaction. + + Added in Saleor 3.13. + """ + amountCanceled: MoneyInput + """Payment public metadata.""" metadata: [MetadataInput!] """Payment private metadata.""" privateMetadata: [MetadataInput!] + + """ + The url that will allow to redirect user to payment provider page with transaction event details. + + Added in Saleor 3.13. + """ + externalUrl: String } union TranslatableItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent @@ -24719,8 +26040,6 @@ enum TranslatableKinds { Event sent when new translation is created. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TranslationCreated implements Event { """Time of the event.""" @@ -24779,8 +26098,6 @@ union TranslationTypes = ProductTranslation | CollectionTranslation | CategoryTr Event sent when translation is updated. Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TranslationUpdated implements Event { """Time of the event.""" @@ -24938,10 +26255,14 @@ type User implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CheckoutCountableConnection @@ -24953,10 +26274,14 @@ type User implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): GiftCardCountableConnection @@ -24977,10 +26302,14 @@ type User implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): OrderCountableConnection @@ -25002,8 +26331,6 @@ type User implements Node & ObjectWithMetadata { The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ format: ThumbnailFormatEnum ): Image @@ -25133,6 +26460,9 @@ input UserCreateInput { channel: String } +union UserOrApp = User | App + +"""Represents user's permissions.""" type UserPermission { """Internal code for permission.""" code: PermissionEnum! @@ -25168,7 +26498,7 @@ enum UserSortField { } input UserSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort users.""" direction: OrderDirection! """Sort users by the selected field.""" @@ -25339,10 +26669,14 @@ type Voucher implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CategoryCountableConnection @@ -25358,10 +26692,14 @@ type Voucher implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): CollectionCountableConnection @@ -25377,10 +26715,14 @@ type Voucher implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductCountableConnection @@ -25398,10 +26740,14 @@ type Voucher implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ProductVariantCountableConnection @@ -25533,8 +26879,6 @@ type VoucherCreate { Event sent when new voucher is created. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type VoucherCreated implements Event { """Time of the event.""" @@ -25571,8 +26915,6 @@ type VoucherDelete { Event sent when voucher is deleted. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type VoucherDeleted implements Event { """Time of the event.""" @@ -25668,8 +27010,6 @@ input VoucherInput { Event sent when voucher metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type VoucherMetadataUpdated implements Event { """Time of the event.""" @@ -25735,7 +27075,7 @@ enum VoucherSortField { } input VoucherSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort vouchers.""" direction: OrderDirection! """ @@ -25807,8 +27147,6 @@ type VoucherUpdate { Event sent when voucher is updated. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type VoucherUpdated implements Event { """Time of the event.""" @@ -25892,8 +27230,6 @@ type Warehouse implements Node & ObjectWithMetadata { Click and collect options: local, all or disabled. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ clickAndCollectOption: WarehouseClickAndCollectOptionEnum! shippingZones( @@ -25903,10 +27239,14 @@ type Warehouse implements Node & ObjectWithMetadata { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): ShippingZoneCountableConnection! @@ -25985,8 +27325,6 @@ input WarehouseCreateInput { Event sent when new warehouse is created. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type WarehouseCreated implements Event { """Time of the event.""" @@ -26020,8 +27358,6 @@ type WarehouseDelete { Event sent when warehouse is deleted. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type WarehouseDeleted implements Event { """Time of the event.""" @@ -26079,8 +27415,6 @@ input WarehouseFilterInput { Event sent when warehouse metadata is updated. Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type WarehouseMetadataUpdated implements Event { """Time of the event.""" @@ -26127,7 +27461,7 @@ enum WarehouseSortField { } input WarehouseSortingInput { - """Specifies the direction in which to sort products.""" + """Specifies the direction in which to sort warehouses.""" direction: OrderDirection! """Sort warehouses by the selected field.""" @@ -26169,8 +27503,6 @@ input WarehouseUpdateInput { Click and collect options: local, all or disabled. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ clickAndCollectOption: WarehouseClickAndCollectOptionEnum @@ -26178,8 +27510,6 @@ input WarehouseUpdateInput { Visibility of warehouse stocks. Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ isPrivate: Boolean } @@ -26188,8 +27518,6 @@ input WarehouseUpdateInput { Event sent when warehouse is updated. Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type WarehouseUpdated implements Event { """Time of the event.""" @@ -26237,10 +27565,14 @@ type Webhook implements Node { """Return the elements in the list that come after the specified cursor.""" after: String - """Return the first n elements from the list.""" + """ + Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ first: Int - """Return the last n elements from the list.""" + """ + Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query. + """ last: Int ): EventDeliveryCountableConnection @@ -26314,8 +27646,6 @@ input WebhookCreateInput { Subscription query used to define a webhook payload. Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ query: String @@ -26510,6 +27840,15 @@ enum WebhookEventTypeAsyncEnum { """A gift card is deleted.""" GIFT_CARD_DELETED + """ + A gift card has been sent. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + GIFT_CARD_SENT + """A gift card status is changed.""" GIFT_CARD_STATUS_CHANGED @@ -26517,8 +27856,6 @@ enum WebhookEventTypeAsyncEnum { A gift card metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ GIFT_CARD_METADATA_UPDATED @@ -26559,6 +27896,9 @@ enum WebhookEventTypeAsyncEnum { """An order is cancelled.""" ORDER_CANCELLED + """An order is expired.""" + ORDER_EXPIRED + """An order is fulfilled.""" ORDER_FULFILLED @@ -26566,8 +27906,6 @@ enum WebhookEventTypeAsyncEnum { An order metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ ORDER_METADATA_UPDATED @@ -26614,8 +27952,6 @@ enum WebhookEventTypeAsyncEnum { A customer account metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ CUSTOMER_METADATA_UPDATED @@ -26632,8 +27968,6 @@ enum WebhookEventTypeAsyncEnum { A collection metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ COLLECTION_METADATA_UPDATED @@ -26671,8 +28005,6 @@ enum WebhookEventTypeAsyncEnum { A product metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ PRODUCT_METADATA_UPDATED @@ -26698,8 +28030,6 @@ enum WebhookEventTypeAsyncEnum { A product variant metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ PRODUCT_VARIANT_METADATA_UPDATED @@ -26710,13 +28040,12 @@ enum WebhookEventTypeAsyncEnum { A checkout is updated. It also triggers all updates related to the checkout. """ CHECKOUT_UPDATED + CHECKOUT_FULLY_PAID """ A checkout metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ CHECKOUT_METADATA_UPDATED @@ -26733,8 +28062,6 @@ enum WebhookEventTypeAsyncEnum { A fulfillment metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ FULFILLMENT_METADATA_UPDATED @@ -26790,8 +28117,6 @@ enum WebhookEventTypeAsyncEnum { A shipping zone metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ SHIPPING_ZONE_METADATA_UPDATED @@ -26804,15 +28129,17 @@ enum WebhookEventTypeAsyncEnum { """A staff user is deleted.""" STAFF_DELETED - """An action requested for transaction.""" + """ + An action requested for transaction. + + DEPRECATED: this subscription will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead. + """ TRANSACTION_ACTION_REQUEST """ Transaction item metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ TRANSACTION_ITEM_METADATA_UPDATED @@ -26835,8 +28162,6 @@ enum WebhookEventTypeAsyncEnum { A warehouse metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ WAREHOUSE_METADATA_UPDATED @@ -26853,8 +28178,6 @@ enum WebhookEventTypeAsyncEnum { A voucher metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ VOUCHER_METADATA_UPDATED @@ -26943,6 +28266,15 @@ enum WebhookEventTypeEnum { """A gift card is deleted.""" GIFT_CARD_DELETED + """ + A gift card has been sent. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + GIFT_CARD_SENT + """A gift card status is changed.""" GIFT_CARD_STATUS_CHANGED @@ -26950,8 +28282,6 @@ enum WebhookEventTypeEnum { A gift card metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ GIFT_CARD_METADATA_UPDATED @@ -26992,6 +28322,9 @@ enum WebhookEventTypeEnum { """An order is cancelled.""" ORDER_CANCELLED + """An order is expired.""" + ORDER_EXPIRED + """An order is fulfilled.""" ORDER_FULFILLED @@ -26999,8 +28332,6 @@ enum WebhookEventTypeEnum { An order metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ ORDER_METADATA_UPDATED @@ -27047,8 +28378,6 @@ enum WebhookEventTypeEnum { A customer account metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ CUSTOMER_METADATA_UPDATED @@ -27065,8 +28394,6 @@ enum WebhookEventTypeEnum { A collection metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ COLLECTION_METADATA_UPDATED @@ -27104,8 +28431,6 @@ enum WebhookEventTypeEnum { A product metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ PRODUCT_METADATA_UPDATED @@ -27131,8 +28456,6 @@ enum WebhookEventTypeEnum { A product variant metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ PRODUCT_VARIANT_METADATA_UPDATED @@ -27143,13 +28466,12 @@ enum WebhookEventTypeEnum { A checkout is updated. It also triggers all updates related to the checkout. """ CHECKOUT_UPDATED + CHECKOUT_FULLY_PAID """ A checkout metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ CHECKOUT_METADATA_UPDATED @@ -27166,8 +28488,6 @@ enum WebhookEventTypeEnum { A fulfillment metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ FULFILLMENT_METADATA_UPDATED @@ -27223,8 +28543,6 @@ enum WebhookEventTypeEnum { A shipping zone metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ SHIPPING_ZONE_METADATA_UPDATED @@ -27237,15 +28555,17 @@ enum WebhookEventTypeEnum { """A staff user is deleted.""" STAFF_DELETED - """An action requested for transaction.""" + """ + An action requested for transaction. + + DEPRECATED: this subscription will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead. + """ TRANSACTION_ACTION_REQUEST """ Transaction item metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ TRANSACTION_ITEM_METADATA_UPDATED @@ -27268,8 +28588,6 @@ enum WebhookEventTypeEnum { A warehouse metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ WAREHOUSE_METADATA_UPDATED @@ -27286,8 +28604,6 @@ enum WebhookEventTypeEnum { A voucher metadata is updated. Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ VOUCHER_METADATA_UPDATED @@ -27322,12 +28638,37 @@ enum WebhookEventTypeEnum { """Void payment.""" PAYMENT_VOID + """ + Event called when charge has been requested for transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + TRANSACTION_CHARGE_REQUESTED + + """ + Event called when refund has been requested for transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + TRANSACTION_REFUND_REQUESTED + + """ + Event called when cancel has been requested for transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + TRANSACTION_CANCELATION_REQUESTED + """ Event called for checkout tax calculation. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ CHECKOUT_CALCULATE_TAXES @@ -27335,8 +28676,6 @@ enum WebhookEventTypeEnum { Event called for order tax calculation. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ ORDER_CALCULATE_TAXES @@ -27348,6 +28687,9 @@ enum WebhookEventTypeEnum { """Filter shipping methods for checkout.""" CHECKOUT_FILTER_SHIPPING_METHODS + PAYMENT_GATEWAY_INITIALIZE_SESSION + TRANSACTION_INITIALIZE_SESSION + TRANSACTION_PROCESS_SESSION } """Enum determining type of webhook.""" @@ -27373,12 +28715,37 @@ enum WebhookEventTypeSyncEnum { """Void payment.""" PAYMENT_VOID + """ + Event called when charge has been requested for transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + TRANSACTION_CHARGE_REQUESTED + + """ + Event called when refund has been requested for transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + TRANSACTION_REFUND_REQUESTED + + """ + Event called when cancel has been requested for transaction. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + TRANSACTION_CANCELATION_REQUESTED + """ Event called for checkout tax calculation. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ CHECKOUT_CALCULATE_TAXES @@ -27386,8 +28753,6 @@ enum WebhookEventTypeSyncEnum { Event called for order tax calculation. Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ ORDER_CALCULATE_TAXES @@ -27399,6 +28764,9 @@ enum WebhookEventTypeSyncEnum { """Filter shipping methods for checkout.""" CHECKOUT_FILTER_SHIPPING_METHODS + PAYMENT_GATEWAY_INITIALIZE_SESSION + TRANSACTION_INITIALIZE_SESSION + TRANSACTION_PROCESS_SESSION } """An enumeration.""" @@ -27426,6 +28794,7 @@ enum WebhookSampleEventTypeEnum { GIFT_CARD_CREATED GIFT_CARD_UPDATED GIFT_CARD_DELETED + GIFT_CARD_SENT GIFT_CARD_STATUS_CHANGED GIFT_CARD_METADATA_UPDATED MENU_CREATED @@ -27439,6 +28808,7 @@ enum WebhookSampleEventTypeEnum { ORDER_FULLY_PAID ORDER_UPDATED ORDER_CANCELLED + ORDER_EXPIRED ORDER_FULFILLED ORDER_METADATA_UPDATED DRAFT_ORDER_CREATED @@ -27475,6 +28845,7 @@ enum WebhookSampleEventTypeEnum { PRODUCT_VARIANT_METADATA_UPDATED CHECKOUT_CREATED CHECKOUT_UPDATED + CHECKOUT_FULLY_PAID CHECKOUT_METADATA_UPDATED FULFILLMENT_CREATED FULFILLMENT_CANCELED @@ -27605,8 +28976,6 @@ input WebhookUpdateInput { Subscription query used to define a webhook payload. Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. """ query: String @@ -27644,7 +29013,7 @@ enum WeightUnitsEnum { scalar _Any """_Entity union as defined by Federation spec.""" -union _Entity = App | Address | User | Group | ProductVariant | Product | ProductType | ProductMedia | Category | Collection | PageType +union _Entity = App | Address | User | Group | ProductVariant | Product | ProductType | ProductMedia | Category | Collection | Order | PageType """_Service manifest as defined by Federation spec.""" type _Service { diff --git a/schema.transactions.graphql b/schema.transactions.graphql deleted file mode 100644 index 00a059da4..000000000 --- a/schema.transactions.graphql +++ /dev/null @@ -1,27256 +0,0 @@ -""" -Create a new address for the customer. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type AccountAddressCreate { - """A user instance for which the address was created.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - address: Address -} - -""" -Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. -""" -type AccountAddressDelete { - """A user instance for which the address was deleted.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - address: Address -} - -""" -Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. -""" -type AccountAddressUpdate { - """A user object for which the address was edited.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - address: Address -} - -""" -Remove user account. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type AccountDelete { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - user: User -} - -type AccountError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: AccountErrorCode! - - """A type of address that causes the error.""" - addressType: AddressTypeEnum -} - -"""An enumeration.""" -enum AccountErrorCode { - ACTIVATE_OWN_ACCOUNT - ACTIVATE_SUPERUSER_ACCOUNT - DUPLICATED_INPUT_ITEM - DEACTIVATE_OWN_ACCOUNT - DEACTIVATE_SUPERUSER_ACCOUNT - DELETE_NON_STAFF_USER - DELETE_OWN_ACCOUNT - DELETE_STAFF_ACCOUNT - DELETE_SUPERUSER_ACCOUNT - GRAPHQL_ERROR - INACTIVE - INVALID - INVALID_PASSWORD - LEFT_NOT_MANAGEABLE_PERMISSION - INVALID_CREDENTIALS - NOT_FOUND - OUT_OF_SCOPE_USER - OUT_OF_SCOPE_GROUP - OUT_OF_SCOPE_PERMISSION - PASSWORD_ENTIRELY_NUMERIC - PASSWORD_TOO_COMMON - PASSWORD_TOO_SHORT - PASSWORD_TOO_SIMILAR - REQUIRED - UNIQUE - JWT_SIGNATURE_EXPIRED - JWT_INVALID_TOKEN - JWT_DECODE_ERROR - JWT_MISSING_TOKEN - JWT_INVALID_CSRF_TOKEN - CHANNEL_INACTIVE - MISSING_CHANNEL_SLUG - ACCOUNT_NOT_CONFIRMED -} - -input AccountInput { - """Given name.""" - firstName: String - - """Family name.""" - lastName: String - - """User language code.""" - languageCode: LanguageCodeEnum - - """Billing address of the customer.""" - defaultBillingAddress: AddressInput - - """Shipping address of the customer.""" - defaultShippingAddress: AddressInput -} - -"""Register a new user.""" -type AccountRegister { - """Informs whether users need to confirm their email address.""" - requiresConfirmation: Boolean - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - user: User -} - -input AccountRegisterInput { - """Given name.""" - firstName: String - - """Family name.""" - lastName: String - - """User language code.""" - languageCode: LanguageCodeEnum - - """The email address of the user.""" - email: String! - - """Password.""" - password: String! - - """Base of frontend URL that will be needed to create confirmation URL.""" - redirectUrl: String - - """User public metadata.""" - metadata: [MetadataInput!] - - """ - Slug of a channel which will be used to notify users. Optional when only one channel exists. - """ - channel: String -} - -""" -Sends an email with the account removal link for the logged-in user. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type AccountRequestDeletion { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -""" -Sets a default address for the authenticated user. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type AccountSetDefaultAddress { - """An updated user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -""" -Updates the account of the logged-in user. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type AccountUpdate { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - user: User -} - -"""Represents user address data.""" -type Address implements Node & ObjectWithMetadata { - id: ID! - - """ - List of private metadata items. Requires staff permissions to access. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """ - List of public metadata items. Can be accessed without permissions. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - firstName: String! - lastName: String! - companyName: String! - streetAddress1: String! - streetAddress2: String! - city: String! - cityArea: String! - postalCode: String! - - """Shop's default country.""" - country: CountryDisplay! - countryArea: String! - phone: String - - """Address is user's default shipping address.""" - isDefaultShippingAddress: Boolean - - """Address is user's default billing address.""" - isDefaultBillingAddress: Boolean -} - -""" -Creates user address. - -Requires one of the following permissions: MANAGE_USERS. -""" -type AddressCreate { - """A user instance for which the address was created.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - address: Address -} - -""" -Event sent when new address is created. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AddressCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The address the event relates to.""" - address: Address -} - -""" -Deletes an address. - -Requires one of the following permissions: MANAGE_USERS. -""" -type AddressDelete { - """A user instance for which the address was deleted.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - address: Address -} - -""" -Event sent when address is deleted. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AddressDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The address the event relates to.""" - address: Address -} - -input AddressInput { - """Given name.""" - firstName: String - - """Family name.""" - lastName: String - - """Company or organization.""" - companyName: String - - """Address.""" - streetAddress1: String - - """Address.""" - streetAddress2: String - - """City.""" - city: String - - """District.""" - cityArea: String - - """Postal code.""" - postalCode: String - - """Country.""" - country: CountryCode - - """State or province.""" - countryArea: String - - """Phone number.""" - phone: String -} - -""" -Sets a default address for the given user. - -Requires one of the following permissions: MANAGE_USERS. -""" -type AddressSetDefault { - """An updated user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -"""An enumeration.""" -enum AddressTypeEnum { - BILLING - SHIPPING -} - -""" -Updates an address. - -Requires one of the following permissions: MANAGE_USERS. -""" -type AddressUpdate { - """A user object for which the address was edited.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - address: Address -} - -""" -Event sent when address is updated. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AddressUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The address the event relates to.""" - address: Address -} - -type AddressValidationData { - countryCode: String! - countryName: String! - addressFormat: String! - addressLatinFormat: String! - allowedFields: [String!]! - requiredFields: [String!]! - upperFields: [String!]! - countryAreaType: String! - countryAreaChoices: [ChoiceValue!]! - cityType: String! - cityChoices: [ChoiceValue!]! - cityAreaType: String! - cityAreaChoices: [ChoiceValue!]! - postalCodeType: String! - postalCodeMatchers: [String!]! - postalCodeExamples: [String!]! - postalCodePrefix: String! -} - -"""Represents allocation.""" -type Allocation implements Node { - id: ID! - - """ - Quantity allocated for orders. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - """ - quantity: Int! - - """ - The warehouse were items were allocated. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - """ - warehouse: Warehouse! -} - -""" -Determine the allocation strategy for the channel. - - PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order - within the channel - - PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock - -""" -enum AllocationStrategyEnum { - PRIORITIZE_SORTING_ORDER - PRIORITIZE_HIGH_STOCK -} - -"""Represents app data.""" -type App implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - - """List of the app's permissions.""" - permissions: [Permission!] - - """The date and time when the app was created.""" - created: DateTime - - """Determine if app will be set active or not.""" - isActive: Boolean - - """Name of the app.""" - name: String - - """Type of the app.""" - type: AppTypeEnum - - """ - Last 4 characters of the tokens. - - Requires one of the following permissions: MANAGE_APPS, OWNER. - """ - tokens: [AppToken!] - - """ - List of webhooks assigned to this app. - - Requires one of the following permissions: MANAGE_APPS, OWNER. - """ - webhooks: [Webhook!] - - """Description of this app.""" - aboutApp: String - - """Description of the data privacy defined for this app.""" - dataPrivacy: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead.") - - """URL to details about the privacy policy on the app owner page.""" - dataPrivacyUrl: String - - """Homepage of the app.""" - homepageUrl: String - - """Support page for the app.""" - supportUrl: String - - """URL to iframe with the configuration for the app.""" - configurationUrl: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `appUrl` instead.") - - """URL to iframe with the app.""" - appUrl: String - - """ - URL to manifest used during app's installation. - - Added in Saleor 3.5. - """ - manifestUrl: String - - """Version number of the app.""" - version: String - - """JWT token used to authenticate by thridparty app.""" - accessToken: String - - """ - App's dashboard extensions. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - extensions: [AppExtension!]! -} - -""" -Activate the app. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppActivate { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - app: App -} - -type AppCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [AppCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type AppCountableEdge { - """The item at the end of the edge.""" - node: App! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. -""" -type AppCreate { - """The newly created authentication token.""" - authToken: String - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - app: App -} - -""" -Deactivate the app. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppDeactivate { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - app: App -} - -""" -Deletes an app. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppDelete { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - app: App -} - -""" -Delete failed installation. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppDeleteFailedInstallation { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - appInstallation: AppInstallation -} - -""" -Event sent when app is deleted. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AppDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The application the event relates to.""" - app: App -} - -type AppError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: AppErrorCode! - - """List of permissions which causes the error.""" - permissions: [PermissionEnum!] -} - -"""An enumeration.""" -enum AppErrorCode { - FORBIDDEN - GRAPHQL_ERROR - INVALID - INVALID_STATUS - INVALID_PERMISSION - INVALID_URL_FORMAT - INVALID_MANIFEST_FORMAT - MANIFEST_URL_CANT_CONNECT - NOT_FOUND - REQUIRED - UNIQUE - OUT_OF_SCOPE_APP - OUT_OF_SCOPE_PERMISSION -} - -"""Represents app data.""" -type AppExtension implements Node { - id: ID! - - """List of the app extension's permissions.""" - permissions: [Permission!]! - - """Label of the extension to show in the dashboard.""" - label: String! - - """URL of a view where extension's iframe is placed.""" - url: String! - - """Place where given extension will be mounted.""" - mount: AppExtensionMountEnum! - - """Type of way how app extension will be opened.""" - target: AppExtensionTargetEnum! - app: App! - - """JWT token used to authenticate by thridparty app extension.""" - accessToken: String -} - -type AppExtensionCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [AppExtensionCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type AppExtensionCountableEdge { - """The item at the end of the edge.""" - node: AppExtension! - - """A cursor for use in pagination.""" - cursor: String! -} - -input AppExtensionFilterInput { - mount: [AppExtensionMountEnum!] - target: AppExtensionTargetEnum -} - -"""All places where app extension can be mounted.""" -enum AppExtensionMountEnum { - CUSTOMER_OVERVIEW_CREATE - CUSTOMER_OVERVIEW_MORE_ACTIONS - CUSTOMER_DETAILS_MORE_ACTIONS - PRODUCT_OVERVIEW_CREATE - PRODUCT_OVERVIEW_MORE_ACTIONS - PRODUCT_DETAILS_MORE_ACTIONS - NAVIGATION_CATALOG - NAVIGATION_ORDERS - NAVIGATION_CUSTOMERS - NAVIGATION_DISCOUNTS - NAVIGATION_TRANSLATIONS - NAVIGATION_PAGES - ORDER_DETAILS_MORE_ACTIONS - ORDER_OVERVIEW_CREATE - ORDER_OVERVIEW_MORE_ACTIONS -} - -""" -All available ways of opening an app extension. - - POPUP - app's extension will be mounted as a popup window - APP_PAGE - redirect to app's page - -""" -enum AppExtensionTargetEnum { - POPUP - APP_PAGE -} - -""" -Fetch and validate manifest. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppFetchManifest { - manifest: Manifest - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! -} - -input AppFilterInput { - search: String - isActive: Boolean - type: AppTypeEnum -} - -input AppInput { - """Name of the app.""" - name: String - - """List of permission code names to assign to this app.""" - permissions: [PermissionEnum!] -} - -""" -Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. -""" -type AppInstall { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - appInstallation: AppInstallation -} - -input AppInstallInput { - """Name of the app to install.""" - appName: String - - """Url to app's manifest in JSON format.""" - manifestUrl: String - - """Determine if app will be set active or not.""" - activateAfterInstallation: Boolean = true - - """List of permission code names to assign to this app.""" - permissions: [PermissionEnum!] -} - -"""Represents ongoing installation of app.""" -type AppInstallation implements Node & Job { - id: ID! - - """Job status.""" - status: JobStatusEnum! - - """Created date time of job in ISO 8601 format.""" - createdAt: DateTime! - - """Date time of job last update in ISO 8601 format.""" - updatedAt: DateTime! - - """Job message.""" - message: String - appName: String! - manifestUrl: String! -} - -""" -Event sent when new app is installed. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AppInstalled implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The application the event relates to.""" - app: App -} - -type AppManifestExtension { - """List of the app extension's permissions.""" - permissions: [Permission!]! - - """Label of the extension to show in the dashboard.""" - label: String! - - """URL of a view where extension's iframe is placed.""" - url: String! - - """Place where given extension will be mounted.""" - mount: AppExtensionMountEnum! - - """Type of way how app extension will be opened.""" - target: AppExtensionTargetEnum! -} - -type AppManifestWebhook { - """The name of the webhook.""" - name: String! - - """The asynchronous events that webhook wants to subscribe.""" - asyncEvents: [WebhookEventTypeAsyncEnum!] - - """The synchronous events that webhook wants to subscribe.""" - syncEvents: [WebhookEventTypeSyncEnum!] - - """Subscription query of a webhook""" - query: String! - - """The url to receive the payload.""" - targetUrl: String! -} - -""" -Retry failed installation of new app. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppRetryInstall { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - appInstallation: AppInstallation -} - -enum AppSortField { - """Sort apps by name.""" - NAME - - """Sort apps by creation date.""" - CREATION_DATE -} - -input AppSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort apps by the selected field.""" - field: AppSortField! -} - -""" -Event sent when app status has changed. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AppStatusChanged implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The application the event relates to.""" - app: App -} - -"""Represents token data.""" -type AppToken implements Node { - id: ID! - - """Name of the authenticated token.""" - name: String - - """Last 4 characters of the token.""" - authToken: String -} - -""" -Creates a new token. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppTokenCreate { - """The newly created authentication token.""" - authToken: String - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - appToken: AppToken -} - -""" -Deletes an authentication token assigned to app. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppTokenDelete { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - appToken: AppToken -} - -input AppTokenInput { - """Name of the token.""" - name: String - - """ID of app.""" - app: ID! -} - -"""Verify provided app token.""" -type AppTokenVerify { - """Determine if token is valid or not.""" - valid: Boolean! - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! -} - -"""Enum determining type of your App.""" -enum AppTypeEnum { - """ - Local Saleor App. The app is fully manageable from dashboard. You can change assigned permissions, add webhooks, or authentication token - """ - LOCAL - - """ - Third party external App. Installation is fully automated. Saleor uses a defined App manifest to gather all required information. - """ - THIRDPARTY -} - -""" -Updates an existing app. - -Requires one of the following permissions: MANAGE_APPS. -""" -type AppUpdate { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AppError!]! - app: App -} - -""" -Event sent when app is updated. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AppUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The application the event relates to.""" - app: App -} - -"""An enumeration.""" -enum AreaUnitsEnum { - SQ_CM - SQ_M - SQ_KM - SQ_FT - SQ_YD - SQ_INCH -} - -""" -Assigns storefront's navigation menus. - -Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. -""" -type AssignNavigation { - """Assigned navigation menu.""" - menu: Menu - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! -} - -""" -Represents assigned attribute to variant with variant selection attached. - -Added in Saleor 3.1. -""" -type AssignedVariantAttribute { - """Attribute assigned to variant.""" - attribute: Attribute! - - """ - Determines, whether assigned attribute is allowed for variant selection. Supported variant types for variant selection are: ['dropdown', 'boolean', 'swatch', 'numeric'] - """ - variantSelection: Boolean! -} - -""" -Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. -""" -type Attribute implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - - """The input type to use for entering attribute values in the dashboard.""" - inputType: AttributeInputTypeEnum - - """The entity type which can be used as a reference.""" - entityType: AttributeEntityTypeEnum - - """Name of an attribute displayed in the interface.""" - name: String - - """Internal representation of an attribute name.""" - slug: String - - """The attribute type.""" - type: AttributeTypeEnum - - """The unit of attribute values.""" - unit: MeasurementUnitsEnum - - """List of attribute's values.""" - choices( - """Sort attribute choices.""" - sortBy: AttributeChoicesSortingInput - - """Filtering options for attribute choices.""" - filter: AttributeValueFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): AttributeValueCountableConnection - - """ - Whether the attribute requires values to be passed or not. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - valueRequired: Boolean! - - """ - Whether the attribute should be visible or not in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - visibleInStorefront: Boolean! - - """ - Whether the attribute can be filtered in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - filterableInStorefront: Boolean! - - """ - Whether the attribute can be filtered in dashboard. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - filterableInDashboard: Boolean! - - """ - Whether the attribute can be displayed in the admin product list. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - availableInGrid: Boolean! - - """ - The position of the attribute in the storefront navigation (0 by default). Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - storefrontSearchPosition: Int! - - """Returns translated attribute fields for the given language code.""" - translation( - """A language code to return the translation for attribute.""" - languageCode: LanguageCodeEnum! - ): AttributeTranslation - - """Flag indicating that attribute has predefined choices.""" - withChoices: Boolean! - productTypes( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductTypeCountableConnection! - productVariantTypes( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductTypeCountableConnection! - - """ - External ID of this attribute. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Deletes attributes. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type AttributeBulkDelete { - """Returns how many objects were affected.""" - count: Int! - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! -} - -enum AttributeChoicesSortField { - """Sort attribute choice by name.""" - NAME - - """Sort attribute choice by slug.""" - SLUG -} - -input AttributeChoicesSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort attribute choices by the selected field.""" - field: AttributeChoicesSortField! -} - -type AttributeCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [AttributeCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type AttributeCountableEdge { - """The item at the end of the edge.""" - node: Attribute! - - """A cursor for use in pagination.""" - cursor: String! -} - -"""Creates an attribute.""" -type AttributeCreate { - attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! -} - -input AttributeCreateInput { - """The input type to use for entering attribute values in the dashboard.""" - inputType: AttributeInputTypeEnum - - """The entity type which can be used as a reference.""" - entityType: AttributeEntityTypeEnum - - """Name of an attribute displayed in the interface.""" - name: String! - - """Internal representation of an attribute name.""" - slug: String - - """The attribute type.""" - type: AttributeTypeEnum! - - """The unit of attribute values.""" - unit: MeasurementUnitsEnum - - """List of attribute's values.""" - values: [AttributeValueCreateInput!] - - """Whether the attribute requires values to be passed or not.""" - valueRequired: Boolean - - """Whether the attribute is for variants only.""" - isVariantOnly: Boolean - - """Whether the attribute should be visible or not in storefront.""" - visibleInStorefront: Boolean - - """Whether the attribute can be filtered in storefront.""" - filterableInStorefront: Boolean - - """Whether the attribute can be filtered in dashboard.""" - filterableInDashboard: Boolean - - """ - The position of the attribute in the storefront navigation (0 by default). - """ - storefrontSearchPosition: Int - - """Whether the attribute can be displayed in the admin product list.""" - availableInGrid: Boolean - - """ - External ID of this attribute. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Event sent when new attribute is created. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AttributeCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The attribute the event relates to.""" - attribute: Attribute -} - -""" -Deletes an attribute. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type AttributeDelete { - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! - attribute: Attribute -} - -""" -Event sent when attribute is deleted. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AttributeDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The attribute the event relates to.""" - attribute: Attribute -} - -"""An enumeration.""" -enum AttributeEntityTypeEnum { - PAGE - PRODUCT - PRODUCT_VARIANT -} - -type AttributeError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: AttributeErrorCode! -} - -"""An enumeration.""" -enum AttributeErrorCode { - ALREADY_EXISTS - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE -} - -input AttributeFilterInput { - valueRequired: Boolean - isVariantOnly: Boolean - visibleInStorefront: Boolean - filterableInStorefront: Boolean - filterableInDashboard: Boolean - availableInGrid: Boolean - metadata: [MetadataFilter!] - search: String - ids: [ID!] - type: AttributeTypeEnum - inCollection: ID - inCategory: ID - slugs: [String!] - - """ - Specifies the channel by which the data should be filtered. - - DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - """ - channel: String -} - -input AttributeInput { - """Internal representation of an attribute name.""" - slug: String! - - """Internal representation of a value (unique per attribute).""" - values: [String!] - - """The range that the returned values should be in.""" - valuesRange: IntRangeInput - - """The date/time range that the returned values should be in.""" - dateTime: DateTimeRangeInput - - """ - The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. - """ - date: DateRangeInput - - """The boolean value of the attribute.""" - boolean: Boolean -} - -"""An enumeration.""" -enum AttributeInputTypeEnum { - DROPDOWN - MULTISELECT - FILE - REFERENCE - NUMERIC - RICH_TEXT - PLAIN_TEXT - SWATCH - BOOLEAN - DATE - DATE_TIME -} - -""" -Reorder the values of an attribute. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type AttributeReorderValues { - """Attribute from which values are reordered.""" - attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! -} - -enum AttributeSortField { - """Sort attributes by name""" - NAME - - """Sort attributes by slug""" - SLUG - - """Sort attributes by the value required flag""" - VALUE_REQUIRED - - """Sort attributes by the variant only flag""" - IS_VARIANT_ONLY - - """Sort attributes by visibility in the storefront""" - VISIBLE_IN_STOREFRONT - - """Sort attributes by the filterable in storefront flag""" - FILTERABLE_IN_STOREFRONT - - """Sort attributes by the filterable in dashboard flag""" - FILTERABLE_IN_DASHBOARD - - """Sort attributes by their position in storefront""" - STOREFRONT_SEARCH_POSITION - - """ - Sort attributes based on whether they can be displayed or not in a product grid. - """ - AVAILABLE_IN_GRID -} - -input AttributeSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort attributes by the selected field.""" - field: AttributeSortField! -} - -type AttributeTranslatableContent implements Node { - id: ID! - name: String! - - """Returns translated attribute fields for the given language code.""" - translation( - """A language code to return the translation for attribute.""" - languageCode: LanguageCodeEnum! - ): AttributeTranslation - - """Custom attribute of a product.""" - attribute: Attribute @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") -} - -""" -Creates/updates translations for an attribute. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type AttributeTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - attribute: Attribute -} - -type AttributeTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - name: String! -} - -"""An enumeration.""" -enum AttributeTypeEnum { - PRODUCT_TYPE - PAGE_TYPE -} - -""" -Updates attribute. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type AttributeUpdate { - attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! -} - -input AttributeUpdateInput { - """Name of an attribute displayed in the interface.""" - name: String - - """Internal representation of an attribute name.""" - slug: String - - """The unit of attribute values.""" - unit: MeasurementUnitsEnum - - """IDs of values to be removed from this attribute.""" - removeValues: [ID!] - - """New values to be created for this attribute.""" - addValues: [AttributeValueUpdateInput!] - - """Whether the attribute requires values to be passed or not.""" - valueRequired: Boolean - - """Whether the attribute is for variants only.""" - isVariantOnly: Boolean - - """Whether the attribute should be visible or not in storefront.""" - visibleInStorefront: Boolean - - """Whether the attribute can be filtered in storefront.""" - filterableInStorefront: Boolean - - """Whether the attribute can be filtered in dashboard.""" - filterableInDashboard: Boolean - - """ - The position of the attribute in the storefront navigation (0 by default). - """ - storefrontSearchPosition: Int - - """Whether the attribute can be displayed in the admin product list.""" - availableInGrid: Boolean - - """ - External ID of this product. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Event sent when attribute is updated. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AttributeUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The attribute the event relates to.""" - attribute: Attribute -} - -"""Represents a value of an attribute.""" -type AttributeValue implements Node { - id: ID! - - """Name of a value displayed in the interface.""" - name: String - - """Internal representation of a value (unique per attribute).""" - slug: String - - """ - Represent value of the attribute value (e.g. color values for swatch attributes). - """ - value: String - - """Returns translated attribute value fields for the given language code.""" - translation( - """A language code to return the translation for attribute value.""" - languageCode: LanguageCodeEnum! - ): AttributeValueTranslation - - """The input type to use for entering attribute values in the dashboard.""" - inputType: AttributeInputTypeEnum - - """The ID of the attribute reference.""" - reference: ID - - """Represents file URL and content type (if attribute value is a file).""" - file: File - - """ - Represents the text of the attribute value, includes formatting. - - Rich text format. For reference see https://editorjs.io/ - """ - richText: JSONString - - """ - Represents the text of the attribute value, plain text without formating. - """ - plainText: String - - """Represents the boolean value of the attribute value.""" - boolean: Boolean - - """Represents the date value of the attribute value.""" - date: Date - - """Represents the date/time value of the attribute value.""" - dateTime: DateTime - - """ - External ID of this attribute value. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Deletes values of attributes. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type AttributeValueBulkDelete { - """Returns how many objects were affected.""" - count: Int! - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! -} - -type AttributeValueCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [AttributeValueCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type AttributeValueCountableEdge { - """The item at the end of the edge.""" - node: AttributeValue! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a value for an attribute. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type AttributeValueCreate { - """The updated attribute.""" - attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! - attributeValue: AttributeValue -} - -input AttributeValueCreateInput { - """ - Represent value of the attribute value (e.g. color values for swatch attributes). - """ - value: String - - """ - Represents the text of the attribute value, includes formatting. - - Rich text format. For reference see https://editorjs.io/ - - DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - """ - richText: JSONString - - """ - Represents the text of the attribute value, plain text without formating. - - DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - """ - plainText: String - - """URL of the file attribute. Every time, a new value is created.""" - fileUrl: String - - """File content type.""" - contentType: String - - """ - External ID of this attribute value. - - Added in Saleor 3.10. - """ - externalReference: String - - """Name of a value displayed in the interface.""" - name: String! -} - -""" -Event sent when new attribute value is created. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AttributeValueCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The attribute value the event relates to.""" - attributeValue: AttributeValue -} - -""" -Deletes a value of an attribute. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type AttributeValueDelete { - """The updated attribute.""" - attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! - attributeValue: AttributeValue -} - -""" -Event sent when attribute value is deleted. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AttributeValueDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The attribute value the event relates to.""" - attributeValue: AttributeValue -} - -input AttributeValueFilterInput { - search: String - ids: [ID!] -} - -input AttributeValueInput { - """ID of the selected attribute.""" - id: ID - - """ - The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. This field will be removed in Saleor 4.0. - """ - values: [String!] - - """ - Attribute value ID. - - Added in Saleor 3.9. - """ - dropdown: AttributeValueSelectableTypeInput - - """ - List of attribute value IDs. - - Added in Saleor 3.9. - """ - multiselect: [AttributeValueSelectableTypeInput!] - - """ - Numeric value of an attribute. - - Added in Saleor 3.9. - """ - numeric: String - - """URL of the file attribute. Every time, a new value is created.""" - file: String - - """File content type.""" - contentType: String - - """List of entity IDs that will be used as references.""" - references: [ID!] - - """Text content in JSON format.""" - richText: JSONString - - """Plain text content.""" - plainText: String - - """Represents the boolean value of the attribute value.""" - boolean: Boolean - - """Represents the date value of the attribute value.""" - date: Date - - """Represents the date/time value of the attribute value.""" - dateTime: DateTime -} - -""" -Represents attribute value. If no ID provided, value will be resolved. - -Added in Saleor 3.9. -""" -input AttributeValueSelectableTypeInput { - """ID of an attribute value.""" - id: ID - - """ - The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. - """ - value: String -} - -type AttributeValueTranslatableContent implements Node { - id: ID! - name: String! - - """ - Attribute value. - - Rich text format. For reference see https://editorjs.io/ - """ - richText: JSONString - - """Attribute plain text value.""" - plainText: String - - """Returns translated attribute value fields for the given language code.""" - translation( - """A language code to return the translation for attribute value.""" - languageCode: LanguageCodeEnum! - ): AttributeValueTranslation - - """Represents a value of an attribute.""" - attributeValue: AttributeValue @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") - - """ - Associated attribute that can be translated. - - Added in Saleor 3.9. - """ - attribute: AttributeTranslatableContent -} - -""" -Creates/updates translations for an attribute value. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type AttributeValueTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - attributeValue: AttributeValue -} - -type AttributeValueTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - name: String! - - """ - Attribute value. - - Rich text format. For reference see https://editorjs.io/ - """ - richText: JSONString - - """Attribute plain text value.""" - plainText: String -} - -input AttributeValueTranslationInput { - name: String - - """ - Translated text. - - Rich text format. For reference see https://editorjs.io/ - """ - richText: JSONString - - """Translated text.""" - plainText: String -} - -""" -Updates value of an attribute. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type AttributeValueUpdate { - """The updated attribute.""" - attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AttributeError!]! - attributeValue: AttributeValue -} - -input AttributeValueUpdateInput { - """ - Represent value of the attribute value (e.g. color values for swatch attributes). - """ - value: String - - """ - Represents the text of the attribute value, includes formatting. - - Rich text format. For reference see https://editorjs.io/ - - DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - """ - richText: JSONString - - """ - Represents the text of the attribute value, plain text without formating. - - DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - """ - plainText: String - - """URL of the file attribute. Every time, a new value is created.""" - fileUrl: String - - """File content type.""" - contentType: String - - """ - External ID of this attribute value. - - Added in Saleor 3.10. - """ - externalReference: String - - """Name of a value displayed in the interface.""" - name: String -} - -""" -Event sent when attribute value is updated. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type AttributeValueUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The attribute value the event relates to.""" - attributeValue: AttributeValue -} - -input BulkAttributeValueInput { - """ID of the selected attribute.""" - id: ID - - """ - The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. - """ - values: [String!] - - """ - The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. - """ - boolean: Boolean -} - -type BulkProductError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ProductErrorCode! - - """List of attributes IDs which causes the error.""" - attributes: [ID!] - - """List of attribute values IDs which causes the error.""" - values: [ID!] - - """Index of an input list item that caused the error.""" - index: Int - - """List of warehouse IDs which causes the error.""" - warehouses: [ID!] - - """List of channel IDs which causes the error.""" - channels: [ID!] -} - -type BulkStockError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ProductErrorCode! - - """List of attributes IDs which causes the error.""" - attributes: [ID!] - - """List of attribute values IDs which causes the error.""" - values: [ID!] - - """Index of an input list item that caused the error.""" - index: Int -} - -""" -Synchronous webhook for calculating checkout/order taxes. - -Added in Saleor 3.7. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CalculateTaxes implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - taxBase: TaxableObject! -} - -input CardInput { - """ - Payment method nonce, a token returned by the appropriate provider's SDK. - """ - code: String! - - """Card security code.""" - cvc: String - - """Information about currency and amount.""" - money: MoneyInput! -} - -input CatalogueInput { - """Products related to the discount.""" - products: [ID!] - - """Categories related to the discount.""" - categories: [ID!] - - """Collections related to the discount.""" - collections: [ID!] - - """ - Product variant related to the discount. - - Added in Saleor 3.1. - """ - variants: [ID!] -} - -""" -Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. -""" -type Category implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - seoTitle: String - seoDescription: String - name: String! - - """ - Description of the category. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - slug: String! - parent: Category - level: Int! - - """ - Description of the category. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") - - """List of ancestors of the category.""" - ancestors( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CategoryCountableConnection - - """ - List of products in the category. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - products( - """ - Filtering options for products. - - Added in Saleor 3.10. - """ - filter: ProductFilterInput - - """ - Sort products. - - Added in Saleor 3.10. - """ - sortBy: ProductOrder - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductCountableConnection - - """List of children of the category.""" - children( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CategoryCountableConnection - backgroundImage( - """ - Size of the image. If not provided, the original image will be returned. - """ - size: Int - - """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - format: ThumbnailFormatEnum - ): Image - - """Returns translated category fields for the given language code.""" - translation( - """A language code to return the translation for category.""" - languageCode: LanguageCodeEnum! - ): CategoryTranslation -} - -""" -Deletes categories. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CategoryBulkDelete { - """Returns how many objects were affected.""" - count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -type CategoryCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [CategoryCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type CategoryCountableEdge { - """The item at the end of the edge.""" - node: Category! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new category. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CategoryCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - category: Category -} - -""" -Event sent when new category is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CategoryCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The category the event relates to.""" - category: Category -} - -""" -Deletes a category. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CategoryDelete { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - category: Category -} - -""" -Event sent when category is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CategoryDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The category the event relates to.""" - category: Category -} - -input CategoryFilterInput { - search: String - metadata: [MetadataFilter!] - ids: [ID!] - slugs: [String!] -} - -input CategoryInput { - """ - Category description. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """Category name.""" - name: String - - """Category slug.""" - slug: String - - """Search engine optimization fields.""" - seo: SeoInput - - """Background image file.""" - backgroundImage: Upload - - """Alt text for a product media.""" - backgroundImageAlt: String - - """ - Fields required to update the category metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the category private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] -} - -enum CategorySortField { - """Sort categories by name.""" - NAME - - """Sort categories by product count.""" - PRODUCT_COUNT - - """Sort categories by subcategory count.""" - SUBCATEGORY_COUNT -} - -input CategorySortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """ - Specifies the channel in which to sort the data. - - DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - """ - channel: String - - """Sort categories by the selected field.""" - field: CategorySortField! -} - -type CategoryTranslatableContent implements Node { - id: ID! - seoTitle: String - seoDescription: String - name: String! - - """ - Description of the category. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """ - Description of the category. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") - - """Returns translated category fields for the given language code.""" - translation( - """A language code to return the translation for category.""" - languageCode: LanguageCodeEnum! - ): CategoryTranslation - - """Represents a single category of products.""" - category: Category @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") -} - -""" -Creates/updates translations for a category. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type CategoryTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - category: Category -} - -type CategoryTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - seoTitle: String - seoDescription: String - name: String - - """ - Translated description of the category. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """ - Translated description of the category. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") -} - -""" -Updates a category. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CategoryUpdate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - category: Category -} - -""" -Event sent when category is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CategoryUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The category the event relates to.""" - category: Category -} - -"""Represents channel.""" -type Channel implements Node { - id: ID! - - """Slug of the channel.""" - slug: String! - - """ - Name of the channel. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - name: String! - - """ - Whether the channel is active. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - isActive: Boolean! - - """ - A currency that is assigned to the channel. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - currencyCode: String! - - """ - Whether a channel has associated orders. - - Requires one of the following permissions: MANAGE_CHANNELS. - """ - hasOrders: Boolean! - - """ - Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. - - Added in Saleor 3.1. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - defaultCountry: CountryDisplay! - - """ - List of warehouses assigned to this channel. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - warehouses: [Warehouse!]! - - """ - List of shippable countries for the channel. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - countries: [CountryDisplay!] - - """ - Shipping methods that are available for the channel. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - availableShippingMethodsPerCountry(countries: [CountryCode!]): [ShippingMethodsPerCountry!] - - """ - Define the stock setting for this channel. - - Added in Saleor 3.7. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - stockSettings: StockSettings! -} - -""" -Activate a channel. - -Requires one of the following permissions: MANAGE_CHANNELS. -""" -type ChannelActivate { - """Activated channel.""" - channel: Channel - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ChannelError!]! -} - -""" -Creates new channel. - -Requires one of the following permissions: MANAGE_CHANNELS. -""" -type ChannelCreate { - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ChannelError!]! - channel: Channel -} - -input ChannelCreateInput { - """isActive flag.""" - isActive: Boolean - - """ - The channel stock settings. - - Added in Saleor 3.7. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - stockSettings: StockSettingsInput - - """List of shipping zones to assign to the channel.""" - addShippingZones: [ID!] - - """ - List of warehouses to assign to the channel. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - addWarehouses: [ID!] - - """Name of the channel.""" - name: String! - - """Slug of the channel.""" - slug: String! - - """Currency of the channel.""" - currencyCode: String! - - """ - Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - defaultCountry: CountryCode! -} - -""" -Event sent when new channel is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ChannelCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The channel the event relates to.""" - channel: Channel -} - -""" -Deactivate a channel. - -Requires one of the following permissions: MANAGE_CHANNELS. -""" -type ChannelDeactivate { - """Deactivated channel.""" - channel: Channel - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ChannelError!]! -} - -""" -Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. - -Requires one of the following permissions: MANAGE_CHANNELS. -""" -type ChannelDelete { - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ChannelError!]! - channel: Channel -} - -input ChannelDeleteInput { - """ID of channel to migrate orders from origin channel.""" - channelId: ID! -} - -""" -Event sent when channel is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ChannelDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The channel the event relates to.""" - channel: Channel -} - -type ChannelError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ChannelErrorCode! - - """List of shipping zone IDs which causes the error.""" - shippingZones: [ID!] - - """List of warehouses IDs which causes the error.""" - warehouses: [ID!] -} - -"""An enumeration.""" -enum ChannelErrorCode { - ALREADY_EXISTS - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE - CHANNELS_CURRENCY_MUST_BE_THE_SAME - CHANNEL_WITH_ORDERS - DUPLICATED_INPUT_ITEM -} - -""" -Reorder the warehouses of a channel. - -Added in Saleor 3.7. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_CHANNELS. -""" -type ChannelReorderWarehouses { - """Channel within the warehouses are reordered.""" - channel: Channel - errors: [ChannelError!]! -} - -""" -Event sent when channel status has changed. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ChannelStatusChanged implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The channel the event relates to.""" - channel: Channel -} - -""" -Update a channel. - -Requires one of the following permissions: MANAGE_CHANNELS. -""" -type ChannelUpdate { - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ChannelError!]! - channel: Channel -} - -input ChannelUpdateInput { - """isActive flag.""" - isActive: Boolean - - """ - The channel stock settings. - - Added in Saleor 3.7. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - stockSettings: StockSettingsInput - - """List of shipping zones to assign to the channel.""" - addShippingZones: [ID!] - - """ - List of warehouses to assign to the channel. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - addWarehouses: [ID!] - - """Name of the channel.""" - name: String - - """Slug of the channel.""" - slug: String - - """ - Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. - - Added in Saleor 3.1. - """ - defaultCountry: CountryCode - - """List of shipping zones to unassign from the channel.""" - removeShippingZones: [ID!] - - """ - List of warehouses to unassign from the channel. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - removeWarehouses: [ID!] -} - -""" -Event sent when channel is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ChannelUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The channel the event relates to.""" - channel: Channel -} - -"""Checkout object.""" -type Checkout implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - created: DateTime! - lastChange: DateTime! - user: User - channel: Channel! - billingAddress: Address - shippingAddress: Address - note: String! - discount: Money - discountName: String - translatedDiscountName: String - voucherCode: String - - """Shipping methods that can be used with this checkout.""" - availableShippingMethods: [ShippingMethod!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `shippingMethods` instead.") - - """Shipping methods that can be used with this checkout.""" - shippingMethods: [ShippingMethod!]! - - """ - Collection points that can be used for this order. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - availableCollectionPoints: [Warehouse!]! - - """List of available payment gateways.""" - availablePaymentGateways: [PaymentGateway!]! - - """Email of a customer.""" - email: String - - """List of gift cards associated with this checkout.""" - giftCards: [GiftCard!]! - - """Returns True, if checkout requires shipping.""" - isShippingRequired: Boolean! - - """The number of items purchased.""" - quantity: Int! - - """ - Date when oldest stock reservation for this checkout expires or null if no stock is reserved. - - Added in Saleor 3.1. - """ - stockReservationExpires: DateTime - - """ - A list of checkout lines, each containing information about an item in the checkout. - """ - lines: [CheckoutLine!]! - - """The price of the shipping, with all the taxes included.""" - shippingPrice: TaxedMoney! - - """The shipping method related with checkout.""" - shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.") - - """ - The delivery method selected for this checkout. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - deliveryMethod: DeliveryMethod - - """The price of the checkout before shipping, with taxes included.""" - subtotalPrice: TaxedMoney! - - """ - Returns True if checkout has to be exempt from taxes. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - taxExemption: Boolean! - - """The checkout's token.""" - token: UUID! - - """ - The sum of the the checkout line prices, with all the taxes,shipping costs, and discounts included. - """ - totalPrice: TaxedMoney! - - """Checkout language code.""" - languageCode: LanguageCodeEnum! - - """ - List of transactions for the checkout. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_PAYMENTS. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - transactions: [TransactionItem!] - - """ - Determines whether checkout prices should include taxes when displayed in a storefront. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - displayGrossPrices: Boolean! -} - -"""Adds a gift card or a voucher to a checkout.""" -type CheckoutAddPromoCode { - """The checkout with the added gift card or voucher.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -input CheckoutAddressValidationRules { - """ - Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input. - """ - checkRequiredFields: Boolean = true - - """ - Determines if an error should be raised when the provided address doesn't match the expected format. Example: using letters for postal code when the numbers are expected. - """ - checkFieldsFormat: Boolean = true - - """ - Determines if Saleor should apply normalization on address fields. Example: converting city field to uppercase letters. - """ - enableFieldsNormalization: Boolean = true -} - -"""Update billing address in the existing checkout.""" -type CheckoutBillingAddressUpdate { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -""" -Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation. -""" -type CheckoutComplete { - """Placed order.""" - order: Order - - """ - Set to true if payment needs to be confirmed before checkout is complete. - """ - confirmationNeeded: Boolean! - - """Confirmation data used to process additional authorization steps.""" - confirmationData: JSONString - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -type CheckoutCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [CheckoutCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type CheckoutCountableEdge { - """The item at the end of the edge.""" - node: Checkout! - - """A cursor for use in pagination.""" - cursor: String! -} - -"""Create a new checkout.""" -type CheckoutCreate { - """ - Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout. - """ - created: Boolean @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `true`.") - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! - checkout: Checkout -} - -input CheckoutCreateInput { - """Slug of a channel in which to create a checkout.""" - channel: String - - """ - A list of checkout lines, each containing information about an item in the checkout. - """ - lines: [CheckoutLineInput!]! - - """The customer's email address.""" - email: String - - """ - The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn't contain shippable items. - """ - shippingAddress: AddressInput - - """Billing address of the customer.""" - billingAddress: AddressInput - - """Checkout language code.""" - languageCode: LanguageCodeEnum - - """ - The checkout validation rules that can be changed. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - validationRules: CheckoutValidationRules -} - -""" -Event sent when new checkout is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CheckoutCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The checkout the event relates to.""" - checkout: Checkout -} - -""" -Sets the customer as the owner of the checkout. - -Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. -""" -type CheckoutCustomerAttach { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -""" -Removes the user assigned as the owner of the checkout. - -Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. -""" -type CheckoutCustomerDetach { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -""" -Updates the delivery method (shipping method or pick up point) of the checkout. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CheckoutDeliveryMethodUpdate { - """An updated checkout.""" - checkout: Checkout - errors: [CheckoutError!]! -} - -"""Updates email address in the existing checkout object.""" -type CheckoutEmailUpdate { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -type CheckoutError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: CheckoutErrorCode! - - """List of varint IDs which causes the error.""" - variants: [ID!] - - """List of line Ids which cause the error.""" - lines: [ID!] - - """A type of address that causes the error.""" - addressType: AddressTypeEnum -} - -"""An enumeration.""" -enum CheckoutErrorCode { - BILLING_ADDRESS_NOT_SET - CHECKOUT_NOT_FULLY_PAID - GRAPHQL_ERROR - PRODUCT_NOT_PUBLISHED - PRODUCT_UNAVAILABLE_FOR_PURCHASE - INSUFFICIENT_STOCK - INVALID - INVALID_SHIPPING_METHOD - NOT_FOUND - PAYMENT_ERROR - QUANTITY_GREATER_THAN_LIMIT - REQUIRED - SHIPPING_ADDRESS_NOT_SET - SHIPPING_METHOD_NOT_APPLICABLE - DELIVERY_METHOD_NOT_APPLICABLE - SHIPPING_METHOD_NOT_SET - SHIPPING_NOT_REQUIRED - TAX_ERROR - UNIQUE - VOUCHER_NOT_APPLICABLE - GIFT_CARD_NOT_APPLICABLE - ZERO_QUANTITY - MISSING_CHANNEL_SLUG - CHANNEL_INACTIVE - UNAVAILABLE_VARIANT_IN_CHANNEL - EMAIL_NOT_SET - NO_LINES - INACTIVE_PAYMENT -} - -input CheckoutFilterInput { - customer: String - created: DateRangeInput - search: String - metadata: [MetadataFilter!] - channels: [ID!] -} - -""" -Filter shipping methods for checkout. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CheckoutFilterShippingMethods implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The checkout the event relates to.""" - checkout: Checkout - - """ - Shipping methods that can be used with this checkout. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - shippingMethods: [ShippingMethod!] -} - -"""Update language code in the existing checkout.""" -type CheckoutLanguageCodeUpdate { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -"""Represents an item in the checkout.""" -type CheckoutLine implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - variant: ProductVariant! - quantity: Int! - - """The unit price of the checkout line, with taxes and discounts.""" - unitPrice: TaxedMoney! - - """The unit price of the checkout line, without discounts.""" - undiscountedUnitPrice: Money! - - """The sum of the checkout line price, taxes and discounts.""" - totalPrice: TaxedMoney! - - """The sum of the checkout line price, without discounts.""" - undiscountedTotalPrice: Money! - - """Indicates whether the item need to be delivered.""" - requiresShipping: Boolean! -} - -type CheckoutLineCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [CheckoutLineCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type CheckoutLineCountableEdge { - """The item at the end of the edge.""" - node: CheckoutLine! - - """A cursor for use in pagination.""" - cursor: String! -} - -"""Deletes a CheckoutLine.""" -type CheckoutLineDelete { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -input CheckoutLineInput { - """The number of items purchased.""" - quantity: Int! - - """ID of the product variant.""" - variantId: ID! - - """ - Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - price: PositiveDecimal - - """ - Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - forceNewLine: Boolean = false - - """ - Fields required to update the object's metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] -} - -input CheckoutLineUpdateInput { - """ - ID of the product variant. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. - """ - variantId: ID - - """ - The number of items purchased. Optional for apps, required for any other users. - """ - quantity: Int - - """ - Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - price: PositiveDecimal - - """ - ID of the line. - - Added in Saleor 3.6. - """ - lineId: ID -} - -""" -Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased. -""" -type CheckoutLinesAdd { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -"""Deletes checkout lines.""" -type CheckoutLinesDelete { - """An updated checkout.""" - checkout: Checkout - errors: [CheckoutError!]! -} - -"""Updates checkout line in the existing checkout.""" -type CheckoutLinesUpdate { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -""" -Event sent when checkout metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CheckoutMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The checkout the event relates to.""" - checkout: Checkout -} - -"""Create a new payment for given checkout.""" -type CheckoutPaymentCreate { - """Related checkout object.""" - checkout: Checkout - - """A newly created payment.""" - payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PaymentError!]! -} - -"""Remove a gift card or a voucher from a checkout.""" -type CheckoutRemovePromoCode { - """The checkout with the removed gift card or voucher.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -"""Update shipping address in the existing checkout.""" -type CheckoutShippingAddressUpdate { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -"""Updates the shipping method of the checkout.""" -type CheckoutShippingMethodUpdate { - """An updated checkout.""" - checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CheckoutError!]! -} - -enum CheckoutSortField { - """Sort checkouts by creation date.""" - CREATION_DATE - - """Sort checkouts by customer.""" - CUSTOMER - - """Sort checkouts by payment.""" - PAYMENT -} - -input CheckoutSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort checkouts by the selected field.""" - field: CheckoutSortField! -} - -""" -Event sent when checkout is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CheckoutUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The checkout the event relates to.""" - checkout: Checkout -} - -input CheckoutValidationRules { - """ - The validation rules that can be applied to provided shipping address data. - """ - shippingAddress: CheckoutAddressValidationRules - - """ - The validation rules that can be applied to provided billing address data. - """ - billingAddress: CheckoutAddressValidationRules -} - -type ChoiceValue { - raw: String - verbose: String -} - -"""Represents a collection of products.""" -type Collection implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - seoTitle: String - seoDescription: String - name: String! - - """ - Description of the collection. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - slug: String! - - """ - Channel given to retrieve this collection. Also used by federation gateway to resolve this object in a federated query. - """ - channel: String - - """ - Description of the collection. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") - - """List of products in this collection.""" - products( - """Filtering options for products.""" - filter: ProductFilterInput - - """Sort products.""" - sortBy: ProductOrder - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductCountableConnection - backgroundImage( - """ - Size of the image. If not provided, the original image will be returned. - """ - size: Int - - """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - format: ThumbnailFormatEnum - ): Image - - """Returns translated collection fields for the given language code.""" - translation( - """A language code to return the translation for collection.""" - languageCode: LanguageCodeEnum! - ): CollectionTranslation - - """ - List of channels in which the collection is available. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - channelListings: [CollectionChannelListing!] -} - -""" -Adds products to a collection. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CollectionAddProducts { - """Collection to which products will be added.""" - collection: Collection - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CollectionError!]! -} - -""" -Deletes collections. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CollectionBulkDelete { - """Returns how many objects were affected.""" - count: Int! - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CollectionError!]! -} - -"""Represents collection channel listing.""" -type CollectionChannelListing implements Node { - id: ID! - publicationDate: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date.") - - """ - The collection publication date. - - Added in Saleor 3.3. - """ - publishedAt: DateTime - isPublished: Boolean! - channel: Channel! -} - -type CollectionChannelListingError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ProductErrorCode! - - """List of attributes IDs which causes the error.""" - attributes: [ID!] - - """List of attribute values IDs which causes the error.""" - values: [ID!] - - """List of channels IDs which causes the error.""" - channels: [ID!] -} - -""" -Manage collection's availability in channels. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CollectionChannelListingUpdate { - """An updated collection instance.""" - collection: Collection - collectionChannelListingErrors: [CollectionChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CollectionChannelListingError!]! -} - -input CollectionChannelListingUpdateInput { - """List of channels to which the collection should be assigned.""" - addChannels: [PublishableChannelListingInput!] - - """List of channels from which the collection should be unassigned.""" - removeChannels: [ID!] -} - -type CollectionCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [CollectionCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type CollectionCountableEdge { - """The item at the end of the edge.""" - node: Collection! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new collection. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CollectionCreate { - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CollectionError!]! - collection: Collection -} - -input CollectionCreateInput { - """Informs whether a collection is published.""" - isPublished: Boolean - - """Name of the collection.""" - name: String - - """Slug of the collection.""" - slug: String - - """ - Description of the collection. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """Background image file.""" - backgroundImage: Upload - - """Alt text for an image.""" - backgroundImageAlt: String - - """Search engine optimization fields.""" - seo: SeoInput - - """ - Publication date. ISO 8601 standard. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - publicationDate: Date - - """ - Fields required to update the collection metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the collection private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] - - """List of products to be added to the collection.""" - products: [ID!] -} - -""" -Event sent when new collection is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CollectionCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The collection the event relates to.""" - collection( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Collection -} - -""" -Deletes a collection. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CollectionDelete { - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CollectionError!]! - collection: Collection -} - -""" -Event sent when collection is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CollectionDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The collection the event relates to.""" - collection( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Collection -} - -type CollectionError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """List of products IDs which causes the error.""" - products: [ID!] - - """The error code.""" - code: CollectionErrorCode! -} - -"""An enumeration.""" -enum CollectionErrorCode { - DUPLICATED_INPUT_ITEM - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT -} - -input CollectionFilterInput { - published: CollectionPublished - search: String - metadata: [MetadataFilter!] - ids: [ID!] - slugs: [String!] - - """ - Specifies the channel by which the data should be filtered. - - DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - """ - channel: String -} - -input CollectionInput { - """Informs whether a collection is published.""" - isPublished: Boolean - - """Name of the collection.""" - name: String - - """Slug of the collection.""" - slug: String - - """ - Description of the collection. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """Background image file.""" - backgroundImage: Upload - - """Alt text for an image.""" - backgroundImageAlt: String - - """Search engine optimization fields.""" - seo: SeoInput - - """ - Publication date. ISO 8601 standard. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - publicationDate: Date - - """ - Fields required to update the collection metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the collection private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] -} - -""" -Event sent when collection metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CollectionMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The collection the event relates to.""" - collection( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Collection -} - -enum CollectionPublished { - PUBLISHED - HIDDEN -} - -""" -Remove products from a collection. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CollectionRemoveProducts { - """Collection from which products will be removed.""" - collection: Collection - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CollectionError!]! -} - -""" -Reorder the products of a collection. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CollectionReorderProducts { - """Collection from which products are reordered.""" - collection: Collection - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CollectionError!]! -} - -enum CollectionSortField { - """Sort collections by name.""" - NAME - - """ - Sort collections by availability. - - This option requires a channel filter to work as the values can vary between channels. - """ - AVAILABILITY - - """Sort collections by product count.""" - PRODUCT_COUNT - - """ - Sort collections by publication date. - - This option requires a channel filter to work as the values can vary between channels. - """ - PUBLICATION_DATE - - """ - Sort collections by publication date. - - This option requires a channel filter to work as the values can vary between channels. - """ - PUBLISHED_AT -} - -input CollectionSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """ - Specifies the channel in which to sort the data. - - DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - """ - channel: String - - """Sort collections by the selected field.""" - field: CollectionSortField! -} - -type CollectionTranslatableContent implements Node { - id: ID! - seoTitle: String - seoDescription: String - name: String! - - """ - Description of the collection. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """ - Description of the collection. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") - - """Returns translated collection fields for the given language code.""" - translation( - """A language code to return the translation for collection.""" - languageCode: LanguageCodeEnum! - ): CollectionTranslation - - """Represents a collection of products.""" - collection: Collection @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") -} - -""" -Creates/updates translations for a collection. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type CollectionTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - collection: Collection -} - -type CollectionTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - seoTitle: String - seoDescription: String - name: String - - """ - Translated description of the collection. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """ - Translated description of the collection. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") -} - -""" -Updates a collection. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type CollectionUpdate { - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [CollectionError!]! - collection: Collection -} - -""" -Event sent when collection is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CollectionUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The collection the event relates to.""" - collection( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Collection -} - -"""Stores information about a single configuration field.""" -type ConfigurationItem { - """Name of the field.""" - name: String! - - """Current value of the field.""" - value: String - - """Type of the field.""" - type: ConfigurationTypeFieldEnum - - """Help text for the field.""" - helpText: String - - """Label for the field.""" - label: String -} - -input ConfigurationItemInput { - """Name of the field to update.""" - name: String! - - """Value of the given field to update.""" - value: String -} - -"""An enumeration.""" -enum ConfigurationTypeFieldEnum { - STRING - MULTILINE - BOOLEAN - SECRET - PASSWORD - SECRETMULTILINE - OUTPUT -} - -"""Confirm user account with token sent by email during registration.""" -type ConfirmAccount { - """An activated user account.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -""" -Confirm the email change of the logged-in user. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type ConfirmEmailChange { - """A user instance with a new email.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -"""An enumeration.""" -enum CountryCode { - AF - AX - AL - DZ - AS - AD - AO - AI - AQ - AG - AR - AM - AW - AU - AT - AZ - BS - BH - BD - BB - BY - BE - BZ - BJ - BM - BT - BO - BQ - BA - BW - BV - BR - IO - BN - BG - BF - BI - CV - KH - CM - CA - KY - CF - TD - CL - CN - CX - CC - CO - KM - CG - CD - CK - CR - CI - HR - CU - CW - CY - CZ - DK - DJ - DM - DO - EC - EG - SV - GQ - ER - EE - SZ - ET - EU - FK - FO - FJ - FI - FR - GF - PF - TF - GA - GM - GE - DE - GH - GI - GR - GL - GD - GP - GU - GT - GG - GN - GW - GY - HT - HM - VA - HN - HK - HU - IS - IN - ID - IR - IQ - IE - IM - IL - IT - JM - JP - JE - JO - KZ - KE - KI - KW - KG - LA - LV - LB - LS - LR - LY - LI - LT - LU - MO - MG - MW - MY - MV - ML - MT - MH - MQ - MR - MU - YT - MX - FM - MD - MC - MN - ME - MS - MA - MZ - MM - NA - NR - NP - NL - NC - NZ - NI - NE - NG - NU - NF - KP - MK - MP - NO - OM - PK - PW - PS - PA - PG - PY - PE - PH - PN - PL - PT - PR - QA - RE - RO - RU - RW - BL - SH - KN - LC - MF - PM - VC - WS - SM - ST - SA - SN - RS - SC - SL - SG - SX - SK - SI - SB - SO - ZA - GS - KR - SS - ES - LK - SD - SR - SJ - SE - CH - SY - TW - TJ - TZ - TH - TL - TG - TK - TO - TT - TN - TR - TM - TC - TV - UG - UA - AE - GB - UM - US - UY - UZ - VU - VE - VN - VG - VI - WF - EH - YE - ZM - ZW -} - -type CountryDisplay { - """Country code.""" - code: String! - - """Country name.""" - country: String! - - """Country tax.""" - vat: VAT @deprecated(reason: "This field will be removed in Saleor 4.0. Use `TaxClassCountryRate` type to manage tax rates per country.") -} - -input CountryFilterInput { - """ - Boolean for filtering countries by having shipping zone assigned.If 'true', return countries with shipping zone assigned.If 'false', return countries without any shipping zone assigned.If the argument is not provided (null), return all countries. - """ - attachedToShippingZones: Boolean -} - -input CountryRateInput { - """Country in which this rate applies.""" - countryCode: CountryCode! - - """ - Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. - """ - rate: Float! -} - -input CountryRateUpdateInput { - """Country in which this rate applies.""" - countryCode: CountryCode! - - """ - Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. Provide `null` to remove the particular rate. - """ - rate: Float -} - -"""Create JWT token.""" -type CreateToken { - """JWT token, required to authenticate.""" - token: String - - """JWT refresh token, required to re-generate access token.""" - refreshToken: String - - """CSRF token required to re-generate access token.""" - csrfToken: String - - """A user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -type CreditCard { - """Card brand.""" - brand: String! - - """First 4 digits of the card number.""" - firstDigits: String - - """Last 4 digits of the card number.""" - lastDigits: String! - - """Two-digit number representing the card’s expiration month.""" - expMonth: Int - - """Four-digit number representing the card’s expiration year.""" - expYear: Int -} - -""" -Deletes customers. - -Requires one of the following permissions: MANAGE_USERS. -""" -type CustomerBulkDelete { - """Returns how many objects were affected.""" - count: Int! - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -""" -Creates a new customer. - -Requires one of the following permissions: MANAGE_USERS. -""" -type CustomerCreate { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - user: User -} - -""" -Event sent when new customer user is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CustomerCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The user the event relates to.""" - user: User -} - -""" -Deletes a customer. - -Requires one of the following permissions: MANAGE_USERS. -""" -type CustomerDelete { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - user: User -} - -"""History log of the customer.""" -type CustomerEvent implements Node { - id: ID! - - """Date when event happened at in ISO 8601 format.""" - date: DateTime - - """Customer event type.""" - type: CustomerEventsEnum - - """User who performed the action.""" - user: User - - """App that performed the action.""" - app: App - - """Content of the event.""" - message: String - - """Number of objects concerned by the event.""" - count: Int - - """The concerned order.""" - order: Order - - """The concerned order line.""" - orderLine: OrderLine -} - -"""An enumeration.""" -enum CustomerEventsEnum { - ACCOUNT_CREATED - ACCOUNT_ACTIVATED - ACCOUNT_DEACTIVATED - PASSWORD_RESET_LINK_SENT - PASSWORD_RESET - EMAIL_CHANGED_REQUEST - PASSWORD_CHANGED - EMAIL_CHANGED - PLACED_ORDER - NOTE_ADDED_TO_ORDER - DIGITAL_LINK_DOWNLOADED - CUSTOMER_DELETED - NAME_ASSIGNED - EMAIL_ASSIGNED - NOTE_ADDED -} - -input CustomerFilterInput { - dateJoined: DateRangeInput - numberOfOrders: IntRangeInput - placedOrders: DateRangeInput - search: String - metadata: [MetadataFilter!] - - """ - Filter by ids. - - Added in Saleor 3.8. - """ - ids: [ID!] - updatedAt: DateTimeRangeInput -} - -input CustomerInput { - """Billing address of the customer.""" - defaultBillingAddress: AddressInput - - """Shipping address of the customer.""" - defaultShippingAddress: AddressInput - - """Given name.""" - firstName: String - - """Family name.""" - lastName: String - - """The unique email address of the user.""" - email: String - - """User account is active.""" - isActive: Boolean - - """A note about the user.""" - note: String - - """User language code.""" - languageCode: LanguageCodeEnum - - """ - External ID of the customer. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Event sent when customer user metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CustomerMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The user the event relates to.""" - user: User -} - -""" -Updates an existing customer. - -Requires one of the following permissions: MANAGE_USERS. -""" -type CustomerUpdate { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! - user: User -} - -""" -Event sent when customer user is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type CustomerUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The user the event relates to.""" - user: User -} - -""" -The `Date` scalar type represents a Date -value as specified by -[iso8601](https://en.wikipedia.org/wiki/ISO_8601). -""" -scalar Date - -input DateRangeInput { - """Start date.""" - gte: Date - - """End date.""" - lte: Date -} - -""" -The `DateTime` scalar type represents a DateTime -value as specified by -[iso8601](https://en.wikipedia.org/wiki/ISO_8601). -""" -scalar DateTime - -input DateTimeRangeInput { - """Start date.""" - gte: DateTime - - """End date.""" - lte: DateTime -} - -""" -Deactivate all JWT tokens of the currently authenticated user. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type DeactivateAllUserTokens { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -""" -Custom Decimal implementation. - -Returns Decimal as a float in the API, -parses float to the Decimal on the way back. -""" -scalar Decimal - -""" -Delete metadata of an object. To use it, you need to have access to the modified object. -""" -type DeleteMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MetadataError!]! - item: ObjectWithMetadata -} - -""" -Delete object's private metadata. To use it, you need to be an authenticated staff user or an app and have access to the modified object. -""" -type DeletePrivateMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MetadataError!]! - item: ObjectWithMetadata -} - -""" -Represents a delivery method chosen for the checkout. `Warehouse` type is used when checkout is marked as "click and collect" and `ShippingMethod` otherwise. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -union DeliveryMethod = Warehouse | ShippingMethod - -type DigitalContent implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - useDefaultSettings: Boolean! - automaticFulfillment: Boolean! - contentFile: String! - maxDownloads: Int - urlValidDays: Int - - """List of URLs for the digital variant.""" - urls: [DigitalContentUrl!] - - """Product variant assigned to digital content.""" - productVariant: ProductVariant! -} - -type DigitalContentCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [DigitalContentCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type DigitalContentCountableEdge { - """The item at the end of the edge.""" - node: DigitalContent! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Create new digital content. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type DigitalContentCreate { - variant: ProductVariant - content: DigitalContent - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -""" -Remove digital content assigned to given variant. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type DigitalContentDelete { - variant: ProductVariant - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -input DigitalContentInput { - """Use default digital content settings for this product.""" - useDefaultSettings: Boolean! - - """ - Determines how many times a download link can be accessed by a customer. - """ - maxDownloads: Int - - """ - Determines for how many days a download link is active since it was generated. - """ - urlValidDays: Int - - """Overwrite default automatic_fulfillment setting for variant.""" - automaticFulfillment: Boolean - - """ - Fields required to update the digital content metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the digital content private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] -} - -""" -Update digital content. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type DigitalContentUpdate { - variant: ProductVariant - content: DigitalContent - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -input DigitalContentUploadInput { - """Use default digital content settings for this product.""" - useDefaultSettings: Boolean! - - """ - Determines how many times a download link can be accessed by a customer. - """ - maxDownloads: Int - - """ - Determines for how many days a download link is active since it was generated. - """ - urlValidDays: Int - - """Overwrite default automatic_fulfillment setting for variant.""" - automaticFulfillment: Boolean - - """ - Fields required to update the digital content metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the digital content private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] - - """Represents an file in a multipart request.""" - contentFile: Upload! -} - -type DigitalContentUrl implements Node { - id: ID! - content: DigitalContent! - created: DateTime! - downloadNum: Int! - - """URL for digital content.""" - url: String - - """UUID of digital content.""" - token: UUID! -} - -""" -Generate new URL to digital content. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type DigitalContentUrlCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - digitalContentUrl: DigitalContentUrl -} - -input DigitalContentUrlCreateInput { - """Digital content ID which URL will belong to.""" - content: ID! -} - -type DiscountError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """List of products IDs which causes the error.""" - products: [ID!] - - """The error code.""" - code: DiscountErrorCode! - - """List of channels IDs which causes the error.""" - channels: [ID!] -} - -"""An enumeration.""" -enum DiscountErrorCode { - ALREADY_EXISTS - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT - DUPLICATED_INPUT_ITEM -} - -enum DiscountStatusEnum { - ACTIVE - EXPIRED - SCHEDULED -} - -enum DiscountValueTypeEnum { - FIXED - PERCENTAGE -} - -"""An enumeration.""" -enum DistanceUnitsEnum { - CM - M - KM - FT - YD - INCH -} - -"""Represents shop's domain.""" -type Domain { - """The host name of the domain.""" - host: String! - - """Inform if SSL is enabled.""" - sslEnabled: Boolean! - - """Shop's absolute URL.""" - url: String! -} - -""" -Deletes draft orders. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type DraftOrderBulkDelete { - """Returns how many objects were affected.""" - count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Completes creating an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type DraftOrderComplete { - """Completed order.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Creates a new draft order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type DraftOrderCreate { - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! - order: Order -} - -input DraftOrderCreateInput { - """Billing address of the customer.""" - billingAddress: AddressInput - - """Customer associated with the draft order.""" - user: ID - - """Email address of the customer.""" - userEmail: String - - """Discount amount for the order.""" - discount: PositiveDecimal - - """Shipping address of the customer.""" - shippingAddress: AddressInput - - """ID of a selected shipping method.""" - shippingMethod: ID - - """ID of the voucher associated with the order.""" - voucher: ID - - """A note from a customer. Visible by customers in the order summary.""" - customerNote: String - - """ID of the channel associated with the order.""" - channelId: ID - - """ - URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. - """ - redirectUrl: String - - """ - External ID of this order. - - Added in Saleor 3.10. - """ - externalReference: String - - """Variant line input consisting of variant ID and quantity of products.""" - lines: [OrderLineCreateInput!] -} - -""" -Event sent when new draft order is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type DraftOrderCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -""" -Deletes a draft order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type DraftOrderDelete { - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! - order: Order -} - -""" -Event sent when draft order is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type DraftOrderDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -input DraftOrderInput { - """Billing address of the customer.""" - billingAddress: AddressInput - - """Customer associated with the draft order.""" - user: ID - - """Email address of the customer.""" - userEmail: String - - """Discount amount for the order.""" - discount: PositiveDecimal - - """Shipping address of the customer.""" - shippingAddress: AddressInput - - """ID of a selected shipping method.""" - shippingMethod: ID - - """ID of the voucher associated with the order.""" - voucher: ID - - """A note from a customer. Visible by customers in the order summary.""" - customerNote: String - - """ID of the channel associated with the order.""" - channelId: ID - - """ - URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. - """ - redirectUrl: String - - """ - External ID of this order. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Deletes order lines. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type DraftOrderLinesBulkDelete { - """Returns how many objects were affected.""" - count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Updates a draft order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type DraftOrderUpdate { - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! - order: Order -} - -""" -Event sent when draft order is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type DraftOrderUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -interface Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App -} - -"""Event delivery.""" -type EventDelivery implements Node { - id: ID! - createdAt: DateTime! - - """Event delivery status.""" - status: EventDeliveryStatusEnum! - - """Webhook event type.""" - eventType: WebhookEventTypeEnum! - - """Event delivery attempts.""" - attempts( - """Event delivery sorter""" - sortBy: EventDeliveryAttemptSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): EventDeliveryAttemptCountableConnection - - """Event payload.""" - payload: String -} - -"""Event delivery attempts.""" -type EventDeliveryAttempt implements Node { - id: ID! - - """Event delivery creation date and time.""" - createdAt: DateTime! - - """Task id for delivery attempt.""" - taskId: String - - """Delivery attempt duration.""" - duration: Float - - """Delivery attempt response content.""" - response: String - - """Response headers for delivery attempt.""" - responseHeaders: String - - """Delivery attempt response status code.""" - responseStatusCode: Int - - """Request headers for delivery attempt.""" - requestHeaders: String - - """Event delivery status.""" - status: EventDeliveryStatusEnum! -} - -type EventDeliveryAttemptCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [EventDeliveryAttemptCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type EventDeliveryAttemptCountableEdge { - """The item at the end of the edge.""" - node: EventDeliveryAttempt! - - """A cursor for use in pagination.""" - cursor: String! -} - -enum EventDeliveryAttemptSortField { - """Sort event delivery attempts by created at.""" - CREATED_AT -} - -input EventDeliveryAttemptSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort attempts by the selected field.""" - field: EventDeliveryAttemptSortField! -} - -type EventDeliveryCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [EventDeliveryCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type EventDeliveryCountableEdge { - """The item at the end of the edge.""" - node: EventDelivery! - - """A cursor for use in pagination.""" - cursor: String! -} - -input EventDeliveryFilterInput { - status: EventDeliveryStatusEnum - eventType: WebhookEventTypeEnum -} - -""" -Retries event delivery. - -Requires one of the following permissions: MANAGE_APPS. -""" -type EventDeliveryRetry { - """Event delivery.""" - delivery: EventDelivery - errors: [WebhookError!]! -} - -enum EventDeliverySortField { - """Sort event deliveries by created at.""" - CREATED_AT -} - -input EventDeliverySortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort deliveries by the selected field.""" - field: EventDeliverySortField! -} - -enum EventDeliveryStatusEnum { - PENDING - SUCCESS - FAILED -} - -type ExportError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ExportErrorCode! -} - -"""An enumeration.""" -enum ExportErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED -} - -"""History log of export file.""" -type ExportEvent implements Node { - """The ID of the object.""" - id: ID! - - """Date when event happened at in ISO 8601 format.""" - date: DateTime! - - """Export event type.""" - type: ExportEventsEnum! - - """ - User who performed the action. Requires one of the following permissions: OWNER, MANAGE_STAFF. - """ - user: User - - """ - App which performed the action. Requires one of the following permissions: OWNER, MANAGE_APPS. - """ - app: App - - """Content of the event.""" - message: String! -} - -"""An enumeration.""" -enum ExportEventsEnum { - EXPORT_PENDING - EXPORT_SUCCESS - EXPORT_FAILED - EXPORT_DELETED - EXPORTED_FILE_SENT - EXPORT_FAILED_INFO_SENT -} - -"""Represents a job data of exported file.""" -type ExportFile implements Node & Job { - id: ID! - - """Job status.""" - status: JobStatusEnum! - - """Created date time of job in ISO 8601 format.""" - createdAt: DateTime! - - """Date time of job last update in ISO 8601 format.""" - updatedAt: DateTime! - - """Job message.""" - message: String - - """The URL of field to download.""" - url: String - - """List of events associated with the export.""" - events: [ExportEvent!] - user: User - app: App -} - -type ExportFileCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [ExportFileCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type ExportFileCountableEdge { - """The item at the end of the edge.""" - node: ExportFile! - - """A cursor for use in pagination.""" - cursor: String! -} - -input ExportFileFilterInput { - createdAt: DateTimeRangeInput - updatedAt: DateTimeRangeInput - status: JobStatusEnum - user: String - app: String -} - -enum ExportFileSortField { - STATUS - CREATED_AT - UPDATED_AT - LAST_MODIFIED_AT -} - -input ExportFileSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort export file by the selected field.""" - field: ExportFileSortField! -} - -""" -Export gift cards to csv file. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type ExportGiftCards { - """ - The newly created export file job which is responsible for export data. - """ - exportFile: ExportFile - errors: [ExportError!]! -} - -input ExportGiftCardsInput { - """Determine which gift cards should be exported.""" - scope: ExportScope! - - """Filtering options for gift cards.""" - filter: GiftCardFilterInput - - """List of gift cards IDs to export.""" - ids: [ID!] - - """Type of exported file.""" - fileType: FileTypesEnum! -} - -input ExportInfoInput { - """List of attribute ids witch should be exported.""" - attributes: [ID!] - - """List of warehouse ids witch should be exported.""" - warehouses: [ID!] - - """List of channels ids which should be exported.""" - channels: [ID!] - - """List of product fields witch should be exported.""" - fields: [ProductFieldEnum!] -} - -""" -Export products to csv file. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ExportProducts { - """ - The newly created export file job which is responsible for export data. - """ - exportFile: ExportFile - exportErrors: [ExportError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ExportError!]! -} - -input ExportProductsInput { - """Determine which products should be exported.""" - scope: ExportScope! - - """Filtering options for products.""" - filter: ProductFilterInput - - """List of products IDs to export.""" - ids: [ID!] - - """Input with info about fields which should be exported.""" - exportInfo: ExportInfoInput - - """Type of exported file.""" - fileType: FileTypesEnum! -} - -enum ExportScope { - """Export all products.""" - ALL - - """Export products with given ids.""" - IDS - - """Export the filtered products.""" - FILTER -} - -type ExternalAuthentication { - """ID of external authentication plugin.""" - id: String! - - """Name of external authentication plugin.""" - name: String -} - -"""Prepare external authentication url for user by custom plugin.""" -type ExternalAuthenticationUrl { - """The data returned by authentication plugin.""" - authenticationData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -"""Logout user by custom plugin.""" -type ExternalLogout { - """The data returned by authentication plugin.""" - logoutData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -type ExternalNotificationError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ExternalNotificationErrorCodes! -} - -"""An enumeration.""" -enum ExternalNotificationErrorCodes { - REQUIRED - INVALID_MODEL_TYPE - NOT_FOUND - CHANNEL_INACTIVE -} - -""" -Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload. - -Added in Saleor 3.1. -""" -type ExternalNotificationTrigger { - errors: [ExternalNotificationError!]! -} - -input ExternalNotificationTriggerInput { - """ - The list of customers or orders node IDs that will be serialized and included in the notification payload. - """ - ids: [ID!]! - - """ - Additional payload that will be merged with the one based on the bussines object ID. - """ - extraPayload: JSONString - - """ - External event type. This field is passed to a plugin as an event type. - """ - externalEventType: String! -} - -"""Obtain external access tokens for user by custom plugin.""" -type ExternalObtainAccessTokens { - """The token, required to authenticate.""" - token: String - - """The refresh token, required to re-generate external access token.""" - refreshToken: String - - """CSRF token required to re-generate external access token.""" - csrfToken: String - - """A user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -"""Refresh user's access by custom plugin.""" -type ExternalRefresh { - """The token, required to authenticate.""" - token: String - - """The refresh token, required to re-generate external access token.""" - refreshToken: String - - """CSRF token required to re-generate external access token.""" - csrfToken: String - - """A user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -"""Verify external authentication data by plugin.""" -type ExternalVerify { - """User assigned to data.""" - user: User - - """Determine if authentication data is valid or not.""" - isValid: Boolean! - - """External data.""" - verifyData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -type File { - """The URL of the file.""" - url: String! - - """Content type of the file.""" - contentType: String -} - -"""An enumeration.""" -enum FileTypesEnum { - CSV - XLSX -} - -""" -Upload a file. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec - -Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. -""" -type FileUpload { - uploadedFile: File - uploadErrors: [UploadError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [UploadError!]! -} - -"""Represents order fulfillment.""" -type Fulfillment implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - fulfillmentOrder: Int! - status: FulfillmentStatus! - trackingNumber: String! - created: DateTime! - - """List of lines for the fulfillment.""" - lines: [FulfillmentLine!] - - """User-friendly fulfillment status.""" - statusDisplay: String - - """Warehouse from fulfillment was fulfilled.""" - warehouse: Warehouse -} - -""" -Approve existing fulfillment. - -Added in Saleor 3.1. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type FulfillmentApprove { - """An approved fulfillment.""" - fulfillment: Fulfillment - - """Order which fulfillment was approved.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Event sent when fulfillment is approved. - -Added in Saleor 3.7. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type FulfillmentApproved implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The fulfillment the event relates to.""" - fulfillment: Fulfillment - - """The order the fulfillment belongs to.""" - order: Order -} - -""" -Cancels existing fulfillment and optionally restocks items. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type FulfillmentCancel { - """A canceled fulfillment.""" - fulfillment: Fulfillment - - """Order which fulfillment was cancelled.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input FulfillmentCancelInput { - """ - ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. - """ - warehouseId: ID -} - -""" -Event sent when fulfillment is canceled. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type FulfillmentCanceled implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The fulfillment the event relates to.""" - fulfillment: Fulfillment - - """The order the fulfillment belongs to.""" - order: Order -} - -""" -Event sent when new fulfillment is created. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type FulfillmentCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The fulfillment the event relates to.""" - fulfillment: Fulfillment - - """The order the fulfillment belongs to.""" - order: Order -} - -"""Represents line of the fulfillment.""" -type FulfillmentLine implements Node { - id: ID! - quantity: Int! - orderLine: OrderLine -} - -""" -Event sent when fulfillment metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type FulfillmentMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The fulfillment the event relates to.""" - fulfillment: Fulfillment - - """The order the fulfillment belongs to.""" - order: Order -} - -""" -Refund products. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type FulfillmentRefundProducts { - """A refunded fulfillment.""" - fulfillment: Fulfillment - - """Order which fulfillment was refunded.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Return products. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type FulfillmentReturnProducts { - """A return fulfillment.""" - returnFulfillment: Fulfillment - - """A replace fulfillment.""" - replaceFulfillment: Fulfillment - - """Order which fulfillment was returned.""" - order: Order - - """A draft order which was created for products with replace flag.""" - replaceOrder: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -"""An enumeration.""" -enum FulfillmentStatus { - FULFILLED - REFUNDED - RETURNED - REPLACED - REFUNDED_AND_RETURNED - CANCELED - WAITING_FOR_APPROVAL -} - -""" -Updates a fulfillment for an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type FulfillmentUpdateTracking { - """A fulfillment with updated tracking.""" - fulfillment: Fulfillment - - """Order for which fulfillment was updated.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input FulfillmentUpdateTrackingInput { - """Fulfillment tracking number.""" - trackingNumber: String - - """If true, send an email notification to the customer.""" - notifyCustomer: Boolean = false -} - -"""Payment gateway client configuration key and value pair.""" -type GatewayConfigLine { - """Gateway config key.""" - field: String! - - """Gateway config value for key.""" - value: String -} - -""" -The `GenericScalar` scalar type represents a generic -GraphQL scalar value that could be: -String, Boolean, Int, Float, List or Object. -""" -scalar GenericScalar - -""" -A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes. -""" -type GiftCard implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - - """Code in format which allows displaying in a user interface.""" - displayCode: String! - - """Last 4 characters of gift card code.""" - last4CodeChars: String! - - """ - Gift card code. Can be fetched by a staff member with MANAGE_GIFT_CARD when gift card wasn't yet used and by the gift card owner. - """ - code: String! - created: DateTime! - - """ - The user who bought or issued a gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - createdBy: User - - """ - The customer who used a gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - usedBy: User - - """ - Email address of the user who bought or issued gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_USERS, OWNER. - """ - createdByEmail: String - - """ - Email address of the customer who used a gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - usedByEmail: String - lastUsedOn: DateTime - expiryDate: Date - - """ - App which created the gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_APPS, OWNER. - """ - app: App - - """ - Related gift card product. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - product: Product - - """ - List of events associated with the gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - events( - """Filtering options for gift card events.""" - filter: GiftCardEventFilterInput - ): [GiftCardEvent!]! - - """ - The gift card tag. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - tags: [GiftCardTag!]! - - """ - Slug of the channel where the gift card was bought. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - boughtInChannel: String - isActive: Boolean! - initialBalance: Money! - currentBalance: Money! - - """The customer who bought a gift card.""" - user: User @deprecated(reason: "This field will be removed in Saleor 4.0. Use `createdBy` field instead.") - - """End date of gift card.""" - endDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0. Use `expiryDate` field instead.") - - """Start date of gift card.""" - startDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0.") -} - -""" -Activate a gift card. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardActivate { - """Activated gift card.""" - giftCard: GiftCard - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [GiftCardError!]! -} - -""" -Adds note to the gift card. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardAddNote { - """Gift card with the note added.""" - giftCard: GiftCard - - """Gift card note created.""" - event: GiftCardEvent - errors: [GiftCardError!]! -} - -input GiftCardAddNoteInput { - """Note message.""" - message: String! -} - -""" -Activate gift cards. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardBulkActivate { - """Returns how many objects were affected.""" - count: Int! - errors: [GiftCardError!]! -} - -""" -Create gift cards. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardBulkCreate { - """Returns how many objects were created.""" - count: Int! - - """List of created gift cards.""" - giftCards: [GiftCard!]! - errors: [GiftCardError!]! -} - -input GiftCardBulkCreateInput { - """The number of cards to issue.""" - count: Int! - - """Balance of the gift card.""" - balance: PriceInput! - - """The gift card tags.""" - tags: [String!] - - """The gift card expiry date.""" - expiryDate: Date - - """Determine if gift card is active.""" - isActive: Boolean! -} - -""" -Deactivate gift cards. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardBulkDeactivate { - """Returns how many objects were affected.""" - count: Int! - errors: [GiftCardError!]! -} - -""" -Delete gift cards. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardBulkDelete { - """Returns how many objects were affected.""" - count: Int! - errors: [GiftCardError!]! -} - -type GiftCardCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [GiftCardCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type GiftCardCountableEdge { - """The item at the end of the edge.""" - node: GiftCard! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new gift card. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardCreate { - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [GiftCardError!]! - giftCard: GiftCard -} - -input GiftCardCreateInput { - """ - The gift card tags to add. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - addTags: [String!] - - """ - The gift card expiry date. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - expiryDate: Date - - """ - Start date of the gift card in ISO 8601 format. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - startDate: Date - - """ - End date of the gift card in ISO 8601 format. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. - """ - endDate: Date - - """Balance of the gift card.""" - balance: PriceInput! - - """Email of the customer to whom gift card will be sent.""" - userEmail: String - - """ - Slug of a channel from which the email should be sent. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - channel: String - - """ - Determine if gift card is active. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - isActive: Boolean! - - """ - Code to use the gift card. - - DEPRECATED: this field will be removed in Saleor 4.0. The code is now auto generated. - """ - code: String - - """ - The gift card note from the staff member. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - note: String -} - -""" -Event sent when new gift card is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type GiftCardCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The gift card the event relates to.""" - giftCard: GiftCard -} - -""" -Deactivate a gift card. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardDeactivate { - """Deactivated gift card.""" - giftCard: GiftCard - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [GiftCardError!]! -} - -""" -Delete gift card. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardDelete { - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [GiftCardError!]! - giftCard: GiftCard -} - -""" -Event sent when gift card is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type GiftCardDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The gift card the event relates to.""" - giftCard: GiftCard -} - -type GiftCardError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: GiftCardErrorCode! - - """List of tag values that cause the error.""" - tags: [String!] -} - -"""An enumeration.""" -enum GiftCardErrorCode { - ALREADY_EXISTS - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE - EXPIRED_GIFT_CARD - DUPLICATED_INPUT_ITEM -} - -""" -History log of the gift card. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type GiftCardEvent implements Node { - id: ID! - - """Date when event happened at in ISO 8601 format.""" - date: DateTime - - """Gift card event type.""" - type: GiftCardEventsEnum - - """ - User who performed the action. Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER. - """ - user: User - - """ - App that performed the action. Requires one of the following permissions: MANAGE_APPS, OWNER. - """ - app: App - - """Content of the event.""" - message: String - - """Email of the customer.""" - email: String - - """The order ID where gift card was used or bought.""" - orderId: ID - - """User-friendly number of an order where gift card was used or bought.""" - orderNumber: String - - """The list of gift card tags.""" - tags: [String!] - - """The list of old gift card tags.""" - oldTags: [String!] - - """The gift card balance.""" - balance: GiftCardEventBalance - - """The gift card expiry date.""" - expiryDate: Date - - """Previous gift card expiry date.""" - oldExpiryDate: Date -} - -type GiftCardEventBalance { - """Initial balance of the gift card.""" - initialBalance: Money - - """Current balance of the gift card.""" - currentBalance: Money! - - """Previous initial balance of the gift card.""" - oldInitialBalance: Money - - """Previous current balance of the gift card.""" - oldCurrentBalance: Money -} - -input GiftCardEventFilterInput { - type: GiftCardEventsEnum - orders: [ID!] -} - -"""An enumeration.""" -enum GiftCardEventsEnum { - ISSUED - BOUGHT - UPDATED - ACTIVATED - DEACTIVATED - BALANCE_RESET - EXPIRY_DATE_UPDATED - TAGS_UPDATED - SENT_TO_CUSTOMER - RESENT - NOTE_ADDED - USED_IN_ORDER -} - -input GiftCardFilterInput { - isActive: Boolean - metadata: [MetadataFilter!] - tags: [String!] - products: [ID!] - usedBy: [ID!] - used: Boolean - currency: String - currentBalance: PriceRangeInput - initialBalance: PriceRangeInput - code: String -} - -""" -Event sent when gift card metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type GiftCardMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The gift card the event relates to.""" - giftCard: GiftCard -} - -""" -Resend a gift card. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardResend { - """Gift card which has been sent.""" - giftCard: GiftCard - errors: [GiftCardError!]! -} - -input GiftCardResendInput { - """ID of a gift card to resend.""" - id: ID! - - """Email to which gift card should be send.""" - email: String - - """Slug of a channel from which the email should be sent.""" - channel: String! -} - -"""Gift card related settings from site settings.""" -type GiftCardSettings { - """The gift card expiry type settings.""" - expiryType: GiftCardSettingsExpiryTypeEnum! - - """The gift card expiry period settings.""" - expiryPeriod: TimePeriod -} - -type GiftCardSettingsError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: GiftCardSettingsErrorCode! -} - -"""An enumeration.""" -enum GiftCardSettingsErrorCode { - INVALID - REQUIRED - GRAPHQL_ERROR -} - -"""An enumeration.""" -enum GiftCardSettingsExpiryTypeEnum { - NEVER_EXPIRE - EXPIRY_PERIOD -} - -""" -Update gift card settings. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardSettingsUpdate { - """Gift card settings.""" - giftCardSettings: GiftCardSettings - errors: [GiftCardSettingsError!]! -} - -input GiftCardSettingsUpdateInput { - """Defines gift card default expiry settings.""" - expiryType: GiftCardSettingsExpiryTypeEnum - - """Defines gift card expiry period.""" - expiryPeriod: TimePeriodInputType -} - -enum GiftCardSortField { - """Sort gift cards by product.""" - PRODUCT - - """Sort gift cards by used by.""" - USED_BY - - """Sort gift cards by current balance.""" - CURRENT_BALANCE - - """ - Sort gift cards by created at. - - Added in Saleor 3.8. - """ - CREATED_AT -} - -input GiftCardSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort gift cards by the selected field.""" - field: GiftCardSortField! -} - -""" -Event sent when gift card status has changed. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type GiftCardStatusChanged implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The gift card the event relates to.""" - giftCard: GiftCard -} - -""" -The gift card tag. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type GiftCardTag implements Node { - id: ID! - name: String! -} - -type GiftCardTagCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [GiftCardTagCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type GiftCardTagCountableEdge { - """The item at the end of the edge.""" - node: GiftCardTag! - - """A cursor for use in pagination.""" - cursor: String! -} - -input GiftCardTagFilterInput { - search: String -} - -""" -Update a gift card. - -Requires one of the following permissions: MANAGE_GIFT_CARD. -""" -type GiftCardUpdate { - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [GiftCardError!]! - giftCard: GiftCard -} - -input GiftCardUpdateInput { - """ - The gift card tags to add. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - addTags: [String!] - - """ - The gift card expiry date. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - expiryDate: Date - - """ - Start date of the gift card in ISO 8601 format. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - startDate: Date - - """ - End date of the gift card in ISO 8601 format. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. - """ - endDate: Date - - """ - The gift card tags to remove. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - removeTags: [String!] - - """ - The gift card balance amount. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - balanceAmount: PositiveDecimal -} - -""" -Event sent when gift card is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type GiftCardUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The gift card the event relates to.""" - giftCard: GiftCard -} - -"""Represents permission group data.""" -type Group implements Node { - id: ID! - name: String! - - """ - List of group users - - Requires one of the following permissions: MANAGE_STAFF. - """ - users: [User!] - - """List of group permissions""" - permissions: [Permission!] - - """ - True, if the currently authenticated user has rights to manage a group. - """ - userCanManage: Boolean! -} - -type GroupCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [GroupCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type GroupCountableEdge { - """The item at the end of the edge.""" - node: Group! - - """A cursor for use in pagination.""" - cursor: String! -} - -"""Represents an image.""" -type Image { - """The URL of the image.""" - url: String! - - """Alt text for an image.""" - alt: String -} - -input IntRangeInput { - """Value greater than or equal to.""" - gte: Int - - """Value less than or equal to.""" - lte: Int -} - -"""Represents an Invoice.""" -type Invoice implements ObjectWithMetadata & Job & Node { - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - - """Job status.""" - status: JobStatusEnum! - createdAt: DateTime! - updatedAt: DateTime! - message: String - - """The ID of the object.""" - id: ID! - number: String - externalUrl: String - - """URL to download an invoice.""" - url: String - - """ - Order related to the invoice. - - Added in Saleor 3.10. - """ - order: Order -} - -""" -Creates a ready to send invoice. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type InvoiceCreate { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [InvoiceError!]! - invoice: Invoice -} - -input InvoiceCreateInput { - """Invoice number.""" - number: String! - - """URL of an invoice to download.""" - url: String! -} - -""" -Deletes an invoice. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type InvoiceDelete { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [InvoiceError!]! - invoice: Invoice -} - -""" -Event sent when invoice is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type InvoiceDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The invoice the event relates to.""" - invoice: Invoice - - """ - Order related to the invoice. - - Added in Saleor 3.10. - """ - order: Order -} - -type InvoiceError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: InvoiceErrorCode! -} - -"""An enumeration.""" -enum InvoiceErrorCode { - REQUIRED - NOT_READY - URL_NOT_SET - EMAIL_NOT_SET - NUMBER_NOT_SET - NOT_FOUND - INVALID_STATUS - NO_INVOICE_PLUGIN -} - -""" -Request an invoice for the order using plugin. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type InvoiceRequest { - """Order related to an invoice.""" - order: Order - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [InvoiceError!]! - invoice: Invoice -} - -""" -Requests deletion of an invoice. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type InvoiceRequestDelete { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [InvoiceError!]! - invoice: Invoice -} - -""" -Event sent when invoice is requested. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type InvoiceRequested implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The invoice the event relates to.""" - invoice: Invoice - - """ - Order related to the invoice. - - Added in Saleor 3.10. - """ - order: Order! -} - -""" -Send an invoice notification to the customer. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type InvoiceSendNotification { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [InvoiceError!]! - invoice: Invoice -} - -""" -Event sent when invoice is sent. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type InvoiceSent implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The invoice the event relates to.""" - invoice: Invoice - - """ - Order related to the invoice. - - Added in Saleor 3.10. - """ - order: Order -} - -""" -Updates an invoice. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type InvoiceUpdate { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [InvoiceError!]! - invoice: Invoice -} - -union IssuingPrincipal = App | User - -scalar JSONString - -interface Job { - """Job status.""" - status: JobStatusEnum! - - """Created date time of job in ISO 8601 format.""" - createdAt: DateTime! - - """Date time of job last update in ISO 8601 format.""" - updatedAt: DateTime! - - """Job message.""" - message: String -} - -"""An enumeration.""" -enum JobStatusEnum { - PENDING - SUCCESS - FAILED - DELETED -} - -"""An enumeration.""" -enum LanguageCodeEnum { - AF - AF_NA - AF_ZA - AGQ - AGQ_CM - AK - AK_GH - AM - AM_ET - AR - AR_AE - AR_BH - AR_DJ - AR_DZ - AR_EG - AR_EH - AR_ER - AR_IL - AR_IQ - AR_JO - AR_KM - AR_KW - AR_LB - AR_LY - AR_MA - AR_MR - AR_OM - AR_PS - AR_QA - AR_SA - AR_SD - AR_SO - AR_SS - AR_SY - AR_TD - AR_TN - AR_YE - AS - AS_IN - ASA - ASA_TZ - AST - AST_ES - AZ - AZ_CYRL - AZ_CYRL_AZ - AZ_LATN - AZ_LATN_AZ - BAS - BAS_CM - BE - BE_BY - BEM - BEM_ZM - BEZ - BEZ_TZ - BG - BG_BG - BM - BM_ML - BN - BN_BD - BN_IN - BO - BO_CN - BO_IN - BR - BR_FR - BRX - BRX_IN - BS - BS_CYRL - BS_CYRL_BA - BS_LATN - BS_LATN_BA - CA - CA_AD - CA_ES - CA_ES_VALENCIA - CA_FR - CA_IT - CCP - CCP_BD - CCP_IN - CE - CE_RU - CEB - CEB_PH - CGG - CGG_UG - CHR - CHR_US - CKB - CKB_IQ - CKB_IR - CS - CS_CZ - CU - CU_RU - CY - CY_GB - DA - DA_DK - DA_GL - DAV - DAV_KE - DE - DE_AT - DE_BE - DE_CH - DE_DE - DE_IT - DE_LI - DE_LU - DJE - DJE_NE - DSB - DSB_DE - DUA - DUA_CM - DYO - DYO_SN - DZ - DZ_BT - EBU - EBU_KE - EE - EE_GH - EE_TG - EL - EL_CY - EL_GR - EN - EN_AE - EN_AG - EN_AI - EN_AS - EN_AT - EN_AU - EN_BB - EN_BE - EN_BI - EN_BM - EN_BS - EN_BW - EN_BZ - EN_CA - EN_CC - EN_CH - EN_CK - EN_CM - EN_CX - EN_CY - EN_DE - EN_DG - EN_DK - EN_DM - EN_ER - EN_FI - EN_FJ - EN_FK - EN_FM - EN_GB - EN_GD - EN_GG - EN_GH - EN_GI - EN_GM - EN_GU - EN_GY - EN_HK - EN_IE - EN_IL - EN_IM - EN_IN - EN_IO - EN_JE - EN_JM - EN_KE - EN_KI - EN_KN - EN_KY - EN_LC - EN_LR - EN_LS - EN_MG - EN_MH - EN_MO - EN_MP - EN_MS - EN_MT - EN_MU - EN_MW - EN_MY - EN_NA - EN_NF - EN_NG - EN_NL - EN_NR - EN_NU - EN_NZ - EN_PG - EN_PH - EN_PK - EN_PN - EN_PR - EN_PW - EN_RW - EN_SB - EN_SC - EN_SD - EN_SE - EN_SG - EN_SH - EN_SI - EN_SL - EN_SS - EN_SX - EN_SZ - EN_TC - EN_TK - EN_TO - EN_TT - EN_TV - EN_TZ - EN_UG - EN_UM - EN_US - EN_VC - EN_VG - EN_VI - EN_VU - EN_WS - EN_ZA - EN_ZM - EN_ZW - EO - ES - ES_AR - ES_BO - ES_BR - ES_BZ - ES_CL - ES_CO - ES_CR - ES_CU - ES_DO - ES_EA - ES_EC - ES_ES - ES_GQ - ES_GT - ES_HN - ES_IC - ES_MX - ES_NI - ES_PA - ES_PE - ES_PH - ES_PR - ES_PY - ES_SV - ES_US - ES_UY - ES_VE - ET - ET_EE - EU - EU_ES - EWO - EWO_CM - FA - FA_AF - FA_IR - FF - FF_ADLM - FF_ADLM_BF - FF_ADLM_CM - FF_ADLM_GH - FF_ADLM_GM - FF_ADLM_GN - FF_ADLM_GW - FF_ADLM_LR - FF_ADLM_MR - FF_ADLM_NE - FF_ADLM_NG - FF_ADLM_SL - FF_ADLM_SN - FF_LATN - FF_LATN_BF - FF_LATN_CM - FF_LATN_GH - FF_LATN_GM - FF_LATN_GN - FF_LATN_GW - FF_LATN_LR - FF_LATN_MR - FF_LATN_NE - FF_LATN_NG - FF_LATN_SL - FF_LATN_SN - FI - FI_FI - FIL - FIL_PH - FO - FO_DK - FO_FO - FR - FR_BE - FR_BF - FR_BI - FR_BJ - FR_BL - FR_CA - FR_CD - FR_CF - FR_CG - FR_CH - FR_CI - FR_CM - FR_DJ - FR_DZ - FR_FR - FR_GA - FR_GF - FR_GN - FR_GP - FR_GQ - FR_HT - FR_KM - FR_LU - FR_MA - FR_MC - FR_MF - FR_MG - FR_ML - FR_MQ - FR_MR - FR_MU - FR_NC - FR_NE - FR_PF - FR_PM - FR_RE - FR_RW - FR_SC - FR_SN - FR_SY - FR_TD - FR_TG - FR_TN - FR_VU - FR_WF - FR_YT - FUR - FUR_IT - FY - FY_NL - GA - GA_GB - GA_IE - GD - GD_GB - GL - GL_ES - GSW - GSW_CH - GSW_FR - GSW_LI - GU - GU_IN - GUZ - GUZ_KE - GV - GV_IM - HA - HA_GH - HA_NE - HA_NG - HAW - HAW_US - HE - HE_IL - HI - HI_IN - HR - HR_BA - HR_HR - HSB - HSB_DE - HU - HU_HU - HY - HY_AM - IA - ID - ID_ID - IG - IG_NG - II - II_CN - IS - IS_IS - IT - IT_CH - IT_IT - IT_SM - IT_VA - JA - JA_JP - JGO - JGO_CM - JMC - JMC_TZ - JV - JV_ID - KA - KA_GE - KAB - KAB_DZ - KAM - KAM_KE - KDE - KDE_TZ - KEA - KEA_CV - KHQ - KHQ_ML - KI - KI_KE - KK - KK_KZ - KKJ - KKJ_CM - KL - KL_GL - KLN - KLN_KE - KM - KM_KH - KN - KN_IN - KO - KO_KP - KO_KR - KOK - KOK_IN - KS - KS_ARAB - KS_ARAB_IN - KSB - KSB_TZ - KSF - KSF_CM - KSH - KSH_DE - KU - KU_TR - KW - KW_GB - KY - KY_KG - LAG - LAG_TZ - LB - LB_LU - LG - LG_UG - LKT - LKT_US - LN - LN_AO - LN_CD - LN_CF - LN_CG - LO - LO_LA - LRC - LRC_IQ - LRC_IR - LT - LT_LT - LU - LU_CD - LUO - LUO_KE - LUY - LUY_KE - LV - LV_LV - MAI - MAI_IN - MAS - MAS_KE - MAS_TZ - MER - MER_KE - MFE - MFE_MU - MG - MG_MG - MGH - MGH_MZ - MGO - MGO_CM - MI - MI_NZ - MK - MK_MK - ML - ML_IN - MN - MN_MN - MNI - MNI_BENG - MNI_BENG_IN - MR - MR_IN - MS - MS_BN - MS_ID - MS_MY - MS_SG - MT - MT_MT - MUA - MUA_CM - MY - MY_MM - MZN - MZN_IR - NAQ - NAQ_NA - NB - NB_NO - NB_SJ - ND - ND_ZW - NDS - NDS_DE - NDS_NL - NE - NE_IN - NE_NP - NL - NL_AW - NL_BE - NL_BQ - NL_CW - NL_NL - NL_SR - NL_SX - NMG - NMG_CM - NN - NN_NO - NNH - NNH_CM - NUS - NUS_SS - NYN - NYN_UG - OM - OM_ET - OM_KE - OR - OR_IN - OS - OS_GE - OS_RU - PA - PA_ARAB - PA_ARAB_PK - PA_GURU - PA_GURU_IN - PCM - PCM_NG - PL - PL_PL - PRG - PS - PS_AF - PS_PK - PT - PT_AO - PT_BR - PT_CH - PT_CV - PT_GQ - PT_GW - PT_LU - PT_MO - PT_MZ - PT_PT - PT_ST - PT_TL - QU - QU_BO - QU_EC - QU_PE - RM - RM_CH - RN - RN_BI - RO - RO_MD - RO_RO - ROF - ROF_TZ - RU - RU_BY - RU_KG - RU_KZ - RU_MD - RU_RU - RU_UA - RW - RW_RW - RWK - RWK_TZ - SAH - SAH_RU - SAQ - SAQ_KE - SAT - SAT_OLCK - SAT_OLCK_IN - SBP - SBP_TZ - SD - SD_ARAB - SD_ARAB_PK - SD_DEVA - SD_DEVA_IN - SE - SE_FI - SE_NO - SE_SE - SEH - SEH_MZ - SES - SES_ML - SG - SG_CF - SHI - SHI_LATN - SHI_LATN_MA - SHI_TFNG - SHI_TFNG_MA - SI - SI_LK - SK - SK_SK - SL - SL_SI - SMN - SMN_FI - SN - SN_ZW - SO - SO_DJ - SO_ET - SO_KE - SO_SO - SQ - SQ_AL - SQ_MK - SQ_XK - SR - SR_CYRL - SR_CYRL_BA - SR_CYRL_ME - SR_CYRL_RS - SR_CYRL_XK - SR_LATN - SR_LATN_BA - SR_LATN_ME - SR_LATN_RS - SR_LATN_XK - SU - SU_LATN - SU_LATN_ID - SV - SV_AX - SV_FI - SV_SE - SW - SW_CD - SW_KE - SW_TZ - SW_UG - TA - TA_IN - TA_LK - TA_MY - TA_SG - TE - TE_IN - TEO - TEO_KE - TEO_UG - TG - TG_TJ - TH - TH_TH - TI - TI_ER - TI_ET - TK - TK_TM - TO - TO_TO - TR - TR_CY - TR_TR - TT - TT_RU - TWQ - TWQ_NE - TZM - TZM_MA - UG - UG_CN - UK - UK_UA - UR - UR_IN - UR_PK - UZ - UZ_ARAB - UZ_ARAB_AF - UZ_CYRL - UZ_CYRL_UZ - UZ_LATN - UZ_LATN_UZ - VAI - VAI_LATN - VAI_LATN_LR - VAI_VAII - VAI_VAII_LR - VI - VI_VN - VO - VUN - VUN_TZ - WAE - WAE_CH - WO - WO_SN - XH - XH_ZA - XOG - XOG_UG - YAV - YAV_CM - YI - YO - YO_BJ - YO_NG - YUE - YUE_HANS - YUE_HANS_CN - YUE_HANT - YUE_HANT_HK - ZGH - ZGH_MA - ZH - ZH_HANS - ZH_HANS_CN - ZH_HANS_HK - ZH_HANS_MO - ZH_HANS_SG - ZH_HANT - ZH_HANT_HK - ZH_HANT_MO - ZH_HANT_TW - ZU - ZU_ZA -} - -type LanguageDisplay { - """ISO 639 representation of the language name.""" - code: LanguageCodeEnum! - - """Full name of the language.""" - language: String! -} - -type LimitInfo { - """Defines the current resource usage.""" - currentUsage: Limits! - - """Defines the allowed maximum resource usage, null means unlimited.""" - allowedUsage: Limits! -} - -type Limits { - channels: Int - orders: Int - productVariants: Int - staffUsers: Int - warehouses: Int -} - -"""The manifest definition.""" -type Manifest { - identifier: String! - version: String! - name: String! - about: String - permissions: [Permission!] - appUrl: String - - """URL to iframe with the configuration for the app.""" - configurationUrl: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `appUrl` instead.") - tokenTargetUrl: String - - """Description of the data privacy defined for this app.""" - dataPrivacy: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead.") - dataPrivacyUrl: String - homepageUrl: String - supportUrl: String - extensions: [AppManifestExtension!]! - - """ - List of the app's webhooks. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - webhooks: [AppManifestWebhook!]! - - """ - The audience that will be included in all JWT tokens for the app. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - audience: String -} - -type Margin { - start: Int - stop: Int -} - -"""An enumeration.""" -enum MeasurementUnitsEnum { - CM - M - KM - FT - YD - INCH - SQ_CM - SQ_M - SQ_KM - SQ_FT - SQ_YD - SQ_INCH - CUBIC_MILLIMETER - CUBIC_CENTIMETER - CUBIC_DECIMETER - CUBIC_METER - LITER - CUBIC_FOOT - CUBIC_INCH - CUBIC_YARD - QT - PINT - FL_OZ - ACRE_IN - ACRE_FT - G - LB - OZ - KG - TONNE -} - -enum MediaChoicesSortField { - """Sort media by ID.""" - ID -} - -input MediaSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort media by the selected field.""" - field: MediaChoicesSortField! -} - -""" -Represents a single menu - an object that is used to help navigate through the store. -""" -type Menu implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String! - slug: String! - items: [MenuItem!] -} - -""" -Deletes menus. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuBulkDelete { - """Returns how many objects were affected.""" - count: Int! - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! -} - -type MenuCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [MenuCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type MenuCountableEdge { - """The item at the end of the edge.""" - node: Menu! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new Menu. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuCreate { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! - menu: Menu -} - -input MenuCreateInput { - """Name of the menu.""" - name: String! - - """Slug of the menu. Will be generated if not provided.""" - slug: String - - """List of menu items.""" - items: [MenuItemInput!] -} - -""" -Event sent when new menu is created. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type MenuCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The menu the event relates to.""" - menu( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Menu -} - -""" -Deletes a menu. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuDelete { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! - menu: Menu -} - -""" -Event sent when menu is deleted. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type MenuDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The menu the event relates to.""" - menu( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Menu -} - -type MenuError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: MenuErrorCode! -} - -"""An enumeration.""" -enum MenuErrorCode { - CANNOT_ASSIGN_NODE - GRAPHQL_ERROR - INVALID - INVALID_MENU_ITEM - NO_MENU_ITEM_PROVIDED - NOT_FOUND - REQUIRED - TOO_MANY_MENU_ITEMS - UNIQUE -} - -input MenuFilterInput { - search: String - slug: [String!] - metadata: [MetadataFilter!] - slugs: [String!] -} - -input MenuInput { - """Name of the menu.""" - name: String - - """Slug of the menu.""" - slug: String -} - -""" -Represents a single item of the related menu. Can store categories, collection or pages. -""" -type MenuItem implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String! - menu: Menu! - parent: MenuItem - category: Category - - """ - A collection associated with this menu item. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - collection: Collection - - """ - A page associated with this menu item. Requires one of the following permissions to include unpublished items: MANAGE_PAGES. - """ - page: Page - level: Int! - children: [MenuItem!] - - """URL to the menu item.""" - url: String - - """Returns translated menu item fields for the given language code.""" - translation( - """A language code to return the translation for menu item.""" - languageCode: LanguageCodeEnum! - ): MenuItemTranslation -} - -""" -Deletes menu items. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuItemBulkDelete { - """Returns how many objects were affected.""" - count: Int! - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! -} - -type MenuItemCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [MenuItemCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type MenuItemCountableEdge { - """The item at the end of the edge.""" - node: MenuItem! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new menu item. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuItemCreate { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! - menuItem: MenuItem -} - -input MenuItemCreateInput { - """Name of the menu item.""" - name: String! - - """URL of the pointed item.""" - url: String - - """Category to which item points.""" - category: ID - - """Collection to which item points.""" - collection: ID - - """Page to which item points.""" - page: ID - - """Menu to which item belongs.""" - menu: ID! - - """ID of the parent menu. If empty, menu will be top level menu.""" - parent: ID -} - -""" -Event sent when new menu item is created. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type MenuItemCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The menu item the event relates to.""" - menuItem( - """Slug of a channel for which the data should be returned.""" - channel: String - ): MenuItem -} - -""" -Deletes a menu item. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuItemDelete { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! - menuItem: MenuItem -} - -""" -Event sent when menu item is deleted. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type MenuItemDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The menu item the event relates to.""" - menuItem( - """Slug of a channel for which the data should be returned.""" - channel: String - ): MenuItem -} - -input MenuItemFilterInput { - search: String - metadata: [MetadataFilter!] -} - -input MenuItemInput { - """Name of the menu item.""" - name: String - - """URL of the pointed item.""" - url: String - - """Category to which item points.""" - category: ID - - """Collection to which item points.""" - collection: ID - - """Page to which item points.""" - page: ID -} - -""" -Moves items of menus. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuItemMove { - """Assigned menu to move within.""" - menu: Menu - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! -} - -input MenuItemMoveInput { - """The menu item ID to move.""" - itemId: ID! - - """ID of the parent menu. If empty, menu will be top level menu.""" - parentId: ID - - """ - The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. - """ - sortOrder: Int -} - -input MenuItemSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort menu items by the selected field.""" - field: MenuItemsSortField! -} - -type MenuItemTranslatableContent implements Node { - id: ID! - name: String! - - """Returns translated menu item fields for the given language code.""" - translation( - """A language code to return the translation for menu item.""" - languageCode: LanguageCodeEnum! - ): MenuItemTranslation - - """ - Represents a single item of the related menu. Can store categories, collection or pages. - """ - menuItem: MenuItem @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") -} - -""" -Creates/updates translations for a menu item. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type MenuItemTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - menuItem: MenuItem -} - -type MenuItemTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - name: String! -} - -""" -Updates a menu item. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuItemUpdate { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! - menuItem: MenuItem -} - -""" -Event sent when menu item is updated. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type MenuItemUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The menu item the event relates to.""" - menuItem( - """Slug of a channel for which the data should be returned.""" - channel: String - ): MenuItem -} - -enum MenuItemsSortField { - """Sort menu items by name.""" - NAME -} - -enum MenuSortField { - """Sort menus by name.""" - NAME - - """Sort menus by items count.""" - ITEMS_COUNT -} - -input MenuSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort menus by the selected field.""" - field: MenuSortField! -} - -""" -Updates a menu. - -Requires one of the following permissions: MANAGE_MENUS. -""" -type MenuUpdate { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MenuError!]! - menu: Menu -} - -""" -Event sent when menu is updated. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type MenuUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The menu the event relates to.""" - menu( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Menu -} - -""" -Metadata is a map of key-value pairs, both keys and values are `String`. - -Example: -``` -{ - "key1": "value1", - "key2": "value2" -} -``` -""" -scalar Metadata - -type MetadataError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: MetadataErrorCode! -} - -"""An enumeration.""" -enum MetadataErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - NOT_UPDATED -} - -input MetadataFilter { - """Key of a metadata item.""" - key: String! - - """Value of a metadata item.""" - value: String -} - -input MetadataInput { - """Key of a metadata item.""" - key: String! - - """Value of a metadata item.""" - value: String! -} - -type MetadataItem { - """Key of a metadata item.""" - key: String! - - """Value of a metadata item.""" - value: String! -} - -"""Represents amount of money in specific currency.""" -type Money { - """Currency code.""" - currency: String! - - """Amount of money.""" - amount: Float! -} - -input MoneyInput { - """Currency code.""" - currency: String! - - """Amount of money.""" - amount: PositiveDecimal! -} - -"""Represents a range of amounts of money.""" -type MoneyRange { - """Lower bound of a price range.""" - start: Money - - """Upper bound of a price range.""" - stop: Money -} - -input MoveProductInput { - """The ID of the product to move.""" - productId: ID! - - """ - The relative sorting position of the product (from -inf to +inf) starting from the first given product's actual position.1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. - """ - sortOrder: Int -} - -type Mutation { - """ - Creates a new webhook subscription. - - Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. - """ - webhookCreate( - """Fields required to create a webhook.""" - input: WebhookCreateInput! - ): WebhookCreate - - """ - Delete a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated. - - Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. - """ - webhookDelete( - """ID of a webhook to delete.""" - id: ID! - ): WebhookDelete - - """ - Updates a webhook subscription. - - Requires one of the following permissions: MANAGE_APPS. - """ - webhookUpdate( - """ID of a webhook to update.""" - id: ID! - - """Fields required to update a webhook.""" - input: WebhookUpdateInput! - ): WebhookUpdate - - """ - Retries event delivery. - - Requires one of the following permissions: MANAGE_APPS. - """ - eventDeliveryRetry( - """ID of the event delivery to retry.""" - id: ID! - ): EventDeliveryRetry - - """ - Performs a dry run of a webhook event. Supports a single event (the first if multiple provided in the `query`). Requires permission relevant to processed event. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER. - """ - webhookDryRun( - """The ID of an object to serialize.""" - objectId: ID! - - """The subscription query that defines the webhook event and its payload.""" - query: String! - ): WebhookDryRun - - """ - Creates new warehouse. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - createWarehouse( - """Fields required to create warehouse.""" - input: WarehouseCreateInput! - ): WarehouseCreate - - """ - Updates given warehouse. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - updateWarehouse( - """ID of a warehouse to update.""" - id: ID! - - """Fields required to update warehouse.""" - input: WarehouseUpdateInput! - ): WarehouseUpdate - - """ - Deletes selected warehouse. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - deleteWarehouse( - """ID of a warehouse to delete.""" - id: ID! - ): WarehouseDelete - - """ - Add shipping zone to given warehouse. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - assignWarehouseShippingZone( - """ID of a warehouse to update.""" - id: ID! - - """List of shipping zone IDs.""" - shippingZoneIds: [ID!]! - ): WarehouseShippingZoneAssign - - """ - Remove shipping zone from given warehouse. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - unassignWarehouseShippingZone( - """ID of a warehouse to update.""" - id: ID! - - """List of shipping zone IDs.""" - shippingZoneIds: [ID!]! - ): WarehouseShippingZoneUnassign - - """ - Create a tax class. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_TAXES. - """ - taxClassCreate( - """Fields required to create a tax class.""" - input: TaxClassCreateInput! - ): TaxClassCreate - - """ - Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_TAXES. - """ - taxClassDelete( - """ID of a tax class to delete.""" - id: ID! - ): TaxClassDelete - - """ - Update a tax class. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_TAXES. - """ - taxClassUpdate( - """ID of the tax class.""" - id: ID! - - """Fields required to update a tax class.""" - input: TaxClassUpdateInput! - ): TaxClassUpdate - - """ - Update tax configuration for a channel. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_TAXES. - """ - taxConfigurationUpdate( - """ID of the tax configuration.""" - id: ID! - - """Fields required to update the tax configuration.""" - input: TaxConfigurationUpdateInput! - ): TaxConfigurationUpdate - - """ - Update tax class rates for a specific country. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_TAXES. - """ - taxCountryConfigurationUpdate( - """Country in which to update the tax class rates.""" - countryCode: CountryCode! - - """ - List of tax rates per tax class to update. When `{taxClass: id, rate: null`} is passed, it deletes the rate object for given taxClass ID. When `{rate: Int}` is passed without a tax class, it updates the default tax class for this country. - """ - updateTaxClassRates: [TaxClassRateInput!]! - ): TaxCountryConfigurationUpdate - - """ - Remove all tax class rates for a specific country. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_TAXES. - """ - taxCountryConfigurationDelete( - """Country in which to update the tax class rates.""" - countryCode: CountryCode! - ): TaxCountryConfigurationDelete - - """ - Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_TAXES. - """ - taxExemptionManage( - """ID of the Checkout or Order object.""" - id: ID! - - """Determines if a taxes should be exempt.""" - taxExemption: Boolean! - ): TaxExemptionManage - - """ - Creates a new staff notification recipient. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - staffNotificationRecipientCreate( - """Fields required to create a staff notification recipient.""" - input: StaffNotificationRecipientInput! - ): StaffNotificationRecipientCreate - - """ - Updates a staff notification recipient. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - staffNotificationRecipientUpdate( - """ID of a staff notification recipient to update.""" - id: ID! - - """Fields required to update a staff notification recipient.""" - input: StaffNotificationRecipientInput! - ): StaffNotificationRecipientUpdate - - """ - Delete staff notification recipient. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - staffNotificationRecipientDelete( - """ID of a staff notification recipient to delete.""" - id: ID! - ): StaffNotificationRecipientDelete - - """ - Updates site domain of the shop. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - shopDomainUpdate( - """Fields required to update site.""" - input: SiteDomainInput - ): ShopDomainUpdate - - """ - Updates shop settings. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - shopSettingsUpdate( - """Fields required to update shop settings.""" - input: ShopSettingsInput! - ): ShopSettingsUpdate - - """ - Fetch tax rates. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - shopFetchTaxRates: ShopFetchTaxRates @deprecated(reason: "\n\nDEPRECATED: this mutation will be removed in Saleor 4.0.") - - """ - Creates/updates translations for shop settings. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - shopSettingsTranslate( - """Fields required to update shop settings translations.""" - input: ShopSettingsTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): ShopSettingsTranslate - - """ - Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - shopAddressUpdate( - """Fields required to update shop address.""" - input: AddressInput - ): ShopAddressUpdate - - """ - Update shop order settings. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderSettingsUpdate( - """Fields required to update shop order settings.""" - input: OrderSettingsUpdateInput! - ): OrderSettingsUpdate - - """ - Update gift card settings. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardSettingsUpdate( - """Fields required to update gift card settings.""" - input: GiftCardSettingsUpdateInput! - ): GiftCardSettingsUpdate - - """ - Manage shipping method's availability in channels. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingMethodChannelListingUpdate( - """ID of a shipping method to update.""" - id: ID! - - """Fields required to update shipping method channel listings.""" - input: ShippingMethodChannelListingInput! - ): ShippingMethodChannelListingUpdate - - """ - Creates a new shipping price. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingPriceCreate( - """Fields required to create a shipping price.""" - input: ShippingPriceInput! - ): ShippingPriceCreate - - """ - Deletes a shipping price. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingPriceDelete( - """ID of a shipping price to delete.""" - id: ID! - ): ShippingPriceDelete - - """ - Deletes shipping prices. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingPriceBulkDelete( - """List of shipping price IDs to delete.""" - ids: [ID!]! - ): ShippingPriceBulkDelete - - """ - Updates a new shipping price. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingPriceUpdate( - """ID of a shipping price to update.""" - id: ID! - - """Fields required to update a shipping price.""" - input: ShippingPriceInput! - ): ShippingPriceUpdate - - """ - Creates/updates translations for a shipping method. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - shippingPriceTranslate( - """ShippingMethodType ID or ShippingMethodTranslatableContent ID.""" - id: ID! - input: ShippingPriceTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): ShippingPriceTranslate - - """ - Exclude products from shipping price. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingPriceExcludeProducts( - """ID of a shipping price.""" - id: ID! - - """Exclude products input.""" - input: ShippingPriceExcludeProductsInput! - ): ShippingPriceExcludeProducts - - """ - Remove product from excluded list for shipping price. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingPriceRemoveProductFromExclude( - """ID of a shipping price.""" - id: ID! - - """List of products which will be removed from excluded list.""" - products: [ID!]! - ): ShippingPriceRemoveProductFromExclude - - """ - Creates a new shipping zone. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingZoneCreate( - """Fields required to create a shipping zone.""" - input: ShippingZoneCreateInput! - ): ShippingZoneCreate - - """ - Deletes a shipping zone. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingZoneDelete( - """ID of a shipping zone to delete.""" - id: ID! - ): ShippingZoneDelete - - """ - Deletes shipping zones. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingZoneBulkDelete( - """List of shipping zone IDs to delete.""" - ids: [ID!]! - ): ShippingZoneBulkDelete - - """ - Updates a new shipping zone. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingZoneUpdate( - """ID of a shipping zone to update.""" - id: ID! - - """Fields required to update a shipping zone.""" - input: ShippingZoneUpdateInput! - ): ShippingZoneUpdate - - """ - Assign attributes to a given product type. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - productAttributeAssign( - """The operations to perform.""" - operations: [ProductAttributeAssignInput!]! - - """ID of the product type to assign the attributes into.""" - productTypeId: ID! - ): ProductAttributeAssign - - """ - Update attributes assigned to product variant for given product type. - - Added in Saleor 3.1. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - productAttributeAssignmentUpdate( - """The operations to perform.""" - operations: [ProductAttributeAssignmentUpdateInput!]! - - """ID of the product type to assign the attributes into.""" - productTypeId: ID! - ): ProductAttributeAssignmentUpdate - - """ - Un-assign attributes from a given product type. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - productAttributeUnassign( - """The IDs of the attributes to unassign.""" - attributeIds: [ID!]! - - """ID of the product type from which the attributes should be unassigned.""" - productTypeId: ID! - ): ProductAttributeUnassign - - """ - Creates a new category. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - categoryCreate( - """Fields required to create a category.""" - input: CategoryInput! - - """ - ID of the parent category. If empty, category will be top level category. - """ - parent: ID - ): CategoryCreate - - """ - Deletes a category. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - categoryDelete( - """ID of a category to delete.""" - id: ID! - ): CategoryDelete - - """ - Deletes categories. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - categoryBulkDelete( - """List of category IDs to delete.""" - ids: [ID!]! - ): CategoryBulkDelete - - """ - Updates a category. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - categoryUpdate( - """ID of a category to update.""" - id: ID! - - """Fields required to update a category.""" - input: CategoryInput! - ): CategoryUpdate - - """ - Creates/updates translations for a category. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - categoryTranslate( - """Category ID or CategoryTranslatableContent ID.""" - id: ID! - input: TranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): CategoryTranslate - - """ - Adds products to a collection. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - collectionAddProducts( - """ID of a collection.""" - collectionId: ID! - - """List of product IDs.""" - products: [ID!]! - ): CollectionAddProducts - - """ - Creates a new collection. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - collectionCreate( - """Fields required to create a collection.""" - input: CollectionCreateInput! - ): CollectionCreate - - """ - Deletes a collection. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - collectionDelete( - """ID of a collection to delete.""" - id: ID! - ): CollectionDelete - - """ - Reorder the products of a collection. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - collectionReorderProducts( - """ID of a collection.""" - collectionId: ID! - - """The collection products position operations.""" - moves: [MoveProductInput!]! - ): CollectionReorderProducts - - """ - Deletes collections. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - collectionBulkDelete( - """List of collection IDs to delete.""" - ids: [ID!]! - ): CollectionBulkDelete - - """ - Remove products from a collection. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - collectionRemoveProducts( - """ID of a collection.""" - collectionId: ID! - - """List of product IDs.""" - products: [ID!]! - ): CollectionRemoveProducts - - """ - Updates a collection. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - collectionUpdate( - """ID of a collection to update.""" - id: ID! - - """Fields required to update a collection.""" - input: CollectionInput! - ): CollectionUpdate - - """ - Creates/updates translations for a collection. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - collectionTranslate( - """Collection ID or CollectionTranslatableContent ID.""" - id: ID! - input: TranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): CollectionTranslate - - """ - Manage collection's availability in channels. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - collectionChannelListingUpdate( - """ID of a collection to update.""" - id: ID! - - """Fields required to create or update collection channel listings.""" - input: CollectionChannelListingUpdateInput! - ): CollectionChannelListingUpdate - - """ - Creates a new product. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productCreate( - """Fields required to create a product.""" - input: ProductCreateInput! - ): ProductCreate - - """ - Deletes a product. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productDelete( - """ - External ID of a product to delete. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a product to delete.""" - id: ID - ): ProductDelete - - """ - Deletes products. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productBulkDelete( - """List of product IDs to delete.""" - ids: [ID!]! - ): ProductBulkDelete - - """ - Updates an existing product. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productUpdate( - """ - External ID of a product to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a product to update.""" - id: ID - - """Fields required to update a product.""" - input: ProductInput! - ): ProductUpdate - - """ - Creates/updates translations for a product. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - productTranslate( - """Product ID or ProductTranslatableContent ID.""" - id: ID! - input: TranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): ProductTranslate - - """ - Manage product's availability in channels. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productChannelListingUpdate( - """ID of a product to update.""" - id: ID! - - """Fields required to create or update product channel listings.""" - input: ProductChannelListingUpdateInput! - ): ProductChannelListingUpdate - - """ - Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productMediaCreate( - """Fields required to create a product media.""" - input: ProductMediaCreateInput! - ): ProductMediaCreate - - """ - Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantReorder( - """The list of variant reordering operations.""" - moves: [ReorderInput!]! - - """Id of product that variants order will be altered.""" - productId: ID! - ): ProductVariantReorder - - """ - Deletes a product media. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productMediaDelete( - """ID of a product media to delete.""" - id: ID! - ): ProductMediaDelete - - """ - Deletes product media. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productMediaBulkDelete( - """List of product media IDs to delete.""" - ids: [ID!]! - ): ProductMediaBulkDelete - - """ - Changes ordering of the product media. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productMediaReorder( - """IDs of a product media in the desired order.""" - mediaIds: [ID!]! - - """ID of product that media order will be altered.""" - productId: ID! - ): ProductMediaReorder - - """ - Updates a product media. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productMediaUpdate( - """ID of a product media to update.""" - id: ID! - - """Fields required to update a product media.""" - input: ProductMediaUpdateInput! - ): ProductMediaUpdate - - """ - Creates a new product type. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - productTypeCreate( - """Fields required to create a product type.""" - input: ProductTypeInput! - ): ProductTypeCreate - - """ - Deletes a product type. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - productTypeDelete( - """ID of a product type to delete.""" - id: ID! - ): ProductTypeDelete - - """ - Deletes product types. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - productTypeBulkDelete( - """List of product type IDs to delete.""" - ids: [ID!]! - ): ProductTypeBulkDelete - - """ - Updates an existing product type. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - productTypeUpdate( - """ID of a product type to update.""" - id: ID! - - """Fields required to update a product type.""" - input: ProductTypeInput! - ): ProductTypeUpdate - - """ - Reorder the attributes of a product type. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - productTypeReorderAttributes( - """The list of attribute reordering operations.""" - moves: [ReorderInput!]! - - """ID of a product type.""" - productTypeId: ID! - - """The attribute type to reorder.""" - type: ProductAttributeType! - ): ProductTypeReorderAttributes - - """ - Reorder product attribute values. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productReorderAttributeValues( - """ID of an attribute.""" - attributeId: ID! - - """The list of reordering operations for given attribute values.""" - moves: [ReorderInput!]! - - """ID of a product.""" - productId: ID! - ): ProductReorderAttributeValues - - """ - Create new digital content. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - digitalContentCreate( - """Fields required to create a digital content.""" - input: DigitalContentUploadInput! - - """ID of a product variant to upload digital content.""" - variantId: ID! - ): DigitalContentCreate - - """ - Remove digital content assigned to given variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - digitalContentDelete( - """ID of a product variant with digital content to remove.""" - variantId: ID! - ): DigitalContentDelete - - """ - Update digital content. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - digitalContentUpdate( - """Fields required to update a digital content.""" - input: DigitalContentInput! - - """ID of a product variant with digital content to update.""" - variantId: ID! - ): DigitalContentUpdate - - """ - Generate new URL to digital content. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - digitalContentUrlCreate( - """Fields required to create a new url.""" - input: DigitalContentUrlCreateInput! - ): DigitalContentUrlCreate - - """ - Creates a new variant for a product. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantCreate( - """Fields required to create a product variant.""" - input: ProductVariantCreateInput! - ): ProductVariantCreate - - """ - Deletes a product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantDelete( - """ - External ID of a product variant to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a product variant to delete.""" - id: ID - - """ - SKU of a product variant to delete. - - Added in Saleor 3.8. - """ - sku: String - ): ProductVariantDelete - - """ - Creates product variants for a given product. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantBulkCreate( - """ID of the product to create the variants for.""" - product: ID! - - """Input list of product variants to create.""" - variants: [ProductVariantBulkCreateInput!]! - ): ProductVariantBulkCreate - - """ - Deletes product variants. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantBulkDelete( - """List of product variant IDs to delete.""" - ids: [ID!] - - """ - List of product variant SKUs to delete. - - Added in Saleor 3.8. - """ - skus: [String!] - ): ProductVariantBulkDelete - - """ - Creates stocks for product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantStocksCreate( - """Input list of stocks to create.""" - stocks: [StockInput!]! - - """ID of a product variant for which stocks will be created.""" - variantId: ID! - ): ProductVariantStocksCreate - - """ - Delete stocks from product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantStocksDelete( - """SKU of product variant for which stocks will be deleted.""" - sku: String - - """ID of product variant for which stocks will be deleted.""" - variantId: ID - - """Input list of warehouse IDs.""" - warehouseIds: [ID!] - ): ProductVariantStocksDelete - - """ - Update stocks for product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantStocksUpdate( - """SKU of product variant for which stocks will be updated.""" - sku: String - - """Input list of stocks to create or update.""" - stocks: [StockInput!]! - - """ID of a product variant for which stocks will be updated.""" - variantId: ID - ): ProductVariantStocksUpdate - - """ - Updates an existing variant for product. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantUpdate( - """ - External ID of a product variant to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a product to update.""" - id: ID - - """Fields required to update a product variant.""" - input: ProductVariantInput! - - """ - SKU of a product variant to update. - - Added in Saleor 3.8. - """ - sku: String - ): ProductVariantUpdate - - """ - Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantSetDefault( - """Id of a product that will have the default variant set.""" - productId: ID! - - """Id of a variant that will be set as default.""" - variantId: ID! - ): ProductVariantSetDefault - - """ - Creates/updates translations for a product variant. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - productVariantTranslate( - """ProductVariant ID or ProductVariantTranslatableContent ID.""" - id: ID! - input: NameTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): ProductVariantTranslate - - """ - Manage product variant prices in channels. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantChannelListingUpdate( - """ID of a product variant to update.""" - id: ID - - """ - List of fields required to create or upgrade product variant channel listings. - """ - input: [ProductVariantChannelListingAddInput!]! - - """ - SKU of a product variant to update. - - Added in Saleor 3.8. - """ - sku: String - ): ProductVariantChannelListingUpdate - - """ - Reorder product variant attribute values. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantReorderAttributeValues( - """ID of an attribute.""" - attributeId: ID! - - """The list of reordering operations for given attribute values.""" - moves: [ReorderInput!]! - - """ID of a product variant.""" - variantId: ID! - ): ProductVariantReorderAttributeValues - - """ - Deactivates product variant preorder. It changes all preorder allocation into regular allocation. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - productVariantPreorderDeactivate( - """ID of a variant which preorder should be deactivated.""" - id: ID! - ): ProductVariantPreorderDeactivate - - """ - Assign an media to a product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - variantMediaAssign( - """ID of a product media to assign to a variant.""" - mediaId: ID! - - """ID of a product variant.""" - variantId: ID! - ): VariantMediaAssign - - """ - Unassign an media from a product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - variantMediaUnassign( - """ID of a product media to unassign from a variant.""" - mediaId: ID! - - """ID of a product variant.""" - variantId: ID! - ): VariantMediaUnassign - - """ - Captures the authorized payment amount. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - paymentCapture( - """Transaction amount.""" - amount: PositiveDecimal - - """Payment ID.""" - paymentId: ID! - ): PaymentCapture - - """ - Refunds the captured payment amount. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - paymentRefund( - """Transaction amount.""" - amount: PositiveDecimal - - """Payment ID.""" - paymentId: ID! - ): PaymentRefund - - """ - Voids the authorized payment. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - paymentVoid( - """Payment ID.""" - paymentId: ID! - ): PaymentVoid - - """Initializes payment process when it is required by gateway.""" - paymentInitialize( - """Slug of a channel for which the data should be returned.""" - channel: String - - """A gateway name used to initialize the payment.""" - gateway: String! - - """Client-side generated data required to initialize the payment.""" - paymentData: JSONString - ): PaymentInitialize - - """Check payment balance.""" - paymentCheckBalance( - """Fields required to check payment balance.""" - input: PaymentCheckBalanceInput! - ): PaymentCheckBalance - - """ - Create transaction for checkout or order. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: HANDLE_PAYMENTS. - """ - transactionCreate( - """The ID of the checkout or order.""" - id: ID! - - """Input data required to create a new transaction object.""" - transaction: TransactionCreateInput! - - """Data that defines a transaction event.""" - transactionEvent: TransactionEventInput - ): TransactionCreate - - """ - Create transaction for checkout or order. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires the following permissions: OWNER and HANDLE_PAYMENTS. - """ - transactionUpdate( - """The ID of the transaction.""" - id: ID! - - """Input data required to create a new transaction object.""" - transaction: TransactionUpdateInput - - """Data that defines a transaction transaction.""" - transactionEvent: TransactionEventInput - ): TransactionUpdate - - """ - Request an action for payment transaction. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: HANDLE_PAYMENTS. - """ - transactionRequestAction( - """Determines the action type.""" - actionType: TransactionActionEnum! - - """ - Transaction request amount. If empty for refund or capture, maximal possible amount will be used. - """ - amount: PositiveDecimal - - """The ID of the transaction.""" - id: ID! - ): TransactionRequestAction - - """ - Report the event for the transaction. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires the following permissions: OWNER and HANDLE_PAYMENTS. - """ - transactionEventReport( - """The amount of the event to report.""" - amount: PositiveDecimal! - - """List of all possible actions for the transaction""" - availableActions: [TransactionActionEnum!] - - """ - The url that will allow to redirect user to payment provider page with event details. - """ - externalUrl: String - - """The ID of the transaction.""" - id: ID! - - """The message related to the event.""" - message: String - - """PSP Reference of the event to report.""" - pspReference: String! - - """ - The time of the event to report. If not provide, the current time will be used. - """ - time: DateTime - - """Current status of the event to report.""" - type: TransactionEventTypeEnum! - ): TransactionEventReport - - """ - Creates a new page. - - Requires one of the following permissions: MANAGE_PAGES. - """ - pageCreate( - """Fields required to create a page.""" - input: PageCreateInput! - ): PageCreate - - """ - Deletes a page. - - Requires one of the following permissions: MANAGE_PAGES. - """ - pageDelete( - """ID of a page to delete.""" - id: ID! - ): PageDelete - - """ - Deletes pages. - - Requires one of the following permissions: MANAGE_PAGES. - """ - pageBulkDelete( - """List of page IDs to delete.""" - ids: [ID!]! - ): PageBulkDelete - - """ - Publish pages. - - Requires one of the following permissions: MANAGE_PAGES. - """ - pageBulkPublish( - """List of page IDs to (un)publish.""" - ids: [ID!]! - - """Determine if pages will be published or not.""" - isPublished: Boolean! - ): PageBulkPublish - - """ - Updates an existing page. - - Requires one of the following permissions: MANAGE_PAGES. - """ - pageUpdate( - """ID of a page to update.""" - id: ID! - - """Fields required to update a page.""" - input: PageInput! - ): PageUpdate - - """ - Creates/updates translations for a page. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - pageTranslate( - """Page ID or PageTranslatableContent ID.""" - id: ID! - input: PageTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): PageTranslate - - """ - Create a new page type. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - pageTypeCreate( - """Fields required to create page type.""" - input: PageTypeCreateInput! - ): PageTypeCreate - - """ - Update page type. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - pageTypeUpdate( - """ID of the page type to update.""" - id: ID - - """Fields required to update page type.""" - input: PageTypeUpdateInput! - ): PageTypeUpdate - - """ - Delete a page type. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - pageTypeDelete( - """ID of the page type to delete.""" - id: ID! - ): PageTypeDelete - - """ - Delete page types. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - pageTypeBulkDelete( - """List of page type IDs to delete""" - ids: [ID!]! - ): PageTypeBulkDelete - - """ - Assign attributes to a given page type. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - pageAttributeAssign( - """The IDs of the attributes to assign.""" - attributeIds: [ID!]! - - """ID of the page type to assign the attributes into.""" - pageTypeId: ID! - ): PageAttributeAssign - - """ - Unassign attributes from a given page type. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - pageAttributeUnassign( - """The IDs of the attributes to unassign.""" - attributeIds: [ID!]! - - """ID of the page type from which the attributes should be unassign.""" - pageTypeId: ID! - ): PageAttributeUnassign - - """ - Reorder the attributes of a page type. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - pageTypeReorderAttributes( - """The list of attribute reordering operations.""" - moves: [ReorderInput!]! - - """ID of a page type.""" - pageTypeId: ID! - ): PageTypeReorderAttributes - - """ - Reorder page attribute values. - - Requires one of the following permissions: MANAGE_PAGES. - """ - pageReorderAttributeValues( - """ID of an attribute.""" - attributeId: ID! - - """The list of reordering operations for given attribute values.""" - moves: [ReorderInput!]! - - """ID of a page.""" - pageId: ID! - ): PageReorderAttributeValues - - """ - Completes creating an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - draftOrderComplete( - """ID of the order that will be completed.""" - id: ID! - ): DraftOrderComplete - - """ - Creates a new draft order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - draftOrderCreate( - """Fields required to create an order.""" - input: DraftOrderCreateInput! - ): DraftOrderCreate - - """ - Deletes a draft order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - draftOrderDelete( - """ - External ID of a product to delete. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a product to delete.""" - id: ID - ): DraftOrderDelete - - """ - Deletes draft orders. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - draftOrderBulkDelete( - """List of draft order IDs to delete.""" - ids: [ID!]! - ): DraftOrderBulkDelete - - """ - Deletes order lines. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - draftOrderLinesBulkDelete( - """List of order lines IDs to delete.""" - ids: [ID!]! - ): DraftOrderLinesBulkDelete @deprecated(reason: "This field will be removed in Saleor 4.0.") - - """ - Updates a draft order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - draftOrderUpdate( - """ - External ID of a draft order to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a draft order to update.""" - id: ID - - """Fields required to update an order.""" - input: DraftOrderInput! - ): DraftOrderUpdate - - """ - Adds note to the order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderAddNote( - """ID of the order to add a note for.""" - order: ID! - - """Fields required to create a note for the order.""" - input: OrderAddNoteInput! - ): OrderAddNote - - """ - Cancel an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderCancel( - """ID of the order to cancel.""" - id: ID! - ): OrderCancel - - """ - Capture an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderCapture( - """Amount of money to capture.""" - amount: PositiveDecimal! - - """ID of the order to capture.""" - id: ID! - ): OrderCapture - - """ - Confirms an unconfirmed order by changing status to unfulfilled. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderConfirm( - """ID of an order to confirm.""" - id: ID! - ): OrderConfirm - - """ - Creates new fulfillments for an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderFulfill( - """Fields required to create a fulfillment.""" - input: OrderFulfillInput! - - """ID of the order to be fulfilled.""" - order: ID - ): OrderFulfill - - """ - Cancels existing fulfillment and optionally restocks items. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderFulfillmentCancel( - """ID of a fulfillment to cancel.""" - id: ID! - - """Fields required to cancel a fulfillment.""" - input: FulfillmentCancelInput - ): FulfillmentCancel - - """ - Approve existing fulfillment. - - Added in Saleor 3.1. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderFulfillmentApprove( - """True if stock could be exceeded.""" - allowStockToBeExceeded: Boolean = false - - """ID of a fulfillment to approve.""" - id: ID! - - """True if confirmation email should be send.""" - notifyCustomer: Boolean! - ): FulfillmentApprove - - """ - Updates a fulfillment for an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderFulfillmentUpdateTracking( - """ID of a fulfillment to update.""" - id: ID! - - """Fields required to update a fulfillment.""" - input: FulfillmentUpdateTrackingInput! - ): FulfillmentUpdateTracking - - """ - Refund products. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderFulfillmentRefundProducts( - """Fields required to create an refund fulfillment.""" - input: OrderRefundProductsInput! - - """ID of the order to be refunded.""" - order: ID! - ): FulfillmentRefundProducts - - """ - Return products. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderFulfillmentReturnProducts( - """Fields required to return products.""" - input: OrderReturnProductsInput! - - """ID of the order to be returned.""" - order: ID! - ): FulfillmentReturnProducts - - """ - Adds granted refund to the order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderGrantRefundCreate( - """ID of the order.""" - id: ID! - - """Fields required to create a granted refund for the order.""" - input: OrderGrantRefundCreateInput! - ): OrderGrantRefundCreate - - """ - Updates granted refund. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderGrantRefundUpdate( - """ID of the granted refund.""" - id: ID! - - """Fields required to update a granted refund.""" - input: OrderGrantRefundUpdateInput! - ): OrderGrantRefundUpdate - - """ - Create order lines for an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderLinesCreate( - """ID of the order to add the lines to.""" - id: ID! - - """Fields required to add order lines.""" - input: [OrderLineCreateInput!]! - ): OrderLinesCreate - - """ - Deletes an order line from an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderLineDelete( - """ID of the order line to delete.""" - id: ID! - ): OrderLineDelete - - """ - Updates an order line of an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderLineUpdate( - """ID of the order line to update.""" - id: ID! - - """Fields required to update an order line.""" - input: OrderLineInput! - ): OrderLineUpdate - - """ - Adds discount to the order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderDiscountAdd( - """Fields required to create a discount for the order.""" - input: OrderDiscountCommonInput! - - """ID of an order to discount.""" - orderId: ID! - ): OrderDiscountAdd - - """ - Update discount for the order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderDiscountUpdate( - """ID of a discount to update.""" - discountId: ID! - - """Fields required to update a discount for the order.""" - input: OrderDiscountCommonInput! - ): OrderDiscountUpdate - - """ - Remove discount from the order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderDiscountDelete( - """ID of a discount to remove.""" - discountId: ID! - ): OrderDiscountDelete - - """ - Update discount for the order line. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderLineDiscountUpdate( - """Fields required to update price for the order line.""" - input: OrderDiscountCommonInput! - - """ID of a order line to update price""" - orderLineId: ID! - ): OrderLineDiscountUpdate - - """ - Remove discount applied to the order line. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderLineDiscountRemove( - """ID of a order line to remove its discount""" - orderLineId: ID! - ): OrderLineDiscountRemove - - """ - Mark order as manually paid. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderMarkAsPaid( - """ID of the order to mark paid.""" - id: ID! - - """The external transaction reference.""" - transactionReference: String - ): OrderMarkAsPaid - - """ - Refund an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderRefund( - """Amount of money to refund.""" - amount: PositiveDecimal! - - """ID of the order to refund.""" - id: ID! - ): OrderRefund - - """ - Updates an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderUpdate( - """ - External ID of an order to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of an order to update.""" - id: ID - - """Fields required to update an order.""" - input: OrderUpdateInput! - ): OrderUpdate - - """ - Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderUpdateShipping( - """ID of the order to update a shipping method.""" - order: ID! - - """Fields required to change shipping method of the order.""" - input: OrderUpdateShippingInput! - ): OrderUpdateShipping - - """ - Void an order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderVoid( - """ID of the order to void.""" - id: ID! - ): OrderVoid - - """ - Cancels orders. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderBulkCancel( - """List of orders IDs to cancel.""" - ids: [ID!]! - ): OrderBulkCancel - - """ - Delete metadata of an object. To use it, you need to have access to the modified object. - """ - deleteMetadata( - """ID or token (for Order and Checkout) of an object to update.""" - id: ID! - - """Metadata keys to delete.""" - keys: [String!]! - ): DeleteMetadata - - """ - Delete object's private metadata. To use it, you need to be an authenticated staff user or an app and have access to the modified object. - """ - deletePrivateMetadata( - """ID or token (for Order and Checkout) of an object to update.""" - id: ID! - - """Metadata keys to delete.""" - keys: [String!]! - ): DeletePrivateMetadata - - """ - Updates metadata of an object. To use it, you need to have access to the modified object. - """ - updateMetadata( - """ID or token (for Order and Checkout) of an object to update.""" - id: ID! - - """Fields required to update the object's metadata.""" - input: [MetadataInput!]! - ): UpdateMetadata - - """ - Updates private metadata of an object. To use it, you need to be an authenticated staff user or an app and have access to the modified object. - """ - updatePrivateMetadata( - """ID or token (for Order and Checkout) of an object to update.""" - id: ID! - - """Fields required to update the object's metadata.""" - input: [MetadataInput!]! - ): UpdatePrivateMetadata - - """ - Assigns storefront's navigation menus. - - Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. - """ - assignNavigation( - """ID of the menu.""" - menu: ID - - """Type of the navigation bar to assign the menu to.""" - navigationType: NavigationType! - ): AssignNavigation - - """ - Creates a new Menu. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuCreate( - """Fields required to create a menu.""" - input: MenuCreateInput! - ): MenuCreate - - """ - Deletes a menu. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuDelete( - """ID of a menu to delete.""" - id: ID! - ): MenuDelete - - """ - Deletes menus. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuBulkDelete( - """List of menu IDs to delete.""" - ids: [ID!]! - ): MenuBulkDelete - - """ - Updates a menu. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuUpdate( - """ID of a menu to update.""" - id: ID! - - """Fields required to update a menu.""" - input: MenuInput! - ): MenuUpdate - - """ - Creates a new menu item. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuItemCreate( - """ - Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item. - """ - input: MenuItemCreateInput! - ): MenuItemCreate - - """ - Deletes a menu item. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuItemDelete( - """ID of a menu item to delete.""" - id: ID! - ): MenuItemDelete - - """ - Deletes menu items. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuItemBulkDelete( - """List of menu item IDs to delete.""" - ids: [ID!]! - ): MenuItemBulkDelete - - """ - Updates a menu item. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuItemUpdate( - """ID of a menu item to update.""" - id: ID! - - """ - Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item. - """ - input: MenuItemInput! - ): MenuItemUpdate - - """ - Creates/updates translations for a menu item. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - menuItemTranslate( - """MenuItem ID or MenuItemTranslatableContent ID.""" - id: ID! - input: NameTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): MenuItemTranslate - - """ - Moves items of menus. - - Requires one of the following permissions: MANAGE_MENUS. - """ - menuItemMove( - """ID of the menu.""" - menu: ID! - - """The menu position data.""" - moves: [MenuItemMoveInput!]! - ): MenuItemMove - - """ - Request an invoice for the order using plugin. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - invoiceRequest( - """Invoice number, if not provided it will be generated.""" - number: String - - """ID of the order related to invoice.""" - orderId: ID! - ): InvoiceRequest - - """ - Requests deletion of an invoice. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - invoiceRequestDelete( - """ID of an invoice to request the deletion.""" - id: ID! - ): InvoiceRequestDelete - - """ - Creates a ready to send invoice. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - invoiceCreate( - """Fields required when creating an invoice.""" - input: InvoiceCreateInput! - - """ID of the order related to invoice.""" - orderId: ID! - ): InvoiceCreate - - """ - Deletes an invoice. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - invoiceDelete( - """ID of an invoice to delete.""" - id: ID! - ): InvoiceDelete - - """ - Updates an invoice. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - invoiceUpdate( - """ID of an invoice to update.""" - id: ID! - - """Fields to use when updating an invoice.""" - input: UpdateInvoiceInput! - ): InvoiceUpdate - - """ - Send an invoice notification to the customer. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - invoiceSendNotification( - """ID of an invoice to be sent.""" - id: ID! - ): InvoiceSendNotification - - """ - Activate a gift card. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardActivate( - """ID of a gift card to activate.""" - id: ID! - ): GiftCardActivate - - """ - Creates a new gift card. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardCreate( - """Fields required to create a gift card.""" - input: GiftCardCreateInput! - ): GiftCardCreate - - """ - Delete gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardDelete( - """ID of the gift card to delete.""" - id: ID! - ): GiftCardDelete - - """ - Deactivate a gift card. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardDeactivate( - """ID of a gift card to deactivate.""" - id: ID! - ): GiftCardDeactivate - - """ - Update a gift card. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardUpdate( - """ID of a gift card to update.""" - id: ID! - - """Fields required to update a gift card.""" - input: GiftCardUpdateInput! - ): GiftCardUpdate - - """ - Resend a gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardResend( - """Fields required to resend a gift card.""" - input: GiftCardResendInput! - ): GiftCardResend - - """ - Adds note to the gift card. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardAddNote( - """ID of the gift card to add a note for.""" - id: ID! - - """Fields required to create a note for the gift card.""" - input: GiftCardAddNoteInput! - ): GiftCardAddNote - - """ - Create gift cards. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardBulkCreate( - """Fields required to create gift cards.""" - input: GiftCardBulkCreateInput! - ): GiftCardBulkCreate - - """ - Delete gift cards. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardBulkDelete( - """List of gift card IDs to delete.""" - ids: [ID!]! - ): GiftCardBulkDelete - - """ - Activate gift cards. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardBulkActivate( - """List of gift card IDs to activate.""" - ids: [ID!]! - ): GiftCardBulkActivate - - """ - Deactivate gift cards. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardBulkDeactivate( - """List of gift card IDs to deactivate.""" - ids: [ID!]! - ): GiftCardBulkDeactivate - - """ - Update plugin configuration. - - Requires one of the following permissions: MANAGE_PLUGINS. - """ - pluginUpdate( - """ID of a channel for which the data should be modified.""" - channelId: ID - - """ID of plugin to update.""" - id: ID! - - """Fields required to update a plugin configuration.""" - input: PluginUpdateInput! - ): PluginUpdate - - """ - Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload. - - Added in Saleor 3.1. - """ - externalNotificationTrigger( - """ - Channel slug. Saleor will send a notification within a provided channel. Please, make sure that necessary plugins are active. - """ - channel: String! - - """Input for External Notification Trigger.""" - input: ExternalNotificationTriggerInput! - - """The ID of notification plugin.""" - pluginId: String - ): ExternalNotificationTrigger - - """ - Creates a new sale. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - saleCreate( - """Fields required to create a sale.""" - input: SaleInput! - ): SaleCreate - - """ - Deletes a sale. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - saleDelete( - """ID of a sale to delete.""" - id: ID! - ): SaleDelete - - """ - Deletes sales. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - saleBulkDelete( - """List of sale IDs to delete.""" - ids: [ID!]! - ): SaleBulkDelete - - """ - Updates a sale. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - saleUpdate( - """ID of a sale to update.""" - id: ID! - - """Fields required to update a sale.""" - input: SaleInput! - ): SaleUpdate - - """ - Adds products, categories, collections to a voucher. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - saleCataloguesAdd( - """ID of a sale.""" - id: ID! - - """Fields required to modify catalogue IDs of sale.""" - input: CatalogueInput! - ): SaleAddCatalogues - - """ - Removes products, categories, collections from a sale. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - saleCataloguesRemove( - """ID of a sale.""" - id: ID! - - """Fields required to modify catalogue IDs of sale.""" - input: CatalogueInput! - ): SaleRemoveCatalogues - - """ - Creates/updates translations for a sale. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - saleTranslate( - """Sale ID or SaleTranslatableContent ID.""" - id: ID! - input: NameTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): SaleTranslate - - """ - Manage sale's availability in channels. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - saleChannelListingUpdate( - """ID of a sale to update.""" - id: ID! - - """Fields required to update sale channel listings.""" - input: SaleChannelListingInput! - ): SaleChannelListingUpdate - - """ - Creates a new voucher. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucherCreate( - """Fields required to create a voucher.""" - input: VoucherInput! - ): VoucherCreate - - """ - Deletes a voucher. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucherDelete( - """ID of a voucher to delete.""" - id: ID! - ): VoucherDelete - - """ - Deletes vouchers. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucherBulkDelete( - """List of voucher IDs to delete.""" - ids: [ID!]! - ): VoucherBulkDelete - - """ - Updates a voucher. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucherUpdate( - """ID of a voucher to update.""" - id: ID! - - """Fields required to update a voucher.""" - input: VoucherInput! - ): VoucherUpdate - - """ - Adds products, categories, collections to a voucher. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucherCataloguesAdd( - """ID of a voucher.""" - id: ID! - - """Fields required to modify catalogue IDs of voucher.""" - input: CatalogueInput! - ): VoucherAddCatalogues - - """ - Removes products, categories, collections from a voucher. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucherCataloguesRemove( - """ID of a voucher.""" - id: ID! - - """Fields required to modify catalogue IDs of voucher.""" - input: CatalogueInput! - ): VoucherRemoveCatalogues - - """ - Creates/updates translations for a voucher. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - voucherTranslate( - """Voucher ID or VoucherTranslatableContent ID.""" - id: ID! - input: NameTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): VoucherTranslate - - """ - Manage voucher's availability in channels. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucherChannelListingUpdate( - """ID of a voucher to update.""" - id: ID! - - """Fields required to update voucher channel listings.""" - input: VoucherChannelListingInput! - ): VoucherChannelListingUpdate - - """ - Export products to csv file. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - exportProducts( - """Fields required to export product data.""" - input: ExportProductsInput! - ): ExportProducts - - """ - Export gift cards to csv file. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - exportGiftCards( - """Fields required to export gift cards data.""" - input: ExportGiftCardsInput! - ): ExportGiftCards - - """ - Upload a file. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - fileUpload( - """Represents a file in a multipart request.""" - file: Upload! - ): FileUpload - - """Adds a gift card or a voucher to a checkout.""" - checkoutAddPromoCode( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """Gift card code or voucher code.""" - promoCode: String! - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutAddPromoCode - - """Update billing address in the existing checkout.""" - checkoutBillingAddressUpdate( - """The billing address of the checkout.""" - billingAddress: AddressInput! - - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - - """ - The rules for changing validation for received billing address data. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - validationRules: CheckoutAddressValidationRules - ): CheckoutBillingAddressUpdate - - """ - Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation. - """ - checkoutComplete( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - Fields required to update the checkout metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """Client-side generated data required to finalize the payment.""" - paymentData: JSONString - - """ - URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. - """ - redirectUrl: String - - """ - Determines whether to store the payment source for future usage. - - DEPRECATED: this field will be removed in Saleor 4.0. Use checkoutPaymentCreate for this action. - """ - storeSource: Boolean = false - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutComplete - - """Create a new checkout.""" - checkoutCreate( - """Fields required to create checkout.""" - input: CheckoutCreateInput! - ): CheckoutCreate - - """ - Sets the customer as the owner of the checkout. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. - """ - checkoutCustomerAttach( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - ID of customer to attach to checkout. Requires IMPERSONATE_USER permission when customerId is different than the logged-in user. - """ - customerId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutCustomerAttach - - """ - Removes the user assigned as the owner of the checkout. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. - """ - checkoutCustomerDetach( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutCustomerDetach - - """Updates email address in the existing checkout object.""" - checkoutEmailUpdate( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """email.""" - email: String! - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutEmailUpdate - - """Deletes a CheckoutLine.""" - checkoutLineDelete( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ID of the checkout line to delete.""" - lineId: ID - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutLineDelete @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead.") - - """Deletes checkout lines.""" - checkoutLinesDelete( - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """A list of checkout lines.""" - linesIds: [ID!]! - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutLinesDelete - - """ - Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased. - """ - checkoutLinesAdd( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - A list of checkout lines, each containing information about an item in the checkout. - """ - lines: [CheckoutLineInput!]! - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutLinesAdd - - """Updates checkout line in the existing checkout.""" - checkoutLinesUpdate( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - A list of checkout lines, each containing information about an item in the checkout. - """ - lines: [CheckoutLineUpdateInput!]! - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutLinesUpdate - - """Remove a gift card or a voucher from a checkout.""" - checkoutRemovePromoCode( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """Gift card code or voucher code.""" - promoCode: String - - """Gift card or voucher ID.""" - promoCodeId: ID - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutRemovePromoCode - - """Create a new payment for given checkout.""" - checkoutPaymentCreate( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """Data required to create a new payment.""" - input: PaymentInput! - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutPaymentCreate - - """Update shipping address in the existing checkout.""" - checkoutShippingAddressUpdate( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """The mailing address to where the checkout will be shipped.""" - shippingAddress: AddressInput! - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - - """ - The rules for changing validation for received shipping address data. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - validationRules: CheckoutAddressValidationRules - ): CheckoutShippingAddressUpdate - - """Updates the shipping method of the checkout.""" - checkoutShippingMethodUpdate( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """Shipping method.""" - shippingMethodId: ID! - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutShippingMethodUpdate @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead.") - - """ - Updates the delivery method (shipping method or pick up point) of the checkout. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - checkoutDeliveryMethodUpdate( - """Delivery Method ID (`Warehouse` ID or `ShippingMethod` ID).""" - deliveryMethodId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutDeliveryMethodUpdate - - """Update language code in the existing checkout.""" - checkoutLanguageCodeUpdate( - """ - The ID of the checkout. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - checkoutId: ID - - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """New language code.""" - languageCode: LanguageCodeEnum! - - """ - Checkout token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): CheckoutLanguageCodeUpdate - - """ - Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - orderCreateFromCheckout( - """ID of a checkout that will be converted to an order.""" - id: ID! - - """ - Fields required to update the checkout metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the checkout private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] - - """ - Determines if checkout should be removed after creating an order. Default true. - """ - removeCheckout: Boolean = true - ): OrderCreateFromCheckout - - """ - Creates new channel. - - Requires one of the following permissions: MANAGE_CHANNELS. - """ - channelCreate( - """Fields required to create channel.""" - input: ChannelCreateInput! - ): ChannelCreate - - """ - Update a channel. - - Requires one of the following permissions: MANAGE_CHANNELS. - """ - channelUpdate( - """ID of a channel to update.""" - id: ID! - - """Fields required to update a channel.""" - input: ChannelUpdateInput! - ): ChannelUpdate - - """ - Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. - - Requires one of the following permissions: MANAGE_CHANNELS. - """ - channelDelete( - """ID of a channel to delete.""" - id: ID! - - """Fields required to delete a channel.""" - input: ChannelDeleteInput - ): ChannelDelete - - """ - Activate a channel. - - Requires one of the following permissions: MANAGE_CHANNELS. - """ - channelActivate( - """ID of the channel to activate.""" - id: ID! - ): ChannelActivate - - """ - Deactivate a channel. - - Requires one of the following permissions: MANAGE_CHANNELS. - """ - channelDeactivate( - """ID of the channel to deactivate.""" - id: ID! - ): ChannelDeactivate - - """ - Reorder the warehouses of a channel. - - Added in Saleor 3.7. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_CHANNELS. - """ - channelReorderWarehouses( - """ID of a channel.""" - channelId: ID! - - """The list of reordering operations for the given channel warehouses.""" - moves: [ReorderInput!]! - ): ChannelReorderWarehouses - - """Creates an attribute.""" - attributeCreate( - """Fields required to create an attribute.""" - input: AttributeCreateInput! - ): AttributeCreate - - """ - Deletes an attribute. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - attributeDelete( - """ - External ID of an attribute to delete. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of an attribute to delete.""" - id: ID - ): AttributeDelete - - """ - Updates attribute. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - attributeUpdate( - """ - External ID of an attribute to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of an attribute to update.""" - id: ID - - """Fields required to update an attribute.""" - input: AttributeUpdateInput! - ): AttributeUpdate - - """ - Creates/updates translations for an attribute. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - attributeTranslate( - """Attribute ID or AttributeTranslatableContent ID.""" - id: ID! - input: NameTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): AttributeTranslate - - """ - Deletes attributes. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - attributeBulkDelete( - """List of attribute IDs to delete.""" - ids: [ID!]! - ): AttributeBulkDelete - - """ - Deletes values of attributes. - - Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - """ - attributeValueBulkDelete( - """List of attribute value IDs to delete.""" - ids: [ID!]! - ): AttributeValueBulkDelete - - """ - Creates a value for an attribute. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - attributeValueCreate( - """Attribute to which value will be assigned.""" - attribute: ID! - - """Fields required to create an AttributeValue.""" - input: AttributeValueCreateInput! - ): AttributeValueCreate - - """ - Deletes a value of an attribute. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - attributeValueDelete( - """ - External ID of a value to delete. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a value to delete.""" - id: ID - ): AttributeValueDelete - - """ - Updates value of an attribute. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - attributeValueUpdate( - """ - External ID of an AttributeValue to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of an AttributeValue to update.""" - id: ID - - """Fields required to update an AttributeValue.""" - input: AttributeValueUpdateInput! - ): AttributeValueUpdate - - """ - Creates/updates translations for an attribute value. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - attributeValueTranslate( - """AttributeValue ID or AttributeValueTranslatableContent ID.""" - id: ID! - input: AttributeValueTranslationInput! - - """Translation language code.""" - languageCode: LanguageCodeEnum! - ): AttributeValueTranslate - - """ - Reorder the values of an attribute. - - Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - """ - attributeReorderValues( - """ID of an attribute.""" - attributeId: ID! - - """The list of reordering operations for given attribute values.""" - moves: [ReorderInput!]! - ): AttributeReorderValues - - """ - Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. - """ - appCreate( - """Fields required to create a new app.""" - input: AppInput! - ): AppCreate - - """ - Updates an existing app. - - Requires one of the following permissions: MANAGE_APPS. - """ - appUpdate( - """ID of an app to update.""" - id: ID! - - """Fields required to update an existing app.""" - input: AppInput! - ): AppUpdate - - """ - Deletes an app. - - Requires one of the following permissions: MANAGE_APPS. - """ - appDelete( - """ID of an app to delete.""" - id: ID! - ): AppDelete - - """ - Creates a new token. - - Requires one of the following permissions: MANAGE_APPS. - """ - appTokenCreate( - """Fields required to create a new auth token.""" - input: AppTokenInput! - ): AppTokenCreate - - """ - Deletes an authentication token assigned to app. - - Requires one of the following permissions: MANAGE_APPS. - """ - appTokenDelete( - """ID of an auth token to delete.""" - id: ID! - ): AppTokenDelete - - """Verify provided app token.""" - appTokenVerify( - """App token to verify.""" - token: String! - ): AppTokenVerify - - """ - Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. - """ - appInstall( - """Fields required to install a new app.""" - input: AppInstallInput! - ): AppInstall - - """ - Retry failed installation of new app. - - Requires one of the following permissions: MANAGE_APPS. - """ - appRetryInstall( - """Determine if app will be set active or not.""" - activateAfterInstallation: Boolean = true - - """ID of failed installation.""" - id: ID! - ): AppRetryInstall - - """ - Delete failed installation. - - Requires one of the following permissions: MANAGE_APPS. - """ - appDeleteFailedInstallation( - """ID of failed installation to delete.""" - id: ID! - ): AppDeleteFailedInstallation - - """ - Fetch and validate manifest. - - Requires one of the following permissions: MANAGE_APPS. - """ - appFetchManifest(manifestUrl: String!): AppFetchManifest - - """ - Activate the app. - - Requires one of the following permissions: MANAGE_APPS. - """ - appActivate( - """ID of app to activate.""" - id: ID! - ): AppActivate - - """ - Deactivate the app. - - Requires one of the following permissions: MANAGE_APPS. - """ - appDeactivate( - """ID of app to deactivate.""" - id: ID! - ): AppDeactivate - - """Create JWT token.""" - tokenCreate( - """ - The audience that will be included to JWT tokens with prefix `custom:`. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - audience: String - - """Email of a user.""" - email: String! - - """Password of a user.""" - password: String! - ): CreateToken - - """ - Refresh JWT token. Mutation tries to take refreshToken from the input.If it fails it will try to take refreshToken from the http-only cookie -refreshToken. csrfToken is required when refreshToken is provided as a cookie. - """ - tokenRefresh( - """ - CSRF token required to refresh token. This argument is required when refreshToken is provided as a cookie. - """ - csrfToken: String - - """Refresh token.""" - refreshToken: String - ): RefreshToken - - """Verify JWT token.""" - tokenVerify( - """JWT token to validate.""" - token: String! - ): VerifyToken - - """ - Deactivate all JWT tokens of the currently authenticated user. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - tokensDeactivateAll: DeactivateAllUserTokens - - """Prepare external authentication url for user by custom plugin.""" - externalAuthenticationUrl( - """The data required by plugin to create external authentication url.""" - input: JSONString! - - """The ID of the authentication plugin.""" - pluginId: String! - ): ExternalAuthenticationUrl - - """Obtain external access tokens for user by custom plugin.""" - externalObtainAccessTokens( - """The data required by plugin to create authentication data.""" - input: JSONString! - - """The ID of the authentication plugin.""" - pluginId: String! - ): ExternalObtainAccessTokens - - """Refresh user's access by custom plugin.""" - externalRefresh( - """The data required by plugin to proceed the refresh process.""" - input: JSONString! - - """The ID of the authentication plugin.""" - pluginId: String! - ): ExternalRefresh - - """Logout user by custom plugin.""" - externalLogout( - """The data required by plugin to proceed the logout process.""" - input: JSONString! - - """The ID of the authentication plugin.""" - pluginId: String! - ): ExternalLogout - - """Verify external authentication data by plugin.""" - externalVerify( - """The data required by plugin to proceed the verification.""" - input: JSONString! - - """The ID of the authentication plugin.""" - pluginId: String! - ): ExternalVerify - - """Sends an email with the account password modification link.""" - requestPasswordReset( - """ - Slug of a channel which will be used for notify user. Optional when only one channel exists. - """ - channel: String - - """Email of the user that will be used for password recovery.""" - email: String! - - """ - URL of a view where users should be redirected to reset the password. URL in RFC 1808 format. - """ - redirectUrl: String! - ): RequestPasswordReset - - """Confirm user account with token sent by email during registration.""" - confirmAccount( - """E-mail of the user performing account confirmation.""" - email: String! - - """A one-time token required to confirm the account.""" - token: String! - ): ConfirmAccount - - """ - Sets the user's password from the token sent by email using the RequestPasswordReset mutation. - """ - setPassword( - """Email of a user.""" - email: String! - - """Password of a user.""" - password: String! - - """A one-time token required to set the password.""" - token: String! - ): SetPassword - - """ - Change the password of the logged in user. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - passwordChange( - """New user password.""" - newPassword: String! - - """Current user password.""" - oldPassword: String! - ): PasswordChange - - """ - Request email change of the logged in user. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - requestEmailChange( - """ - Slug of a channel which will be used to notify users. Optional when only one channel exists. - """ - channel: String - - """New user email.""" - newEmail: String! - - """User password.""" - password: String! - - """ - URL of a view where users should be redirected to update the email address. URL in RFC 1808 format. - """ - redirectUrl: String! - ): RequestEmailChange - - """ - Confirm the email change of the logged-in user. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - confirmEmailChange( - """ - Slug of a channel which will be used to notify users. Optional when only one channel exists. - """ - channel: String - - """A one-time token required to change the email.""" - token: String! - ): ConfirmEmailChange - - """ - Create a new address for the customer. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - accountAddressCreate( - """Fields required to create address.""" - input: AddressInput! - - """ - A type of address. If provided, the new address will be automatically assigned as the customer's default address of that type. - """ - type: AddressTypeEnum - ): AccountAddressCreate - - """ - Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. - """ - accountAddressUpdate( - """ID of the address to update.""" - id: ID! - - """Fields required to update the address.""" - input: AddressInput! - ): AccountAddressUpdate - - """ - Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. - """ - accountAddressDelete( - """ID of the address to delete.""" - id: ID! - ): AccountAddressDelete - - """ - Sets a default address for the authenticated user. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - accountSetDefaultAddress( - """ID of the address to set as default.""" - id: ID! - - """The type of address.""" - type: AddressTypeEnum! - ): AccountSetDefaultAddress - - """Register a new user.""" - accountRegister( - """Fields required to create a user.""" - input: AccountRegisterInput! - ): AccountRegister - - """ - Updates the account of the logged-in user. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - accountUpdate( - """Fields required to update the account of the logged-in user.""" - input: AccountInput! - ): AccountUpdate - - """ - Sends an email with the account removal link for the logged-in user. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - accountRequestDeletion( - """ - Slug of a channel which will be used to notify users. Optional when only one channel exists. - """ - channel: String - - """ - URL of a view where users should be redirected to delete their account. URL in RFC 1808 format. - """ - redirectUrl: String! - ): AccountRequestDeletion - - """ - Remove user account. - - Requires one of the following permissions: AUTHENTICATED_USER. - """ - accountDelete( - """ - A one-time token required to remove account. Sent by email using AccountRequestDeletion mutation. - """ - token: String! - ): AccountDelete - - """ - Creates user address. - - Requires one of the following permissions: MANAGE_USERS. - """ - addressCreate( - """Fields required to create address.""" - input: AddressInput! - - """ID of a user to create address for.""" - userId: ID! - ): AddressCreate - - """ - Updates an address. - - Requires one of the following permissions: MANAGE_USERS. - """ - addressUpdate( - """ID of the address to update.""" - id: ID! - - """Fields required to update the address.""" - input: AddressInput! - ): AddressUpdate - - """ - Deletes an address. - - Requires one of the following permissions: MANAGE_USERS. - """ - addressDelete( - """ID of the address to delete.""" - id: ID! - ): AddressDelete - - """ - Sets a default address for the given user. - - Requires one of the following permissions: MANAGE_USERS. - """ - addressSetDefault( - """ID of the address.""" - addressId: ID! - - """The type of address.""" - type: AddressTypeEnum! - - """ID of the user to change the address for.""" - userId: ID! - ): AddressSetDefault - - """ - Creates a new customer. - - Requires one of the following permissions: MANAGE_USERS. - """ - customerCreate( - """Fields required to create a customer.""" - input: UserCreateInput! - ): CustomerCreate - - """ - Updates an existing customer. - - Requires one of the following permissions: MANAGE_USERS. - """ - customerUpdate( - """ - External ID of a customer to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a customer to update.""" - id: ID - - """Fields required to update a customer.""" - input: CustomerInput! - ): CustomerUpdate - - """ - Deletes a customer. - - Requires one of the following permissions: MANAGE_USERS. - """ - customerDelete( - """ - External ID of a customer to update. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of a customer to delete.""" - id: ID - ): CustomerDelete - - """ - Deletes customers. - - Requires one of the following permissions: MANAGE_USERS. - """ - customerBulkDelete( - """List of user IDs to delete.""" - ids: [ID!]! - ): CustomerBulkDelete - - """ - Creates a new staff user. Apps are not allowed to perform this mutation. - - Requires one of the following permissions: MANAGE_STAFF. - """ - staffCreate( - """Fields required to create a staff user.""" - input: StaffCreateInput! - ): StaffCreate - - """ - Updates an existing staff user. Apps are not allowed to perform this mutation. - - Requires one of the following permissions: MANAGE_STAFF. - """ - staffUpdate( - """ID of a staff user to update.""" - id: ID! - - """Fields required to update a staff user.""" - input: StaffUpdateInput! - ): StaffUpdate - - """ - Deletes a staff user. Apps are not allowed to perform this mutation. - - Requires one of the following permissions: MANAGE_STAFF. - """ - staffDelete( - """ID of a staff user to delete.""" - id: ID! - ): StaffDelete - - """ - Deletes staff users. Apps are not allowed to perform this mutation. - - Requires one of the following permissions: MANAGE_STAFF. - """ - staffBulkDelete( - """List of user IDs to delete.""" - ids: [ID!]! - ): StaffBulkDelete - - """ - Create a user avatar. Only for staff members. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER. - """ - userAvatarUpdate( - """Represents an image file in a multipart request.""" - image: Upload! - ): UserAvatarUpdate - - """ - Deletes a user avatar. Only for staff members. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER. - """ - userAvatarDelete: UserAvatarDelete - - """ - Activate or deactivate users. - - Requires one of the following permissions: MANAGE_USERS. - """ - userBulkSetActive( - """List of user IDs to (de)activate).""" - ids: [ID!]! - - """Determine if users will be set active or not.""" - isActive: Boolean! - ): UserBulkSetActive - - """ - Create new permission group. Apps are not allowed to perform this mutation. - - Requires one of the following permissions: MANAGE_STAFF. - """ - permissionGroupCreate( - """Input fields to create permission group.""" - input: PermissionGroupCreateInput! - ): PermissionGroupCreate - - """ - Update permission group. Apps are not allowed to perform this mutation. - - Requires one of the following permissions: MANAGE_STAFF. - """ - permissionGroupUpdate( - """ID of the group to update.""" - id: ID! - - """Input fields to create permission group.""" - input: PermissionGroupUpdateInput! - ): PermissionGroupUpdate - - """ - Delete permission group. Apps are not allowed to perform this mutation. - - Requires one of the following permissions: MANAGE_STAFF. - """ - permissionGroupDelete( - """ID of the group to delete.""" - id: ID! - ): PermissionGroupDelete -} - -input NameTranslationInput { - name: String -} - -enum NavigationType { - """Main storefront navigation.""" - MAIN - - """Secondary storefront navigation.""" - SECONDARY -} - -"""An object with an ID""" -interface Node { - """The ID of the object.""" - id: ID! -} - -interface ObjectWithMetadata { - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata -} - -"""Represents an order in the shop.""" -type Order implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - created: DateTime! - updatedAt: DateTime! - status: OrderStatus! - - """ - User who placed the order. This field is set only for orders placed by authenticated users. Can be fetched for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_USERS, MANAGE_ORDERS, OWNER. - """ - user: User - trackingClientId: String! - - """ - Billing address. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. - """ - billingAddress: Address - - """ - Shipping address. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. - """ - shippingAddress: Address - shippingMethodName: String - collectionPointName: String - channel: Channel! - - """List of shipments for the order.""" - fulfillments: [Fulfillment!]! - - """List of order lines.""" - lines: [OrderLine!]! - - """ - List of actions that can be performed in the current state of an order. - """ - actions: [OrderAction!]! - - """Shipping methods that can be used with this order.""" - availableShippingMethods: [ShippingMethod!] @deprecated(reason: "Use `shippingMethods`, this field will be removed in 4.0") - - """Shipping methods related to this order.""" - shippingMethods: [ShippingMethod!]! - - """ - Collection points that can be used for this order. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - availableCollectionPoints: [Warehouse!]! - - """ - List of order invoices. Can be fetched for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. - """ - invoices: [Invoice!]! - - """User-friendly number of an order.""" - number: String! - - """The ID of the order that was the base for this order.""" - original: ID - - """The order origin.""" - origin: OrderOriginEnum! - - """Informs if an order is fully paid.""" - isPaid: Boolean! - - """Internal payment status.""" - paymentStatus: PaymentChargeStatusEnum! - - """User-friendly payment status.""" - paymentStatusDisplay: String! - - """ - The authorize status of the order. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - authorizeStatus: OrderAuthorizeStatusEnum! - - """ - The charge status of the order. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - chargeStatus: OrderChargeStatusEnum! - - """ - Returns True if order has to be exempt from taxes. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - taxExemption: Boolean! - - """ - List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS. - - Added in Saleor 3.4. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - transactions: [TransactionItem!]! - - """List of payments for the order.""" - payments: [Payment!]! - - """Total amount of the order.""" - total: TaxedMoney! - - """Undiscounted total amount of the order.""" - undiscountedTotal: TaxedMoney! - - """Shipping method for this order.""" - shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.") - - """Total price of shipping.""" - shippingPrice: TaxedMoney! - - """The shipping tax rate value.""" - shippingTaxRate: Float! - - """ - Denormalized tax class assigned to the shipping method. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER. - """ - shippingTaxClass: TaxClass - - """ - Denormalized name of the tax class assigned to the shipping method. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - shippingTaxClassName: String - - """ - Denormalized public metadata of the shipping method's tax class. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - shippingTaxClassMetadata: [MetadataItem!]! - - """ - Denormalized private metadata of the shipping method's tax class. Requires staff permissions to access. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - shippingTaxClassPrivateMetadata: [MetadataItem!]! - token: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `id` instead.") - voucher: Voucher - - """List of user gift cards.""" - giftCards: [GiftCard!]! - customerNote: String! - weight: Weight! - redirectUrl: String - - """The sum of line prices not including shipping.""" - subtotal: TaxedMoney! - - """User-friendly order status.""" - statusDisplay: String! - - """ - Informs whether a draft order can be finalized(turned into a regular order). - """ - canFinalize: Boolean! - - """Amount authorized for the order.""" - totalAuthorized: Money! - - """ - Amount captured for the order. This field will be removed in Saleor 4.0.Use `totalCharged` instead - """ - totalCaptured: Money! - - """Amount charged for the order.""" - totalCharged: Money! - - """Amount canceled for the order.""" - totalCanceled: Money! - - """ - List of events associated with the order. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - events: [OrderEvent!]! - - """The difference between the paid and the order total amount.""" - totalBalance: Money! - - """ - Email address of the customer. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. - """ - userEmail: String - - """Returns True, if order requires shipping.""" - isShippingRequired: Boolean! - - """ - The delivery method selected for this order. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - deliveryMethod: DeliveryMethod - languageCode: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. ") - - """Order language code.""" - languageCodeEnum: LanguageCodeEnum! - - """Returns applied discount.""" - discount: Money @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.") - - """Discount name.""" - discountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.") - - """Translated discount name.""" - translatedDiscountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead. ") - - """List of all discounts assigned to the order.""" - discounts: [OrderDiscount!]! - - """List of errors that occurred during order validation.""" - errors: [OrderError!]! - - """ - Determines whether checkout prices should include taxes when displayed in a storefront. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - displayGrossPrices: Boolean! - - """ - External ID of this order. - - Added in Saleor 3.10. - """ - externalReference: String - - """ - List of granted refunds. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - grantedRefunds: [OrderGrantedRefund!]! - - """ - Total amount of granted refund. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - totalGrantedRefund: Money! - - """ - Total refund amount for the order. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - totalRefunded: Money! - - """ - Total amount of ongoing refund requests for the order's transactions. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - totalRefundPending: Money! - - """ - Total amount of ongoing authorize requests for the order's transactions. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - totalAuthorizePending: Money! - - """ - Total amount of ongoing charge requests for the order's transactions. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - totalChargePending: Money! - - """ - Total amount of ongoing cancel requests for the order's transactions. - - Added in Saleor 3.10. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - totalCancelPending: Money! - - """ - The difference amount between granted refund and the amounts that are pending and refunded. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - totalRemainingGrant: Money! -} - -enum OrderAction { - """Represents the capture action.""" - CAPTURE - - """Represents a mark-as-paid action.""" - MARK_AS_PAID - - """Represents a refund action.""" - REFUND - - """Represents a void action.""" - VOID -} - -""" -Adds note to the order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderAddNote { - """Order with the note added.""" - order: Order - - """Order note created.""" - event: OrderEvent - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input OrderAddNoteInput { - """Note message.""" - message: String! -} - -""" -Determine a current authorize status for order. - - We treat the order as fully authorized when the sum of authorized and charged funds - cover the order.total. - We treat the order as partially authorized when the sum of authorized and charged - funds covers only part of the order.total - We treat the order as not authorized when the sum of authorized and charged funds is - 0. - - NONE - the funds are not authorized - PARTIAL - the funds that are authorized or charged don't cover fully the order's - total - FULL - the funds that are authorized or charged fully cover the order's total - -""" -enum OrderAuthorizeStatusEnum { - NONE - PARTIAL - FULL -} - -""" -Cancels orders. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderBulkCancel { - """Returns how many objects were affected.""" - count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Cancel an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderCancel { - """Canceled order.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Event sent when order is canceled. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderCancelled implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -""" -Capture an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderCapture { - """Captured order.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Determine the current charge status for the order. - - We treat the order as overcharged when the charged amount is bigger that order.total - We treat the order as fully charged when the charged amount is equal to order.total. - We treat the order as partially charged when the charged amount covers only part of - the order.total - - NONE - the funds are not charged. - PARTIAL - the funds that are charged don't cover the order's total - FULL - the funds that are charged fully cover the order's total - OVERCHARGED - the charged funds are bigger than order's total - -""" -enum OrderChargeStatusEnum { - NONE - PARTIAL - FULL - OVERCHARGED -} - -""" -Confirms an unconfirmed order by changing status to unfulfilled. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderConfirm { - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Event sent when order is confirmed. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderConfirmed implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -type OrderCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [OrderCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type OrderCountableEdge { - """The item at the end of the edge.""" - node: Order! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderCreateFromCheckout { - """Placed order.""" - order: Order - errors: [OrderCreateFromCheckoutError!]! -} - -type OrderCreateFromCheckoutError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: OrderCreateFromCheckoutErrorCode! - - """List of variant IDs which causes the error.""" - variants: [ID!] - - """List of line Ids which cause the error.""" - lines: [ID!] -} - -"""An enumeration.""" -enum OrderCreateFromCheckoutErrorCode { - GRAPHQL_ERROR - CHECKOUT_NOT_FOUND - CHANNEL_INACTIVE - INSUFFICIENT_STOCK - VOUCHER_NOT_APPLICABLE - GIFT_CARD_NOT_APPLICABLE - TAX_ERROR - SHIPPING_METHOD_NOT_SET - BILLING_ADDRESS_NOT_SET - SHIPPING_ADDRESS_NOT_SET - INVALID_SHIPPING_METHOD - NO_LINES - EMAIL_NOT_SET - UNAVAILABLE_VARIANT_IN_CHANNEL -} - -""" -Event sent when new order is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -enum OrderDirection { - """Specifies an ascending sort order.""" - ASC - - """Specifies a descending sort order.""" - DESC -} - -"""Contains all details related to the applied discount to the order.""" -type OrderDiscount implements Node { - id: ID! - type: OrderDiscountType! - name: String - translatedName: String - - """Type of the discount: fixed or percent""" - valueType: DiscountValueTypeEnum! - - """Value of the discount. Can store fixed value or percent value""" - value: PositiveDecimal! - - """ - Explanation for the applied discount. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - reason: String - - """Returns amount of discount.""" - amount: Money! -} - -""" -Adds discount to the order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderDiscountAdd { - """Order which has been discounted.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input OrderDiscountCommonInput { - """Type of the discount: fixed or percent""" - valueType: DiscountValueTypeEnum! - - """Value of the discount. Can store fixed value or percent value""" - value: PositiveDecimal! - - """Explanation for the applied discount.""" - reason: String -} - -""" -Remove discount from the order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderDiscountDelete { - """Order which has removed discount.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -"""An enumeration.""" -enum OrderDiscountType { - VOUCHER - MANUAL -} - -""" -Update discount for the order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderDiscountUpdate { - """Order which has been discounted.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input OrderDraftFilterInput { - customer: String - created: DateRangeInput - search: String - metadata: [MetadataFilter!] - channels: [ID!] -} - -type OrderError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: OrderErrorCode! - - """Warehouse ID which causes the error.""" - warehouse: ID - - """List of order line IDs that cause the error.""" - orderLines: [ID!] - - """List of product variants that are associated with the error""" - variants: [ID!] - - """A type of address that causes the error.""" - addressType: AddressTypeEnum -} - -"""An enumeration.""" -enum OrderErrorCode { - BILLING_ADDRESS_NOT_SET - CANNOT_CANCEL_FULFILLMENT - CANNOT_CANCEL_ORDER - CANNOT_DELETE - CANNOT_DISCOUNT - CANNOT_REFUND - CANNOT_FULFILL_UNPAID_ORDER - CAPTURE_INACTIVE_PAYMENT - GIFT_CARD_LINE - NOT_EDITABLE - FULFILL_ORDER_LINE - GRAPHQL_ERROR - INVALID - PRODUCT_NOT_PUBLISHED - PRODUCT_UNAVAILABLE_FOR_PURCHASE - NOT_FOUND - ORDER_NO_SHIPPING_ADDRESS - PAYMENT_ERROR - PAYMENT_MISSING - REQUIRED - SHIPPING_METHOD_NOT_APPLICABLE - SHIPPING_METHOD_REQUIRED - TAX_ERROR - UNIQUE - VOID_INACTIVE_PAYMENT - ZERO_QUANTITY - INVALID_QUANTITY - INSUFFICIENT_STOCK - DUPLICATED_INPUT_ITEM - NOT_AVAILABLE_IN_CHANNEL - CHANNEL_INACTIVE -} - -"""History log of the order.""" -type OrderEvent implements Node { - id: ID! - - """Date when event happened at in ISO 8601 format.""" - date: DateTime - - """Order event type.""" - type: OrderEventsEnum - - """User who performed the action.""" - user: User - - """ - App that performed the action. Requires of of the following permissions: MANAGE_APPS, MANAGE_ORDERS, OWNER. - """ - app: App - - """Content of the event.""" - message: String - - """Email of the customer.""" - email: String - - """Type of an email sent to the customer.""" - emailType: OrderEventsEmailsEnum - - """Amount of money.""" - amount: Float - - """The payment reference from the payment provider.""" - paymentId: String - - """The payment gateway of the payment.""" - paymentGateway: String - - """Number of items.""" - quantity: Int - - """Composed ID of the Fulfillment.""" - composedId: String - - """User-friendly number of an order.""" - orderNumber: String - - """Number of an invoice related to the order.""" - invoiceNumber: String - - """List of oversold lines names.""" - oversoldItems: [String!] - - """The concerned lines.""" - lines: [OrderEventOrderLineObject!] - - """The lines fulfilled.""" - fulfilledItems: [FulfillmentLine!] - - """The warehouse were items were restocked.""" - warehouse: Warehouse - - """The transaction reference of captured payment.""" - transactionReference: String - - """Define if shipping costs were included to the refund.""" - shippingCostsIncluded: Boolean - - """The order which is related to this order.""" - relatedOrder: Order - - """The discount applied to the order.""" - discount: OrderEventDiscountObject - - """The status of payment's transaction.""" - status: TransactionEventStatus - - """The reference of payment's transaction.""" - reference: String -} - -type OrderEventCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [OrderEventCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type OrderEventCountableEdge { - """The item at the end of the edge.""" - node: OrderEvent! - - """A cursor for use in pagination.""" - cursor: String! -} - -type OrderEventDiscountObject { - """Type of the discount: fixed or percent.""" - valueType: DiscountValueTypeEnum! - - """Value of the discount. Can store fixed value or percent value.""" - value: PositiveDecimal! - - """Explanation for the applied discount.""" - reason: String - - """Returns amount of discount.""" - amount: Money - - """Type of the discount: fixed or percent.""" - oldValueType: DiscountValueTypeEnum - - """Value of the discount. Can store fixed value or percent value.""" - oldValue: PositiveDecimal - - """Returns amount of discount.""" - oldAmount: Money -} - -type OrderEventOrderLineObject { - """The variant quantity.""" - quantity: Int - - """The order line.""" - orderLine: OrderLine - - """The variant name.""" - itemName: String - - """The discount applied to the order line.""" - discount: OrderEventDiscountObject -} - -"""An enumeration.""" -enum OrderEventsEmailsEnum { - PAYMENT_CONFIRMATION - CONFIRMED - SHIPPING_CONFIRMATION - TRACKING_UPDATED - ORDER_CONFIRMATION - ORDER_CANCEL - ORDER_REFUND - FULFILLMENT_CONFIRMATION - DIGITAL_LINKS -} - -"""An enumeration.""" -enum OrderEventsEnum { - DRAFT_CREATED - DRAFT_CREATED_FROM_REPLACE - ADDED_PRODUCTS - REMOVED_PRODUCTS - PLACED - PLACED_FROM_DRAFT - OVERSOLD_ITEMS - CANCELED - ORDER_MARKED_AS_PAID - ORDER_FULLY_PAID - ORDER_REPLACEMENT_CREATED - ORDER_DISCOUNT_ADDED - ORDER_DISCOUNT_AUTOMATICALLY_UPDATED - ORDER_DISCOUNT_UPDATED - ORDER_DISCOUNT_DELETED - ORDER_LINE_DISCOUNT_UPDATED - ORDER_LINE_DISCOUNT_REMOVED - ORDER_LINE_PRODUCT_DELETED - ORDER_LINE_VARIANT_DELETED - UPDATED_ADDRESS - EMAIL_SENT - CONFIRMED - PAYMENT_AUTHORIZED - PAYMENT_CAPTURED - EXTERNAL_SERVICE_NOTIFICATION - PAYMENT_REFUNDED - PAYMENT_VOIDED - PAYMENT_FAILED - TRANSACTION_EVENT - TRANSACTION_CAPTURE_REQUESTED - TRANSACTION_REFUND_REQUESTED - TRANSACTION_VOID_REQUESTED - INVOICE_REQUESTED - INVOICE_GENERATED - INVOICE_UPDATED - INVOICE_SENT - FULFILLMENT_CANCELED - FULFILLMENT_RESTOCKED_ITEMS - FULFILLMENT_FULFILLED_ITEMS - FULFILLMENT_REFUNDED - FULFILLMENT_RETURNED - FULFILLMENT_REPLACED - FULFILLMENT_AWAITS_APPROVAL - TRACKING_UPDATED - NOTE_ADDED - OTHER -} - -input OrderFilterInput { - paymentStatus: [PaymentChargeStatusEnum!] - status: [OrderStatusFilter!] - customer: String - created: DateRangeInput - search: String - metadata: [MetadataFilter!] - channels: [ID!] - authorizeStatus: [OrderAuthorizeStatusEnum!] - chargeStatus: [OrderChargeStatusEnum!] - updatedAt: DateTimeRangeInput - isClickAndCollect: Boolean - isPreorder: Boolean - ids: [ID!] - giftCardUsed: Boolean - giftCardBought: Boolean - numbers: [String!] -} - -""" -Filter shipping methods for order. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderFilterShippingMethods implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order - - """ - Shipping methods that can be used with this checkout. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - shippingMethods: [ShippingMethod!] -} - -""" -Creates new fulfillments for an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderFulfill { - """List of created fulfillments.""" - fulfillments: [Fulfillment!] - - """Fulfilled order.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input OrderFulfillInput { - """List of items informing how to fulfill the order.""" - lines: [OrderFulfillLineInput!]! - - """If true, send an email notification to the customer.""" - notifyCustomer: Boolean - - """If true, then allow proceed fulfillment when stock is exceeded.""" - allowStockToBeExceeded: Boolean = false - - """ - Fulfillment tracking number. - - Added in Saleor 3.6. - """ - trackingNumber: String -} - -input OrderFulfillLineInput { - """The ID of the order line.""" - orderLineId: ID - - """List of stock items to create.""" - stocks: [OrderFulfillStockInput!]! -} - -input OrderFulfillStockInput { - """The number of line items to be fulfilled from given warehouse.""" - quantity: Int! - - """ID of the warehouse from which the item will be fulfilled.""" - warehouse: ID! -} - -""" -Event sent when order is fulfilled. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderFulfilled implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -""" -Event sent when order is fully paid. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderFullyPaid implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -""" -Adds granted refund to the order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderGrantRefundCreate { - """Order which has assigned new grant refund.""" - order: Order - - """Created granted refund.""" - grantedRefund: OrderGrantedRefund - errors: [OrderGrantRefundCreateError!]! -} - -type OrderGrantRefundCreateError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: OrderGrantRefundCreateErrorCode! -} - -"""An enumeration.""" -enum OrderGrantRefundCreateErrorCode { - GRAPHQL_ERROR - NOT_FOUND -} - -input OrderGrantRefundCreateInput { - """Amount of the granted refund.""" - amount: Decimal! - - """Reason of the granted refund.""" - reason: String -} - -""" -Updates granted refund. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderGrantRefundUpdate { - """Order which has assigned updated grant refund.""" - order: Order - - """Created granted refund.""" - grantedRefund: OrderGrantedRefund - errors: [OrderGrantRefundUpdateError!]! - orderGrantedRefund: OrderGrantedRefund -} - -type OrderGrantRefundUpdateError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: OrderGrantRefundUpdateErrorCode! -} - -"""An enumeration.""" -enum OrderGrantRefundUpdateErrorCode { - GRAPHQL_ERROR - NOT_FOUND - REQUIRED -} - -input OrderGrantRefundUpdateInput { - """Amount of the granted refund.""" - amount: Decimal - - """Reason of the granted refund.""" - reason: String -} - -""" -The details of granted refund. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderGrantedRefund { - id: ID! - - """Time of creation.""" - createdAt: DateTime! - - """Time of last update.""" - updatedAt: DateTime! - - """Refund amount.""" - amount: Money! - - """Reason of the refund.""" - reason: String - - """ - User who performed the action. Requires of of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER. - """ - user: User - - """App that performed the action.""" - app: App -} - -"""Represents order line of particular order.""" -type OrderLine implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - productName: String! - variantName: String! - productSku: String - productVariantId: String - isShippingRequired: Boolean! - quantity: Int! - quantityFulfilled: Int! - unitDiscountReason: String - taxRate: Float! - digitalContentUrl: DigitalContentUrl - thumbnail( - """ - Size of the image. If not provided, the original image will be returned. - """ - size: Int - - """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - format: ThumbnailFormatEnum - ): Image - - """Price of the single item in the order line.""" - unitPrice: TaxedMoney! - - """ - Price of the single item in the order line without applied an order line discount. - """ - undiscountedUnitPrice: TaxedMoney! - - """The discount applied to the single order line.""" - unitDiscount: Money! - - """Value of the discount. Can store fixed value or percent value""" - unitDiscountValue: PositiveDecimal! - - """Price of the order line.""" - totalPrice: TaxedMoney! - - """ - A purchased product variant. Note: this field may be null if the variant has been removed from stock at all. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - variant: ProductVariant - - """Product name in the customer's language""" - translatedProductName: String! - - """Variant name in the customer's language""" - translatedVariantName: String! - - """ - List of allocations across warehouses. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - """ - allocations: [Allocation!] - - """ - A quantity of items remaining to be fulfilled. - - Added in Saleor 3.1. - """ - quantityToFulfill: Int! - - """Type of the discount: fixed or percent""" - unitDiscountType: DiscountValueTypeEnum - - """ - Denormalized tax class of the product in this order line. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER. - """ - taxClass: TaxClass - - """ - Denormalized name of the tax class. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - taxClassName: String - - """ - Denormalized public metadata of the tax class. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - taxClassMetadata: [MetadataItem!]! - - """ - Denormalized private metadata of the tax class. Requires staff permissions to access. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - taxClassPrivateMetadata: [MetadataItem!]! -} - -input OrderLineCreateInput { - """Number of variant items ordered.""" - quantity: Int! - - """Product variant ID.""" - variantId: ID! - - """ - Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - forceNewLine: Boolean = false -} - -""" -Deletes an order line from an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderLineDelete { - """A related order.""" - order: Order - - """An order line that was deleted.""" - orderLine: OrderLine - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Remove discount applied to the order line. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderLineDiscountRemove { - """Order line which has removed discount.""" - orderLine: OrderLine - - """Order which is related to line which has removed discount.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Update discount for the order line. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderLineDiscountUpdate { - """Order line which has been discounted.""" - orderLine: OrderLine - - """Order which is related to the discounted line.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input OrderLineInput { - """Number of variant items ordered.""" - quantity: Int! -} - -""" -Updates an order line of an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderLineUpdate { - """Related order.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! - orderLine: OrderLine -} - -""" -Create order lines for an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderLinesCreate { - """Related order.""" - order: Order - - """List of added order lines.""" - orderLines: [OrderLine!] - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Mark order as manually paid. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderMarkAsPaid { - """Order marked as paid.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -Event sent when order metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -"""An enumeration.""" -enum OrderOriginEnum { - CHECKOUT - DRAFT - REISSUE -} - -""" -Refund an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderRefund { - """A refunded order.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input OrderRefundFulfillmentLineInput { - """The ID of the fulfillment line to refund.""" - fulfillmentLineId: ID! - - """The number of items to be refunded.""" - quantity: Int! -} - -input OrderRefundLineInput { - """The ID of the order line to refund.""" - orderLineId: ID! - - """The number of items to be refunded.""" - quantity: Int! -} - -input OrderRefundProductsInput { - """List of unfulfilled lines to refund.""" - orderLines: [OrderRefundLineInput!] - - """List of fulfilled lines to refund.""" - fulfillmentLines: [OrderRefundFulfillmentLineInput!] - - """The total amount of refund when the value is provided manually.""" - amountToRefund: PositiveDecimal - - """ - If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. - """ - includeShippingCosts: Boolean = false -} - -input OrderReturnFulfillmentLineInput { - """The ID of the fulfillment line to return.""" - fulfillmentLineId: ID! - - """The number of items to be returned.""" - quantity: Int! - - """Determines, if the line should be added to replace order.""" - replace: Boolean = false -} - -input OrderReturnLineInput { - """The ID of the order line to return.""" - orderLineId: ID! - - """The number of items to be returned.""" - quantity: Int! - - """Determines, if the line should be added to replace order.""" - replace: Boolean = false -} - -input OrderReturnProductsInput { - """List of unfulfilled lines to return.""" - orderLines: [OrderReturnLineInput!] - - """List of fulfilled lines to return.""" - fulfillmentLines: [OrderReturnFulfillmentLineInput!] - - """The total amount of refund when the value is provided manually.""" - amountToRefund: PositiveDecimal - - """ - If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. - """ - includeShippingCosts: Boolean = false - - """If true, Saleor will call refund action for all lines.""" - refund: Boolean = false -} - -"""Order related settings from site settings.""" -type OrderSettings { - automaticallyConfirmAllNewOrders: Boolean! - automaticallyFulfillNonShippableGiftCard: Boolean! -} - -type OrderSettingsError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: OrderSettingsErrorCode! -} - -"""An enumeration.""" -enum OrderSettingsErrorCode { - INVALID -} - -""" -Update shop order settings. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderSettingsUpdate { - """Order settings.""" - orderSettings: OrderSettings - orderSettingsErrors: [OrderSettingsError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderSettingsError!]! -} - -input OrderSettingsUpdateInput { - """ - When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. - """ - automaticallyConfirmAllNewOrders: Boolean - - """ - When enabled, all non-shippable gift card orders will be fulfilled automatically. - """ - automaticallyFulfillNonShippableGiftCard: Boolean -} - -enum OrderSortField { - """Sort orders by number.""" - NUMBER - - """ - Sort orders by rank. Note: This option is available only with the `search` filter. - """ - RANK - - """ - Sort orders by creation date. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - CREATION_DATE - - """ - Sort orders by creation date. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - CREATED_AT - - """Sort orders by last modified at.""" - LAST_MODIFIED_AT - - """Sort orders by customer.""" - CUSTOMER - - """Sort orders by payment.""" - PAYMENT - - """Sort orders by fulfillment status.""" - FULFILLMENT_STATUS -} - -input OrderSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort orders by the selected field.""" - field: OrderSortField! -} - -"""An enumeration.""" -enum OrderStatus { - DRAFT - UNCONFIRMED - UNFULFILLED - PARTIALLY_FULFILLED - PARTIALLY_RETURNED - RETURNED - FULFILLED - CANCELED -} - -enum OrderStatusFilter { - READY_TO_FULFILL - READY_TO_CAPTURE - UNFULFILLED - UNCONFIRMED - PARTIALLY_FULFILLED - FULFILLED - CANCELED -} - -""" -Updates an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderUpdate { - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! - order: Order -} - -input OrderUpdateInput { - """Billing address of the customer.""" - billingAddress: AddressInput - - """Email address of the customer.""" - userEmail: String - - """Shipping address of the customer.""" - shippingAddress: AddressInput - - """ - External ID of this order. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderUpdateShipping { - """Order with updated shipping method.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -input OrderUpdateShippingInput { - """ - ID of the selected shipping method, pass null to remove currently assigned shipping method. - """ - shippingMethod: ID -} - -""" -Event sent when order is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type OrderUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The order the event relates to.""" - order: Order -} - -""" -Void an order. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type OrderVoid { - """A voided order.""" - order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [OrderError!]! -} - -""" -A static page that can be manually added by a shop operator through the dashboard. -""" -type Page implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - seoTitle: String - seoDescription: String - title: String! - - """ - Content of the page. - - Rich text format. For reference see https://editorjs.io/ - """ - content: JSONString - publicationDate: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date.") - - """ - The page publication date. - - Added in Saleor 3.3. - """ - publishedAt: DateTime - isPublished: Boolean! - slug: String! - pageType: PageType! - created: DateTime! - - """ - Content of the page. - - Rich text format. For reference see https://editorjs.io/ - """ - contentJson: JSONString! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.") - - """Returns translated page fields for the given language code.""" - translation( - """A language code to return the translation for page.""" - languageCode: LanguageCodeEnum! - ): PageTranslation - - """List of attributes assigned to this product.""" - attributes: [SelectedAttribute!]! -} - -""" -Assign attributes to a given page type. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type PageAttributeAssign { - """The updated page type.""" - pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! -} - -""" -Unassign attributes from a given page type. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type PageAttributeUnassign { - """The updated page type.""" - pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! -} - -""" -Deletes pages. - -Requires one of the following permissions: MANAGE_PAGES. -""" -type PageBulkDelete { - """Returns how many objects were affected.""" - count: Int! - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! -} - -""" -Publish pages. - -Requires one of the following permissions: MANAGE_PAGES. -""" -type PageBulkPublish { - """Returns how many objects were affected.""" - count: Int! - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! -} - -type PageCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [PageCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type PageCountableEdge { - """The item at the end of the edge.""" - node: Page! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new page. - -Requires one of the following permissions: MANAGE_PAGES. -""" -type PageCreate { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! - page: Page -} - -input PageCreateInput { - """Page internal name.""" - slug: String - - """Page title.""" - title: String - - """ - Page content. - - Rich text format. For reference see https://editorjs.io/ - """ - content: JSONString - - """List of attributes.""" - attributes: [AttributeValueInput!] - - """Determines if page is visible in the storefront.""" - isPublished: Boolean - - """ - Publication date. ISO 8601 standard. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. - """ - publicationDate: String - - """ - Publication date time. ISO 8601 standard. - - Added in Saleor 3.3. - """ - publishedAt: DateTime - - """Search engine optimization fields.""" - seo: SeoInput - - """ID of the page type that page belongs to.""" - pageType: ID! -} - -""" -Event sent when new page is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PageCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The page the event relates to.""" - page: Page -} - -""" -Deletes a page. - -Requires one of the following permissions: MANAGE_PAGES. -""" -type PageDelete { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! - page: Page -} - -""" -Event sent when page is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PageDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The page the event relates to.""" - page: Page -} - -type PageError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: PageErrorCode! - - """List of attributes IDs which causes the error.""" - attributes: [ID!] - - """List of attribute values IDs which causes the error.""" - values: [ID!] -} - -"""An enumeration.""" -enum PageErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE - DUPLICATED_INPUT_ITEM - ATTRIBUTE_ALREADY_ASSIGNED -} - -input PageFilterInput { - search: String - metadata: [MetadataFilter!] - pageTypes: [ID!] - ids: [ID!] - slugs: [String!] -} - -""" -The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. -""" -type PageInfo { - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! - - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! - - """When paginating backwards, the cursor to continue.""" - startCursor: String - - """When paginating forwards, the cursor to continue.""" - endCursor: String -} - -input PageInput { - """Page internal name.""" - slug: String - - """Page title.""" - title: String - - """ - Page content. - - Rich text format. For reference see https://editorjs.io/ - """ - content: JSONString - - """List of attributes.""" - attributes: [AttributeValueInput!] - - """Determines if page is visible in the storefront.""" - isPublished: Boolean - - """ - Publication date. ISO 8601 standard. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. - """ - publicationDate: String - - """ - Publication date time. ISO 8601 standard. - - Added in Saleor 3.3. - """ - publishedAt: DateTime - - """Search engine optimization fields.""" - seo: SeoInput -} - -""" -Reorder page attribute values. - -Requires one of the following permissions: MANAGE_PAGES. -""" -type PageReorderAttributeValues { - """Page from which attribute values are reordered.""" - page: Page - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! -} - -enum PageSortField { - """Sort pages by title.""" - TITLE - - """Sort pages by slug.""" - SLUG - - """Sort pages by visibility.""" - VISIBILITY - - """ - Sort pages by creation date. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - CREATION_DATE - - """ - Sort pages by publication date. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - PUBLICATION_DATE - - """ - Sort pages by publication date. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - PUBLISHED_AT - - """ - Sort pages by creation date. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - CREATED_AT -} - -input PageSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort pages by the selected field.""" - field: PageSortField! -} - -type PageTranslatableContent implements Node { - id: ID! - seoTitle: String - seoDescription: String - title: String! - - """ - Content of the page. - - Rich text format. For reference see https://editorjs.io/ - """ - content: JSONString - - """ - Content of the page. - - Rich text format. For reference see https://editorjs.io/ - """ - contentJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.") - - """Returns translated page fields for the given language code.""" - translation( - """A language code to return the translation for page.""" - languageCode: LanguageCodeEnum! - ): PageTranslation - - """ - A static page that can be manually added by a shop operator through the dashboard. - """ - page: Page @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") - - """List of page content attribute values that can be translated.""" - attributeValues: [AttributeValueTranslatableContent!]! -} - -""" -Creates/updates translations for a page. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type PageTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - page: PageTranslatableContent -} - -type PageTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - seoTitle: String - seoDescription: String - title: String - - """ - Translated content of the page. - - Rich text format. For reference see https://editorjs.io/ - """ - content: JSONString - - """ - Translated description of the page. - - Rich text format. For reference see https://editorjs.io/ - """ - contentJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.") -} - -input PageTranslationInput { - seoTitle: String - seoDescription: String - title: String - - """ - Translated page content. - - Rich text format. For reference see https://editorjs.io/ - """ - content: JSONString -} - -""" -Represents a type of page. It defines what attributes are available to pages of this type. -""" -type PageType implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String! - slug: String! - - """Page attributes of that page type.""" - attributes: [Attribute!] - - """ - Attributes that can be assigned to the page type. - - Requires one of the following permissions: MANAGE_PAGES. - """ - availableAttributes( - filter: AttributeFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): AttributeCountableConnection - - """ - Whether page type has pages assigned. - - Requires one of the following permissions: MANAGE_PAGES. - """ - hasPages: Boolean -} - -""" -Delete page types. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type PageTypeBulkDelete { - """Returns how many objects were affected.""" - count: Int! - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! -} - -type PageTypeCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [PageTypeCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type PageTypeCountableEdge { - """The item at the end of the edge.""" - node: PageType! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Create a new page type. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type PageTypeCreate { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! - pageType: PageType -} - -input PageTypeCreateInput { - """Name of the page type.""" - name: String - - """Page type slug.""" - slug: String - - """List of attribute IDs to be assigned to the page type.""" - addAttributes: [ID!] -} - -""" -Event sent when new page type is created. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PageTypeCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The page type the event relates to.""" - pageType: PageType -} - -""" -Delete a page type. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type PageTypeDelete { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! - pageType: PageType -} - -""" -Event sent when page type is deleted. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PageTypeDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The page type the event relates to.""" - pageType: PageType -} - -input PageTypeFilterInput { - search: String - slugs: [String!] -} - -""" -Reorder the attributes of a page type. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type PageTypeReorderAttributes { - """Page type from which attributes are reordered.""" - pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! -} - -enum PageTypeSortField { - """Sort page types by name.""" - NAME - - """Sort page types by slug.""" - SLUG -} - -input PageTypeSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort page types by the selected field.""" - field: PageTypeSortField! -} - -""" -Update page type. - -Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. -""" -type PageTypeUpdate { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! - pageType: PageType -} - -input PageTypeUpdateInput { - """Name of the page type.""" - name: String - - """Page type slug.""" - slug: String - - """List of attribute IDs to be assigned to the page type.""" - addAttributes: [ID!] - - """List of attribute IDs to be assigned to the page type.""" - removeAttributes: [ID!] -} - -""" -Event sent when page type is updated. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PageTypeUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The page type the event relates to.""" - pageType: PageType -} - -""" -Updates an existing page. - -Requires one of the following permissions: MANAGE_PAGES. -""" -type PageUpdate { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PageError!]! - page: Page -} - -""" -Event sent when page is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PageUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The page the event relates to.""" - page: Page -} - -""" -Change the password of the logged in user. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type PasswordChange { - """A user instance with a new password.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -"""Represents a payment of a given type.""" -type Payment implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - gateway: String! - isActive: Boolean! - created: DateTime! - modified: DateTime! - token: String! - checkout: Checkout - order: Order - paymentMethodType: String! - - """ - IP address of the user who created the payment. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - customerIpAddress: String - - """Internal payment status.""" - chargeStatus: PaymentChargeStatusEnum! - - """ - List of actions that can be performed in the current state of a payment. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - actions: [OrderAction!]! - - """Total amount of the payment.""" - total: Money - - """Total amount captured for this payment.""" - capturedAmount: Money - - """ - List of all transactions within this payment. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - transactions: [Transaction!] - - """ - Maximum amount of money that can be captured. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - availableCaptureAmount: Money - - """ - Maximum amount of money that can be refunded. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - availableRefundAmount: Money - - """The details of the card used for this payment.""" - creditCard: CreditCard -} - -""" -Authorize payment. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PaymentAuthorize implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a payment.""" - payment: Payment -} - -""" -Captures the authorized payment amount. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type PaymentCapture { - """Updated payment.""" - payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PaymentError!]! -} - -""" -Capture payment. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PaymentCaptureEvent implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a payment.""" - payment: Payment -} - -"""An enumeration.""" -enum PaymentChargeStatusEnum { - NOT_CHARGED - PENDING - PARTIALLY_CHARGED - FULLY_CHARGED - PARTIALLY_REFUNDED - FULLY_REFUNDED - REFUSED - CANCELLED -} - -"""Check payment balance.""" -type PaymentCheckBalance { - """Response from the gateway.""" - data: JSONString - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PaymentError!]! -} - -input PaymentCheckBalanceInput { - """An ID of a payment gateway to check.""" - gatewayId: String! - - """Payment method name.""" - method: String! - - """Slug of a channel for which the data should be returned.""" - channel: String! - - """Information about card.""" - card: CardInput! -} - -""" -Confirm payment. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PaymentConfirmEvent implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a payment.""" - payment: Payment -} - -type PaymentCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [PaymentCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type PaymentCountableEdge { - """The item at the end of the edge.""" - node: Payment! - - """A cursor for use in pagination.""" - cursor: String! -} - -type PaymentError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: PaymentErrorCode! - - """List of variant IDs which causes the error.""" - variants: [ID!] -} - -"""An enumeration.""" -enum PaymentErrorCode { - BILLING_ADDRESS_NOT_SET - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE - PARTIAL_PAYMENT_NOT_ALLOWED - SHIPPING_ADDRESS_NOT_SET - INVALID_SHIPPING_METHOD - SHIPPING_METHOD_NOT_SET - PAYMENT_ERROR - NOT_SUPPORTED_GATEWAY - CHANNEL_INACTIVE - BALANCE_CHECK_ERROR - CHECKOUT_EMAIL_NOT_SET - UNAVAILABLE_VARIANT_IN_CHANNEL - NO_CHECKOUT_LINES -} - -input PaymentFilterInput { - """ - Filter by ids. - - Added in Saleor 3.8. - """ - ids: [ID!] - checkouts: [ID!] -} - -""" -Available payment gateway backend with configuration necessary to setup client. -""" -type PaymentGateway { - """Payment gateway name.""" - name: String! - - """Payment gateway ID.""" - id: ID! - - """Payment gateway client configuration.""" - config: [GatewayConfigLine!]! - - """Payment gateway supported currencies.""" - currencies: [String!]! -} - -"""Initializes payment process when it is required by gateway.""" -type PaymentInitialize { - initializedPayment: PaymentInitialized - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PaymentError!]! -} - -""" -Server-side data generated by a payment gateway. Optional step when the payment provider requires an additional action to initialize payment session. -""" -type PaymentInitialized { - """ID of a payment gateway.""" - gateway: String! - - """Payment gateway name.""" - name: String! - - """Initialized data by gateway.""" - data: JSONString -} - -input PaymentInput { - """A gateway to use with that payment.""" - gateway: String! - - """ - Client-side generated payment token, representing customer's billing data in a secure manner. - """ - token: String - - """ - Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used. - """ - amount: PositiveDecimal - - """ - URL of a storefront view where user should be redirected after requiring additional actions. Payment with additional actions will not be finished if this field is not provided. - """ - returnUrl: String - - """ - Payment store type. - - Added in Saleor 3.1. - """ - storePaymentMethod: StorePaymentMethodEnum - - """ - User public metadata. - - Added in Saleor 3.1. - """ - metadata: [MetadataInput!] -} - -""" -List payment gateways. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PaymentListGateways implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The checkout the event relates to.""" - checkout: Checkout -} - -""" -Process payment. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PaymentProcessEvent implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a payment.""" - payment: Payment -} - -""" -Refunds the captured payment amount. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type PaymentRefund { - """Updated payment.""" - payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PaymentError!]! -} - -""" -Refund payment. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PaymentRefundEvent implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a payment.""" - payment: Payment -} - -""" -Represents a payment source stored for user in payment gateway, such as credit card. -""" -type PaymentSource { - """Payment gateway name.""" - gateway: String! - - """ID of stored payment method.""" - paymentMethodId: String - - """Stored credit card details if available.""" - creditCardInfo: CreditCard - - """ - List of public metadata items. - - Added in Saleor 3.1. - - Can be accessed without permissions. - """ - metadata: [MetadataItem!]! -} - -""" -Voids the authorized payment. - -Requires one of the following permissions: MANAGE_ORDERS. -""" -type PaymentVoid { - """Updated payment.""" - payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PaymentError!]! -} - -""" -Void payment. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PaymentVoidEvent implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a payment.""" - payment: Payment -} - -"""Represents a permission object in a friendly form.""" -type Permission { - """Internal code for permission.""" - code: PermissionEnum! - - """Describe action(s) allowed to do by permission.""" - name: String! -} - -"""An enumeration.""" -enum PermissionEnum { - MANAGE_USERS - MANAGE_STAFF - IMPERSONATE_USER - MANAGE_APPS - MANAGE_OBSERVABILITY - MANAGE_CHECKOUTS - HANDLE_CHECKOUTS - HANDLE_TAXES - MANAGE_TAXES - MANAGE_CHANNELS - MANAGE_DISCOUNTS - MANAGE_GIFT_CARD - MANAGE_MENUS - MANAGE_ORDERS - MANAGE_PAGES - MANAGE_PAGE_TYPES_AND_ATTRIBUTES - HANDLE_PAYMENTS - MANAGE_PLUGINS - MANAGE_PRODUCTS - MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES - MANAGE_SHIPPING - MANAGE_SETTINGS - MANAGE_TRANSLATIONS -} - -""" -Create new permission group. Apps are not allowed to perform this mutation. - -Requires one of the following permissions: MANAGE_STAFF. -""" -type PermissionGroupCreate { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PermissionGroupError!]! - group: Group -} - -input PermissionGroupCreateInput { - """List of permission code names to assign to this group.""" - addPermissions: [PermissionEnum!] - - """List of users to assign to this group.""" - addUsers: [ID!] - - """Group name.""" - name: String! -} - -""" -Event sent when new permission group is created. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PermissionGroupCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The permission group the event relates to.""" - permissionGroup: Group -} - -""" -Delete permission group. Apps are not allowed to perform this mutation. - -Requires one of the following permissions: MANAGE_STAFF. -""" -type PermissionGroupDelete { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PermissionGroupError!]! - group: Group -} - -""" -Event sent when permission group is deleted. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PermissionGroupDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The permission group the event relates to.""" - permissionGroup: Group -} - -type PermissionGroupError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: PermissionGroupErrorCode! - - """List of permissions which causes the error.""" - permissions: [PermissionEnum!] - - """List of user IDs which causes the error.""" - users: [ID!] -} - -"""An enumeration.""" -enum PermissionGroupErrorCode { - ASSIGN_NON_STAFF_MEMBER - DUPLICATED_INPUT_ITEM - CANNOT_REMOVE_FROM_LAST_GROUP - LEFT_NOT_MANAGEABLE_PERMISSION - OUT_OF_SCOPE_PERMISSION - OUT_OF_SCOPE_USER - REQUIRED - UNIQUE -} - -input PermissionGroupFilterInput { - search: String - ids: [ID!] -} - -enum PermissionGroupSortField { - """Sort permission group accounts by name.""" - NAME -} - -input PermissionGroupSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort permission group by the selected field.""" - field: PermissionGroupSortField! -} - -""" -Update permission group. Apps are not allowed to perform this mutation. - -Requires one of the following permissions: MANAGE_STAFF. -""" -type PermissionGroupUpdate { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PermissionGroupError!]! - group: Group -} - -input PermissionGroupUpdateInput { - """List of permission code names to assign to this group.""" - addPermissions: [PermissionEnum!] - - """List of users to assign to this group.""" - addUsers: [ID!] - - """Group name.""" - name: String - - """List of permission code names to unassign from this group.""" - removePermissions: [PermissionEnum!] - - """List of users to unassign from this group.""" - removeUsers: [ID!] -} - -""" -Event sent when permission group is updated. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type PermissionGroupUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The permission group the event relates to.""" - permissionGroup: Group -} - -"""Plugin.""" -type Plugin { - """Identifier of the plugin.""" - id: ID! - - """Name of the plugin.""" - name: String! - - """Description of the plugin.""" - description: String! - - """Global configuration of the plugin (not channel-specific).""" - globalConfiguration: PluginConfiguration - - """Channel-specific plugin configuration.""" - channelConfigurations: [PluginConfiguration!]! -} - -"""Stores information about a configuration of plugin.""" -type PluginConfiguration { - """Determines if plugin is active or not.""" - active: Boolean! - - """The channel to which the plugin configuration is assigned to.""" - channel: Channel - - """Configuration of the plugin.""" - configuration: [ConfigurationItem!] -} - -enum PluginConfigurationType { - PER_CHANNEL - GLOBAL -} - -type PluginCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [PluginCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type PluginCountableEdge { - """The item at the end of the edge.""" - node: Plugin! - - """A cursor for use in pagination.""" - cursor: String! -} - -type PluginError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: PluginErrorCode! -} - -"""An enumeration.""" -enum PluginErrorCode { - GRAPHQL_ERROR - INVALID - PLUGIN_MISCONFIGURED - NOT_FOUND - REQUIRED - UNIQUE -} - -input PluginFilterInput { - statusInChannels: PluginStatusInChannelsInput - search: String - type: PluginConfigurationType -} - -enum PluginSortField { - NAME - IS_ACTIVE -} - -input PluginSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort plugins by the selected field.""" - field: PluginSortField! -} - -input PluginStatusInChannelsInput { - active: Boolean! - channels: [ID!]! -} - -""" -Update plugin configuration. - -Requires one of the following permissions: MANAGE_PLUGINS. -""" -type PluginUpdate { - plugin: Plugin - pluginsErrors: [PluginError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [PluginError!]! -} - -input PluginUpdateInput { - """Indicates whether the plugin should be enabled.""" - active: Boolean - - """Configuration of the plugin.""" - configuration: [ConfigurationItemInput!] -} - -""" -Positive Decimal scalar implementation. - -Should be used in places where value must be positive. -""" -scalar PositiveDecimal - -"""An enumeration.""" -enum PostalCodeRuleInclusionTypeEnum { - INCLUDE - EXCLUDE -} - -"""Represents preorder settings for product variant.""" -type PreorderData { - """ - The global preorder threshold for product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - globalThreshold: Int - - """ - Total number of sold product variant during preorder. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - globalSoldUnits: Int! - - """Preorder end date.""" - endDate: DateTime -} - -input PreorderSettingsInput { - """The global threshold for preorder variant.""" - globalThreshold: Int - - """The end date for preorder.""" - endDate: DateTime -} - -"""Represents preorder variant data for channel.""" -type PreorderThreshold { - """Preorder threshold for product variant in this channel.""" - quantity: Int - - """Number of sold product variant in this channel.""" - soldUnits: Int! -} - -input PriceInput { - """Currency code.""" - currency: String! - - """Amount of money.""" - amount: PositiveDecimal! -} - -input PriceRangeInput { - """Price greater than or equal to.""" - gte: Float - - """Price less than or equal to.""" - lte: Float -} - -"""Represents an individual item for sale in the storefront.""" -type Product implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - seoTitle: String - seoDescription: String - name: String! - - """ - Description of the product. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - productType: ProductType! - slug: String! - category: Category - created: DateTime! - updatedAt: DateTime! - chargeTaxes: Boolean! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` field to determine whether tax collection is enabled.") - weight: Weight - defaultVariant: ProductVariant - rating: Float - - """ - Channel given to retrieve this product. Also used by federation gateway to resolve this object in a federated query. - """ - channel: String - - """ - Description of the product. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") - thumbnail( - """ - Size of the image. If not provided, the original image will be returned. - """ - size: Int - - """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - format: ThumbnailFormatEnum - ): Image - - """ - Lists the storefront product's pricing, the current price and discounts, only meant for displaying. - """ - pricing( - """ - Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration. - """ - address: AddressInput - ): ProductPricingInfo - - """Whether the product is in stock and visible or not.""" - isAvailable( - """ - Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration. - """ - address: AddressInput - ): Boolean - - """A type of tax. Assigned by enabled tax gateway""" - taxType: TaxType @deprecated(reason: "This field will be removed in Saleor 4.0. Use `taxClass` field instead.") - - """ - Get a single attribute attached to product by attribute slug. - - Added in Saleor 3.9. - """ - attribute( - """Slug of the attribute""" - slug: String! - ): SelectedAttribute - - """List of attributes assigned to this product.""" - attributes: [SelectedAttribute!]! - - """ - List of availability in channels for the product. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - channelListings: [ProductChannelListing!] - - """Get a single product media by ID.""" - mediaById( - """ID of a product media.""" - id: ID - ): ProductMedia - - """Get a single product image by ID.""" - imageById( - """ID of a product image.""" - id: ID - ): ProductImage @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `mediaById` field instead.") - - """ - Get a single variant by SKU or ID. - - Added in Saleor 3.9. - """ - variant( - """ID of the variant.""" - id: ID - - """SKU of the variant.""" - sku: String - ): ProductVariant - - """ - List of variants for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - variants: [ProductVariant!] - - """List of media for the product.""" - media( - """ - Sort media. - - Added in Saleor 3.9. - """ - sortBy: MediaSortingInput - ): [ProductMedia!] - - """List of images for the product.""" - images: [ProductImage!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") - - """ - List of collections for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - collections: [Collection!] - - """Returns translated product fields for the given language code.""" - translation( - """A language code to return the translation for product.""" - languageCode: LanguageCodeEnum! - ): ProductTranslation - - """Date when product is available for purchase.""" - availableForPurchase: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date.") - - """Date when product is available for purchase.""" - availableForPurchaseAt: DateTime - - """Whether the product is available for purchase.""" - isAvailableForPurchase: Boolean - - """ - Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER. - """ - taxClass: TaxClass - - """ - External ID of this product. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Assign attributes to a given product type. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type ProductAttributeAssign { - """The updated product type.""" - productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -input ProductAttributeAssignInput { - """The ID of the attribute to assign.""" - id: ID! - - """The attribute type to be assigned as.""" - type: ProductAttributeType! - - """ - Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. - - Added in Saleor 3.1. - """ - variantSelection: Boolean -} - -""" -Update attributes assigned to product variant for given product type. - -Added in Saleor 3.1. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type ProductAttributeAssignmentUpdate { - """The updated product type.""" - productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -input ProductAttributeAssignmentUpdateInput { - """The ID of the attribute to assign.""" - id: ID! - - """ - Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. - - Added in Saleor 3.1. - """ - variantSelection: Boolean! -} - -enum ProductAttributeType { - PRODUCT - VARIANT -} - -""" -Un-assign attributes from a given product type. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type ProductAttributeUnassign { - """The updated product type.""" - productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -""" -Deletes products. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductBulkDelete { - """Returns how many objects were affected.""" - count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -"""Represents product channel listing.""" -type ProductChannelListing implements Node { - id: ID! - publicationDate: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date.") - - """ - The product publication date time. - - Added in Saleor 3.3. - """ - publishedAt: DateTime - isPublished: Boolean! - channel: Channel! - visibleInListings: Boolean! - availableForPurchase: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date.") - - """ - The product available for purchase date time. - - Added in Saleor 3.3. - """ - availableForPurchaseAt: DateTime - - """The price of the cheapest variant (including discounts).""" - discountedPrice: Money - - """ - Purchase cost of product. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - purchaseCost: MoneyRange - - """ - Range of margin percentage value. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - margin: Margin - - """Whether the product is available for purchase.""" - isAvailableForPurchase: Boolean - - """ - Lists the storefront product's pricing, the current price and discounts, only meant for displaying. - """ - pricing( - """ - Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration. - """ - address: AddressInput - ): ProductPricingInfo -} - -input ProductChannelListingAddInput { - """ID of a channel.""" - channelId: ID! - - """Determines if object is visible to customers.""" - isPublished: Boolean - - """ - Publication date. ISO 8601 standard. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. - """ - publicationDate: Date - - """ - Publication date time. ISO 8601 standard. - - Added in Saleor 3.3. - """ - publishedAt: DateTime - - """ - Determines if product is visible in product listings (doesn't apply to product collections). - """ - visibleInListings: Boolean - - """Determine if product should be available for purchase.""" - isAvailableForPurchase: Boolean - - """ - A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `availableForPurchaseAt` field instead. - """ - availableForPurchaseDate: Date - - """ - A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. - - Added in Saleor 3.3. - """ - availableForPurchaseAt: DateTime - - """List of variants to which the channel should be assigned.""" - addVariants: [ID!] - - """List of variants from which the channel should be unassigned.""" - removeVariants: [ID!] -} - -type ProductChannelListingError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ProductErrorCode! - - """List of attributes IDs which causes the error.""" - attributes: [ID!] - - """List of attribute values IDs which causes the error.""" - values: [ID!] - - """List of channels IDs which causes the error.""" - channels: [ID!] - - """List of variants IDs which causes the error.""" - variants: [ID!] -} - -""" -Manage product's availability in channels. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductChannelListingUpdate { - """An updated product instance.""" - product: Product - productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductChannelListingError!]! -} - -input ProductChannelListingUpdateInput { - """List of channels to which the product should be assigned or updated.""" - updateChannels: [ProductChannelListingAddInput!] - - """List of channels from which the product should be unassigned.""" - removeChannels: [ID!] -} - -type ProductCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [ProductCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type ProductCountableEdge { - """The item at the end of the edge.""" - node: Product! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new product. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - product: Product -} - -input ProductCreateInput { - """List of attributes.""" - attributes: [AttributeValueInput!] - - """ID of the product's category.""" - category: ID - - """ - Determine if taxes are being charged for the product. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - """ - chargeTaxes: Boolean - - """List of IDs of collections that the product belongs to.""" - collections: [ID!] - - """ - Product description. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """Product name.""" - name: String - - """Product slug.""" - slug: String - - """ - ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. - """ - taxClass: ID - - """ - Tax rate for enabled tax gateway. - - DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. - """ - taxCode: String - - """Search engine optimization fields.""" - seo: SeoInput - - """Weight of the Product.""" - weight: WeightScalar - - """Defines the product rating value.""" - rating: Float - - """ - Fields required to update the product metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the product private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] - - """ - External ID of this product. - - Added in Saleor 3.10. - """ - externalReference: String - - """ID of the type that product belongs to.""" - productType: ID! -} - -""" -Event sent when new product is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product the event relates to.""" - product( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Product - - """The category of the product.""" - category: Category -} - -""" -Deletes a product. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductDelete { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - product: Product -} - -""" -Event sent when product is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product the event relates to.""" - product( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Product - - """The category of the product.""" - category: Category -} - -type ProductError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ProductErrorCode! - - """List of attributes IDs which causes the error.""" - attributes: [ID!] - - """List of attribute values IDs which causes the error.""" - values: [ID!] -} - -"""An enumeration.""" -enum ProductErrorCode { - ALREADY_EXISTS - ATTRIBUTE_ALREADY_ASSIGNED - ATTRIBUTE_CANNOT_BE_ASSIGNED - ATTRIBUTE_VARIANTS_DISABLED - MEDIA_ALREADY_ASSIGNED - DUPLICATED_INPUT_ITEM - GRAPHQL_ERROR - INVALID - PRODUCT_WITHOUT_CATEGORY - NOT_PRODUCTS_IMAGE - NOT_PRODUCTS_VARIANT - NOT_FOUND - REQUIRED - UNIQUE - VARIANT_NO_DIGITAL_CONTENT - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT - PRODUCT_NOT_ASSIGNED_TO_CHANNEL - UNSUPPORTED_MEDIA_PROVIDER - PREORDER_VARIANT_CANNOT_BE_DEACTIVATED -} - -enum ProductFieldEnum { - NAME - DESCRIPTION - PRODUCT_TYPE - CATEGORY - PRODUCT_WEIGHT - COLLECTIONS - CHARGE_TAXES - PRODUCT_MEDIA - VARIANT_ID - VARIANT_SKU - VARIANT_WEIGHT - VARIANT_MEDIA -} - -input ProductFilterInput { - isPublished: Boolean - collections: [ID!] - categories: [ID!] - hasCategory: Boolean - attributes: [AttributeInput!] - - """Filter by variants having specific stock status.""" - stockAvailability: StockAvailability - stocks: ProductStockFilterInput - search: String - metadata: [MetadataFilter!] - - """ - Filter by the publication date. - - Added in Saleor 3.8. - """ - publishedFrom: DateTime - - """ - Filter by availability for purchase. - - Added in Saleor 3.8. - """ - isAvailable: Boolean - - """ - Filter by the date of availability for purchase. - - Added in Saleor 3.8. - """ - availableFrom: DateTime - - """ - Filter by visibility in product listings. - - Added in Saleor 3.8. - """ - isVisibleInListing: Boolean - price: PriceRangeInput - - """Filter by the lowest variant price after discounts.""" - minimalPrice: PriceRangeInput - - """Filter by when was the most recent update.""" - updatedAt: DateTimeRangeInput - productTypes: [ID!] - - """Filter on whether product is a gift card or not.""" - giftCard: Boolean - ids: [ID!] - hasPreorderedVariants: Boolean - slugs: [String!] - - """ - Specifies the channel by which the data should be filtered. - - DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - """ - channel: String -} - -"""Represents a product image.""" -type ProductImage { - """The ID of the image.""" - id: ID! - - """The alt text of the image.""" - alt: String - - """ - The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. - """ - sortOrder: Int - url( - """ - Size of the image. If not provided, the original image will be returned. - """ - size: Int - - """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - format: ThumbnailFormatEnum - ): String! -} - -input ProductInput { - """List of attributes.""" - attributes: [AttributeValueInput!] - - """ID of the product's category.""" - category: ID - - """ - Determine if taxes are being charged for the product. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - """ - chargeTaxes: Boolean - - """List of IDs of collections that the product belongs to.""" - collections: [ID!] - - """ - Product description. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """Product name.""" - name: String - - """Product slug.""" - slug: String - - """ - ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. - """ - taxClass: ID - - """ - Tax rate for enabled tax gateway. - - DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. - """ - taxCode: String - - """Search engine optimization fields.""" - seo: SeoInput - - """Weight of the Product.""" - weight: WeightScalar - - """Defines the product rating value.""" - rating: Float - - """ - Fields required to update the product metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the product private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] - - """ - External ID of this product. - - Added in Saleor 3.10. - """ - externalReference: String -} - -"""Represents a product media.""" -type ProductMedia implements Node { - id: ID! - sortOrder: Int - alt: String! - type: ProductMediaType! - oembedData: JSONString! - url( - """ - Size of the image. If not provided, the original image will be returned. - """ - size: Int - - """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - format: ThumbnailFormatEnum - ): String! -} - -""" -Deletes product media. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductMediaBulkDelete { - """Returns how many objects were affected.""" - count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -""" -Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductMediaCreate { - product: Product - media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -input ProductMediaCreateInput { - """Alt text for a product media.""" - alt: String - - """Represents an image file in a multipart request.""" - image: Upload - - """ID of an product.""" - product: ID! - - """Represents an URL to an external media.""" - mediaUrl: String -} - -""" -Deletes a product media. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductMediaDelete { - product: Product - media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -""" -Changes ordering of the product media. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductMediaReorder { - product: Product - media: [ProductMedia!] - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -"""An enumeration.""" -enum ProductMediaType { - IMAGE - VIDEO -} - -""" -Updates a product media. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductMediaUpdate { - product: Product - media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -input ProductMediaUpdateInput { - """Alt text for a product media.""" - alt: String -} - -""" -Event sent when product metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product the event relates to.""" - product( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Product - - """The category of the product.""" - category: Category -} - -input ProductOrder { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """ - Specifies the channel in which to sort the data. - - DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - """ - channel: String - - """ - Sort product by the selected attribute's values. - Note: this doesn't take translations into account yet. - """ - attributeId: ID - - """Sort products by the selected field.""" - field: ProductOrderField -} - -enum ProductOrderField { - """Sort products by name.""" - NAME - - """ - Sort products by rank. Note: This option is available only with the `search` filter. - """ - RANK - - """ - Sort products by price. - - This option requires a channel filter to work as the values can vary between channels. - """ - PRICE - - """ - Sort products by a minimal price of a product's variant. - - This option requires a channel filter to work as the values can vary between channels. - """ - MINIMAL_PRICE - - """Sort products by update date.""" - LAST_MODIFIED - - """Sort products by update date.""" - DATE - - """Sort products by type.""" - TYPE - - """ - Sort products by publication status. - - This option requires a channel filter to work as the values can vary between channels. - """ - PUBLISHED - - """ - Sort products by publication date. - - This option requires a channel filter to work as the values can vary between channels. - """ - PUBLICATION_DATE - - """ - Sort products by publication date. - - This option requires a channel filter to work as the values can vary between channels. - """ - PUBLISHED_AT - - """Sort products by update date.""" - LAST_MODIFIED_AT - - """ - Sort products by collection. Note: This option is available only for the `Collection.products` query. - - This option requires a channel filter to work as the values can vary between channels. - """ - COLLECTION - - """Sort products by rating.""" - RATING - - """ - Sort products by creation date. - - Added in Saleor 3.8. - """ - CREATED_AT -} - -"""Represents availability of a product in the storefront.""" -type ProductPricingInfo { - """Whether it is in sale or not.""" - onSale: Boolean - - """The discount amount if in sale (null otherwise).""" - discount: TaxedMoney - - """The discount amount in the local currency.""" - discountLocalCurrency: TaxedMoney - - """The discounted price range of the product variants.""" - priceRange: TaxedMoneyRange - - """The undiscounted price range of the product variants.""" - priceRangeUndiscounted: TaxedMoneyRange - - """ - The discounted price range of the product variants in the local currency. - """ - priceRangeLocalCurrency: TaxedMoneyRange - - """ - Determines whether this product's price displayed in a storefront should include taxes. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - displayGrossPrices: Boolean! -} - -""" -Reorder product attribute values. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductReorderAttributeValues { - """Product from which attribute values are reordered.""" - product: Product - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -input ProductStockFilterInput { - warehouseIds: [ID!] - quantity: IntRangeInput -} - -type ProductTranslatableContent implements Node { - id: ID! - seoTitle: String - seoDescription: String - name: String! - - """ - Description of the product. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """ - Description of the product. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") - - """Returns translated product fields for the given language code.""" - translation( - """A language code to return the translation for product.""" - languageCode: LanguageCodeEnum! - ): ProductTranslation - - """Represents an individual item for sale in the storefront.""" - product: Product @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") - - """List of product attribute values that can be translated.""" - attributeValues: [AttributeValueTranslatableContent!]! -} - -""" -Creates/updates translations for a product. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type ProductTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - product: Product -} - -type ProductTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - seoTitle: String - seoDescription: String - name: String - - """ - Translated description of the product. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """ - Translated description of the product. - - Rich text format. For reference see https://editorjs.io/ - """ - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") -} - -""" -Represents a type of product. It defines what attributes are available to products of this type. -""" -type ProductType implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String! - slug: String! - hasVariants: Boolean! - isShippingRequired: Boolean! - isDigital: Boolean! - weight: Weight - - """The product type kind.""" - kind: ProductTypeKindEnum! - - """List of products of this type.""" - products( - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductCountableConnection @deprecated(reason: "This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter.") - - """A type of tax. Assigned by enabled tax gateway""" - taxType: TaxType @deprecated(reason: "This field will be removed in Saleor 4.0. Use `taxClass` field instead.") - - """ - Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER. - """ - taxClass: TaxClass - - """Variant attributes of that product type.""" - variantAttributes( - """Define scope of returned attributes.""" - variantSelection: VariantAttributeScope - ): [Attribute!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead.") - - """ - Variant attributes of that product type with attached variant selection. - - Added in Saleor 3.1. - """ - assignedVariantAttributes( - """Define scope of returned attributes.""" - variantSelection: VariantAttributeScope - ): [AssignedVariantAttribute!] - - """Product attributes of that product type.""" - productAttributes: [Attribute!] - - """ - List of attributes which can be assigned to this product type. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - availableAttributes( - filter: AttributeFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): AttributeCountableConnection -} - -""" -Deletes product types. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type ProductTypeBulkDelete { - """Returns how many objects were affected.""" - count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -enum ProductTypeConfigurable { - CONFIGURABLE - SIMPLE -} - -type ProductTypeCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [ProductTypeCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type ProductTypeCountableEdge { - """The item at the end of the edge.""" - node: ProductType! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new product type. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type ProductTypeCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - productType: ProductType -} - -""" -Deletes a product type. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type ProductTypeDelete { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - productType: ProductType -} - -enum ProductTypeEnum { - DIGITAL - SHIPPABLE -} - -input ProductTypeFilterInput { - search: String - configurable: ProductTypeConfigurable - productType: ProductTypeEnum - metadata: [MetadataFilter!] - kind: ProductTypeKindEnum - ids: [ID!] - slugs: [String!] -} - -input ProductTypeInput { - """Name of the product type.""" - name: String - - """Product type slug.""" - slug: String - - """The product type kind.""" - kind: ProductTypeKindEnum - - """ - Determines if product of this type has multiple variants. This option mainly simplifies product management in the dashboard. There is always at least one variant created under the hood. - """ - hasVariants: Boolean - - """List of attributes shared among all product variants.""" - productAttributes: [ID!] - - """ - List of attributes used to distinguish between different variants of a product. - """ - variantAttributes: [ID!] - - """Determines if shipping is required for products of this variant.""" - isShippingRequired: Boolean - - """Determines if products are digital.""" - isDigital: Boolean - - """Weight of the ProductType items.""" - weight: WeightScalar - - """ - Tax rate for enabled tax gateway. - - DEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type. - """ - taxCode: String - - """ - ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. - """ - taxClass: ID -} - -"""An enumeration.""" -enum ProductTypeKindEnum { - NORMAL - GIFT_CARD -} - -""" -Reorder the attributes of a product type. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type ProductTypeReorderAttributes { - """Product type from which attributes are reordered.""" - productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -enum ProductTypeSortField { - """Sort products by name.""" - NAME - - """Sort products by type.""" - DIGITAL - - """Sort products by shipping.""" - SHIPPING_REQUIRED -} - -input ProductTypeSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort product types by the selected field.""" - field: ProductTypeSortField! -} - -""" -Updates an existing product type. - -Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. -""" -type ProductTypeUpdate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - productType: ProductType -} - -""" -Updates an existing product. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductUpdate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - product: Product -} - -""" -Event sent when product is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product the event relates to.""" - product( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Product - - """The category of the product.""" - category: Category -} - -"""Represents a version of a product such as different size or color.""" -type ProductVariant implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String! - sku: String - product: Product! - trackInventory: Boolean! - quantityLimitPerCustomer: Int - weight: Weight - - """ - Channel given to retrieve this product variant. Also used by federation gateway to resolve this object in a federated query. - """ - channel: String - - """ - List of price information in channels for the product. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - channelListings: [ProductVariantChannelListing!] - - """ - Lists the storefront variant's pricing, the current price and discounts, only meant for displaying. - """ - pricing( - """ - Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration. - """ - address: AddressInput - ): VariantPricingInfo - - """List of attributes assigned to this variant.""" - attributes( - """Define scope of returned attributes.""" - variantSelection: VariantAttributeScope - ): [SelectedAttribute!]! - - """Gross margin percentage value.""" - margin: Int - - """ - Total quantity ordered. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - quantityOrdered: Int - - """ - Total revenue generated by a variant in given period of time. Note: this field should be queried using `reportProductSales` query as it uses optimizations suitable for such calculations. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - revenue(period: ReportingPeriod): TaxedMoney - - """List of images for the product variant.""" - images: [ProductImage!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") - - """List of media for the product variant.""" - media: [ProductMedia!] - - """Returns translated product variant fields for the given language code.""" - translation( - """A language code to return the translation for product variant.""" - languageCode: LanguageCodeEnum! - ): ProductVariantTranslation - - """ - Digital content for the product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - digitalContent: DigitalContent - - """ - Stocks for the product variant. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - """ - stocks( - """ - Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration. - """ - address: AddressInput - - """ - Two-letter ISO 3166-1 country code. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead. - """ - countryCode: CountryCode - ): [Stock!] - - """ - Quantity of a product available for sale in one checkout. Field value will be `null` when no `limitQuantityPerCheckout` in global settings has been set, and `productVariant` stocks are not tracked. - """ - quantityAvailable( - """ - Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration. - """ - address: AddressInput - - """ - Two-letter ISO 3166-1 country code. When provided, the exact quantity from a warehouse operating in shipping zones that contain this country will be returned. Otherwise, it will return the maximum quantity from all shipping zones. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead. - """ - countryCode: CountryCode - ): Int - - """ - Preorder data for product variant. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - preorder: PreorderData - created: DateTime! - updatedAt: DateTime! - - """ - External ID of this product. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Event sent when product variant is back in stock. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductVariantBackInStock implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product variant the event relates to.""" - productVariant( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ProductVariant - - """Look up a warehouse.""" - warehouse: Warehouse -} - -""" -Creates product variants for a given product. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantBulkCreate { - """Returns how many objects were created.""" - count: Int! - - """List of the created variants.""" - productVariants: [ProductVariant!]! - bulkProductErrors: [BulkProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [BulkProductError!]! -} - -input ProductVariantBulkCreateInput { - """List of attributes specific to this variant.""" - attributes: [BulkAttributeValueInput!]! - - """Stock keeping unit.""" - sku: String - - """Variant name.""" - name: String - - """ - Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. - """ - trackInventory: Boolean - - """Weight of the Product Variant.""" - weight: WeightScalar - - """ - Determines if variant is in preorder. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - preorder: PreorderSettingsInput - - """ - Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - quantityLimitPerCustomer: Int - - """ - Fields required to update the product variant metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the product variant private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] - - """ - External ID of this product variant. - - Added in Saleor 3.10. - """ - externalReference: String - - """Stocks of a product available for sale.""" - stocks: [StockInput!] - - """List of prices assigned to channels.""" - channelListings: [ProductVariantChannelListingAddInput!] -} - -""" -Deletes product variants. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantBulkDelete { - """Returns how many objects were affected.""" - count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -"""Represents product varaint channel listing.""" -type ProductVariantChannelListing implements Node { - id: ID! - channel: Channel! - price: Money - - """Cost price of the variant.""" - costPrice: Money - - """ - Gross margin percentage value. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - margin: Int - - """ - Preorder variant data. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - preorderThreshold: PreorderThreshold -} - -input ProductVariantChannelListingAddInput { - """ID of a channel.""" - channelId: ID! - - """Price of the particular variant in channel.""" - price: PositiveDecimal! - - """Cost price of the variant in channel.""" - costPrice: PositiveDecimal - - """ - The threshold for preorder variant in channel. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - preorderThreshold: Int -} - -""" -Manage product variant prices in channels. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantChannelListingUpdate { - """An updated product variant instance.""" - variant: ProductVariant - productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductChannelListingError!]! -} - -type ProductVariantCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [ProductVariantCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type ProductVariantCountableEdge { - """The item at the end of the edge.""" - node: ProductVariant! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new variant for a product. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - productVariant: ProductVariant -} - -input ProductVariantCreateInput { - """List of attributes specific to this variant.""" - attributes: [AttributeValueInput!]! - - """Stock keeping unit.""" - sku: String - - """Variant name.""" - name: String - - """ - Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. - """ - trackInventory: Boolean - - """Weight of the Product Variant.""" - weight: WeightScalar - - """ - Determines if variant is in preorder. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - preorder: PreorderSettingsInput - - """ - Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - quantityLimitPerCustomer: Int - - """ - Fields required to update the product variant metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the product variant private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] - - """ - External ID of this product variant. - - Added in Saleor 3.10. - """ - externalReference: String - - """Product ID of which type is the variant.""" - product: ID! - - """Stocks of a product available for sale.""" - stocks: [StockInput!] -} - -""" -Event sent when new product variant is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductVariantCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product variant the event relates to.""" - productVariant( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ProductVariant -} - -""" -Deletes a product variant. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantDelete { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - productVariant: ProductVariant -} - -""" -Event sent when product variant is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductVariantDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product variant the event relates to.""" - productVariant( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ProductVariant -} - -input ProductVariantFilterInput { - search: String - sku: [String!] - metadata: [MetadataFilter!] - isPreorder: Boolean - updatedAt: DateTimeRangeInput -} - -input ProductVariantInput { - """List of attributes specific to this variant.""" - attributes: [AttributeValueInput!] - - """Stock keeping unit.""" - sku: String - - """Variant name.""" - name: String - - """ - Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. - """ - trackInventory: Boolean - - """Weight of the Product Variant.""" - weight: WeightScalar - - """ - Determines if variant is in preorder. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - preorder: PreorderSettingsInput - - """ - Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - quantityLimitPerCustomer: Int - - """ - Fields required to update the product variant metadata. - - Added in Saleor 3.8. - """ - metadata: [MetadataInput!] - - """ - Fields required to update the product variant private metadata. - - Added in Saleor 3.8. - """ - privateMetadata: [MetadataInput!] - - """ - External ID of this product variant. - - Added in Saleor 3.10. - """ - externalReference: String -} - -""" -Event sent when product variant metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductVariantMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product variant the event relates to.""" - productVariant( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ProductVariant -} - -""" -Event sent when product variant is out of stock. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductVariantOutOfStock implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product variant the event relates to.""" - productVariant( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ProductVariant - - """Look up a warehouse.""" - warehouse: Warehouse -} - -""" -Deactivates product variant preorder. It changes all preorder allocation into regular allocation. - -Added in Saleor 3.1. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantPreorderDeactivate { - """Product variant with ended preorder.""" - productVariant: ProductVariant - errors: [ProductError!]! -} - -""" -Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantReorder { - product: Product - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -""" -Reorder product variant attribute values. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantReorderAttributeValues { - """Product variant from which attribute values are reordered.""" - productVariant: ProductVariant - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -""" -Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantSetDefault { - product: Product - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -enum ProductVariantSortField { - """Sort products variants by last modified at.""" - LAST_MODIFIED_AT -} - -input ProductVariantSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort productVariants by the selected field.""" - field: ProductVariantSortField! -} - -""" -Creates stocks for product variant. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantStocksCreate { - """Updated product variant.""" - productVariant: ProductVariant - bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [BulkStockError!]! -} - -""" -Delete stocks from product variant. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantStocksDelete { - """Updated product variant.""" - productVariant: ProductVariant - stockErrors: [StockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [StockError!]! -} - -""" -Update stocks for product variant. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantStocksUpdate { - """Updated product variant.""" - productVariant: ProductVariant - bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [BulkStockError!]! -} - -type ProductVariantTranslatableContent implements Node { - id: ID! - name: String! - - """Returns translated product variant fields for the given language code.""" - translation( - """A language code to return the translation for product variant.""" - languageCode: LanguageCodeEnum! - ): ProductVariantTranslation - - """Represents a version of a product such as different size or color.""" - productVariant: ProductVariant @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") - - """List of product variant attribute values that can be translated.""" - attributeValues: [AttributeValueTranslatableContent!]! -} - -""" -Creates/updates translations for a product variant. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type ProductVariantTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - productVariant: ProductVariant -} - -type ProductVariantTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - name: String! -} - -""" -Updates an existing variant for product. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type ProductVariantUpdate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! - productVariant: ProductVariant -} - -""" -Event sent when product variant is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ProductVariantUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The product variant the event relates to.""" - productVariant( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ProductVariant -} - -input PublishableChannelListingInput { - """ID of a channel.""" - channelId: ID! - - """Determines if object is visible to customers.""" - isPublished: Boolean - - """ - Publication date. ISO 8601 standard. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. - """ - publicationDate: Date - - """ - Publication date time. ISO 8601 standard. - - Added in Saleor 3.3. - """ - publishedAt: DateTime -} - -type Query { - """ - Look up a webhook by ID. Requires one of the following permissions: MANAGE_APPS, OWNER. - """ - webhook( - """ID of the webhook.""" - id: ID! - ): Webhook - - """ - List of all available webhook events. - - Requires one of the following permissions: MANAGE_APPS. - """ - webhookEvents: [WebhookEvent!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types.") - - """ - Retrieve a sample payload for a given webhook event based on real data. It can be useful for some integrations where sample payload is required. - """ - webhookSamplePayload( - """Name of the requested event type.""" - eventType: WebhookSampleEventTypeEnum! - ): JSONString - - """ - Look up a warehouse by ID. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS, MANAGE_SHIPPING. - """ - warehouse( - """ID of a warehouse.""" - id: ID - - """ - External ID of a warehouse. - - Added in Saleor 3.10. - """ - externalReference: String - ): Warehouse - - """ - List of warehouses. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS, MANAGE_SHIPPING. - """ - warehouses( - filter: WarehouseFilterInput - sortBy: WarehouseSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): WarehouseCountableConnection - - """ - Returns a list of all translatable items of a given kind. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - translations( - """Kind of objects to retrieve.""" - kind: TranslatableKinds! - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): TranslatableItemConnection - - """ - Lookup a translatable item by ID. - - Requires one of the following permissions: MANAGE_TRANSLATIONS. - """ - translation( - """ID of the object to retrieve.""" - id: ID! - - """Kind of the object to retrieve.""" - kind: TranslatableKinds! - ): TranslatableItem - - """ - Look up a tax configuration. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - taxConfiguration( - """ID of a tax configuration.""" - id: ID! - ): TaxConfiguration - - """ - List of tax configurations. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - taxConfigurations( - """Filtering options for tax configurations.""" - filter: TaxConfigurationFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): TaxConfigurationCountableConnection - - """ - Look up a tax class. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - taxClass( - """ID of a tax class.""" - id: ID! - ): TaxClass - - """ - List of tax classes. - - Added in Saleor 3.9. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - taxClasses( - """Sort tax classes.""" - sortBy: TaxClassSortingInput - - """Filtering options for tax classes.""" - filter: TaxClassFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): TaxClassCountableConnection - - """ - Tax class rates grouped by country. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - taxCountryConfiguration( - """Country for which to return tax class rates.""" - countryCode: CountryCode! - ): TaxCountryConfiguration - - """ - - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - taxCountryConfigurations: [TaxCountryConfiguration!] - - """ - Look up a stock by ID - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - stock( - """ID of an warehouse""" - id: ID! - ): Stock - - """ - List of stocks. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - stocks( - filter: StockFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): StockCountableConnection - - """Return information about the shop.""" - shop: Shop! - - """ - Order related settings from site settings. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orderSettings: OrderSettings - - """ - Gift card related settings from site settings. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardSettings: GiftCardSettings! - - """ - Look up a shipping zone by ID. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingZone( - """ID of the shipping zone.""" - id: ID! - - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingZone - - """ - List of the shop's shipping zones. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingZones( - """Filtering options for shipping zones.""" - filter: ShippingZoneFilterInput - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ShippingZoneCountableConnection - - """ - Look up digital content by ID. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - digitalContent( - """ID of the digital content.""" - id: ID! - ): DigitalContent - - """ - List of digital content. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - digitalContents( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): DigitalContentCountableConnection - - """List of the shop's categories.""" - categories( - """Filtering options for categories.""" - filter: CategoryFilterInput - - """Sort categories.""" - sortBy: CategorySortingInput - - """Filter categories by the nesting level in the category tree.""" - level: Int - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CategoryCountableConnection - - """Look up a category by ID or slug.""" - category( - """ID of the category.""" - id: ID - - """Slug of the category""" - slug: String - ): Category - - """ - Look up a collection by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - collection( - """ID of the collection.""" - id: ID - - """Slug of the category""" - slug: String - - """Slug of a channel for which the data should be returned.""" - channel: String - ): Collection - - """ - List of the shop's collections. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - collections( - """Filtering options for collections.""" - filter: CollectionFilterInput - - """Sort collections.""" - sortBy: CollectionSortingInput - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CollectionCountableConnection - - """ - Look up a product by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - product( - """ID of the product.""" - id: ID - - """Slug of the product.""" - slug: String - - """ - External ID of the product. - - Added in Saleor 3.10. - """ - externalReference: String - - """Slug of a channel for which the data should be returned.""" - channel: String - ): Product - - """ - List of the shop's products. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - products( - """Filtering options for products.""" - filter: ProductFilterInput - - """Sort products.""" - sortBy: ProductOrder - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductCountableConnection - - """Look up a product type by ID.""" - productType( - """ID of the product type.""" - id: ID! - ): ProductType - - """List of the shop's product types.""" - productTypes( - """Filtering options for product types.""" - filter: ProductTypeFilterInput - - """Sort product types.""" - sortBy: ProductTypeSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductTypeCountableConnection - - """ - Look up a product variant by ID or SKU. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - productVariant( - """ID of the product variant.""" - id: ID - - """Sku of the product variant.""" - sku: String - - """ - External ID of the product. - - Added in Saleor 3.10. - """ - externalReference: String - - """Slug of a channel for which the data should be returned.""" - channel: String - ): ProductVariant - - """ - List of product variants. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. - """ - productVariants( - """Filter product variants by given IDs.""" - ids: [ID!] - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Filtering options for product variant.""" - filter: ProductVariantFilterInput - - """Sort products variants.""" - sortBy: ProductVariantSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductVariantCountableConnection - - """ - List of top selling products. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - reportProductSales( - """Span of time.""" - period: ReportingPeriod! - - """Slug of a channel for which the data should be returned.""" - channel: String! - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductVariantCountableConnection - - """ - Look up a payment by ID. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - payment( - """ID of the payment.""" - id: ID! - ): Payment - - """ - List of payments. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - payments( - """Filtering options for payments.""" - filter: PaymentFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): PaymentCountableConnection - - """ - Look up a transaction by ID. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: HANDLE_PAYMENTS. - """ - transaction( - """ID of a transaction.""" - id: ID! - ): TransactionItem - - """Look up a page by ID or slug.""" - page( - """ID of the page.""" - id: ID - - """The slug of the page.""" - slug: String - ): Page - - """List of the shop's pages.""" - pages( - """Sort pages.""" - sortBy: PageSortingInput - - """Filtering options for pages.""" - filter: PageFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): PageCountableConnection - - """Look up a page type by ID.""" - pageType( - """ID of the page type.""" - id: ID! - ): PageType - - """List of the page types.""" - pageTypes( - """Sort page types.""" - sortBy: PageTypeSortingInput - - """Filtering options for page types.""" - filter: PageTypeFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): PageTypeCountableConnection - - """ - List of activity events to display on homepage (at the moment it only contains order-events). - - Requires one of the following permissions: MANAGE_ORDERS. - """ - homepageEvents( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): OrderEventCountableConnection - - """Look up an order by ID or external reference.""" - order( - """ID of an order.""" - id: ID - - """ - External ID of an order. - - Added in Saleor 3.10. - """ - externalReference: String - ): Order - - """ - List of orders. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - orders( - """Sort orders.""" - sortBy: OrderSortingInput - - """Filtering options for orders.""" - filter: OrderFilterInput - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): OrderCountableConnection - - """ - List of draft orders. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - draftOrders( - """Sort draft orders.""" - sortBy: OrderSortingInput - - """Filtering options for draft orders.""" - filter: OrderDraftFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): OrderCountableConnection - - """ - Return the total sales amount from a specific period. - - Requires one of the following permissions: MANAGE_ORDERS. - """ - ordersTotal( - """A period of time.""" - period: ReportingPeriod - - """Slug of a channel for which the data should be returned.""" - channel: String - ): TaxedMoney - - """Look up an order by token.""" - orderByToken( - """The order's token.""" - token: UUID! - ): Order @deprecated(reason: "This field will be removed in Saleor 4.0.") - - """Look up a navigation menu by ID or name.""" - menu( - """Slug of a channel for which the data should be returned.""" - channel: String - - """ID of the menu.""" - id: ID - - """The menu's name.""" - name: String - - """The menu's slug.""" - slug: String - ): Menu - - """List of the storefront's menus.""" - menus( - """Slug of a channel for which the data should be returned.""" - channel: String - - """Sort menus.""" - sortBy: MenuSortingInput - - """ - Filtering options for menus. - - `slug`: This field will be removed in Saleor 4.0. Use `slugs` instead. - """ - filter: MenuFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): MenuCountableConnection - - """Look up a menu item by ID.""" - menuItem( - """ID of the menu item.""" - id: ID! - - """Slug of a channel for which the data should be returned.""" - channel: String - ): MenuItem - - """List of the storefronts's menu items.""" - menuItems( - """Slug of a channel for which the data should be returned.""" - channel: String - - """Sort menus items.""" - sortBy: MenuItemSortingInput - - """Filtering options for menu items.""" - filter: MenuItemFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): MenuItemCountableConnection - - """ - Look up a gift card by ID. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCard( - """ID of the gift card.""" - id: ID! - ): GiftCard - - """ - List of gift cards. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCards( - """ - Sort gift cards. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - sortBy: GiftCardSortingInput - - """ - Filtering options for gift cards. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - filter: GiftCardFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): GiftCardCountableConnection - - """ - List of gift card currencies. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardCurrencies: [String!]! - - """ - List of gift card tags. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_GIFT_CARD. - """ - giftCardTags( - """Filtering options for gift card tags.""" - filter: GiftCardTagFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): GiftCardTagCountableConnection - - """ - Look up a plugin by ID. - - Requires one of the following permissions: MANAGE_PLUGINS. - """ - plugin( - """ID of the plugin.""" - id: ID! - ): Plugin - - """ - List of plugins. - - Requires one of the following permissions: MANAGE_PLUGINS. - """ - plugins( - """Filtering options for plugins.""" - filter: PluginFilterInput - - """Sort plugins.""" - sortBy: PluginSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): PluginCountableConnection - - """ - Look up a sale by ID. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - sale( - """ID of the sale.""" - id: ID! - - """Slug of a channel for which the data should be returned.""" - channel: String - ): Sale - - """ - List of the shop's sales. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - sales( - """Filtering options for sales.""" - filter: SaleFilterInput - - """Sort sales.""" - sortBy: SaleSortingInput - - """ - Search sales by name, value or type. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead. - """ - query: String - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): SaleCountableConnection - - """ - Look up a voucher by ID. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucher( - """ID of the voucher.""" - id: ID! - - """Slug of a channel for which the data should be returned.""" - channel: String - ): Voucher - - """ - List of the shop's vouchers. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - vouchers( - """Filtering options for vouchers.""" - filter: VoucherFilterInput - - """Sort voucher.""" - sortBy: VoucherSortingInput - - """ - Search vouchers by name or code. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead. - """ - query: String - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): VoucherCountableConnection - - """ - Look up a export file by ID. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - exportFile( - """ID of the export file job.""" - id: ID! - ): ExportFile - - """ - List of export files. - - Requires one of the following permissions: MANAGE_PRODUCTS. - """ - exportFiles( - """Filtering options for export files.""" - filter: ExportFileFilterInput - - """Sort export files.""" - sortBy: ExportFileSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ExportFileCountableConnection - - """List of all tax rates available from tax gateway.""" - taxTypes: [TaxType!] - - """Look up a checkout by token and slug of channel.""" - checkout( - """ - The checkout's ID. - - Added in Saleor 3.4. - """ - id: ID - - """ - The checkout's token. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. - """ - token: UUID - ): Checkout - - """ - List of checkouts. - - Requires one of the following permissions: MANAGE_CHECKOUTS. - """ - checkouts( - """ - Sort checkouts. - - Added in Saleor 3.1. - """ - sortBy: CheckoutSortingInput - - """ - Filtering options for checkouts. - - Added in Saleor 3.1. - """ - filter: CheckoutFilterInput - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CheckoutCountableConnection - - """ - List of checkout lines. - - Requires one of the following permissions: MANAGE_CHECKOUTS. - """ - checkoutLines( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CheckoutLineCountableConnection - - """Look up a channel by ID or slug.""" - channel( - """ID of the channel.""" - id: ID - - """ - Slug of the channel. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - slug: String - ): Channel - - """ - List of all channels. - - Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - """ - channels: [Channel!] - - """List of the shop's attributes.""" - attributes( - """Filtering options for attributes.""" - filter: AttributeFilterInput - - """Sorting options for attributes.""" - sortBy: AttributeSortingInput - - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): AttributeCountableConnection - - """Look up an attribute by ID, slug or external reference.""" - attribute( - """ID of the attribute.""" - id: ID - - """Slug of the attribute.""" - slug: String - - """ - External ID of the attribute. - - Added in Saleor 3.10. - """ - externalReference: String - ): Attribute - - """ - List of all apps installations - - Requires one of the following permissions: MANAGE_APPS. - """ - appsInstallations: [AppInstallation!]! - - """ - List of the apps. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, MANAGE_APPS. - """ - apps( - """Filtering options for apps.""" - filter: AppFilterInput - - """Sort apps.""" - sortBy: AppSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): AppCountableConnection - - """ - Look up an app by ID. If ID is not provided, return the currently authenticated app. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER AUTHENTICATED_APP. The authenticated app has access to its resources. Fetching different apps requires MANAGE_APPS permission. - """ - app( - """ID of the app.""" - id: ID - ): App - - """ - List of all extensions. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - appExtensions( - """Filtering options for apps extensions.""" - filter: AppExtensionFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): AppExtensionCountableConnection - - """ - Look up an app extension by ID. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - appExtension( - """ID of the app extension.""" - id: ID! - ): AppExtension - - """Returns address validation rules.""" - addressValidationRules( - """Two-letter ISO 3166-1 country code.""" - countryCode: CountryCode! - - """Designation of a region, province or state.""" - countryArea: String - - """City or a town name.""" - city: String - - """Sublocality like a district.""" - cityArea: String - ): AddressValidationData - - """Look up an address by ID.""" - address( - """ID of an address.""" - id: ID! - ): Address - - """ - List of the shop's customers. - - Requires one of the following permissions: MANAGE_ORDERS, MANAGE_USERS. - """ - customers( - """Filtering options for customers.""" - filter: CustomerFilterInput - - """Sort customers.""" - sortBy: UserSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): UserCountableConnection - - """ - List of permission groups. - - Requires one of the following permissions: MANAGE_STAFF. - """ - permissionGroups( - """Filtering options for permission groups.""" - filter: PermissionGroupFilterInput - - """Sort permission groups.""" - sortBy: PermissionGroupSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): GroupCountableConnection - - """ - Look up permission group by ID. - - Requires one of the following permissions: MANAGE_STAFF. - """ - permissionGroup( - """ID of the group.""" - id: ID! - ): Group - - """Return the currently authenticated user.""" - me: User - - """ - List of the shop's staff users. - - Requires one of the following permissions: MANAGE_STAFF. - """ - staffUsers( - """Filtering options for staff users.""" - filter: StaffUserInput - - """Sort staff users.""" - sortBy: UserSortingInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): UserCountableConnection - - """ - Look up a user by ID or email address. - - Requires one of the following permissions: MANAGE_STAFF, MANAGE_USERS, MANAGE_ORDERS. - """ - user( - """ID of the user.""" - id: ID - - """Email address of the user.""" - email: String - - """ - External ID of the user. - - Added in Saleor 3.10. - """ - externalReference: String - ): User - _entities(representations: [_Any]): [_Entity] - _service: _Service -} - -"""Represents a reduced VAT rate for a particular type of goods.""" -type ReducedRate { - """Reduced VAT rate in percent.""" - rate: Float! - - """A type of goods.""" - rateType: String! -} - -""" -Refresh JWT token. Mutation tries to take refreshToken from the input.If it fails it will try to take refreshToken from the http-only cookie -refreshToken. csrfToken is required when refreshToken is provided as a cookie. -""" -type RefreshToken { - """JWT token, required to authenticate.""" - token: String - - """A user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -input ReorderInput { - """The ID of the item to move.""" - id: ID! - - """ - The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. - """ - sortOrder: Int -} - -enum ReportingPeriod { - TODAY - THIS_MONTH -} - -""" -Request email change of the logged in user. - -Requires one of the following permissions: AUTHENTICATED_USER. -""" -type RequestEmailChange { - """A user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -"""Sends an email with the account password modification link.""" -type RequestPasswordReset { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -""" -Sales allow creating discounts for categories, collections or products and are visible to all the customers. -""" -type Sale implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String! - type: SaleType! - startDate: DateTime! - endDate: DateTime - created: DateTime! - updatedAt: DateTime! - - """List of categories this sale applies to.""" - categories( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CategoryCountableConnection - - """ - List of collections this sale applies to. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - collections( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CollectionCountableConnection - - """ - List of products this sale applies to. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - products( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductCountableConnection - - """ - List of product variants this sale applies to. - - Added in Saleor 3.1. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - variants( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductVariantCountableConnection - - """Returns translated sale fields for the given language code.""" - translation( - """A language code to return the translation for sale.""" - languageCode: LanguageCodeEnum! - ): SaleTranslation - - """ - List of channels available for the sale. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - channelListings: [SaleChannelListing!] - - """Sale value.""" - discountValue: Float - - """Currency code for sale.""" - currency: String -} - -""" -Adds products, categories, collections to a voucher. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type SaleAddCatalogues { - """Sale of which catalogue IDs will be modified.""" - sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! -} - -""" -Deletes sales. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type SaleBulkDelete { - """Returns how many objects were affected.""" - count: Int! - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! -} - -"""Represents sale channel listing.""" -type SaleChannelListing implements Node { - id: ID! - channel: Channel! - discountValue: Float! - currency: String! -} - -input SaleChannelListingAddInput { - """ID of a channel.""" - channelId: ID! - - """The value of the discount.""" - discountValue: PositiveDecimal! -} - -input SaleChannelListingInput { - """List of channels to which the sale should be assigned.""" - addChannels: [SaleChannelListingAddInput!] - - """List of channels from which the sale should be unassigned.""" - removeChannels: [ID!] -} - -""" -Manage sale's availability in channels. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type SaleChannelListingUpdate { - """An updated sale instance.""" - sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! -} - -type SaleCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [SaleCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type SaleCountableEdge { - """The item at the end of the edge.""" - node: Sale! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new sale. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type SaleCreate { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! - sale: Sale -} - -""" -Event sent when new sale is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type SaleCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The sale the event relates to.""" - sale( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Sale -} - -""" -Deletes a sale. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type SaleDelete { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! - sale: Sale -} - -""" -Event sent when sale is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type SaleDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The sale the event relates to.""" - sale( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Sale -} - -input SaleFilterInput { - status: [DiscountStatusEnum!] - saleType: DiscountValueTypeEnum - started: DateTimeRangeInput - search: String - metadata: [MetadataFilter!] - updatedAt: DateTimeRangeInput -} - -input SaleInput { - """Voucher name.""" - name: String - - """Fixed or percentage.""" - type: DiscountValueTypeEnum - - """Value of the voucher.""" - value: PositiveDecimal - - """Products related to the discount.""" - products: [ID!] - variants: [ID!] - - """Categories related to the discount.""" - categories: [ID!] - - """Collections related to the discount.""" - collections: [ID!] - - """Start date of the voucher in ISO 8601 format.""" - startDate: DateTime - - """End date of the voucher in ISO 8601 format.""" - endDate: DateTime -} - -""" -Removes products, categories, collections from a sale. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type SaleRemoveCatalogues { - """Sale of which catalogue IDs will be modified.""" - sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! -} - -enum SaleSortField { - """Sort sales by name.""" - NAME - - """Sort sales by start date.""" - START_DATE - - """Sort sales by end date.""" - END_DATE - - """ - Sort sales by value. - - This option requires a channel filter to work as the values can vary between channels. - """ - VALUE - - """Sort sales by type.""" - TYPE - - """Sort sales by created at.""" - CREATED_AT - - """Sort sales by last modified at.""" - LAST_MODIFIED_AT -} - -input SaleSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """ - Specifies the channel in which to sort the data. - - DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - """ - channel: String - - """Sort sales by the selected field.""" - field: SaleSortField! -} - -""" -The event informs about the start or end of the sale. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type SaleToggle implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """ - The sale the event relates to. - - Added in Saleor 3.5. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - sale( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Sale -} - -type SaleTranslatableContent implements Node { - id: ID! - name: String! - - """Returns translated sale fields for the given language code.""" - translation( - """A language code to return the translation for sale.""" - languageCode: LanguageCodeEnum! - ): SaleTranslation - - """ - Sales allow creating discounts for categories, collections or products and are visible to all the customers. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - sale: Sale @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") -} - -""" -Creates/updates translations for a sale. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type SaleTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - sale: Sale -} - -type SaleTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - name: String -} - -enum SaleType { - FIXED - PERCENTAGE -} - -""" -Updates a sale. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type SaleUpdate { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! - sale: Sale -} - -""" -Event sent when sale is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type SaleUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The sale the event relates to.""" - sale( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Sale -} - -"""Represents a custom attribute.""" -type SelectedAttribute { - """Name of an attribute displayed in the interface.""" - attribute: Attribute! - - """Values of an attribute.""" - values: [AttributeValue!]! -} - -input SeoInput { - """SEO title.""" - title: String - - """SEO description.""" - description: String -} - -""" -Sets the user's password from the token sent by email using the RequestPasswordReset mutation. -""" -type SetPassword { - """JWT token, required to authenticate.""" - token: String - - """JWT refresh token, required to re-generate access token.""" - refreshToken: String - - """CSRF token required to re-generate access token.""" - csrfToken: String - - """A user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -type ShippingError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ShippingErrorCode! - - """List of warehouse IDs which causes the error.""" - warehouses: [ID!] - - """List of channels IDs which causes the error.""" - channels: [ID!] -} - -"""An enumeration.""" -enum ShippingErrorCode { - ALREADY_EXISTS - GRAPHQL_ERROR - INVALID - MAX_LESS_THAN_MIN - NOT_FOUND - REQUIRED - UNIQUE - DUPLICATED_INPUT_ITEM -} - -""" -List shipping methods for checkout. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingListMethodsForCheckout implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The checkout the event relates to.""" - checkout: Checkout - - """ - Shipping methods that can be used with this checkout. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - shippingMethods: [ShippingMethod!] -} - -""" -Shipping methods that can be used as means of shipping for orders and checkouts. -""" -type ShippingMethod implements Node & ObjectWithMetadata { - """Unique ID of ShippingMethod available for Order.""" - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - - """Type of the shipping method.""" - type: ShippingMethodTypeEnum @deprecated(reason: "This field will be removed in Saleor 4.0.") - - """Shipping method name.""" - name: String! - - """ - Shipping method description. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """Maximum delivery days for this shipping method.""" - maximumDeliveryDays: Int - - """Minimum delivery days for this shipping method.""" - minimumDeliveryDays: Int - - """Maximum order weight for this shipping method.""" - maximumOrderWeight: Weight @deprecated(reason: "This field will be removed in Saleor 4.0.") - - """Minimum order weight for this shipping method.""" - minimumOrderWeight: Weight @deprecated(reason: "This field will be removed in Saleor 4.0.") - - """Returns translated shipping method fields for the given language code.""" - translation( - """A language code to return the translation for shipping method.""" - languageCode: LanguageCodeEnum! - ): ShippingMethodTranslation - - """The price of selected shipping method.""" - price: Money! - - """Maximum order price for this shipping method.""" - maximumOrderPrice: Money - - """Minimal order price for this shipping method.""" - minimumOrderPrice: Money - - """Describes if this shipping method is active and can be selected.""" - active: Boolean! - - """Message connected to this shipping method.""" - message: String -} - -"""Represents shipping method channel listing.""" -type ShippingMethodChannelListing implements Node { - id: ID! - channel: Channel! - maximumOrderPrice: Money - minimumOrderPrice: Money - price: Money -} - -input ShippingMethodChannelListingAddInput { - """ID of a channel.""" - channelId: ID! - - """Shipping price of the shipping method in this channel.""" - price: PositiveDecimal - - """Minimum order price to use this shipping method.""" - minimumOrderPrice: PositiveDecimal - - """Maximum order price to use this shipping method.""" - maximumOrderPrice: PositiveDecimal -} - -input ShippingMethodChannelListingInput { - """List of channels to which the shipping method should be assigned.""" - addChannels: [ShippingMethodChannelListingAddInput!] - - """List of channels from which the shipping method should be unassigned.""" - removeChannels: [ID!] -} - -""" -Manage shipping method's availability in channels. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingMethodChannelListingUpdate { - """An updated shipping method instance.""" - shippingMethod: ShippingMethodType - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! -} - -"""Represents shipping method postal code rule.""" -type ShippingMethodPostalCodeRule implements Node { - """The ID of the object.""" - id: ID! - - """Start address range.""" - start: String - - """End address range.""" - end: String - - """Inclusion type of the postal code rule.""" - inclusionType: PostalCodeRuleInclusionTypeEnum -} - -type ShippingMethodTranslatableContent implements Node { - id: ID! - name: String! - - """ - Description of the shipping method. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """Returns translated shipping method fields for the given language code.""" - translation( - """A language code to return the translation for shipping method.""" - languageCode: LanguageCodeEnum! - ): ShippingMethodTranslation - - """ - Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - shippingMethod: ShippingMethodType @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") -} - -type ShippingMethodTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - name: String - - """ - Translated description of the shipping method. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString -} - -""" -Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. -""" -type ShippingMethodType implements Node & ObjectWithMetadata { - """Shipping method ID.""" - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - - """Shipping method name.""" - name: String! - - """ - Shipping method description. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString - - """Type of the shipping method.""" - type: ShippingMethodTypeEnum - - """Returns translated shipping method fields for the given language code.""" - translation( - """A language code to return the translation for shipping method.""" - languageCode: LanguageCodeEnum! - ): ShippingMethodTranslation - - """ - List of channels available for the method. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - channelListings: [ShippingMethodChannelListing!] - - """The price of the cheapest variant (including discounts).""" - maximumOrderPrice: Money - - """The price of the cheapest variant (including discounts).""" - minimumOrderPrice: Money - - """ - Postal code ranges rule of exclusion or inclusion of the shipping method. - """ - postalCodeRules: [ShippingMethodPostalCodeRule!] - - """ - List of excluded products for the shipping method. - - Requires one of the following permissions: MANAGE_SHIPPING. - """ - excludedProducts( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductCountableConnection - - """Minimum order weight to use this shipping method.""" - minimumOrderWeight: Weight - - """Maximum order weight to use this shipping method.""" - maximumOrderWeight: Weight - - """Maximum number of days for delivery.""" - maximumDeliveryDays: Int - - """Minimal number of days for delivery.""" - minimumDeliveryDays: Int - - """ - Tax class assigned to this shipping method. - - Requires one of the following permissions: MANAGE_TAXES, MANAGE_SHIPPING. - """ - taxClass: TaxClass -} - -"""An enumeration.""" -enum ShippingMethodTypeEnum { - PRICE - WEIGHT -} - -""" -List of shipping methods available for the country. - -Added in Saleor 3.6. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingMethodsPerCountry { - """The country code.""" - countryCode: CountryCode! - - """List of available shipping methods.""" - shippingMethods: [ShippingMethod!] -} - -input ShippingPostalCodeRulesCreateInputRange { - """Start range of the postal code.""" - start: String! - - """End range of the postal code.""" - end: String -} - -""" -Deletes shipping prices. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingPriceBulkDelete { - """Returns how many objects were affected.""" - count: Int! - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! -} - -""" -Creates a new shipping price. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingPriceCreate { - """A shipping zone to which the shipping method belongs.""" - shippingZone: ShippingZone - shippingMethod: ShippingMethodType - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! -} - -""" -Event sent when new shipping price is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingPriceCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The shipping method the event relates to.""" - shippingMethod( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingMethodType - - """The shipping zone the shipping method belongs to.""" - shippingZone( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingZone -} - -""" -Deletes a shipping price. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingPriceDelete { - """A shipping method to delete.""" - shippingMethod: ShippingMethodType - - """A shipping zone to which the shipping method belongs.""" - shippingZone: ShippingZone - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! -} - -""" -Event sent when shipping price is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingPriceDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The shipping method the event relates to.""" - shippingMethod( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingMethodType - - """The shipping zone the shipping method belongs to.""" - shippingZone( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingZone -} - -""" -Exclude products from shipping price. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingPriceExcludeProducts { - """A shipping method with new list of excluded products.""" - shippingMethod: ShippingMethodType - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! -} - -input ShippingPriceExcludeProductsInput { - """List of products which will be excluded.""" - products: [ID!]! -} - -input ShippingPriceInput { - """Name of the shipping method.""" - name: String - - """Shipping method description.""" - description: JSONString - - """Minimum order weight to use this shipping method.""" - minimumOrderWeight: WeightScalar - - """Maximum order weight to use this shipping method.""" - maximumOrderWeight: WeightScalar - - """Maximum number of days for delivery.""" - maximumDeliveryDays: Int - - """Minimal number of days for delivery.""" - minimumDeliveryDays: Int - - """Shipping type: price or weight based.""" - type: ShippingMethodTypeEnum - - """Shipping zone this method belongs to.""" - shippingZone: ID - - """Postal code rules to add.""" - addPostalCodeRules: [ShippingPostalCodeRulesCreateInputRange!] - - """Postal code rules to delete.""" - deletePostalCodeRules: [ID!] - - """Inclusion type for currently assigned postal code rules.""" - inclusionType: PostalCodeRuleInclusionTypeEnum - - """ - ID of a tax class to assign to this shipping method. If not provided, the default tax class will be used. - """ - taxClass: ID -} - -""" -Remove product from excluded list for shipping price. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingPriceRemoveProductFromExclude { - """A shipping method with new list of excluded products.""" - shippingMethod: ShippingMethodType - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! -} - -""" -Creates/updates translations for a shipping method. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type ShippingPriceTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - shippingMethod: ShippingMethodType -} - -input ShippingPriceTranslationInput { - name: String - - """ - Translated shipping method description. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString -} - -""" -Updates a new shipping price. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingPriceUpdate { - """A shipping zone to which the shipping method belongs.""" - shippingZone: ShippingZone - shippingMethod: ShippingMethodType - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! -} - -""" -Event sent when shipping price is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingPriceUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The shipping method the event relates to.""" - shippingMethod( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingMethodType - - """The shipping zone the shipping method belongs to.""" - shippingZone( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingZone -} - -""" -Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly. -""" -type ShippingZone implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String! - default: Boolean! - - """Lowest and highest prices for the shipping.""" - priceRange: MoneyRange - - """List of countries available for the method.""" - countries: [CountryDisplay!]! - - """ - List of shipping methods available for orders shipped to countries within this shipping zone. - """ - shippingMethods: [ShippingMethodType!] - - """List of warehouses for shipping zone.""" - warehouses: [Warehouse!]! - - """List of channels for shipping zone.""" - channels: [Channel!]! - - """Description of a shipping zone.""" - description: String -} - -""" -Deletes shipping zones. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingZoneBulkDelete { - """Returns how many objects were affected.""" - count: Int! - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! -} - -type ShippingZoneCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [ShippingZoneCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type ShippingZoneCountableEdge { - """The item at the end of the edge.""" - node: ShippingZone! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new shipping zone. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingZoneCreate { - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! - shippingZone: ShippingZone -} - -input ShippingZoneCreateInput { - """Shipping zone's name. Visible only to the staff.""" - name: String - - """Description of the shipping zone.""" - description: String - - """List of countries in this shipping zone.""" - countries: [String!] - - """ - Default shipping zone will be used for countries not covered by other zones. - """ - default: Boolean - - """List of warehouses to assign to a shipping zone""" - addWarehouses: [ID!] - - """List of channels to assign to the shipping zone.""" - addChannels: [ID!] -} - -""" -Event sent when new shipping zone is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingZoneCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The shipping zone the event relates to.""" - shippingZone( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingZone -} - -""" -Deletes a shipping zone. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingZoneDelete { - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! - shippingZone: ShippingZone -} - -""" -Event sent when shipping zone is deleted. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingZoneDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The shipping zone the event relates to.""" - shippingZone( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingZone -} - -input ShippingZoneFilterInput { - search: String - channels: [ID!] -} - -""" -Event sent when shipping zone metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingZoneMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The shipping zone the event relates to.""" - shippingZone( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingZone -} - -""" -Updates a new shipping zone. - -Requires one of the following permissions: MANAGE_SHIPPING. -""" -type ShippingZoneUpdate { - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShippingError!]! - shippingZone: ShippingZone -} - -input ShippingZoneUpdateInput { - """Shipping zone's name. Visible only to the staff.""" - name: String - - """Description of the shipping zone.""" - description: String - - """List of countries in this shipping zone.""" - countries: [String!] - - """ - Default shipping zone will be used for countries not covered by other zones. - """ - default: Boolean - - """List of warehouses to assign to a shipping zone""" - addWarehouses: [ID!] - - """List of channels to assign to the shipping zone.""" - addChannels: [ID!] - - """List of warehouses to unassign from a shipping zone""" - removeWarehouses: [ID!] - - """List of channels to unassign from the shipping zone.""" - removeChannels: [ID!] -} - -""" -Event sent when shipping zone is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type ShippingZoneUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The shipping zone the event relates to.""" - shippingZone( - """Slug of a channel for which the data should be returned.""" - channel: String - ): ShippingZone -} - -""" -Represents a shop resource containing general shop data and configuration. -""" -type Shop { - """List of available payment gateways.""" - availablePaymentGateways( - """ - A currency for which gateways will be returned. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `channel` argument instead. - """ - currency: String - - """Slug of a channel for which the data should be returned.""" - channel: String - ): [PaymentGateway!]! - - """List of available external authentications.""" - availableExternalAuthentications: [ExternalAuthentication!]! - - """Shipping methods that are available for the shop.""" - availableShippingMethods( - """Slug of a channel for which the data should be returned.""" - channel: String! - - """Address for which available shipping methods should be returned.""" - address: AddressInput - ): [ShippingMethod!] - - """ - List of all currencies supported by shop's channels. - - Added in Saleor 3.1. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - channelCurrencies: [String!]! - - """List of countries available in the shop.""" - countries( - """ - A language code to return the translation for. - - DEPRECATED: this field will be removed in Saleor 4.0. - """ - languageCode: LanguageCodeEnum - - """Filtering options for countries""" - filter: CountryFilterInput - ): [CountryDisplay!]! - - """Shop's default country.""" - defaultCountry: CountryDisplay - - """ - Default shop's email sender's name. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - defaultMailSenderName: String - - """ - Default shop's email sender's address. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - defaultMailSenderAddress: String - - """Shop's description.""" - description: String - - """Shop's domain data.""" - domain: Domain! - - """List of the shops's supported languages.""" - languages: [LanguageDisplay!]! - - """Shop's name.""" - name: String! - - """List of available permissions.""" - permissions: [Permission!]! - - """List of possible phone prefixes.""" - phonePrefixes: [String!]! - - """Header text.""" - headerText: String - - """ - Automatically approve all new fulfillments. - - Added in Saleor 3.1. - """ - fulfillmentAutoApprove: Boolean! - - """ - Allow to approve fulfillments which are unpaid. - - Added in Saleor 3.1. - """ - fulfillmentAllowUnpaid: Boolean! - - """Enable inventory tracking.""" - trackInventoryByDefault: Boolean - - """Default weight unit.""" - defaultWeightUnit: WeightUnitsEnum - - """Returns translated shop fields for the given language code.""" - translation( - """A language code to return the translation for shop.""" - languageCode: LanguageCodeEnum! - ): ShopTranslation - - """ - Enable automatic fulfillment for all digital products. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - automaticFulfillmentDigitalProducts: Boolean - - """ - Default number of minutes stock will be reserved for anonymous checkout or null when stock reservation is disabled. - - Added in Saleor 3.1. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - reserveStockDurationAnonymousUser: Int - - """ - Default number of minutes stock will be reserved for authenticated checkout or null when stock reservation is disabled. - - Added in Saleor 3.1. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - reserveStockDurationAuthenticatedUser: Int - - """ - Default number of maximum line quantity in single checkout (per single checkout line). - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - limitQuantityPerCheckout: Int - - """ - Default number of max downloads per digital content URL. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - defaultDigitalMaxDownloads: Int - - """ - Default number of days which digital content URL will be valid. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - defaultDigitalUrlValidDays: Int - - """Company address.""" - companyAddress: Address - - """URL of a view where customers can set their password.""" - customerSetPasswordUrl: String - - """ - List of staff notification recipients. - - Requires one of the following permissions: MANAGE_SETTINGS. - """ - staffNotificationRecipients: [StaffNotificationRecipient!] - - """ - Resource limitations and current usage if any set for a shop - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER. - """ - limits: LimitInfo! - - """ - Saleor API version. - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - """ - version: String! - - """ - Minor Saleor API version. - - Added in Saleor 3.5. - """ - schemaVersion: String! - - """Include taxes in prices.""" - includeTaxesInPrices: Boolean! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration.pricesEnteredWithTax` to determine whether prices are entered with tax.") - - """Display prices with tax in store.""" - displayGrossPrices: Boolean! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to determine whether to display gross or net prices.") - - """Charge taxes on shipping.""" - chargeTaxesOnShipping: Boolean! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `ShippingMethodType.taxClass` to determine whether taxes are calculated for shipping methods; if a tax class is set, the taxes will be calculated, otherwise no tax rate will be applied.") -} - -""" -Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. - -Requires one of the following permissions: MANAGE_SETTINGS. -""" -type ShopAddressUpdate { - """Updated shop.""" - shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShopError!]! -} - -""" -Updates site domain of the shop. - -Requires one of the following permissions: MANAGE_SETTINGS. -""" -type ShopDomainUpdate { - """Updated shop.""" - shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShopError!]! -} - -type ShopError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: ShopErrorCode! -} - -"""An enumeration.""" -enum ShopErrorCode { - ALREADY_EXISTS - CANNOT_FETCH_TAX_RATES - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE -} - -""" -Fetch tax rates. - -Requires one of the following permissions: MANAGE_SETTINGS. -""" -type ShopFetchTaxRates { - """Updated shop.""" - shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShopError!]! -} - -input ShopSettingsInput { - """Header text.""" - headerText: String - - """SEO description.""" - description: String - - """Enable inventory tracking.""" - trackInventoryByDefault: Boolean - - """Default weight unit.""" - defaultWeightUnit: WeightUnitsEnum - - """Enable automatic fulfillment for all digital products.""" - automaticFulfillmentDigitalProducts: Boolean - - """ - Enable automatic approval of all new fulfillments. - - Added in Saleor 3.1. - """ - fulfillmentAutoApprove: Boolean - - """ - Enable ability to approve fulfillments which are unpaid. - - Added in Saleor 3.1. - """ - fulfillmentAllowUnpaid: Boolean - - """Default number of max downloads per digital content URL.""" - defaultDigitalMaxDownloads: Int - - """Default number of days which digital content URL will be valid.""" - defaultDigitalUrlValidDays: Int - - """Default email sender's name.""" - defaultMailSenderName: String - - """Default email sender's address.""" - defaultMailSenderAddress: String - - """URL of a view where customers can set their password.""" - customerSetPasswordUrl: String - - """ - Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable. - - Added in Saleor 3.1. - """ - reserveStockDurationAnonymousUser: Int - - """ - Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable. - - Added in Saleor 3.1. - """ - reserveStockDurationAuthenticatedUser: Int - - """ - Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - limitQuantityPerCheckout: Int - - """ - Include taxes in prices. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - """ - includeTaxesInPrices: Boolean - - """ - Display prices with tax in store. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - """ - displayGrossPrices: Boolean - - """ - Charge taxes on shipping. - - DEPRECATED: this field will be removed in Saleor 4.0. To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. - """ - chargeTaxesOnShipping: Boolean -} - -""" -Creates/updates translations for shop settings. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type ShopSettingsTranslate { - """Updated shop settings.""" - shop: Shop - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! -} - -input ShopSettingsTranslationInput { - headerText: String - description: String -} - -""" -Updates shop settings. - -Requires one of the following permissions: MANAGE_SETTINGS. -""" -type ShopSettingsUpdate { - """Updated shop.""" - shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShopError!]! -} - -type ShopTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - headerText: String! - description: String! -} - -input SiteDomainInput { - """Domain name for shop.""" - domain: String - - """Shop site name.""" - name: String -} - -""" -Deletes staff users. Apps are not allowed to perform this mutation. - -Requires one of the following permissions: MANAGE_STAFF. -""" -type StaffBulkDelete { - """Returns how many objects were affected.""" - count: Int! - staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [StaffError!]! -} - -""" -Creates a new staff user. Apps are not allowed to perform this mutation. - -Requires one of the following permissions: MANAGE_STAFF. -""" -type StaffCreate { - staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [StaffError!]! - user: User -} - -input StaffCreateInput { - """Given name.""" - firstName: String - - """Family name.""" - lastName: String - - """The unique email address of the user.""" - email: String - - """User account is active.""" - isActive: Boolean - - """A note about the user.""" - note: String - - """List of permission group IDs to which user should be assigned.""" - addGroups: [ID!] - - """ - URL of a view where users should be redirected to set the password. URL in RFC 1808 format. - """ - redirectUrl: String -} - -""" -Event sent when new staff user is created. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type StaffCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The user the event relates to.""" - user: User -} - -""" -Deletes a staff user. Apps are not allowed to perform this mutation. - -Requires one of the following permissions: MANAGE_STAFF. -""" -type StaffDelete { - staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [StaffError!]! - user: User -} - -""" -Event sent when staff user is deleted. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type StaffDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The user the event relates to.""" - user: User -} - -type StaffError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: AccountErrorCode! - - """A type of address that causes the error.""" - addressType: AddressTypeEnum - - """List of permissions which causes the error.""" - permissions: [PermissionEnum!] - - """List of permission group IDs which cause the error.""" - groups: [ID!] - - """List of user IDs which causes the error.""" - users: [ID!] -} - -enum StaffMemberStatus { - """User account has been activated.""" - ACTIVE - - """User account has not been activated yet.""" - DEACTIVATED -} - -""" -Represents a recipient of email notifications send by Saleor, such as notifications about new orders. Notifications can be assigned to staff users or arbitrary email addresses. -""" -type StaffNotificationRecipient implements Node { - id: ID! - - """Returns a user subscribed to email notifications.""" - user: User - - """Returns email address of a user subscribed to email notifications.""" - email: String - - """Determines if a notification active.""" - active: Boolean -} - -""" -Creates a new staff notification recipient. - -Requires one of the following permissions: MANAGE_SETTINGS. -""" -type StaffNotificationRecipientCreate { - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShopError!]! - staffNotificationRecipient: StaffNotificationRecipient -} - -""" -Delete staff notification recipient. - -Requires one of the following permissions: MANAGE_SETTINGS. -""" -type StaffNotificationRecipientDelete { - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShopError!]! - staffNotificationRecipient: StaffNotificationRecipient -} - -input StaffNotificationRecipientInput { - """The ID of the user subscribed to email notifications..""" - user: ID - - """Email address of a user subscribed to email notifications.""" - email: String - - """Determines if a notification active.""" - active: Boolean -} - -""" -Updates a staff notification recipient. - -Requires one of the following permissions: MANAGE_SETTINGS. -""" -type StaffNotificationRecipientUpdate { - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ShopError!]! - staffNotificationRecipient: StaffNotificationRecipient -} - -""" -Updates an existing staff user. Apps are not allowed to perform this mutation. - -Requires one of the following permissions: MANAGE_STAFF. -""" -type StaffUpdate { - staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [StaffError!]! - user: User -} - -input StaffUpdateInput { - """Given name.""" - firstName: String - - """Family name.""" - lastName: String - - """The unique email address of the user.""" - email: String - - """User account is active.""" - isActive: Boolean - - """A note about the user.""" - note: String - - """List of permission group IDs to which user should be assigned.""" - addGroups: [ID!] - - """List of permission group IDs from which user should be unassigned.""" - removeGroups: [ID!] -} - -""" -Event sent when staff user is updated. - -Added in Saleor 3.5. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type StaffUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The user the event relates to.""" - user: User -} - -input StaffUserInput { - status: StaffMemberStatus - search: String - ids: [ID!] -} - -"""Represents stock.""" -type Stock implements Node { - id: ID! - warehouse: Warehouse! - productVariant: ProductVariant! - - """ - Quantity of a product in the warehouse's possession, including the allocated stock that is waiting for shipment. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - """ - quantity: Int! - - """ - Quantity allocated for orders. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - """ - quantityAllocated: Int! - - """ - Quantity reserved for checkouts. - - Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - """ - quantityReserved: Int! -} - -enum StockAvailability { - IN_STOCK - OUT_OF_STOCK -} - -type StockCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [StockCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type StockCountableEdge { - """The item at the end of the edge.""" - node: Stock! - - """A cursor for use in pagination.""" - cursor: String! -} - -type StockError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: StockErrorCode! -} - -"""An enumeration.""" -enum StockErrorCode { - ALREADY_EXISTS - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE -} - -input StockFilterInput { - quantity: Float - search: String -} - -input StockInput { - """Warehouse in which stock is located.""" - warehouse: ID! - - """Quantity of items available for sell.""" - quantity: Int! -} - -""" -Represents the channel stock settings. - -Added in Saleor 3.7. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type StockSettings { - """ - Allocation strategy defines the preference of warehouses for allocations and reservations. - """ - allocationStrategy: AllocationStrategyEnum! -} - -input StockSettingsInput { - """ - Allocation strategy options. Strategy defines the preference of warehouses for allocations and reservations. - """ - allocationStrategy: AllocationStrategyEnum! -} - -"""Enum representing the type of a payment storage in a gateway.""" -enum StorePaymentMethodEnum { - """ - On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. - """ - ON_SESSION - - """ - Off session storage type. The payment is stored to be reused even if the customer is absent. - """ - OFF_SESSION - - """Storage is disabled. The payment is not stored.""" - NONE -} - -type Subscription { - """ - Look up subscription event. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - event: Event -} - -enum TaxCalculationStrategy { - FLAT_RATES - TAX_APP -} - -""" -Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TaxClass implements Node & ObjectWithMetadata { - """The ID of the object.""" - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - - """Name of the tax class.""" - name: String! - - """Country-specific tax rates for this tax class.""" - countries: [TaxClassCountryRate!]! -} - -type TaxClassCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [TaxClassCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type TaxClassCountableEdge { - """The item at the end of the edge.""" - node: TaxClass! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Tax rate for a country. When tax class is null, it represents the default tax rate for that country; otherwise it's a country tax rate specific to the given tax class. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TaxClassCountryRate { - """Country in which this tax rate applies.""" - country: CountryDisplay! - - """Tax rate value.""" - rate: Float! - - """Related tax class.""" - taxClass: TaxClass -} - -""" -Create a tax class. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_TAXES. -""" -type TaxClassCreate { - errors: [TaxClassCreateError!]! - taxClass: TaxClass -} - -type TaxClassCreateError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TaxClassCreateErrorCode! - - """List of country codes for which the configuration is invalid.""" - countryCodes: [String!]! -} - -"""An enumeration.""" -enum TaxClassCreateErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND -} - -input TaxClassCreateInput { - """Name of the tax class.""" - name: String! - - """List of country-specific tax rates to create for this tax class.""" - createCountryRates: [CountryRateInput!] -} - -""" -Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_TAXES. -""" -type TaxClassDelete { - errors: [TaxClassDeleteError!]! - taxClass: TaxClass -} - -type TaxClassDeleteError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TaxClassDeleteErrorCode! -} - -"""An enumeration.""" -enum TaxClassDeleteErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND -} - -input TaxClassFilterInput { - metadata: [MetadataFilter!] - ids: [ID!] - countries: [CountryCode!] -} - -input TaxClassRateInput { - """ID of a tax class for which to update the tax rate""" - taxClassId: ID - - """Tax rate value.""" - rate: Float -} - -enum TaxClassSortField { - """Sort tax classes by name.""" - NAME -} - -input TaxClassSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort tax classes by the selected field.""" - field: TaxClassSortField! -} - -""" -Update a tax class. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_TAXES. -""" -type TaxClassUpdate { - errors: [TaxClassUpdateError!]! - taxClass: TaxClass -} - -type TaxClassUpdateError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TaxClassUpdateErrorCode! - - """List of country codes for which the configuration is invalid.""" - countryCodes: [String!]! -} - -"""An enumeration.""" -enum TaxClassUpdateErrorCode { - DUPLICATED_INPUT_ITEM - GRAPHQL_ERROR - INVALID - NOT_FOUND -} - -input TaxClassUpdateInput { - """Name of the tax class.""" - name: String - - """ - List of country-specific tax rates to create or update for this tax class. - """ - updateCountryRates: [CountryRateUpdateInput!] - - """ - List of country codes for which to remove the tax class rates. Note: It removes all rates for given country code. - """ - removeCountryRates: [CountryCode!] -} - -""" -Channel-specific tax configuration. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TaxConfiguration implements Node & ObjectWithMetadata { - """The ID of the object.""" - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - - """A channel to which the tax configuration applies to.""" - channel: Channel! - - """Determines whether taxes are charged in the given channel.""" - chargeTaxes: Boolean! - - """ - The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. - """ - taxCalculationStrategy: TaxCalculationStrategy - - """ - Determines whether prices displayed in a storefront should include taxes. - """ - displayGrossPrices: Boolean! - - """Determines whether prices are entered with the tax included.""" - pricesEnteredWithTax: Boolean! - - """List of country-specific exceptions in tax configuration.""" - countries: [TaxConfigurationPerCountry!]! -} - -type TaxConfigurationCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [TaxConfigurationCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type TaxConfigurationCountableEdge { - """The item at the end of the edge.""" - node: TaxConfiguration! - - """A cursor for use in pagination.""" - cursor: String! -} - -input TaxConfigurationFilterInput { - metadata: [MetadataFilter!] - ids: [ID!] -} - -""" -Country-specific exceptions of a channel's tax configuration. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TaxConfigurationPerCountry { - """Country in which this configuration applies.""" - country: CountryDisplay! - - """Determines whether taxes are charged in this country.""" - chargeTaxes: Boolean! - - """ - A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. - """ - taxCalculationStrategy: TaxCalculationStrategy - - """ - Determines whether prices displayed in a storefront should include taxes for this country. - """ - displayGrossPrices: Boolean! -} - -input TaxConfigurationPerCountryInput { - """Country in which this configuration applies.""" - countryCode: CountryCode! - - """Determines whether taxes are charged in this country.""" - chargeTaxes: Boolean! - - """ - A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. - """ - taxCalculationStrategy: TaxCalculationStrategy - - """ - Determines whether prices displayed in a storefront should include taxes for this country. - """ - displayGrossPrices: Boolean! -} - -""" -Update tax configuration for a channel. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_TAXES. -""" -type TaxConfigurationUpdate { - errors: [TaxConfigurationUpdateError!]! - taxConfiguration: TaxConfiguration -} - -type TaxConfigurationUpdateError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TaxConfigurationUpdateErrorCode! - - """List of country codes for which the configuration is invalid.""" - countryCodes: [String!]! -} - -"""An enumeration.""" -enum TaxConfigurationUpdateErrorCode { - DUPLICATED_INPUT_ITEM - GRAPHQL_ERROR - INVALID - NOT_FOUND -} - -input TaxConfigurationUpdateInput { - """Determines whether taxes are charged in the given channel.""" - chargeTaxes: Boolean - - """ - The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. - """ - taxCalculationStrategy: TaxCalculationStrategy - - """ - Determines whether prices displayed in a storefront should include taxes. - """ - displayGrossPrices: Boolean - - """Determines whether prices are entered with the tax included.""" - pricesEnteredWithTax: Boolean - - """ - List of tax country configurations to create or update (identified by a country code). - """ - updateCountriesConfiguration: [TaxConfigurationPerCountryInput!] - - """List of country codes for which to remove the tax configuration.""" - removeCountriesConfiguration: [CountryCode!] -} - -""" -Tax class rates grouped by country. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TaxCountryConfiguration { - """A country for which tax class rates are grouped.""" - country: CountryDisplay! - - """List of tax class rates.""" - taxClassCountryRates: [TaxClassCountryRate!]! -} - -""" -Remove all tax class rates for a specific country. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_TAXES. -""" -type TaxCountryConfigurationDelete { - """Updated tax class rates grouped by a country.""" - taxCountryConfiguration: TaxCountryConfiguration - errors: [TaxCountryConfigurationDeleteError!]! -} - -type TaxCountryConfigurationDeleteError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TaxCountryConfigurationDeleteErrorCode! -} - -"""An enumeration.""" -enum TaxCountryConfigurationDeleteErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND -} - -""" -Update tax class rates for a specific country. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_TAXES. -""" -type TaxCountryConfigurationUpdate { - """Updated tax class rates grouped by a country.""" - taxCountryConfiguration: TaxCountryConfiguration - errors: [TaxCountryConfigurationUpdateError!]! -} - -type TaxCountryConfigurationUpdateError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TaxCountryConfigurationUpdateErrorCode! - - """List of tax class IDs for which the update failed.""" - taxClassIds: [String!]! -} - -"""An enumeration.""" -enum TaxCountryConfigurationUpdateErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND - ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED - CANNOT_CREATE_NEGATIVE_RATE -} - -""" -Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: MANAGE_TAXES. -""" -type TaxExemptionManage { - taxableObject: TaxSourceObject - errors: [TaxExemptionManageError!]! -} - -type TaxExemptionManageError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TaxExemptionManageErrorCode! -} - -"""An enumeration.""" -enum TaxExemptionManageErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND - NOT_EDITABLE_ORDER -} - -union TaxSourceLine = CheckoutLine | OrderLine - -union TaxSourceObject = Checkout | Order - -"""Representation of tax types fetched from tax gateway.""" -type TaxType { - """Description of the tax type.""" - description: String - - """External tax code used to identify given tax group.""" - taxCode: String -} - -"""Taxable object.""" -type TaxableObject { - """The source object related to this tax object.""" - sourceObject: TaxSourceObject! - - """Determines if prices contain entered tax..""" - pricesEnteredWithTax: Boolean! - - """The currency of the object.""" - currency: String! - - """The price of shipping method.""" - shippingPrice: Money! - - """The address data.""" - address: Address - - """List of discounts.""" - discounts: [TaxableObjectDiscount!]! - - """List of lines assigned to the object.""" - lines: [TaxableObjectLine!]! - channel: Channel! -} - -"""Taxable object discount.""" -type TaxableObjectDiscount { - """The name of the discount.""" - name: String - - """The amount of the discount.""" - amount: Money! -} - -type TaxableObjectLine { - """The source line related to this tax line.""" - sourceLine: TaxSourceLine! - - """Number of items.""" - quantity: Int! - - """Determines if taxes are being charged for the product.""" - chargeTaxes: Boolean! - - """The product name.""" - productName: String! - - """The variant name.""" - variantName: String! - - """The product sku.""" - productSku: String - - """Price of the single item in the order line.""" - unitPrice: Money! - - """Price of the order line.""" - totalPrice: Money! -} - -""" -Represents a monetary value with taxes. In cases where taxes were not applied, net and gross values will be equal. -""" -type TaxedMoney { - """Currency code.""" - currency: String! - - """Amount of money including taxes.""" - gross: Money! - - """Amount of money without taxes.""" - net: Money! - - """Amount of taxes.""" - tax: Money! -} - -"""Represents a range of monetary values.""" -type TaxedMoneyRange { - """Lower bound of a price range.""" - start: TaxedMoney - - """Upper bound of a price range.""" - stop: TaxedMoney -} - -"""An enumeration.""" -enum ThumbnailFormatEnum { - WEBP -} - -type TimePeriod { - """The length of the period.""" - amount: Int! - - """The type of the period.""" - type: TimePeriodTypeEnum! -} - -input TimePeriodInputType { - """The length of the period.""" - amount: Int! - - """The type of the period.""" - type: TimePeriodTypeEnum! -} - -"""An enumeration.""" -enum TimePeriodTypeEnum { - DAY - WEEK - MONTH - YEAR -} - -"""An object representing a single payment.""" -type Transaction implements Node { - id: ID! - created: DateTime! - payment: Payment! - token: String! - kind: TransactionKind! - isSuccess: Boolean! - error: String - gatewayResponse: JSONString! - - """Total amount of the transaction.""" - amount: Money -} - -type TransactionAction { - """Determines the action type.""" - actionType: TransactionActionEnum! - - """Transaction request amount. Null when action type is VOID.""" - amount: PositiveDecimal -} - -""" -Represents possible actions on payment transaction. - - The following actions are possible: - CHARGE - Represents the charge action. - REFUND - Represents a refund action. - VOID - Represents a void action. DEPRECATED: this enum value will be removed - in Saleor 3.9 (Feature Preview). Use `CANCEL` instead. - CANCEL - Represents a cancel action. - -""" -enum TransactionActionEnum { - CHARGE - REFUND - VOID - CANCEL -} - -""" -Event sent when transaction action is requested. - -Added in Saleor 3.4. - -DEPRECATED: This subscription will be removed in 3.10 release. Use `TransactionRequestCapture`, `TransactionRequestRefund`, `TransactionRequestCancel` instead. -""" -type TransactionActionRequest implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a transaction.""" - transaction: TransactionItem - - """Requested action data.""" - action: TransactionAction! -} - -""" -Event sent when transaction cancelation is requested. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TransactionCancelationRequested implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a transaction.""" - transaction: TransactionItem - - """Requested action data.""" - action: TransactionAction! -} - -""" -Event sent when transaction charge is requested. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TransactionChargeRequested implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a transaction.""" - transaction: TransactionItem - - """Requested action data.""" - action: TransactionAction! -} - -""" -Create transaction for checkout or order. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: HANDLE_PAYMENTS. -""" -type TransactionCreate { - transaction: TransactionItem - errors: [TransactionCreateError!]! -} - -type TransactionCreateError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TransactionCreateErrorCode! -} - -"""An enumeration.""" -enum TransactionCreateErrorCode { - INVALID - GRAPHQL_ERROR - NOT_FOUND - INCORRECT_CURRENCY - METADATA_KEY_REQUIRED - UNIQUE -} - -input TransactionCreateInput { - """Status of the transaction.""" - status: String! - - """Payment type used for this transaction.""" - type: String! - - """ - Reference of the transaction. The reference and PSP reference must be unique across all `transactionItem` objects. DEPRECATED: this field will be removed in Saleor 3.9 (Feature Preview). Use `pspReference` instead. - """ - reference: String - - """ - PSP Reference of the transaction. The PSP reference must be unique across all `transactionItem` objects. - - Added in Saleor 3.8. - """ - pspReference: String - - """List of all possible actions for the transaction""" - availableActions: [TransactionActionEnum!] - - """Amount authorized by this transaction.""" - amountAuthorized: MoneyInput - - """Amount charged by this transaction.""" - amountCharged: MoneyInput - - """Amount refunded by this transaction.""" - amountRefunded: MoneyInput - - """ - Amount voided by this transaction. - - DEPRECATED: this field will be removed in Saleor 4.0.Use `amountCanceled` instead. - """ - amountVoided: MoneyInput - - """Amount canceled by this transaction.""" - amountCanceled: MoneyInput - - """Payment public metadata.""" - metadata: [MetadataInput!] - - """Payment private metadata.""" - privateMetadata: [MetadataInput!] - - """ - The url that will allow to redirect user to payment provider page with transaction event details. - - Added in Saleor 3.10. - """ - externalUrl: String -} - -"""Represents transaction's event.""" -type TransactionEvent implements Node { - """The ID of the object.""" - id: ID! - createdAt: DateTime! - - """Status of transaction's event.""" - status: TransactionEventStatus! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `type` instead.") - - """Reference of transaction's event.""" - reference: String! @deprecated(reason: "This field will be removed in Saleor 3.9 (Feature Preview). Use `pspReference` instead.") - - """ - PSP reference of transaction. - - Added in Saleor 3.8. - """ - pspReference: String! - - """Name of the transaction's event.""" - name: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `message` instead.") - - """Message related to the transaction's event.""" - message: String - - """ - The url that will allow to redirect user to payment provider page with transaction details. - - Added in Saleor 3.8. - """ - externalUrl: String! - - """ - The amount related to this event. - - Added in Saleor 3.8. - """ - amount: Money! - - """ - The type of action related to this event. - - Added in Saleor 3.8. - """ - type: TransactionEventTypeEnum - - """ - User or App that created the transaction event. - - Added in Saleor 3.10. - """ - createdBy: UserOrApp -} - -input TransactionEventInput { - """Current status of the payment transaction.""" - status: TransactionEventStatus! - - """ - Reference of the transaction. DEPRECATED: this field will be removed in Saleor 3.9 (Feature Preview). Use `pspReference` instead. - """ - reference: String - - """ - PSP Reference related to this action. - - Added in Saleor 3.10. - """ - pspReference: String - - """Name of the transaction.""" - name: String -} - -""" -Report the event for the transaction. - -Added in Saleor 3.10. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires the following permissions: OWNER and HANDLE_PAYMENTS. -""" -type TransactionEventReport { - """Defines if the reported event hasn't been processed earlier.""" - alreadyProcessed: Boolean - - """The transaction related to the reported event.""" - transaction: TransactionItem - - """ - The event assigned to this report. if `alreadyProcessed` is set to `true`, the previously processed event will be returned. - """ - transactionEvent: TransactionEvent - errors: [TransactionEventReportError!]! -} - -type TransactionEventReportError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TransactionEventReportErrorCode! -} - -"""An enumeration.""" -enum TransactionEventReportErrorCode { - INVALID - GRAPHQL_ERROR - NOT_FOUND - INCORRECT_DETAILS -} - -""" -Represents a status of payment transaction. - - The following statuses are possible: - SUCCESS - Represents a sucess action. - FAILURE - Represents a failure action. - PENDING - Represents a pending action. - -""" -enum TransactionEventStatus { - PENDING - SUCCESS - FAILURE -} - -""" -Represents possible event types. - - The following types are possible: - AUTHORIZATION_SUCCESS - represents success authorization. - AUTHORIZATION_FAILURE - represents failure authorization. - AUTHORIZATION_ADJUSTMENT - represents authorization adjustment. - AUTHORIZATION_REQUEST - represents authorization request. - CHARGE_SUCCESS - represents success charge. - CHARGE_FAILURE - represents failure charge. - CHARGE_BACK - represents chargeback. - CHARGE_REQUEST - represents charge request. - REFUND_SUCCESS - represents success refund. - REFUND_FAILURE - represents failure refund. - REFUND_REVERSE - represents reverse refund. - REFUND_REQUEST - represents refund request. - CANCEL_SUCCESS - represents success cancel. - CANCEL_FAILURE - represents failure cancel. - CANCEL_REQUEST - represents cancel request. - -""" -enum TransactionEventTypeEnum { - AUTHORIZATION_SUCCESS - AUTHORIZATION_FAILURE - AUTHORIZATION_ADJUSTMENT - AUTHORIZATION_REQUEST - CHARGE_SUCCESS - CHARGE_FAILURE - CHARGE_BACK - CHARGE_REQUEST - REFUND_SUCCESS - REFUND_FAILURE - REFUND_REVERSE - REFUND_REQUEST - CANCEL_SUCCESS - CANCEL_FAILURE - CANCEL_REQUEST -} - -""" -Represents a payment transaction. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TransactionItem implements Node & ObjectWithMetadata { - """The ID of the object.""" - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - createdAt: DateTime! - modifiedAt: DateTime! - - """ - List of actions that can be performed in the current state of a payment. - """ - actions: [TransactionActionEnum!]! - - """Total amount authorized for this payment.""" - authorizedAmount: Money! - - """ - Total amount of ongoing authorization requests for the transaction. - - Added in Saleor 3.10. - """ - authorizePendingAmount: Money! - - """Total amount refunded for this payment.""" - refundedAmount: Money! - - """ - Total amount of ongoing refund requests for the transaction. - - Added in Saleor 3.10. - """ - refundPendingAmount: Money! - - """ - Total amount voided for this payment. This field will be removed in Saleor 4.0.Use `canceledAmount` instead. - """ - voidedAmount: Money! - - """Total amount canceled for this payment.""" - canceledAmount: Money! - - """ - Total amount of ongoing cancel requests for the transaction. - - Added in Saleor 3.10. - """ - cancelPendingAmount: Money! - - """Total amount charged for this payment.""" - chargedAmount: Money! - - """ - Total amount of ongoing charge requests for the transaction. - - Added in Saleor 3.10. - """ - chargePendingAmount: Money! - - """Status of transaction.""" - status: String! - - """Type of transaction.""" - type: String! - - """Reference of transaction.""" - reference: String! @deprecated(reason: "This field will be removed in Saleor 3.9 (Feature Preview). Use `pspReference` instead.") - - """ - PSP reference of transaction. - - Added in Saleor 3.8. - """ - pspReference: String! - - """ - The related order. - - Added in Saleor 3.6. - """ - order: Order - - """List of all transaction's events.""" - events: [TransactionEvent!]! - - """ - User or App that created the transaction. - - Added in Saleor 3.10. - """ - createdBy: UserOrApp - - """ - The url that will allow to redirect user to payment provider page with transaction details. - - Added in Saleor 3.8. - """ - externalUrl: String! -} - -""" -Event sent when transaction item metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TransactionItemMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """ - Look up a transaction. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - transaction: TransactionItem -} - -"""An enumeration.""" -enum TransactionKind { - EXTERNAL - AUTH - PENDING - ACTION_TO_CONFIRM - REFUND - REFUND_ONGOING - CAPTURE - VOID - CONFIRM - CANCEL -} - -""" -Event sent when transaction refund is requested. - -Added in Saleor 3.9. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TransactionRefundRequested implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """Look up a transaction.""" - transaction: TransactionItem - - """Requested action data.""" - action: TransactionAction! -} - -""" -Request an action for payment transaction. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: HANDLE_PAYMENTS. -""" -type TransactionRequestAction { - transaction: TransactionItem - errors: [TransactionRequestActionError!]! -} - -type TransactionRequestActionError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TransactionRequestActionErrorCode! -} - -"""An enumeration.""" -enum TransactionRequestActionErrorCode { - INVALID - GRAPHQL_ERROR - NOT_FOUND - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK -} - -""" -Create transaction for checkout or order. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires the following permissions: OWNER and HANDLE_PAYMENTS. -""" -type TransactionUpdate { - transaction: TransactionItem - errors: [TransactionUpdateError!]! -} - -type TransactionUpdateError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TransactionUpdateErrorCode! -} - -"""An enumeration.""" -enum TransactionUpdateErrorCode { - INVALID - GRAPHQL_ERROR - NOT_FOUND - INCORRECT_CURRENCY - METADATA_KEY_REQUIRED - UNIQUE -} - -input TransactionUpdateInput { - """Status of the transaction.""" - status: String - - """Payment type used for this transaction.""" - type: String - - """ - Reference of the transaction. The reference and PSP reference must be unique across all `transactionItem` objects. DEPRECATED: this field will be removed in Saleor 3.9 (Feature Preview). Use `pspReference` instead. - """ - reference: String - - """ - PSP Reference of the transaction. The PSP reference must be unique across all `transactionItem` objects. - - Added in Saleor 3.8. - """ - pspReference: String - - """List of all possible actions for the transaction""" - availableActions: [TransactionActionEnum!] - - """Amount authorized by this transaction.""" - amountAuthorized: MoneyInput - - """Amount charged by this transaction.""" - amountCharged: MoneyInput - - """Amount refunded by this transaction.""" - amountRefunded: MoneyInput - - """ - Amount voided by this transaction. - - DEPRECATED: this field will be removed in Saleor 4.0.Use `amountCanceled` instead. - """ - amountVoided: MoneyInput - - """Amount canceled by this transaction.""" - amountCanceled: MoneyInput - - """Payment public metadata.""" - metadata: [MetadataInput!] - - """Payment private metadata.""" - privateMetadata: [MetadataInput!] - - """ - The url that will allow to redirect user to payment provider page with transaction event details. - - Added in Saleor 3.10. - """ - externalUrl: String -} - -union TranslatableItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent - -type TranslatableItemConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [TranslatableItemEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type TranslatableItemEdge { - """The item at the end of the edge.""" - node: TranslatableItem! - - """A cursor for use in pagination.""" - cursor: String! -} - -enum TranslatableKinds { - ATTRIBUTE - ATTRIBUTE_VALUE - CATEGORY - COLLECTION - MENU_ITEM - PAGE - PRODUCT - SALE - SHIPPING_METHOD - VARIANT - VOUCHER -} - -""" -Event sent when new translation is created. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TranslationCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The translation the event relates to.""" - translation: TranslationTypes -} - -type TranslationError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: TranslationErrorCode! -} - -"""An enumeration.""" -enum TranslationErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED -} - -input TranslationInput { - seoTitle: String - seoDescription: String - name: String - - """ - Translated description. - - Rich text format. For reference see https://editorjs.io/ - """ - description: JSONString -} - -union TranslationTypes = ProductTranslation | CollectionTranslation | CategoryTranslation | AttributeTranslation | AttributeValueTranslation | ProductVariantTranslation | PageTranslation | ShippingMethodTranslation | SaleTranslation | VoucherTranslation | MenuItemTranslation - -""" -Event sent when translation is updated. - -Added in Saleor 3.2. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type TranslationUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The translation the event relates to.""" - translation: TranslationTypes -} - -scalar UUID - -input UpdateInvoiceInput { - """Invoice number""" - number: String - - """URL of an invoice to download.""" - url: String -} - -""" -Updates metadata of an object. To use it, you need to have access to the modified object. -""" -type UpdateMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MetadataError!]! - item: ObjectWithMetadata -} - -""" -Updates private metadata of an object. To use it, you need to be an authenticated staff user or an app and have access to the modified object. -""" -type UpdatePrivateMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [MetadataError!]! - item: ObjectWithMetadata -} - -""" -Variables of this type must be set to null in mutations. They will be replaced with a filename from a following multipart part containing a binary file. See: https://github.com/jaydenseric/graphql-multipart-request-spec. -""" -scalar Upload - -type UploadError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: UploadErrorCode! -} - -"""An enumeration.""" -enum UploadErrorCode { - GRAPHQL_ERROR -} - -"""Represents user data.""" -type User implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - email: String! - firstName: String! - lastName: String! - isStaff: Boolean! - isActive: Boolean! - - """List of all user's addresses.""" - addresses: [Address!]! - - """Returns the last open checkout of this user.""" - checkout: Checkout @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts.") - - """Returns the checkout UUID's assigned to this user.""" - checkoutTokens( - """Slug of a channel for which the data should be returned.""" - channel: String - ): [UUID!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutIds` instead.") - - """Returns the checkout ID's assigned to this user.""" - checkoutIds( - """Slug of a channel for which the data should be returned.""" - channel: String - ): [ID!] - - """ - Returns checkouts assigned to this user. - - Added in Saleor 3.8. - """ - checkouts( - """Slug of a channel for which the data should be returned.""" - channel: String - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CheckoutCountableConnection - - """List of the user gift cards.""" - giftCards( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): GiftCardCountableConnection - - """ - A note about the customer. - - Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. - """ - note: String - - """ - List of user's orders. Requires one of the following permissions: MANAGE_STAFF, OWNER. - """ - orders( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): OrderCountableConnection - - """List of user's permissions.""" - userPermissions: [UserPermission!] - - """List of user's permission groups.""" - permissionGroups: [Group!] - - """List of user's permission groups which user can manage.""" - editableGroups: [Group!] - avatar( - """ - Size of the image. If not provided, the original image will be returned. - """ - size: Int - - """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - format: ThumbnailFormatEnum - ): Image - - """ - List of events associated with the user. - - Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. - """ - events: [CustomerEvent!] - - """List of stored payment sources.""" - storedPaymentSources( - """Slug of a channel for which the data should be returned.""" - channel: String - ): [PaymentSource!] - - """User language code.""" - languageCode: LanguageCodeEnum! - defaultShippingAddress: Address - defaultBillingAddress: Address - - """ - External ID of this user. - - Added in Saleor 3.10. - """ - externalReference: String - lastLogin: DateTime - dateJoined: DateTime! - updatedAt: DateTime! -} - -""" -Deletes a user avatar. Only for staff members. - -Requires one of the following permissions: AUTHENTICATED_STAFF_USER. -""" -type UserAvatarDelete { - """An updated user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -""" -Create a user avatar. Only for staff members. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec - -Requires one of the following permissions: AUTHENTICATED_STAFF_USER. -""" -type UserAvatarUpdate { - """An updated user instance.""" - user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -""" -Activate or deactivate users. - -Requires one of the following permissions: MANAGE_USERS. -""" -type UserBulkSetActive { - """Returns how many objects were affected.""" - count: Int! - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -type UserCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [UserCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type UserCountableEdge { - """The item at the end of the edge.""" - node: User! - - """A cursor for use in pagination.""" - cursor: String! -} - -input UserCreateInput { - """Billing address of the customer.""" - defaultBillingAddress: AddressInput - - """Shipping address of the customer.""" - defaultShippingAddress: AddressInput - - """Given name.""" - firstName: String - - """Family name.""" - lastName: String - - """The unique email address of the user.""" - email: String - - """User account is active.""" - isActive: Boolean - - """A note about the user.""" - note: String - - """User language code.""" - languageCode: LanguageCodeEnum - - """ - External ID of the customer. - - Added in Saleor 3.10. - """ - externalReference: String - - """ - URL of a view where users should be redirected to set the password. URL in RFC 1808 format. - """ - redirectUrl: String - - """ - Slug of a channel which will be used for notify user. Optional when only one channel exists. - """ - channel: String -} - -union UserOrApp = User | App - -type UserPermission { - """Internal code for permission.""" - code: PermissionEnum! - - """Describe action(s) allowed to do by permission.""" - name: String! - - """List of user permission groups which contains this permission.""" - sourcePermissionGroups( - """ID of user whose groups should be returned.""" - userId: ID! - ): [Group!] -} - -enum UserSortField { - """Sort users by first name.""" - FIRST_NAME - - """Sort users by last name.""" - LAST_NAME - - """Sort users by email.""" - EMAIL - - """Sort users by order count.""" - ORDER_COUNT - - """Sort users by created at.""" - CREATED_AT - - """Sort users by last modified at.""" - LAST_MODIFIED_AT -} - -input UserSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort users by the selected field.""" - field: UserSortField! -} - -"""Represents a VAT rate for a country.""" -type VAT { - """Country code.""" - countryCode: String! - - """Standard VAT rate in percent.""" - standardRate: Float - - """Country's VAT rate exceptions for specific types of goods.""" - reducedRates: [ReducedRate!]! -} - -enum VariantAttributeScope { - ALL - VARIANT_SELECTION - NOT_VARIANT_SELECTION -} - -""" -Assign an media to a product variant. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type VariantMediaAssign { - productVariant: ProductVariant - media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -""" -Unassign an media from a product variant. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type VariantMediaUnassign { - productVariant: ProductVariant - media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [ProductError!]! -} - -"""Represents availability of a variant in the storefront.""" -type VariantPricingInfo { - """Whether it is in sale or not.""" - onSale: Boolean - - """The discount amount if in sale (null otherwise).""" - discount: TaxedMoney - - """The discount amount in the local currency.""" - discountLocalCurrency: TaxedMoney - - """The price, with any discount subtracted.""" - price: TaxedMoney - - """The price without any discount.""" - priceUndiscounted: TaxedMoney - - """The discounted price in the local currency.""" - priceLocalCurrency: TaxedMoney -} - -"""Verify JWT token.""" -type VerifyToken { - """User assigned to token.""" - user: User - - """Determine if token is valid or not.""" - isValid: Boolean! - - """JWT payload.""" - payload: GenericScalar - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [AccountError!]! -} - -"""An enumeration.""" -enum VolumeUnitsEnum { - CUBIC_MILLIMETER - CUBIC_CENTIMETER - CUBIC_DECIMETER - CUBIC_METER - LITER - CUBIC_FOOT - CUBIC_INCH - CUBIC_YARD - QT - PINT - FL_OZ - ACRE_IN - ACRE_FT -} - -""" -Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. -""" -type Voucher implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String - code: String! - usageLimit: Int - used: Int! - startDate: DateTime! - endDate: DateTime - applyOncePerOrder: Boolean! - applyOncePerCustomer: Boolean! - onlyForStaff: Boolean! - minCheckoutItemsQuantity: Int - - """List of categories this voucher applies to.""" - categories( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CategoryCountableConnection - - """ - List of collections this voucher applies to. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - collections( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): CollectionCountableConnection - - """ - List of products this voucher applies to. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - products( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductCountableConnection - - """ - List of product variants this voucher applies to. - - Added in Saleor 3.1. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - variants( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ProductVariantCountableConnection - - """List of countries available for the shipping voucher.""" - countries: [CountryDisplay!] - - """Returns translated voucher fields for the given language code.""" - translation( - """A language code to return the translation for voucher.""" - languageCode: LanguageCodeEnum! - ): VoucherTranslation - - """Determines a type of discount for voucher - value or percentage""" - discountValueType: DiscountValueTypeEnum! - - """Voucher value.""" - discountValue: Float - - """Currency code for voucher.""" - currency: String - - """Minimum order value to apply voucher.""" - minSpent: Money - - """Determines a type of voucher.""" - type: VoucherTypeEnum! - - """ - List of availability in channels for the voucher. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - channelListings: [VoucherChannelListing!] -} - -""" -Adds products, categories, collections to a voucher. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type VoucherAddCatalogues { - """Voucher of which catalogue IDs will be modified.""" - voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! -} - -""" -Deletes vouchers. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type VoucherBulkDelete { - """Returns how many objects were affected.""" - count: Int! - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! -} - -"""Represents voucher channel listing.""" -type VoucherChannelListing implements Node { - id: ID! - channel: Channel! - discountValue: Float! - currency: String! - minSpent: Money -} - -input VoucherChannelListingAddInput { - """ID of a channel.""" - channelId: ID! - - """Value of the voucher.""" - discountValue: PositiveDecimal - - """Min purchase amount required to apply the voucher.""" - minAmountSpent: PositiveDecimal -} - -input VoucherChannelListingInput { - """List of channels to which the voucher should be assigned.""" - addChannels: [VoucherChannelListingAddInput!] - - """List of channels from which the voucher should be unassigned.""" - removeChannels: [ID!] -} - -""" -Manage voucher's availability in channels. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type VoucherChannelListingUpdate { - """An updated voucher instance.""" - voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! -} - -type VoucherCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [VoucherCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type VoucherCountableEdge { - """The item at the end of the edge.""" - node: Voucher! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates a new voucher. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type VoucherCreate { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! - voucher: Voucher -} - -""" -Event sent when new voucher is created. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type VoucherCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The voucher the event relates to.""" - voucher( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Voucher -} - -""" -Deletes a voucher. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type VoucherDelete { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! - voucher: Voucher -} - -""" -Event sent when voucher is deleted. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type VoucherDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The voucher the event relates to.""" - voucher( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Voucher -} - -enum VoucherDiscountType { - FIXED - PERCENTAGE - SHIPPING -} - -input VoucherFilterInput { - status: [DiscountStatusEnum!] - timesUsed: IntRangeInput - discountType: [VoucherDiscountType!] - started: DateTimeRangeInput - search: String - metadata: [MetadataFilter!] - ids: [ID!] -} - -input VoucherInput { - """Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER.""" - type: VoucherTypeEnum - - """Voucher name.""" - name: String - - """Code to use the voucher.""" - code: String - - """Start date of the voucher in ISO 8601 format.""" - startDate: DateTime - - """End date of the voucher in ISO 8601 format.""" - endDate: DateTime - - """Choices: fixed or percentage.""" - discountValueType: DiscountValueTypeEnum - - """Products discounted by the voucher.""" - products: [ID!] - - """ - Variants discounted by the voucher. - - Added in Saleor 3.1. - """ - variants: [ID!] - - """Collections discounted by the voucher.""" - collections: [ID!] - - """Categories discounted by the voucher.""" - categories: [ID!] - - """Minimal quantity of checkout items required to apply the voucher.""" - minCheckoutItemsQuantity: Int - - """Country codes that can be used with the shipping voucher.""" - countries: [String!] - - """Voucher should be applied to the cheapest item or entire order.""" - applyOncePerOrder: Boolean - - """Voucher should be applied once per customer.""" - applyOncePerCustomer: Boolean - - """Voucher can be used only by staff user.""" - onlyForStaff: Boolean - - """Limit number of times this voucher can be used in total.""" - usageLimit: Int -} - -""" -Event sent when voucher metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type VoucherMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The voucher the event relates to.""" - voucher( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Voucher -} - -""" -Removes products, categories, collections from a voucher. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type VoucherRemoveCatalogues { - """Voucher of which catalogue IDs will be modified.""" - voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! -} - -enum VoucherSortField { - """Sort vouchers by code.""" - CODE - - """Sort vouchers by start date.""" - START_DATE - - """Sort vouchers by end date.""" - END_DATE - - """ - Sort vouchers by value. - - This option requires a channel filter to work as the values can vary between channels. - """ - VALUE - - """Sort vouchers by type.""" - TYPE - - """Sort vouchers by usage limit.""" - USAGE_LIMIT - - """ - Sort vouchers by minimum spent amount. - - This option requires a channel filter to work as the values can vary between channels. - """ - MINIMUM_SPENT_AMOUNT -} - -input VoucherSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """ - Specifies the channel in which to sort the data. - - DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - """ - channel: String - - """Sort vouchers by the selected field.""" - field: VoucherSortField! -} - -type VoucherTranslatableContent implements Node { - id: ID! - name: String - - """Returns translated voucher fields for the given language code.""" - translation( - """A language code to return the translation for voucher.""" - languageCode: LanguageCodeEnum! - ): VoucherTranslation - - """ - Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. - - Requires one of the following permissions: MANAGE_DISCOUNTS. - """ - voucher: Voucher @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") -} - -""" -Creates/updates translations for a voucher. - -Requires one of the following permissions: MANAGE_TRANSLATIONS. -""" -type VoucherTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [TranslationError!]! - voucher: Voucher -} - -type VoucherTranslation implements Node { - id: ID! - - """Translation language.""" - language: LanguageDisplay! - name: String -} - -enum VoucherTypeEnum { - SHIPPING - ENTIRE_ORDER - SPECIFIC_PRODUCT -} - -""" -Updates a voucher. - -Requires one of the following permissions: MANAGE_DISCOUNTS. -""" -type VoucherUpdate { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [DiscountError!]! - voucher: Voucher -} - -""" -Event sent when voucher is updated. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type VoucherUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The voucher the event relates to.""" - voucher( - """Slug of a channel for which the data should be returned.""" - channel: String - ): Voucher -} - -"""Represents warehouse.""" -type Warehouse implements Node & ObjectWithMetadata { - id: ID! - - """List of private metadata items. Requires staff permissions to access.""" - privateMetadata: [MetadataItem!]! - - """ - A single key from private metadata. Requires staff permissions to access. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafield(key: String!): String - - """ - Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - privateMetafields(keys: [String!]): Metadata - - """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem!]! - - """ - A single key from public metadata. - - Tip: Use GraphQL aliases to fetch multiple keys. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafield(key: String!): String - - """ - Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - - Added in Saleor 3.3. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - metafields(keys: [String!]): Metadata - name: String! - slug: String! - email: String! - isPrivate: Boolean! - address: Address! - - """Warehouse company name.""" - companyName: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead.") - - """ - Click and collect options: local, all or disabled. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - clickAndCollectOption: WarehouseClickAndCollectOptionEnum! - shippingZones( - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): ShippingZoneCountableConnection! - - """ - External ID of this warehouse. - - Added in Saleor 3.10. - """ - externalReference: String -} - -"""An enumeration.""" -enum WarehouseClickAndCollectOptionEnum { - DISABLED - LOCAL - ALL -} - -type WarehouseCountableConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - edges: [WarehouseCountableEdge!]! - - """A total count of items in the collection.""" - totalCount: Int -} - -type WarehouseCountableEdge { - """The item at the end of the edge.""" - node: Warehouse! - - """A cursor for use in pagination.""" - cursor: String! -} - -""" -Creates new warehouse. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type WarehouseCreate { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [WarehouseError!]! - warehouse: Warehouse -} - -input WarehouseCreateInput { - """Warehouse slug.""" - slug: String - - """The email address of the warehouse.""" - email: String - - """ - External ID of the warehouse. - - Added in Saleor 3.10. - """ - externalReference: String - - """Warehouse name.""" - name: String! - - """Address of the warehouse.""" - address: AddressInput! - - """ - Shipping zones supported by the warehouse. - - DEPRECATED: this field will be removed in Saleor 4.0. Providing the zone ids will raise a ValidationError. - """ - shippingZones: [ID!] -} - -""" -Event sent when new warehouse is created. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type WarehouseCreated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The warehouse the event relates to.""" - warehouse: Warehouse -} - -""" -Deletes selected warehouse. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type WarehouseDelete { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [WarehouseError!]! - warehouse: Warehouse -} - -""" -Event sent when warehouse is deleted. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type WarehouseDeleted implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The warehouse the event relates to.""" - warehouse: Warehouse -} - -type WarehouseError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: WarehouseErrorCode! - - """List of shipping zones IDs which causes the error.""" - shippingZones: [ID!] -} - -"""An enumeration.""" -enum WarehouseErrorCode { - ALREADY_EXISTS - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE -} - -input WarehouseFilterInput { - clickAndCollectOption: WarehouseClickAndCollectOptionEnum - search: String - ids: [ID!] - isPrivate: Boolean - channels: [ID!] - slugs: [String!] -} - -""" -Event sent when warehouse metadata is updated. - -Added in Saleor 3.8. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type WarehouseMetadataUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The warehouse the event relates to.""" - warehouse: Warehouse -} - -""" -Add shipping zone to given warehouse. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type WarehouseShippingZoneAssign { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [WarehouseError!]! - warehouse: Warehouse -} - -""" -Remove shipping zone from given warehouse. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type WarehouseShippingZoneUnassign { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [WarehouseError!]! - warehouse: Warehouse -} - -enum WarehouseSortField { - """Sort warehouses by name.""" - NAME -} - -input WarehouseSortingInput { - """Specifies the direction in which to sort products.""" - direction: OrderDirection! - - """Sort warehouses by the selected field.""" - field: WarehouseSortField! -} - -""" -Updates given warehouse. - -Requires one of the following permissions: MANAGE_PRODUCTS. -""" -type WarehouseUpdate { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [WarehouseError!]! - warehouse: Warehouse -} - -input WarehouseUpdateInput { - """Warehouse slug.""" - slug: String - - """The email address of the warehouse.""" - email: String - - """ - External ID of the warehouse. - - Added in Saleor 3.10. - """ - externalReference: String - - """Warehouse name.""" - name: String - - """Address of the warehouse.""" - address: AddressInput - - """ - Click and collect options: local, all or disabled. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - clickAndCollectOption: WarehouseClickAndCollectOptionEnum - - """ - Visibility of warehouse stocks. - - Added in Saleor 3.1. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - isPrivate: Boolean -} - -""" -Event sent when warehouse is updated. - -Added in Saleor 3.4. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. -""" -type WarehouseUpdated implements Event { - """Time of the event.""" - issuedAt: DateTime - - """Saleor version that triggered the event.""" - version: String - - """The user or application that triggered the event.""" - issuingPrincipal: IssuingPrincipal - - """The application receiving the webhook.""" - recipient: App - - """The warehouse the event relates to.""" - warehouse: Warehouse -} - -"""Webhook.""" -type Webhook implements Node { - id: ID! - name: String! - - """List of webhook events.""" - events: [WebhookEvent!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead.") - - """List of synchronous webhook events.""" - syncEvents: [WebhookEventSync!]! - - """List of asynchronous webhook events.""" - asyncEvents: [WebhookEventAsync!]! - app: App! - - """Event deliveries.""" - eventDeliveries( - """Event delivery sorter.""" - sortBy: EventDeliverySortingInput - - """Event delivery filter options.""" - filter: EventDeliveryFilterInput - - """Return the elements in the list that come before the specified cursor.""" - before: String - - """Return the elements in the list that come after the specified cursor.""" - after: String - - """Return the first n elements from the list.""" - first: Int - - """Return the last n elements from the list.""" - last: Int - ): EventDeliveryCountableConnection - - """Target URL for webhook.""" - targetUrl: String! - - """Informs if webhook is activated.""" - isActive: Boolean! - - """Used to create a hash signature for each payload.""" - secretKey: String @deprecated(reason: "This field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS.") - - """Used to define payloads for specific events.""" - subscriptionQuery: String -} - -""" -Creates a new webhook subscription. - -Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. -""" -type WebhookCreate { - webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [WebhookError!]! - webhook: Webhook -} - -input WebhookCreateInput { - """The name of the webhook.""" - name: String - - """The url to receive the payload.""" - targetUrl: String - - """ - The events that webhook wants to subscribe. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. - """ - events: [WebhookEventTypeEnum!] - - """The asynchronous events that webhook wants to subscribe.""" - asyncEvents: [WebhookEventTypeAsyncEnum!] - - """The synchronous events that webhook wants to subscribe.""" - syncEvents: [WebhookEventTypeSyncEnum!] - - """ID of the app to which webhook belongs.""" - app: ID - - """Determine if webhook will be set active or not.""" - isActive: Boolean - - """ - The secret key used to create a hash signature with each payload. - - DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - """ - secretKey: String - - """ - Subscription query used to define a webhook payload. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - query: String -} - -""" -Delete a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated. - -Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. -""" -type WebhookDelete { - webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [WebhookError!]! - webhook: Webhook -} - -""" -Performs a dry run of a webhook event. Supports a single event (the first if multiple provided in the `query`). Requires permission relevant to processed event. - -Added in Saleor 3.10. - -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: AUTHENTICATED_STAFF_USER. -""" -type WebhookDryRun { - """JSON payload, that would be sent out to webhook's target URL.""" - payload: JSONString - errors: [WebhookDryRunError!]! -} - -type WebhookDryRunError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: WebhookDryRunErrorCode! -} - -"""An enumeration.""" -enum WebhookDryRunErrorCode { - GRAPHQL_ERROR - UNABLE_TO_PARSE - NOT_FOUND - INVALID_ID - MISSING_PERMISSION - TYPE_NOT_SUPPORTED -} - -type WebhookError { - """ - Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. - """ - field: String - - """The error message.""" - message: String - - """The error code.""" - code: WebhookErrorCode! -} - -"""An enumeration.""" -enum WebhookErrorCode { - GRAPHQL_ERROR - INVALID - NOT_FOUND - REQUIRED - UNIQUE - DELETE_FAILED -} - -"""Webhook event.""" -type WebhookEvent { - """Display name of the event.""" - name: String! - - """Internal name of the event type.""" - eventType: WebhookEventTypeEnum! -} - -"""Asynchronous webhook event.""" -type WebhookEventAsync { - """Display name of the event.""" - name: String! - - """Internal name of the event type.""" - eventType: WebhookEventTypeAsyncEnum! -} - -"""Synchronous webhook event.""" -type WebhookEventSync { - """Display name of the event.""" - name: String! - - """Internal name of the event type.""" - eventType: WebhookEventTypeSyncEnum! -} - -"""Enum determining type of webhook.""" -enum WebhookEventTypeAsyncEnum { - """All the events.""" - ANY_EVENTS - - """A new address created.""" - ADDRESS_CREATED - - """An address updated.""" - ADDRESS_UPDATED - - """An address deleted.""" - ADDRESS_DELETED - - """A new app installed.""" - APP_INSTALLED - - """An app updated.""" - APP_UPDATED - - """An app deleted.""" - APP_DELETED - - """An app status is changed.""" - APP_STATUS_CHANGED - - """A new attribute is created.""" - ATTRIBUTE_CREATED - - """An attribute is updated.""" - ATTRIBUTE_UPDATED - - """An attribute is deleted.""" - ATTRIBUTE_DELETED - - """A new attribute value is created.""" - ATTRIBUTE_VALUE_CREATED - - """An attribute value is updated.""" - ATTRIBUTE_VALUE_UPDATED - - """An attribute value is deleted.""" - ATTRIBUTE_VALUE_DELETED - - """A new category created.""" - CATEGORY_CREATED - - """A category is updated.""" - CATEGORY_UPDATED - - """A category is deleted.""" - CATEGORY_DELETED - - """A new channel created.""" - CHANNEL_CREATED - - """A channel is updated.""" - CHANNEL_UPDATED - - """A channel is deleted.""" - CHANNEL_DELETED - - """A channel status is changed.""" - CHANNEL_STATUS_CHANGED - - """A new gift card created.""" - GIFT_CARD_CREATED - - """A gift card is updated.""" - GIFT_CARD_UPDATED - - """A gift card is deleted.""" - GIFT_CARD_DELETED - - """A gift card status is changed.""" - GIFT_CARD_STATUS_CHANGED - - """ - A gift card metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - GIFT_CARD_METADATA_UPDATED - - """A new menu created.""" - MENU_CREATED - - """A menu is updated.""" - MENU_UPDATED - - """A menu is deleted.""" - MENU_DELETED - - """A new menu item created.""" - MENU_ITEM_CREATED - - """A menu item is updated.""" - MENU_ITEM_UPDATED - - """A menu item is deleted.""" - MENU_ITEM_DELETED - - """A new order is placed.""" - ORDER_CREATED - - """ - An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. - """ - ORDER_CONFIRMED - - """Payment is made and an order is fully paid.""" - ORDER_FULLY_PAID - - """ - An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. - """ - ORDER_UPDATED - - """An order is cancelled.""" - ORDER_CANCELLED - - """An order is fulfilled.""" - ORDER_FULFILLED - - """ - An order metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - ORDER_METADATA_UPDATED - - """A draft order is created.""" - DRAFT_ORDER_CREATED - - """A draft order is updated.""" - DRAFT_ORDER_UPDATED - - """A draft order is deleted.""" - DRAFT_ORDER_DELETED - - """A sale is created.""" - SALE_CREATED - - """A sale is updated.""" - SALE_UPDATED - - """A sale is deleted.""" - SALE_DELETED - - """A sale is activated or deactivated.""" - SALE_TOGGLE - - """An invoice for order requested.""" - INVOICE_REQUESTED - - """An invoice is deleted.""" - INVOICE_DELETED - - """Invoice has been sent.""" - INVOICE_SENT - - """A new customer account is created.""" - CUSTOMER_CREATED - - """A customer account is updated.""" - CUSTOMER_UPDATED - - """A customer account is deleted.""" - CUSTOMER_DELETED - - """ - A customer account metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - CUSTOMER_METADATA_UPDATED - - """A new collection is created.""" - COLLECTION_CREATED - - """A collection is updated.""" - COLLECTION_UPDATED - - """A collection is deleted.""" - COLLECTION_DELETED - - """ - A collection metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - COLLECTION_METADATA_UPDATED - - """A new product is created.""" - PRODUCT_CREATED - - """A product is updated.""" - PRODUCT_UPDATED - - """A product is deleted.""" - PRODUCT_DELETED - - """ - A product metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - PRODUCT_METADATA_UPDATED - - """A new product variant is created.""" - PRODUCT_VARIANT_CREATED - - """A product variant is updated.""" - PRODUCT_VARIANT_UPDATED - - """A product variant is deleted.""" - PRODUCT_VARIANT_DELETED - - """A product variant is out of stock.""" - PRODUCT_VARIANT_OUT_OF_STOCK - - """A product variant is back in stock.""" - PRODUCT_VARIANT_BACK_IN_STOCK - - """ - A product variant metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - PRODUCT_VARIANT_METADATA_UPDATED - - """A new checkout is created.""" - CHECKOUT_CREATED - - """ - A checkout is updated. It also triggers all updates related to the checkout. - """ - CHECKOUT_UPDATED - - """ - A checkout metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - CHECKOUT_METADATA_UPDATED - - """A new fulfillment is created.""" - FULFILLMENT_CREATED - - """A fulfillment is cancelled.""" - FULFILLMENT_CANCELED - - """A fulfillment is approved.""" - FULFILLMENT_APPROVED - - """ - A fulfillment metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - FULFILLMENT_METADATA_UPDATED - - """User notification triggered.""" - NOTIFY_USER - - """A new page is created.""" - PAGE_CREATED - - """A page is updated.""" - PAGE_UPDATED - - """A page is deleted.""" - PAGE_DELETED - - """A new page type is created.""" - PAGE_TYPE_CREATED - - """A page type is updated.""" - PAGE_TYPE_UPDATED - - """A page type is deleted.""" - PAGE_TYPE_DELETED - - """A new permission group is created.""" - PERMISSION_GROUP_CREATED - - """A permission group is updated.""" - PERMISSION_GROUP_UPDATED - - """A permission group is deleted.""" - PERMISSION_GROUP_DELETED - - """A new shipping price is created.""" - SHIPPING_PRICE_CREATED - - """A shipping price is updated.""" - SHIPPING_PRICE_UPDATED - - """A shipping price is deleted.""" - SHIPPING_PRICE_DELETED - - """A new shipping zone is created.""" - SHIPPING_ZONE_CREATED - - """A shipping zone is updated.""" - SHIPPING_ZONE_UPDATED - - """A shipping zone is deleted.""" - SHIPPING_ZONE_DELETED - - """ - A shipping zone metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - SHIPPING_ZONE_METADATA_UPDATED - - """A new staff user is created.""" - STAFF_CREATED - - """A staff user is updated.""" - STAFF_UPDATED - - """A staff user is deleted.""" - STAFF_DELETED - - """An action requested for transaction.""" - TRANSACTION_ACTION_REQUEST - - """ - Transaction item metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - TRANSACTION_ITEM_METADATA_UPDATED - - """A new translation is created.""" - TRANSLATION_CREATED - - """A translation is updated.""" - TRANSLATION_UPDATED - - """A new warehouse created.""" - WAREHOUSE_CREATED - - """A warehouse is updated.""" - WAREHOUSE_UPDATED - - """A warehouse is deleted.""" - WAREHOUSE_DELETED - - """ - A warehouse metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - WAREHOUSE_METADATA_UPDATED - - """A new voucher created.""" - VOUCHER_CREATED - - """A voucher is updated.""" - VOUCHER_UPDATED - - """A voucher is deleted.""" - VOUCHER_DELETED - - """ - A voucher metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - VOUCHER_METADATA_UPDATED - - """An observability event is created.""" - OBSERVABILITY -} - -"""Enum determining type of webhook.""" -enum WebhookEventTypeEnum { - """All the events.""" - ANY_EVENTS - - """A new address created.""" - ADDRESS_CREATED - - """An address updated.""" - ADDRESS_UPDATED - - """An address deleted.""" - ADDRESS_DELETED - - """A new app installed.""" - APP_INSTALLED - - """An app updated.""" - APP_UPDATED - - """An app deleted.""" - APP_DELETED - - """An app status is changed.""" - APP_STATUS_CHANGED - - """A new attribute is created.""" - ATTRIBUTE_CREATED - - """An attribute is updated.""" - ATTRIBUTE_UPDATED - - """An attribute is deleted.""" - ATTRIBUTE_DELETED - - """A new attribute value is created.""" - ATTRIBUTE_VALUE_CREATED - - """An attribute value is updated.""" - ATTRIBUTE_VALUE_UPDATED - - """An attribute value is deleted.""" - ATTRIBUTE_VALUE_DELETED - - """A new category created.""" - CATEGORY_CREATED - - """A category is updated.""" - CATEGORY_UPDATED - - """A category is deleted.""" - CATEGORY_DELETED - - """A new channel created.""" - CHANNEL_CREATED - - """A channel is updated.""" - CHANNEL_UPDATED - - """A channel is deleted.""" - CHANNEL_DELETED - - """A channel status is changed.""" - CHANNEL_STATUS_CHANGED - - """A new gift card created.""" - GIFT_CARD_CREATED - - """A gift card is updated.""" - GIFT_CARD_UPDATED - - """A gift card is deleted.""" - GIFT_CARD_DELETED - - """A gift card status is changed.""" - GIFT_CARD_STATUS_CHANGED - - """ - A gift card metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - GIFT_CARD_METADATA_UPDATED - - """A new menu created.""" - MENU_CREATED - - """A menu is updated.""" - MENU_UPDATED - - """A menu is deleted.""" - MENU_DELETED - - """A new menu item created.""" - MENU_ITEM_CREATED - - """A menu item is updated.""" - MENU_ITEM_UPDATED - - """A menu item is deleted.""" - MENU_ITEM_DELETED - - """A new order is placed.""" - ORDER_CREATED - - """ - An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. - """ - ORDER_CONFIRMED - - """Payment is made and an order is fully paid.""" - ORDER_FULLY_PAID - - """ - An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. - """ - ORDER_UPDATED - - """An order is cancelled.""" - ORDER_CANCELLED - - """An order is fulfilled.""" - ORDER_FULFILLED - - """ - An order metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - ORDER_METADATA_UPDATED - - """A draft order is created.""" - DRAFT_ORDER_CREATED - - """A draft order is updated.""" - DRAFT_ORDER_UPDATED - - """A draft order is deleted.""" - DRAFT_ORDER_DELETED - - """A sale is created.""" - SALE_CREATED - - """A sale is updated.""" - SALE_UPDATED - - """A sale is deleted.""" - SALE_DELETED - - """A sale is activated or deactivated.""" - SALE_TOGGLE - - """An invoice for order requested.""" - INVOICE_REQUESTED - - """An invoice is deleted.""" - INVOICE_DELETED - - """Invoice has been sent.""" - INVOICE_SENT - - """A new customer account is created.""" - CUSTOMER_CREATED - - """A customer account is updated.""" - CUSTOMER_UPDATED - - """A customer account is deleted.""" - CUSTOMER_DELETED - - """ - A customer account metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - CUSTOMER_METADATA_UPDATED - - """A new collection is created.""" - COLLECTION_CREATED - - """A collection is updated.""" - COLLECTION_UPDATED - - """A collection is deleted.""" - COLLECTION_DELETED - - """ - A collection metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - COLLECTION_METADATA_UPDATED - - """A new product is created.""" - PRODUCT_CREATED - - """A product is updated.""" - PRODUCT_UPDATED - - """A product is deleted.""" - PRODUCT_DELETED - - """ - A product metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - PRODUCT_METADATA_UPDATED - - """A new product variant is created.""" - PRODUCT_VARIANT_CREATED - - """A product variant is updated.""" - PRODUCT_VARIANT_UPDATED - - """A product variant is deleted.""" - PRODUCT_VARIANT_DELETED - - """A product variant is out of stock.""" - PRODUCT_VARIANT_OUT_OF_STOCK - - """A product variant is back in stock.""" - PRODUCT_VARIANT_BACK_IN_STOCK - - """ - A product variant metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - PRODUCT_VARIANT_METADATA_UPDATED - - """A new checkout is created.""" - CHECKOUT_CREATED - - """ - A checkout is updated. It also triggers all updates related to the checkout. - """ - CHECKOUT_UPDATED - - """ - A checkout metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - CHECKOUT_METADATA_UPDATED - - """A new fulfillment is created.""" - FULFILLMENT_CREATED - - """A fulfillment is cancelled.""" - FULFILLMENT_CANCELED - - """A fulfillment is approved.""" - FULFILLMENT_APPROVED - - """ - A fulfillment metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - FULFILLMENT_METADATA_UPDATED - - """User notification triggered.""" - NOTIFY_USER - - """A new page is created.""" - PAGE_CREATED - - """A page is updated.""" - PAGE_UPDATED - - """A page is deleted.""" - PAGE_DELETED - - """A new page type is created.""" - PAGE_TYPE_CREATED - - """A page type is updated.""" - PAGE_TYPE_UPDATED - - """A page type is deleted.""" - PAGE_TYPE_DELETED - - """A new permission group is created.""" - PERMISSION_GROUP_CREATED - - """A permission group is updated.""" - PERMISSION_GROUP_UPDATED - - """A permission group is deleted.""" - PERMISSION_GROUP_DELETED - - """A new shipping price is created.""" - SHIPPING_PRICE_CREATED - - """A shipping price is updated.""" - SHIPPING_PRICE_UPDATED - - """A shipping price is deleted.""" - SHIPPING_PRICE_DELETED - - """A new shipping zone is created.""" - SHIPPING_ZONE_CREATED - - """A shipping zone is updated.""" - SHIPPING_ZONE_UPDATED - - """A shipping zone is deleted.""" - SHIPPING_ZONE_DELETED - - """ - A shipping zone metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - SHIPPING_ZONE_METADATA_UPDATED - - """A new staff user is created.""" - STAFF_CREATED - - """A staff user is updated.""" - STAFF_UPDATED - - """A staff user is deleted.""" - STAFF_DELETED - - """An action requested for transaction.""" - TRANSACTION_ACTION_REQUEST - - """ - Transaction item metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - TRANSACTION_ITEM_METADATA_UPDATED - - """A new translation is created.""" - TRANSLATION_CREATED - - """A translation is updated.""" - TRANSLATION_UPDATED - - """A new warehouse created.""" - WAREHOUSE_CREATED - - """A warehouse is updated.""" - WAREHOUSE_UPDATED - - """A warehouse is deleted.""" - WAREHOUSE_DELETED - - """ - A warehouse metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - WAREHOUSE_METADATA_UPDATED - - """A new voucher created.""" - VOUCHER_CREATED - - """A voucher is updated.""" - VOUCHER_UPDATED - - """A voucher is deleted.""" - VOUCHER_DELETED - - """ - A voucher metadata is updated. - - Added in Saleor 3.8. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - VOUCHER_METADATA_UPDATED - - """An observability event is created.""" - OBSERVABILITY - - """Authorize payment.""" - PAYMENT_AUTHORIZE - - """Capture payment.""" - PAYMENT_CAPTURE - - """Confirm payment.""" - PAYMENT_CONFIRM - - """Listing available payment gateways.""" - PAYMENT_LIST_GATEWAYS - - """Process payment.""" - PAYMENT_PROCESS - - """Refund payment.""" - PAYMENT_REFUND - - """Void payment.""" - PAYMENT_VOID - TRANSACTION_CHARGE_REQUESTED - TRANSACTION_REFUND_REQUESTED - TRANSACTION_CANCELATION_REQUESTED - - """ - Event called for checkout tax calculation. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - CHECKOUT_CALCULATE_TAXES - - """ - Event called for order tax calculation. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - ORDER_CALCULATE_TAXES - - """Fetch external shipping methods for checkout.""" - SHIPPING_LIST_METHODS_FOR_CHECKOUT - - """Filter shipping methods for order.""" - ORDER_FILTER_SHIPPING_METHODS - - """Filter shipping methods for checkout.""" - CHECKOUT_FILTER_SHIPPING_METHODS -} - -"""Enum determining type of webhook.""" -enum WebhookEventTypeSyncEnum { - """Authorize payment.""" - PAYMENT_AUTHORIZE - - """Capture payment.""" - PAYMENT_CAPTURE - - """Confirm payment.""" - PAYMENT_CONFIRM - - """Listing available payment gateways.""" - PAYMENT_LIST_GATEWAYS - - """Process payment.""" - PAYMENT_PROCESS - - """Refund payment.""" - PAYMENT_REFUND - - """Void payment.""" - PAYMENT_VOID - TRANSACTION_CHARGE_REQUESTED - TRANSACTION_REFUND_REQUESTED - TRANSACTION_CANCELATION_REQUESTED - - """ - Event called for checkout tax calculation. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - CHECKOUT_CALCULATE_TAXES - - """ - Event called for order tax calculation. - - Added in Saleor 3.6. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - ORDER_CALCULATE_TAXES - - """Fetch external shipping methods for checkout.""" - SHIPPING_LIST_METHODS_FOR_CHECKOUT - - """Filter shipping methods for order.""" - ORDER_FILTER_SHIPPING_METHODS - - """Filter shipping methods for checkout.""" - CHECKOUT_FILTER_SHIPPING_METHODS -} - -"""An enumeration.""" -enum WebhookSampleEventTypeEnum { - ADDRESS_CREATED - ADDRESS_UPDATED - ADDRESS_DELETED - APP_INSTALLED - APP_UPDATED - APP_DELETED - APP_STATUS_CHANGED - ATTRIBUTE_CREATED - ATTRIBUTE_UPDATED - ATTRIBUTE_DELETED - ATTRIBUTE_VALUE_CREATED - ATTRIBUTE_VALUE_UPDATED - ATTRIBUTE_VALUE_DELETED - CATEGORY_CREATED - CATEGORY_UPDATED - CATEGORY_DELETED - CHANNEL_CREATED - CHANNEL_UPDATED - CHANNEL_DELETED - CHANNEL_STATUS_CHANGED - GIFT_CARD_CREATED - GIFT_CARD_UPDATED - GIFT_CARD_DELETED - GIFT_CARD_STATUS_CHANGED - GIFT_CARD_METADATA_UPDATED - MENU_CREATED - MENU_UPDATED - MENU_DELETED - MENU_ITEM_CREATED - MENU_ITEM_UPDATED - MENU_ITEM_DELETED - ORDER_CREATED - ORDER_CONFIRMED - ORDER_FULLY_PAID - ORDER_UPDATED - ORDER_CANCELLED - ORDER_FULFILLED - ORDER_METADATA_UPDATED - DRAFT_ORDER_CREATED - DRAFT_ORDER_UPDATED - DRAFT_ORDER_DELETED - SALE_CREATED - SALE_UPDATED - SALE_DELETED - SALE_TOGGLE - INVOICE_REQUESTED - INVOICE_DELETED - INVOICE_SENT - CUSTOMER_CREATED - CUSTOMER_UPDATED - CUSTOMER_DELETED - CUSTOMER_METADATA_UPDATED - COLLECTION_CREATED - COLLECTION_UPDATED - COLLECTION_DELETED - COLLECTION_METADATA_UPDATED - PRODUCT_CREATED - PRODUCT_UPDATED - PRODUCT_DELETED - PRODUCT_METADATA_UPDATED - PRODUCT_VARIANT_CREATED - PRODUCT_VARIANT_UPDATED - PRODUCT_VARIANT_DELETED - PRODUCT_VARIANT_OUT_OF_STOCK - PRODUCT_VARIANT_BACK_IN_STOCK - PRODUCT_VARIANT_METADATA_UPDATED - CHECKOUT_CREATED - CHECKOUT_UPDATED - CHECKOUT_METADATA_UPDATED - FULFILLMENT_CREATED - FULFILLMENT_CANCELED - FULFILLMENT_APPROVED - FULFILLMENT_METADATA_UPDATED - NOTIFY_USER - PAGE_CREATED - PAGE_UPDATED - PAGE_DELETED - PAGE_TYPE_CREATED - PAGE_TYPE_UPDATED - PAGE_TYPE_DELETED - PERMISSION_GROUP_CREATED - PERMISSION_GROUP_UPDATED - PERMISSION_GROUP_DELETED - SHIPPING_PRICE_CREATED - SHIPPING_PRICE_UPDATED - SHIPPING_PRICE_DELETED - SHIPPING_ZONE_CREATED - SHIPPING_ZONE_UPDATED - SHIPPING_ZONE_DELETED - SHIPPING_ZONE_METADATA_UPDATED - STAFF_CREATED - STAFF_UPDATED - STAFF_DELETED - TRANSACTION_ACTION_REQUEST - TRANSACTION_ITEM_METADATA_UPDATED - TRANSLATION_CREATED - TRANSLATION_UPDATED - WAREHOUSE_CREATED - WAREHOUSE_UPDATED - WAREHOUSE_DELETED - WAREHOUSE_METADATA_UPDATED - VOUCHER_CREATED - VOUCHER_UPDATED - VOUCHER_DELETED - VOUCHER_METADATA_UPDATED - OBSERVABILITY -} - -""" -Updates a webhook subscription. - -Requires one of the following permissions: MANAGE_APPS. -""" -type WebhookUpdate { - webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") - errors: [WebhookError!]! - webhook: Webhook -} - -input WebhookUpdateInput { - """The new name of the webhook.""" - name: String - - """The url to receive the payload.""" - targetUrl: String - - """ - The events that webhook wants to subscribe. - - DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. - """ - events: [WebhookEventTypeEnum!] - - """The asynchronous events that webhook wants to subscribe.""" - asyncEvents: [WebhookEventTypeAsyncEnum!] - - """The synchronous events that webhook wants to subscribe.""" - syncEvents: [WebhookEventTypeSyncEnum!] - - """ID of the app to which webhook belongs.""" - app: ID - - """Determine if webhook will be set active or not.""" - isActive: Boolean - - """ - Use to create a hash signature with each payload. - - DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - """ - secretKey: String - - """ - Subscription query used to define a webhook payload. - - Added in Saleor 3.2. - - Note: this API is currently in Feature Preview and can be subject to changes at later point. - """ - query: String -} - -"""Represents weight value in a specific weight unit.""" -type Weight { - """Weight unit.""" - unit: WeightUnitsEnum! - - """Weight value.""" - value: Float! -} - -scalar WeightScalar - -"""An enumeration.""" -enum WeightUnitsEnum { - G - LB - OZ - KG - TONNE -} - -"""_Any value scalar as defined by Federation spec.""" -scalar _Any - -"""_Entity union as defined by Federation spec.""" -union _Entity = App | Address | User | Group | ProductVariant | Product | ProductType | ProductMedia | Category | Collection | PageType - -"""_Service manifest as defined by Federation spec.""" -type _Service { - sdl: String -} diff --git a/scripts/build-types.js b/scripts/build-types.js index b75d31063..697012a0a 100644 --- a/scripts/build-types.js +++ b/scripts/build-types.js @@ -2,7 +2,7 @@ const { generate } = require("@graphql-codegen/cli"); // Feature flags names that will be used as suffix for generated files -const FEATURE_FLAGS = ["transactions"]; +const FEATURE_FLAGS = []; const schemaSuffixes = ["default", ...FEATURE_FLAGS]; diff --git a/src/channels/components/ChannelForm/ChannelForm.tsx b/src/channels/components/ChannelForm/ChannelForm.tsx index c864c3e93..a43a01a1f 100644 --- a/src/channels/components/ChannelForm/ChannelForm.tsx +++ b/src/channels/components/ChannelForm/ChannelForm.tsx @@ -6,20 +6,18 @@ import CardSpacer from "@dashboard/components/CardSpacer"; import CardTitle from "@dashboard/components/CardTitle"; import ControlledSwitch from "@dashboard/components/ControlledSwitch"; import FormSpacer from "@dashboard/components/FormSpacer"; +import Link from "@dashboard/components/Link"; +import PreviewPill from "@dashboard/components/PreviewPill"; import SingleAutocompleteSelectField, { SingleAutocompleteChoiceType, } from "@dashboard/components/SingleAutocompleteSelectField"; import { ChannelErrorFragment, CountryCode, + MarkAsPaidStrategyEnum, StockSettingsInput, } from "@dashboard/graphql"; -import { - ChannelOrderSettingsFragment, - MarkAsPaidStrategyEnum, -} from "@dashboard/graphql/types.transactions.generated"; import useClipboard from "@dashboard/hooks/useClipboard"; -import { useFlags } from "@dashboard/hooks/useFlags"; import { ChangeEvent, FormChange } from "@dashboard/hooks/useForm"; import { commonMessages } from "@dashboard/intl"; import { getFormErrors } from "@dashboard/utils/errors"; @@ -31,6 +29,7 @@ import { TextField, Typography, } from "@material-ui/core"; +import { Box } from "@saleor/macaw-ui/next"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; @@ -63,7 +62,6 @@ export interface ChannelFormProps { onCurrencyCodeChange?: (event: ChangeEvent) => void; onDefaultCountryChange: (event: ChangeEvent) => void; onMarkAsPaidStrategyChange: () => void; - orderSettings: ChannelOrderSettingsFragment["orderSettings"]; } export const ChannelForm: React.FC = ({ @@ -86,7 +84,6 @@ export const ChannelForm: React.FC = ({ errors, ); const classes = useStyles(); - const { orderTransactions } = useFlags(["orderTransactions"]); return ( <> @@ -229,29 +226,62 @@ export const ChannelForm: React.FC = ({ onChange={onDefaultCountryChange} /> - + + + {" "} + + + {" "} + + + } + secondLabel={ + + {" "} + + + {" "} + + + } + /> + + ); }; - -ChannelForm.displayName = "ChannelForm"; -export default ChannelForm; diff --git a/src/channels/components/ChannelForm/index.ts b/src/channels/components/ChannelForm/index.ts index 05586bb7a..306cdc296 100644 --- a/src/channels/components/ChannelForm/index.ts +++ b/src/channels/components/ChannelForm/index.ts @@ -1,2 +1 @@ export * from "./ChannelForm"; -export { default } from "./ChannelForm"; diff --git a/src/channels/fixtures.ts b/src/channels/fixtures.ts index 8aae5fb2c..a404998ee 100644 --- a/src/channels/fixtures.ts +++ b/src/channels/fixtures.ts @@ -3,6 +3,7 @@ import { ChannelDetailsFragment, ChannelErrorCode, ChannelErrorFragment, + MarkAsPaidStrategyEnum, ProductFragment, } from "@dashboard/graphql"; import { Money } from "@saleor/sdk/dist/apollo/types"; @@ -46,6 +47,10 @@ export const channelsList: ChannelDetailsFragment[] = [ name: "Warehouse 2", }, ], + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, }, { __typename: "Channel", @@ -76,6 +81,10 @@ export const channelsList: ChannelDetailsFragment[] = [ name: "Warehouse 2", }, ], + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, }, { __typename: "Channel", @@ -106,6 +115,10 @@ export const channelsList: ChannelDetailsFragment[] = [ name: "Warehouse 2", }, ], + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, }, { __typename: "Channel", @@ -136,6 +149,10 @@ export const channelsList: ChannelDetailsFragment[] = [ name: "Warehouse 2", }, ], + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, }, { __typename: "Channel", @@ -166,6 +183,10 @@ export const channelsList: ChannelDetailsFragment[] = [ name: "Warehouse 2", }, ], + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, }, { __typename: "Channel", @@ -196,6 +217,10 @@ export const channelsList: ChannelDetailsFragment[] = [ name: "Warehouse 2", }, ], + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, }, { __typename: "Channel", @@ -226,6 +251,10 @@ export const channelsList: ChannelDetailsFragment[] = [ name: "Warehouse 2", }, ], + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, }, ]; @@ -258,6 +287,10 @@ export const channel: ChannelDetailsFragment = { name: "Warehouse 2", }, ], + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, }; type ProductChannelsWithPricing = ProductFragment["channelListings"][0] & { diff --git a/src/channels/mutations.transactions.ts b/src/channels/mutations.transactions.ts deleted file mode 100644 index 59ac2db7c..000000000 --- a/src/channels/mutations.transactions.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { gql } from "@apollo/client"; - -export const channelOrderSettingsUpdateMutation = gql` - mutation ChannelOrderSettingsUpdate($id: ID!, $input: ChannelUpdateInput!) { - channelUpdate(id: $id, input: $input) { - channel { - ...ChannelDetails - ...ChannelOrderSettings - } - errors { - ...ChannelError - } - } - } -`; - -export const channelCreateWithSettingsMutation = gql` - mutation ChannelCreateWithSettings($input: ChannelCreateInput!) { - channelCreate(input: $input) { - channel { - ...ChannelDetails - ...ChannelOrderSettings - } - errors { - ...ChannelError - } - } - } -`; diff --git a/src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.stories.tsx b/src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.stories.tsx index 4efc49d4d..4494faa4b 100644 --- a/src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.stories.tsx +++ b/src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.stories.tsx @@ -1,7 +1,6 @@ import { channel, channelCreateErrors } from "@dashboard/channels/fixtures"; import { countries } from "@dashboard/fixtures"; import { ChannelErrorFragment } from "@dashboard/graphql"; -import { MarkAsPaidStrategyEnum } from "@dashboard/graphql/types.transactions.generated"; import Decorator from "@dashboard/storybook/Decorator"; import { storiesOf } from "@storybook/react"; import React from "react"; @@ -15,10 +14,6 @@ const props: ChannelDetailsPageProps = { { label: "USD", value: "USD" }, { label: "PLN", value: "PLN" }, ], - orderSettings: { - markAsPaidStrategy: MarkAsPaidStrategyEnum.PAYMENT_FLOW, - __typename: "OrderSettings", - }, disabled: false, disabledStatus: false, errors: [], diff --git a/src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.tsx b/src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.tsx index fb3baad9a..bd51f3af7 100644 --- a/src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.tsx +++ b/src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.tsx @@ -21,10 +21,7 @@ import { SearchWarehousesQuery, StockSettingsInput, } from "@dashboard/graphql"; -import { - ChannelOrderSettingsFragment, - MarkAsPaidStrategyEnum, -} from "@dashboard/graphql/types.transactions.generated"; +import { MarkAsPaidStrategyEnum } from "@dashboard/graphql/types.generated"; import { SearchData } from "@dashboard/hooks/makeTopLevelSearch"; import { getParsedSearchData } from "@dashboard/hooks/makeTopLevelSearch/utils"; import { SubmitPromise } from "@dashboard/hooks/useForm"; @@ -71,7 +68,6 @@ export interface ChannelDetailsPageProps< updateChannelStatus?: () => void; searchShippingZones: (query: string) => void; searchWarehouses: (query: string) => void; - orderSettings: ChannelOrderSettingsFragment["orderSettings"]; } const ChannelDetailsPage = function ({ @@ -95,7 +91,6 @@ const ChannelDetailsPage = function ({ channelWarehouses = [], allWarehousesCount, countries, - orderSettings, }: ChannelDetailsPageProps) { const navigate = useNavigator(); const intl = useIntl(); @@ -110,7 +105,7 @@ const ChannelDetailsPage = function ({ const countryChoices = mapCountriesToChoices(countries || []); - const { defaultCountry, stockSettings, ...formData } = + const { defaultCountry, stockSettings, orderSettings, ...formData } = channel || ({} as ChannelDetailsFragment); const initialStockSettings: StockSettingsInput = { allocationStrategy: AllocationStrategyEnum.PRIORITIZE_SORTING_ORDER, @@ -129,7 +124,7 @@ const ChannelDetailsPage = function ({ ...initialStockSettings, shippingZonesToDisplay: channelShippingZones, warehousesToDisplay: channelWarehouses, - markAsPaidStrategy: orderSettings.markAsPaidStrategy, + markAsPaidStrategy: orderSettings?.markAsPaidStrategy, }; const getFilteredShippingZonesChoices = ( @@ -227,7 +222,6 @@ const ChannelDetailsPage = function ({ { const notify = useNotifier(); const intl = useIntl(); const shop = useShop(); - const { orderTransactions } = useFlags(["orderTransactions"]); const handleError = (error: ChannelErrorFragment) => { notify({ @@ -41,23 +37,12 @@ export const ChannelCreateView = ({}) => { }); }; - const [createChannel, createChannelRegularOpts] = useChannelCreateMutation({ + const [createChannel, createChannelOpts] = useChannelCreateMutation({ onCompleted: ({ channelCreate: { errors } }: ChannelCreateMutation) => { notify(getDefaultNotifierSuccessErrorData(errors, intl)); }, }); - const [createChannelWithSettings, createChannelWithSettingsOpts] = - useChannelCreateWithSettingsMutation({ - onCompleted: ({ channelCreate: { errors } }: ChannelCreateMutation) => { - notify(getDefaultNotifierSuccessErrorData(errors, intl)); - }, - }); - - const createChannelOpts = orderTransactions?.enabled - ? createChannelWithSettingsOpts - : createChannelRegularOpts; - const [reorderChannelWarehouses, reorderChannelWarehousesOpts] = useChannelReorderWarehousesMutation({ onCompleted: data => { @@ -91,18 +76,16 @@ export const ChannelCreateView = ({}) => { stockSettings: { allocationStrategy, }, + orderSettings: { + markAsPaidStrategy, + }, }; - const createChannelMutation = orderTransactions.enabled - ? createChannelWithSettings({ - variables: { - input: { ...input, orderSettings: { markAsPaidStrategy } }, - }, - }) - : createChannel({ - variables: { - input, - }, - }); + + const createChannelMutation = createChannel({ + variables: { + input, + }, + }); const result = await createChannelMutation; const errors = await extractMutationErrors(createChannelMutation); @@ -166,13 +149,6 @@ export const ChannelCreateView = ({}) => { /> <> = ({ const intl = useIntl(); const shop = useShop(); - const { orderTransactions } = useFlags(["orderTransactions"]); - const channelsListData = useChannelsQuery({ displayLoader: true }); const [openModal, closeModal] = createDialogActionHandlers< @@ -71,18 +63,11 @@ export const ChannelDetails: React.FC = ({ notify(getDefaultNotifierSuccessErrorData(errors, intl)), }); - const [updateChannelSettings] = useChannelOrderSettingsUpdateMutation(); - const { data, loading } = useChannelQuery({ displayLoader: true, variables: { id }, }); - const { data: channelSettingsData } = useChannelOrderSettingsQuery({ - variables: { id }, - skip: !orderTransactions.enabled, - }); - const handleError = (error: ChannelErrorFragment) => { notify({ status: "error", @@ -145,41 +130,17 @@ export const ChannelDetails: React.FC = ({ stockSettings: { allocationStrategy, }, + orderSettings: { + markAsPaidStrategy, + }, }, }, }); - // TODO: Remove this when we remove orderTransactions flag, move to updateChannel mutation - let updateChannelOrderSettingsMutation: ReturnType< - typeof updateChannelSettings - >; - if (orderTransactions.enabled) { - updateChannelOrderSettingsMutation = updateChannelSettings({ - variables: { - id: data?.channel.id, - input: { - orderSettings: { - markAsPaidStrategy, - }, - }, - }, - }); - } else { - updateChannelOrderSettingsMutation = new Promise(resolve => - resolve(null), - ); - } - - const [resultChannel] = await Promise.all([ - updateChannelMutation, - updateChannelOrderSettingsMutation, - ]); + const resultChannel = await updateChannelMutation; const errors = await extractMutationErrors(updateChannelMutation); - const settingsErrors = await extractMutationErrors( - updateChannelOrderSettingsMutation, - ); - if (!errors?.length && !settingsErrors?.length) { + if (!errors?.length) { const moves = calculateItemsOrderMoves( resultChannel.data?.channelUpdate.channel?.warehouses, warehousesToDisplay, @@ -193,7 +154,7 @@ export const ChannelDetails: React.FC = ({ }); } - return errors || settingsErrors; + return errors; }; const onDeleteCompleted = (data: ChannelDeleteMutation) => { @@ -266,12 +227,6 @@ export const ChannelDetails: React.FC = ({ })} /> = ({ {header} - {title ?? children} +
{title ?? children}
); diff --git a/src/components/Timeline/TimelineEventHeader.tsx b/src/components/Timeline/TimelineEventHeader.tsx index 93722e2cc..cd18f89c4 100644 --- a/src/components/Timeline/TimelineEventHeader.tsx +++ b/src/components/Timeline/TimelineEventHeader.tsx @@ -9,15 +9,19 @@ import Link from "../Link"; const useStyles = makeStyles( theme => ({ container: { - alignItems: "center", + alignItems: "start", display: "flex", flexDirection: "row", justifyContent: "space-between", width: "100%", }, + title: { + wordBreak: "break-all", + }, date: { color: theme.typography.caption.color, paddingLeft: 24, + whiteSpace: "nowrap", }, elementsContainer: { alignItems: "center", @@ -60,7 +64,7 @@ export const TimelineEventHeader: React.FC< return (
- {title && {title}} + {title && {title}} {titleElements && (
{titleElements.filter(Boolean).map(({ text, link }) => { diff --git a/src/components/Timeline/TimelineNote.tsx b/src/components/Timeline/TimelineNote.tsx index 7cca8f007..90069d439 100644 --- a/src/components/Timeline/TimelineNote.tsx +++ b/src/components/Timeline/TimelineNote.tsx @@ -22,6 +22,7 @@ const useStyles = makeStyles( background: vars.colors.background.surfaceNeutralPlain, }, cardContent: { + wordBreak: "break-all", borderRadius: "4px", border: `1px solid ${vars.colors.border.neutralDefault}`, "&:last-child": { diff --git a/src/fragments/channel.transactions.ts b/src/fragments/channel.transactions.ts deleted file mode 100644 index 567897eea..000000000 --- a/src/fragments/channel.transactions.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { gql } from "@apollo/client"; - -export const channelOrderSettings = gql` - fragment ChannelOrderSettings on Channel { - orderSettings { - markAsPaidStrategy - } - } -`; diff --git a/src/fragments/channels.ts b/src/fragments/channels.ts index a8ebd57b1..fd2280881 100644 --- a/src/fragments/channels.ts +++ b/src/fragments/channels.ts @@ -32,5 +32,8 @@ export const channelDetailsFragment = gql` warehouses { ...Warehouse } + orderSettings { + markAsPaidStrategy + } } `; diff --git a/src/fragments/errors.transactions.ts b/src/fragments/errors.transactions.ts deleted file mode 100644 index bed22a300..000000000 --- a/src/fragments/errors.transactions.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { gql } from "@apollo/client"; - -export const transactionRequestActionErrorFragment = gql` - fragment TransactionRequestActionError on TransactionRequestActionError { - field - message - code - } -`; - -export const transactionCreateErrorFragment = gql` - fragment TransactionCreateError on TransactionCreateError { - field - message - code - } -`; - -export const orderGrantRefundCreateErrorFragment = gql` - fragment OrderGrantRefundCreateError on OrderGrantRefundCreateError { - field - message - code - } -`; - -export const orderGrantRefundUpdateErrorFragment = gql` - fragment OrderGrantRefundUpdateError on OrderGrantRefundUpdateError { - field - message - code - } -`; diff --git a/src/fragments/errors.ts b/src/fragments/errors.ts index 55a7354e9..2307591b8 100644 --- a/src/fragments/errors.ts +++ b/src/fragments/errors.ts @@ -543,3 +543,35 @@ export const taxClassDeleteError = gql` message } `; + +export const transactionRequestActionErrorFragment = gql` + fragment TransactionRequestActionError on TransactionRequestActionError { + field + message + code + } +`; + +export const transactionCreateErrorFragment = gql` + fragment TransactionCreateError on TransactionCreateError { + field + message + code + } +`; + +export const orderGrantRefundCreateErrorFragment = gql` + fragment OrderGrantRefundCreateError on OrderGrantRefundCreateError { + field + message + code + } +`; + +export const orderGrantRefundUpdateErrorFragment = gql` + fragment OrderGrantRefundUpdateError on OrderGrantRefundUpdateError { + field + message + code + } +`; diff --git a/src/fragments/orders.transactions.ts b/src/fragments/orders.transactions.ts deleted file mode 100644 index 5f42af987..000000000 --- a/src/fragments/orders.transactions.ts +++ /dev/null @@ -1,361 +0,0 @@ -import { gql } from "@apollo/client"; - -export const transactionEvent = gql` - fragment TransactionEvent on TransactionEvent { - id - pspReference - amount { - ...Money - } - type - message - createdAt - createdBy { - ... on User { - ...StaffMemberAvatar - } - ... on App { - ...AppAvatar - } - } - externalUrl - } -`; - -export const transactionItemFragment = gql` - fragment TransactionItem on TransactionItem { - id - type - pspReference - actions - type - status - externalUrl - events { - ...TransactionEvent - } - authorizedAmount { - ...Money - } - chargedAmount { - ...Money - } - refundedAmount { - ...Money - } - canceledAmount { - ...Money - } - authorizePendingAmount { - ...Money - } - chargePendingAmount { - ...Money - } - refundPendingAmount { - ...Money - } - cancelPendingAmount { - ...Money - } - } -`; - -export const fragmentPayment = gql` - fragment OrderPayment on Payment { - id - isActive - actions - gateway - paymentMethodType - availableCaptureAmount { - ...Money - } - capturedAmount { - ...Money - } - total { - ...Money - } - availableRefundAmount { - ...Money - } - modified - transactions { - id - token - created - kind - isSuccess - } - } -`; - -export const fragmentOrderGiftcard = gql` - fragment OrderGiftCard on GiftCard { - id - last4CodeChars - events { - id - type - orderId - date - balance { - initialBalance { - ...Money - } - currentBalance { - ...Money - } - oldInitialBalance { - ...Money - } - oldCurrentBalance { - ...Money - } - } - } - } -`; - -export const fragmentOrderGrantedRefunds = gql` - fragment OrderGrantedRefund on OrderGrantedRefund { - id - createdAt - amount { - currency - amount - } - reason - user { - ...UserBaseAvatar - } - app { - id - name - } - } -`; - -export const orderLineGrantRefund = gql` - fragment OrderLineGrantRefund on OrderLine { - id - thumbnail { - url - } - productName - quantity - quantityToFulfill - variantName - productName - unitPrice { - gross { - ...Money - } - } - } -`; - -export const grantRefundFulfillment = gql` - fragment OrderFulfillmentGrantRefund on Fulfillment { - id - fulfillmentOrder - status - lines { - id - quantity - orderLine { - ...OrderLineGrantRefund - } - } - } -`; - -export const fragmentOrderDetailsGrantRefund = gql` - fragment OrderDetailsGrantRefund on Order { - id - number - lines { - ...OrderLineGrantRefund - } - fulfillments { - ...OrderFulfillmentGrantRefund - } - shippingPrice { - gross { - ...Money - } - } - total { - gross { - ...Money - } - } - } -`; - -export const fragmentOrderDetailsWithTransactions = gql` - fragment OrderDetailsWithTransactions on Order { - id - token - ...Metadata - billingAddress { - ...Address - } - transactions { - ...TransactionItem - } - payments { - ...OrderPayment - } - giftCards { - ...OrderGiftCard - } - grantedRefunds { - ...OrderGrantedRefund - } - isShippingRequired - canFinalize - created - customerNote - discounts { - id - type - calculationMode: valueType - value - reason - amount { - ...Money - } - } - events { - ...OrderEvent - } - fulfillments { - ...Fulfillment - } - lines { - ...OrderLine - } - number - isPaid - paymentStatus - shippingAddress { - ...Address - } - deliveryMethod { - __typename - ... on ShippingMethod { - id - } - ... on Warehouse { - id - clickAndCollectOption - } - } - shippingMethod { - id - } - shippingMethodName - collectionPointName - shippingPrice { - gross { - amount - currency - } - } - status - subtotal { - gross { - ...Money - } - net { - ...Money - } - } - total { - gross { - ...Money - } - net { - ...Money - } - tax { - ...Money - } - } - totalRemainingGrant { - ...Money - } - totalGrantedRefund { - ...Money - } - totalRefundPending { - ...Money - } - totalRefunded { - ...Money - } - actions - totalAuthorizePending { - ...Money - } - totalAuthorized { - ...Money - } - totalCharged { - ...Money - } - totalChargePending { - ...Money - } - totalCanceled { - ...Money - } - totalCancelPending { - ...Money - } - totalBalance { - ...Money - } - undiscountedTotal { - net { - ...Money - } - gross { - ...Money - } - } - user { - id - email - } - userEmail - shippingMethods { - id - name - price { - ...Money - } - active - message - } - invoices { - ...Invoice - } - channel { - isActive - id - name - currencyCode - slug - defaultCountry { - code - } - orderSettings { - markAsPaidStrategy - } - } - isPaid - } -`; diff --git a/src/fragments/orders.ts b/src/fragments/orders.ts index 1eb9c971c..868238158 100644 --- a/src/fragments/orders.ts +++ b/src/fragments/orders.ts @@ -187,34 +187,23 @@ export const invoiceFragment = gql` export const fragmentOrderDetails = gql` fragment OrderDetails on Order { id + # TODO: remove me token ...Metadata billingAddress { ...Address } transactions { - id + ...TransactionItem + } + payments { + ...OrderPayment } giftCards { - events { - id - type - orderId - balance { - initialBalance { - ...Money - } - currentBalance { - ...Money - } - oldInitialBalance { - ...Money - } - oldCurrentBalance { - ...Money - } - } - } + ...OrderGiftCard + } + grantedRefunds { + ...OrderGrantedRefund } isShippingRequired canFinalize @@ -255,6 +244,7 @@ export const fragmentOrderDetails = gql` clickAndCollectOption } } + # TODO: remove me shippingMethod { id } @@ -286,13 +276,41 @@ export const fragmentOrderDetails = gql` ...Money } } + totalRemainingGrant { + ...Money + } + totalGrantedRefund { + ...Money + } + totalRefundPending { + ...Money + } + totalRefunded { + ...Money + } actions + totalAuthorizePending { + ...Money + } totalAuthorized { ...Money } + # TODO: Remove me totalCaptured { ...Money } + totalCharged { + ...Money + } + totalChargePending { + ...Money + } + totalCanceled { + ...Money + } + totalCancelPending { + ...Money + } totalBalance { ...Money } @@ -330,6 +348,9 @@ export const fragmentOrderDetails = gql` defaultCountry { code } + orderSettings { + markAsPaidStrategy + } } isPaid } @@ -407,3 +428,198 @@ export const fragmentOrderLineStockData = gql` } } `; + +export const transactionEvent = gql` + fragment TransactionEvent on TransactionEvent { + id + pspReference + amount { + ...Money + } + type + message + createdAt + createdBy { + ... on User { + ...StaffMemberAvatar + } + ... on App { + ...AppAvatar + } + } + externalUrl + } +`; + +export const transactionItemFragment = gql` + fragment TransactionItem on TransactionItem { + id + # TODO: remove me + type + pspReference + actions + type + status + externalUrl + events { + ...TransactionEvent + } + authorizedAmount { + ...Money + } + chargedAmount { + ...Money + } + refundedAmount { + ...Money + } + canceledAmount { + ...Money + } + authorizePendingAmount { + ...Money + } + chargePendingAmount { + ...Money + } + refundPendingAmount { + ...Money + } + cancelPendingAmount { + ...Money + } + } +`; + +export const fragmentPayment = gql` + fragment OrderPayment on Payment { + id + isActive + actions + gateway + paymentMethodType + availableCaptureAmount { + ...Money + } + capturedAmount { + ...Money + } + total { + ...Money + } + availableRefundAmount { + ...Money + } + modified + transactions { + id + token + created + kind + isSuccess + } + } +`; + +export const fragmentOrderGiftcard = gql` + fragment OrderGiftCard on GiftCard { + id + last4CodeChars + events { + id + type + orderId + date + balance { + initialBalance { + ...Money + } + currentBalance { + ...Money + } + oldInitialBalance { + ...Money + } + oldCurrentBalance { + ...Money + } + } + } + } +`; + +export const fragmentOrderGrantedRefunds = gql` + fragment OrderGrantedRefund on OrderGrantedRefund { + id + createdAt + amount { + currency + amount + } + reason + user { + ...UserBaseAvatar + } + app { + id + name + } + } +`; + +export const orderLineGrantRefund = gql` + fragment OrderLineGrantRefund on OrderLine { + id + thumbnail { + url + } + productName + quantity + quantityToFulfill + variantName + productName + unitPrice { + gross { + ...Money + } + } + } +`; + +export const grantRefundFulfillment = gql` + fragment OrderFulfillmentGrantRefund on Fulfillment { + id + fulfillmentOrder + status + lines { + id + quantity + orderLine { + ...OrderLineGrantRefund + } + } + } +`; + +export const fragmentOrderDetailsGrantRefund = gql` + fragment OrderDetailsGrantRefund on Order { + id + number + lines { + ...OrderLineGrantRefund + } + fulfillments { + ...OrderFulfillmentGrantRefund + } + shippingPrice { + gross { + ...Money + } + } + total { + gross { + ...Money + } + } + } +`; diff --git a/src/graphql/fragmentTypes.generated.ts b/src/graphql/fragmentTypes.generated.ts index d671cef91..845074765 100644 --- a/src/graphql/fragmentTypes.generated.ts +++ b/src/graphql/fragmentTypes.generated.ts @@ -8,8 +8,8 @@ const result: PossibleTypesResultData = { "possibleTypes": { "DeliveryMethod": [ - "Warehouse", - "ShippingMethod" + "ShippingMethod", + "Warehouse" ], "Event": [ "AddressCreated", @@ -35,6 +35,7 @@ "ChannelUpdated", "CheckoutCreated", "CheckoutFilterShippingMethods", + "CheckoutFullyPaid", "CheckoutMetadataUpdated", "CheckoutUpdated", "CollectionCreated", @@ -54,6 +55,7 @@ "GiftCardCreated", "GiftCardDeleted", "GiftCardMetadataUpdated", + "GiftCardSent", "GiftCardStatusChanged", "GiftCardUpdated", "InvoiceDeleted", @@ -68,6 +70,7 @@ "OrderCancelled", "OrderConfirmed", "OrderCreated", + "OrderExpired", "OrderFilterShippingMethods", "OrderFulfilled", "OrderFullyPaid", @@ -82,6 +85,7 @@ "PaymentAuthorize", "PaymentCaptureEvent", "PaymentConfirmEvent", + "PaymentGatewayInitializeSession", "PaymentListGateways", "PaymentProcessEvent", "PaymentRefundEvent", @@ -120,7 +124,12 @@ "StaffUpdated", "ThumbnailCreated", "TransactionActionRequest", + "TransactionCancelationRequested", + "TransactionChargeRequested", + "TransactionInitializeSession", "TransactionItemMetadataUpdated", + "TransactionProcessSession", + "TransactionRefundRequested", "TranslationCreated", "TranslationUpdated", "VoucherCreated", @@ -262,6 +271,10 @@ "Voucher", "Warehouse" ], + "OrderOrCheckout": [ + "Checkout", + "Order" + ], "TaxSourceLine": [ "CheckoutLine", "OrderLine" @@ -271,43 +284,48 @@ "Order" ], "TranslatableItem": [ - "ProductTranslatableContent", - "CollectionTranslatableContent", - "CategoryTranslatableContent", "AttributeTranslatableContent", "AttributeValueTranslatableContent", - "ProductVariantTranslatableContent", + "CategoryTranslatableContent", + "CollectionTranslatableContent", + "MenuItemTranslatableContent", "PageTranslatableContent", - "ShippingMethodTranslatableContent", + "ProductTranslatableContent", + "ProductVariantTranslatableContent", "SaleTranslatableContent", - "VoucherTranslatableContent", - "MenuItemTranslatableContent" + "ShippingMethodTranslatableContent", + "VoucherTranslatableContent" ], "TranslationTypes": [ - "ProductTranslation", - "CollectionTranslation", - "CategoryTranslation", "AttributeTranslation", "AttributeValueTranslation", - "ProductVariantTranslation", + "CategoryTranslation", + "CollectionTranslation", + "MenuItemTranslation", "PageTranslation", - "ShippingMethodTranslation", + "ProductTranslation", + "ProductVariantTranslation", "SaleTranslation", - "VoucherTranslation", - "MenuItemTranslation" + "ShippingMethodTranslation", + "VoucherTranslation" + ], + "UserOrApp": [ + "App", + "User" ], "_Entity": [ - "App", "Address", - "User", - "Group", - "ProductVariant", - "Product", - "ProductType", - "ProductMedia", + "App", "Category", "Collection", - "PageType" + "Group", + "Order", + "PageType", + "Product", + "ProductMedia", + "ProductType", + "ProductVariant", + "User" ] } }; diff --git a/src/graphql/fragmentTypes.transactions.generated.ts b/src/graphql/fragmentTypes.transactions.generated.ts deleted file mode 100644 index 657d25bb5..000000000 --- a/src/graphql/fragmentTypes.transactions.generated.ts +++ /dev/null @@ -1,322 +0,0 @@ -/* eslint-disable */ - - export interface PossibleTypesResultData { - possibleTypes: { - [key: string]: string[] - } - } - const result: PossibleTypesResultData = { - "possibleTypes": { - "DeliveryMethod": [ - "Warehouse", - "ShippingMethod" - ], - "Event": [ - "AddressCreated", - "AddressDeleted", - "AddressUpdated", - "AppDeleted", - "AppInstalled", - "AppStatusChanged", - "AppUpdated", - "AttributeCreated", - "AttributeDeleted", - "AttributeUpdated", - "AttributeValueCreated", - "AttributeValueDeleted", - "AttributeValueUpdated", - "CalculateTaxes", - "CategoryCreated", - "CategoryDeleted", - "CategoryUpdated", - "ChannelCreated", - "ChannelDeleted", - "ChannelStatusChanged", - "ChannelUpdated", - "CheckoutCreated", - "CheckoutFilterShippingMethods", - "CheckoutMetadataUpdated", - "CheckoutUpdated", - "CollectionCreated", - "CollectionDeleted", - "CollectionMetadataUpdated", - "CollectionUpdated", - "CustomerCreated", - "CustomerMetadataUpdated", - "CustomerUpdated", - "DraftOrderCreated", - "DraftOrderDeleted", - "DraftOrderUpdated", - "FulfillmentApproved", - "FulfillmentCanceled", - "FulfillmentCreated", - "FulfillmentMetadataUpdated", - "GiftCardCreated", - "GiftCardDeleted", - "GiftCardMetadataUpdated", - "GiftCardStatusChanged", - "GiftCardUpdated", - "InvoiceDeleted", - "InvoiceRequested", - "InvoiceSent", - "MenuCreated", - "MenuDeleted", - "MenuItemCreated", - "MenuItemDeleted", - "MenuItemUpdated", - "MenuUpdated", - "OrderCancelled", - "OrderConfirmed", - "OrderCreated", - "OrderFilterShippingMethods", - "OrderFulfilled", - "OrderFullyPaid", - "OrderMetadataUpdated", - "OrderUpdated", - "PageCreated", - "PageDeleted", - "PageTypeCreated", - "PageTypeDeleted", - "PageTypeUpdated", - "PageUpdated", - "PaymentAuthorize", - "PaymentCaptureEvent", - "PaymentConfirmEvent", - "PaymentListGateways", - "PaymentProcessEvent", - "PaymentRefundEvent", - "PaymentVoidEvent", - "PermissionGroupCreated", - "PermissionGroupDeleted", - "PermissionGroupUpdated", - "ProductCreated", - "ProductDeleted", - "ProductMediaCreated", - "ProductMediaDeleted", - "ProductMediaUpdated", - "ProductMetadataUpdated", - "ProductUpdated", - "ProductVariantBackInStock", - "ProductVariantCreated", - "ProductVariantDeleted", - "ProductVariantMetadataUpdated", - "ProductVariantOutOfStock", - "ProductVariantStockUpdated", - "ProductVariantUpdated", - "SaleCreated", - "SaleDeleted", - "SaleToggle", - "SaleUpdated", - "ShippingListMethodsForCheckout", - "ShippingPriceCreated", - "ShippingPriceDeleted", - "ShippingPriceUpdated", - "ShippingZoneCreated", - "ShippingZoneDeleted", - "ShippingZoneMetadataUpdated", - "ShippingZoneUpdated", - "StaffCreated", - "StaffDeleted", - "StaffUpdated", - "ThumbnailCreated", - "TransactionActionRequest", - "TransactionCancelationRequested", - "TransactionChargeRequested", - "TransactionItemMetadataUpdated", - "TransactionRefundRequested", - "TranslationCreated", - "TranslationUpdated", - "VoucherCreated", - "VoucherDeleted", - "VoucherMetadataUpdated", - "VoucherUpdated", - "WarehouseCreated", - "WarehouseDeleted", - "WarehouseMetadataUpdated", - "WarehouseUpdated" - ], - "IssuingPrincipal": [ - "App", - "User" - ], - "Job": [ - "AppInstallation", - "ExportFile", - "Invoice" - ], - "Node": [ - "Address", - "Allocation", - "App", - "AppExtension", - "AppInstallation", - "AppToken", - "Attribute", - "AttributeTranslatableContent", - "AttributeTranslation", - "AttributeValue", - "AttributeValueTranslatableContent", - "AttributeValueTranslation", - "Category", - "CategoryTranslatableContent", - "CategoryTranslation", - "Channel", - "Checkout", - "CheckoutLine", - "Collection", - "CollectionChannelListing", - "CollectionTranslatableContent", - "CollectionTranslation", - "CustomerEvent", - "DigitalContent", - "DigitalContentUrl", - "EventDelivery", - "EventDeliveryAttempt", - "ExportEvent", - "ExportFile", - "Fulfillment", - "FulfillmentLine", - "GiftCard", - "GiftCardEvent", - "GiftCardTag", - "Group", - "Invoice", - "Menu", - "MenuItem", - "MenuItemTranslatableContent", - "MenuItemTranslation", - "Order", - "OrderDiscount", - "OrderEvent", - "OrderLine", - "Page", - "PageTranslatableContent", - "PageTranslation", - "PageType", - "Payment", - "Product", - "ProductChannelListing", - "ProductMedia", - "ProductTranslatableContent", - "ProductTranslation", - "ProductType", - "ProductVariant", - "ProductVariantChannelListing", - "ProductVariantTranslatableContent", - "ProductVariantTranslation", - "Sale", - "SaleChannelListing", - "SaleTranslatableContent", - "SaleTranslation", - "ShippingMethod", - "ShippingMethodChannelListing", - "ShippingMethodPostalCodeRule", - "ShippingMethodTranslatableContent", - "ShippingMethodTranslation", - "ShippingMethodType", - "ShippingZone", - "ShopTranslation", - "StaffNotificationRecipient", - "Stock", - "TaxClass", - "TaxConfiguration", - "Transaction", - "TransactionEvent", - "TransactionItem", - "User", - "Voucher", - "VoucherChannelListing", - "VoucherTranslatableContent", - "VoucherTranslation", - "Warehouse", - "Webhook" - ], - "ObjectWithMetadata": [ - "Address", - "App", - "Attribute", - "Category", - "Checkout", - "CheckoutLine", - "Collection", - "DigitalContent", - "Fulfillment", - "GiftCard", - "Invoice", - "Menu", - "MenuItem", - "Order", - "OrderLine", - "Page", - "PageType", - "Payment", - "Product", - "ProductMedia", - "ProductType", - "ProductVariant", - "Sale", - "ShippingMethod", - "ShippingMethodType", - "ShippingZone", - "TaxClass", - "TaxConfiguration", - "TransactionItem", - "User", - "Voucher", - "Warehouse" - ], - "TaxSourceLine": [ - "CheckoutLine", - "OrderLine" - ], - "TaxSourceObject": [ - "Checkout", - "Order" - ], - "TranslatableItem": [ - "ProductTranslatableContent", - "CollectionTranslatableContent", - "CategoryTranslatableContent", - "AttributeTranslatableContent", - "AttributeValueTranslatableContent", - "ProductVariantTranslatableContent", - "PageTranslatableContent", - "ShippingMethodTranslatableContent", - "SaleTranslatableContent", - "VoucherTranslatableContent", - "MenuItemTranslatableContent" - ], - "TranslationTypes": [ - "ProductTranslation", - "CollectionTranslation", - "CategoryTranslation", - "AttributeTranslation", - "AttributeValueTranslation", - "ProductVariantTranslation", - "PageTranslation", - "ShippingMethodTranslation", - "SaleTranslation", - "VoucherTranslation", - "MenuItemTranslation" - ], - "UserOrApp": [ - "User", - "App" - ], - "_Entity": [ - "App", - "Address", - "User", - "Group", - "ProductVariant", - "Product", - "ProductType", - "ProductMedia", - "Category", - "Collection", - "PageType" - ] - } -}; - export default result; - \ No newline at end of file diff --git a/src/graphql/hooks.generated.ts b/src/graphql/hooks.generated.ts index f7405935c..349983cfa 100644 --- a/src/graphql/hooks.generated.ts +++ b/src/graphql/hooks.generated.ts @@ -96,12 +96,6 @@ export const AppListItemFragmentDoc = gql` } } ${AppPermissionFragmentDoc}`; -export const AppAvatarFragmentDoc = gql` - fragment AppAvatar on App { - id - name -} - `; export const AttributeFragmentDoc = gql` fragment Attribute on Attribute { id @@ -172,18 +166,6 @@ export const UserFragmentDoc = gql` } } ${UserPermissionFragmentDoc}`; -export const UserBaseAvatarFragmentDoc = gql` - fragment UserBaseAvatar on User { - id - firstName - lastName - email - avatar { - url - alt - } -} - `; export const CategoryFragmentDoc = gql` fragment Category on Category { id @@ -250,6 +232,9 @@ export const ChannelDetailsFragmentDoc = gql` warehouses { ...Warehouse } + orderSettings { + markAsPaidStrategy + } } ${ChannelFragmentDoc} ${WarehouseFragmentDoc}`; @@ -1072,6 +1057,34 @@ export const TaxClassDeleteErrorFragmentDoc = gql` message } `; +export const TransactionRequestActionErrorFragmentDoc = gql` + fragment TransactionRequestActionError on TransactionRequestActionError { + field + message + code +} + `; +export const TransactionCreateErrorFragmentDoc = gql` + fragment TransactionCreateError on TransactionCreateError { + field + message + code +} + `; +export const OrderGrantRefundCreateErrorFragmentDoc = gql` + fragment OrderGrantRefundCreateError on OrderGrantRefundCreateError { + field + message + code +} + `; +export const OrderGrantRefundUpdateErrorFragmentDoc = gql` + fragment OrderGrantRefundUpdateError on OrderGrantRefundUpdateError { + field + message + code +} + `; export const GiftCardsSettingsFragmentDoc = gql` fragment GiftCardsSettings on GiftCardSettings { expiryType @@ -1261,6 +1274,176 @@ export const RefundOrderLineFragmentDoc = gql` } } ${MoneyFragmentDoc}`; +export const StaffMemberFragmentDoc = gql` + fragment StaffMember on User { + id + email + firstName + isActive + lastName +} + `; +export const StaffMemberAvatarFragmentDoc = gql` + fragment StaffMemberAvatar on User { + ...StaffMember + avatar(size: 512) { + url + } +} + ${StaffMemberFragmentDoc}`; +export const AppAvatarFragmentDoc = gql` + fragment AppAvatar on App { + id + name +} + `; +export const TransactionEventFragmentDoc = gql` + fragment TransactionEvent on TransactionEvent { + id + pspReference + amount { + ...Money + } + type + message + createdAt + createdBy { + ... on User { + ...StaffMemberAvatar + } + ... on App { + ...AppAvatar + } + } + externalUrl +} + ${MoneyFragmentDoc} +${StaffMemberAvatarFragmentDoc} +${AppAvatarFragmentDoc}`; +export const TransactionItemFragmentDoc = gql` + fragment TransactionItem on TransactionItem { + id + type + pspReference + actions + type + status + externalUrl + events { + ...TransactionEvent + } + authorizedAmount { + ...Money + } + chargedAmount { + ...Money + } + refundedAmount { + ...Money + } + canceledAmount { + ...Money + } + authorizePendingAmount { + ...Money + } + chargePendingAmount { + ...Money + } + refundPendingAmount { + ...Money + } + cancelPendingAmount { + ...Money + } +} + ${TransactionEventFragmentDoc} +${MoneyFragmentDoc}`; +export const OrderPaymentFragmentDoc = gql` + fragment OrderPayment on Payment { + id + isActive + actions + gateway + paymentMethodType + availableCaptureAmount { + ...Money + } + capturedAmount { + ...Money + } + total { + ...Money + } + availableRefundAmount { + ...Money + } + modified + transactions { + id + token + created + kind + isSuccess + } +} + ${MoneyFragmentDoc}`; +export const OrderGiftCardFragmentDoc = gql` + fragment OrderGiftCard on GiftCard { + id + last4CodeChars + events { + id + type + orderId + date + balance { + initialBalance { + ...Money + } + currentBalance { + ...Money + } + oldInitialBalance { + ...Money + } + oldCurrentBalance { + ...Money + } + } + } +} + ${MoneyFragmentDoc}`; +export const UserBaseAvatarFragmentDoc = gql` + fragment UserBaseAvatar on User { + id + firstName + lastName + email + avatar { + url + alt + } +} + `; +export const OrderGrantedRefundFragmentDoc = gql` + fragment OrderGrantedRefund on OrderGrantedRefund { + id + createdAt + amount { + currency + amount + } + reason + user { + ...UserBaseAvatar + } + app { + id + name + } +} + ${UserBaseAvatarFragmentDoc}`; export const OrderEventFragmentDoc = gql` fragment OrderEvent on OrderEvent { id @@ -1455,28 +1638,16 @@ export const OrderDetailsFragmentDoc = gql` ...Address } transactions { - id + ...TransactionItem + } + payments { + ...OrderPayment } giftCards { - events { - id - type - orderId - balance { - initialBalance { - ...Money - } - currentBalance { - ...Money - } - oldInitialBalance { - ...Money - } - oldCurrentBalance { - ...Money - } - } - } + ...OrderGiftCard + } + grantedRefunds { + ...OrderGrantedRefund } isShippingRequired canFinalize @@ -1548,13 +1719,40 @@ export const OrderDetailsFragmentDoc = gql` ...Money } } + totalRemainingGrant { + ...Money + } + totalGrantedRefund { + ...Money + } + totalRefundPending { + ...Money + } + totalRefunded { + ...Money + } actions + totalAuthorizePending { + ...Money + } totalAuthorized { ...Money } totalCaptured { ...Money } + totalCharged { + ...Money + } + totalChargePending { + ...Money + } + totalCanceled { + ...Money + } + totalCancelPending { + ...Money + } totalBalance { ...Money } @@ -1592,11 +1790,18 @@ export const OrderDetailsFragmentDoc = gql` defaultCountry { code } + orderSettings { + markAsPaidStrategy + } } isPaid } ${MetadataFragmentDoc} ${AddressFragmentDoc} +${TransactionItemFragmentDoc} +${OrderPaymentFragmentDoc} +${OrderGiftCardFragmentDoc} +${OrderGrantedRefundFragmentDoc} ${MoneyFragmentDoc} ${OrderEventFragmentDoc} ${FulfillmentFragmentDoc} @@ -1671,6 +1876,62 @@ export const OrderLineStockDataFragmentDoc = gql` } } ${StockFragmentDoc}`; +export const OrderLineGrantRefundFragmentDoc = gql` + fragment OrderLineGrantRefund on OrderLine { + id + thumbnail { + url + } + productName + quantity + quantityToFulfill + variantName + productName + unitPrice { + gross { + ...Money + } + } +} + ${MoneyFragmentDoc}`; +export const OrderFulfillmentGrantRefundFragmentDoc = gql` + fragment OrderFulfillmentGrantRefund on Fulfillment { + id + fulfillmentOrder + status + lines { + id + quantity + orderLine { + ...OrderLineGrantRefund + } + } +} + ${OrderLineGrantRefundFragmentDoc}`; +export const OrderDetailsGrantRefundFragmentDoc = gql` + fragment OrderDetailsGrantRefund on Order { + id + number + lines { + ...OrderLineGrantRefund + } + fulfillments { + ...OrderFulfillmentGrantRefund + } + shippingPrice { + gross { + ...Money + } + } + total { + gross { + ...Money + } + } +} + ${OrderLineGrantRefundFragmentDoc} +${OrderFulfillmentGrantRefundFragmentDoc} +${MoneyFragmentDoc}`; export const PageTypeFragmentDoc = gql` fragment PageType on PageType { id @@ -1822,15 +2083,6 @@ export const PermissionFragmentDoc = gql` name } `; -export const StaffMemberFragmentDoc = gql` - fragment StaffMember on User { - id - email - firstName - isActive - lastName -} - `; export const PermissionGroupMemberFragmentDoc = gql` fragment PermissionGroupMember on User { ...StaffMember @@ -2466,14 +2718,6 @@ export const StaffMemberDetailsFragmentDoc = gql` } } ${StaffMemberFragmentDoc}`; -export const StaffMemberAvatarFragmentDoc = gql` - fragment StaffMemberAvatar on User { - ...StaffMember - avatar(size: 512) { - url - } -} - ${StaffMemberFragmentDoc}`; export const CountryFragmentDoc = gql` fragment Country on CountryDisplay { country @@ -9578,6 +9822,254 @@ export function useOrderSettingsUpdateMutation(baseOptions?: ApolloReactHooks.Mu export type OrderSettingsUpdateMutationHookResult = ReturnType; export type OrderSettingsUpdateMutationResult = Apollo.MutationResult; export type OrderSettingsUpdateMutationOptions = Apollo.BaseMutationOptions; +export const OrderTransactionRequestActionDocument = gql` + mutation OrderTransactionRequestAction($action: TransactionActionEnum!, $transactionId: ID!) { + transactionRequestAction(actionType: $action, id: $transactionId) { + errors { + ...TransactionRequestActionError + } + } +} + ${TransactionRequestActionErrorFragmentDoc}`; +export type OrderTransactionRequestActionMutationFn = Apollo.MutationFunction; + +/** + * __useOrderTransactionRequestActionMutation__ + * + * To run a mutation, you first call `useOrderTransactionRequestActionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useOrderTransactionRequestActionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [orderTransactionRequestActionMutation, { data, loading, error }] = useOrderTransactionRequestActionMutation({ + * variables: { + * action: // value for 'action' + * transactionId: // value for 'transactionId' + * }, + * }); + */ +export function useOrderTransactionRequestActionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(OrderTransactionRequestActionDocument, options); + } +export type OrderTransactionRequestActionMutationHookResult = ReturnType; +export type OrderTransactionRequestActionMutationResult = Apollo.MutationResult; +export type OrderTransactionRequestActionMutationOptions = Apollo.BaseMutationOptions; +export const OrderGrantRefundAddDocument = gql` + mutation OrderGrantRefundAdd($orderId: ID!, $amount: Decimal!, $reason: String) { + orderGrantRefundCreate(id: $orderId, input: {amount: $amount, reason: $reason}) { + errors { + ...OrderGrantRefundCreateError + } + } +} + ${OrderGrantRefundCreateErrorFragmentDoc}`; +export type OrderGrantRefundAddMutationFn = Apollo.MutationFunction; + +/** + * __useOrderGrantRefundAddMutation__ + * + * To run a mutation, you first call `useOrderGrantRefundAddMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useOrderGrantRefundAddMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [orderGrantRefundAddMutation, { data, loading, error }] = useOrderGrantRefundAddMutation({ + * variables: { + * orderId: // value for 'orderId' + * amount: // value for 'amount' + * reason: // value for 'reason' + * }, + * }); + */ +export function useOrderGrantRefundAddMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(OrderGrantRefundAddDocument, options); + } +export type OrderGrantRefundAddMutationHookResult = ReturnType; +export type OrderGrantRefundAddMutationResult = Apollo.MutationResult; +export type OrderGrantRefundAddMutationOptions = Apollo.BaseMutationOptions; +export const OrderGrantRefundEditDocument = gql` + mutation OrderGrantRefundEdit($refundId: ID!, $amount: Decimal!, $reason: String) { + orderGrantRefundUpdate(id: $refundId, input: {amount: $amount, reason: $reason}) { + errors { + ...OrderGrantRefundUpdateError + } + } +} + ${OrderGrantRefundUpdateErrorFragmentDoc}`; +export type OrderGrantRefundEditMutationFn = Apollo.MutationFunction; + +/** + * __useOrderGrantRefundEditMutation__ + * + * To run a mutation, you first call `useOrderGrantRefundEditMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useOrderGrantRefundEditMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [orderGrantRefundEditMutation, { data, loading, error }] = useOrderGrantRefundEditMutation({ + * variables: { + * refundId: // value for 'refundId' + * amount: // value for 'amount' + * reason: // value for 'reason' + * }, + * }); + */ +export function useOrderGrantRefundEditMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(OrderGrantRefundEditDocument, options); + } +export type OrderGrantRefundEditMutationHookResult = ReturnType; +export type OrderGrantRefundEditMutationResult = Apollo.MutationResult; +export type OrderGrantRefundEditMutationOptions = Apollo.BaseMutationOptions; +export const OrderSendRefundDocument = gql` + mutation OrderSendRefund($amount: PositiveDecimal!, $transactionId: ID!) { + transactionRequestAction( + actionType: REFUND + amount: $amount + id: $transactionId + ) { + transaction { + ...TransactionItem + } + errors { + ...TransactionRequestActionError + } + } +} + ${TransactionItemFragmentDoc} +${TransactionRequestActionErrorFragmentDoc}`; +export type OrderSendRefundMutationFn = Apollo.MutationFunction; + +/** + * __useOrderSendRefundMutation__ + * + * To run a mutation, you first call `useOrderSendRefundMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useOrderSendRefundMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [orderSendRefundMutation, { data, loading, error }] = useOrderSendRefundMutation({ + * variables: { + * amount: // value for 'amount' + * transactionId: // value for 'transactionId' + * }, + * }); + */ +export function useOrderSendRefundMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(OrderSendRefundDocument, options); + } +export type OrderSendRefundMutationHookResult = ReturnType; +export type OrderSendRefundMutationResult = Apollo.MutationResult; +export type OrderSendRefundMutationOptions = Apollo.BaseMutationOptions; +export const CreateManualTransactionCaptureDocument = gql` + mutation CreateManualTransactionCapture($orderId: ID!, $amount: PositiveDecimal!, $currency: String!, $description: String, $pspReference: String) { + transactionCreate( + id: $orderId + transaction: {type: "Manual capture", status: "Success", pspReference: $pspReference, amountCharged: {amount: $amount, currency: $currency}} + transactionEvent: {status: SUCCESS, pspReference: $pspReference, name: $description} + ) { + transaction { + ...TransactionItem + } + errors { + ...TransactionCreateError + } + } +} + ${TransactionItemFragmentDoc} +${TransactionCreateErrorFragmentDoc}`; +export type CreateManualTransactionCaptureMutationFn = Apollo.MutationFunction; + +/** + * __useCreateManualTransactionCaptureMutation__ + * + * To run a mutation, you first call `useCreateManualTransactionCaptureMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateManualTransactionCaptureMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createManualTransactionCaptureMutation, { data, loading, error }] = useCreateManualTransactionCaptureMutation({ + * variables: { + * orderId: // value for 'orderId' + * amount: // value for 'amount' + * currency: // value for 'currency' + * description: // value for 'description' + * pspReference: // value for 'pspReference' + * }, + * }); + */ +export function useCreateManualTransactionCaptureMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(CreateManualTransactionCaptureDocument, options); + } +export type CreateManualTransactionCaptureMutationHookResult = ReturnType; +export type CreateManualTransactionCaptureMutationResult = Apollo.MutationResult; +export type CreateManualTransactionCaptureMutationOptions = Apollo.BaseMutationOptions; +export const CreateManualTransactionRefundDocument = gql` + mutation CreateManualTransactionRefund($orderId: ID!, $amount: PositiveDecimal!, $currency: String!, $description: String, $pspReference: String) { + transactionCreate( + id: $orderId + transaction: {type: "Manual refund", status: "Success", pspReference: $pspReference, amountRefunded: {amount: $amount, currency: $currency}} + transactionEvent: {status: SUCCESS, pspReference: $pspReference, name: $description} + ) { + transaction { + ...TransactionItem + } + errors { + ...TransactionCreateError + } + } +} + ${TransactionItemFragmentDoc} +${TransactionCreateErrorFragmentDoc}`; +export type CreateManualTransactionRefundMutationFn = Apollo.MutationFunction; + +/** + * __useCreateManualTransactionRefundMutation__ + * + * To run a mutation, you first call `useCreateManualTransactionRefundMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateManualTransactionRefundMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createManualTransactionRefundMutation, { data, loading, error }] = useCreateManualTransactionRefundMutation({ + * variables: { + * orderId: // value for 'orderId' + * amount: // value for 'amount' + * currency: // value for 'currency' + * description: // value for 'description' + * pspReference: // value for 'pspReference' + * }, + * }); + */ +export function useCreateManualTransactionRefundMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(CreateManualTransactionRefundDocument, options); + } +export type CreateManualTransactionRefundMutationHookResult = ReturnType; +export type CreateManualTransactionRefundMutationResult = Apollo.MutationResult; +export type CreateManualTransactionRefundMutationOptions = Apollo.BaseMutationOptions; export const OrderListDocument = gql` query OrderList($first: Int, $after: String, $last: Int, $before: String, $filter: OrderFilterInput, $sort: OrderSortingInput) { orders( @@ -9739,9 +10231,13 @@ export const OrderDetailsDocument = gql` defaultWeightUnit fulfillmentAllowUnpaid fulfillmentAutoApprove + availablePaymentGateways { + ...PaymentGateway + } } } - ${OrderDetailsFragmentDoc}`; + ${OrderDetailsFragmentDoc} +${PaymentGatewayFragmentDoc}`; /** * __useOrderDetailsQuery__ @@ -9770,6 +10266,84 @@ export function useOrderDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQuer export type OrderDetailsQueryHookResult = ReturnType; export type OrderDetailsLazyQueryHookResult = ReturnType; export type OrderDetailsQueryResult = Apollo.QueryResult; +export const OrderDetailsGrantRefundDocument = gql` + query OrderDetailsGrantRefund($id: ID!) { + order(id: $id) { + ...OrderDetailsGrantRefund + } +} + ${OrderDetailsGrantRefundFragmentDoc}`; + +/** + * __useOrderDetailsGrantRefundQuery__ + * + * To run a query within a React component, call `useOrderDetailsGrantRefundQuery` and pass it any options that fit your needs. + * When your component renders, `useOrderDetailsGrantRefundQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useOrderDetailsGrantRefundQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useOrderDetailsGrantRefundQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useQuery(OrderDetailsGrantRefundDocument, options); + } +export function useOrderDetailsGrantRefundLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useLazyQuery(OrderDetailsGrantRefundDocument, options); + } +export type OrderDetailsGrantRefundQueryHookResult = ReturnType; +export type OrderDetailsGrantRefundLazyQueryHookResult = ReturnType; +export type OrderDetailsGrantRefundQueryResult = Apollo.QueryResult; +export const OrderDetailsGrantRefundEditDocument = gql` + query OrderDetailsGrantRefundEdit($id: ID!) { + order(id: $id) { + ...OrderDetailsGrantRefund + grantedRefunds { + id + reason + amount { + ...Money + } + } + } +} + ${OrderDetailsGrantRefundFragmentDoc} +${MoneyFragmentDoc}`; + +/** + * __useOrderDetailsGrantRefundEditQuery__ + * + * To run a query within a React component, call `useOrderDetailsGrantRefundEditQuery` and pass it any options that fit your needs. + * When your component renders, `useOrderDetailsGrantRefundEditQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useOrderDetailsGrantRefundEditQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useOrderDetailsGrantRefundEditQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useQuery(OrderDetailsGrantRefundEditDocument, options); + } +export function useOrderDetailsGrantRefundEditLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useLazyQuery(OrderDetailsGrantRefundEditDocument, options); + } +export type OrderDetailsGrantRefundEditQueryHookResult = ReturnType; +export type OrderDetailsGrantRefundEditLazyQueryHookResult = ReturnType; +export type OrderDetailsGrantRefundEditQueryResult = Apollo.QueryResult; export const OrderFulfillDataDocument = gql` query OrderFulfillData($orderId: ID!) { order(id: $orderId) { diff --git a/src/graphql/hooks.transactions.generated.ts b/src/graphql/hooks.transactions.generated.ts deleted file mode 100644 index c0fc1ecc7..000000000 --- a/src/graphql/hooks.transactions.generated.ts +++ /dev/null @@ -1,3774 +0,0 @@ -/* eslint-disable */ -import * as Types from './types.transactions.generated'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -import * as ApolloReactHooks from '@dashboard/hooks/graphql'; -const defaultOptions = {} as const; -export const AppManifestFragmentDoc = gql` - fragment AppManifest on Manifest { - identifier - version - about - name - appUrl - configurationUrl - tokenTargetUrl - dataPrivacy - dataPrivacyUrl - homepageUrl - supportUrl - permissions { - code - name - } -} - `; -export const WebhookFragmentDoc = gql` - fragment Webhook on Webhook { - id - name - isActive - app { - id - name - } -} - `; -export const AppFragmentDoc = gql` - fragment App on App { - id - name - created - isActive - type - homepageUrl - appUrl - manifestUrl - configurationUrl - supportUrl - version - accessToken - privateMetadata { - key - value - } - metadata { - key - value - } - tokens { - authToken - id - name - } - webhooks { - ...Webhook - } -} - ${WebhookFragmentDoc}`; -export const AppInstallationFragmentDoc = gql` - fragment AppInstallation on AppInstallation { - status - message - appName - manifestUrl - id -} - `; -export const AppPermissionFragmentDoc = gql` - fragment AppPermission on Permission { - name - code -} - `; -export const AppListItemFragmentDoc = gql` - fragment AppListItem on App { - id - name - isActive - type - appUrl - manifestUrl - version - permissions { - ...AppPermission - } -} - ${AppPermissionFragmentDoc}`; -export const AttributeFragmentDoc = gql` - fragment Attribute on Attribute { - id - name - slug - type - visibleInStorefront - filterableInDashboard - filterableInStorefront - unit - inputType -} - `; -export const MetadataItemFragmentDoc = gql` - fragment MetadataItem on MetadataItem { - key - value -} - `; -export const MetadataFragmentDoc = gql` - fragment Metadata on ObjectWithMetadata { - metadata { - ...MetadataItem - } - privateMetadata { - ...MetadataItem - } -} - ${MetadataItemFragmentDoc}`; -export const AttributeDetailsFragmentDoc = gql` - fragment AttributeDetails on Attribute { - ...Attribute - ...Metadata - availableInGrid - inputType - entityType - unit - storefrontSearchPosition - valueRequired -} - ${AttributeFragmentDoc} -${MetadataFragmentDoc}`; -export const AvailableAttributeFragmentDoc = gql` - fragment AvailableAttribute on Attribute { - id - name - slug -} - `; -export const UserPermissionFragmentDoc = gql` - fragment UserPermission on UserPermission { - code - name -} - `; -export const UserFragmentDoc = gql` - fragment User on User { - id - email - firstName - lastName - isStaff - userPermissions { - ...UserPermission - } - avatar { - url - } -} - ${UserPermissionFragmentDoc}`; -export const CategoryFragmentDoc = gql` - fragment Category on Category { - id - name - children { - totalCount - } - products { - totalCount - } -} - `; -export const CategoryDetailsFragmentDoc = gql` - fragment CategoryDetails on Category { - id - ...Metadata - backgroundImage { - alt - url - } - name - slug - description - seoDescription - seoTitle - parent { - id - } -} - ${MetadataFragmentDoc}`; -export const ChannelOrderSettingsFragmentDoc = gql` - fragment ChannelOrderSettings on Channel { - orderSettings { - markAsPaidStrategy - } -} - `; -export const ChannelErrorFragmentDoc = gql` - fragment ChannelError on ChannelError { - code - field - message -} - `; -export const ChannelFragmentDoc = gql` - fragment Channel on Channel { - id - isActive - name - slug - currencyCode - defaultCountry { - code - country - } - stockSettings { - allocationStrategy - } -} - `; -export const WarehouseFragmentDoc = gql` - fragment Warehouse on Warehouse { - id - name -} - `; -export const ChannelDetailsFragmentDoc = gql` - fragment ChannelDetails on Channel { - ...Channel - hasOrders - warehouses { - ...Warehouse - } -} - ${ChannelFragmentDoc} -${WarehouseFragmentDoc}`; -export const CollectionFragmentDoc = gql` - fragment Collection on Collection { - id - name - channelListings { - isPublished - publicationDate - channel { - id - name - } - } -} - `; -export const CollectionDetailsFragmentDoc = gql` - fragment CollectionDetails on Collection { - ...Collection - ...Metadata - backgroundImage { - alt - url - } - slug - description - seoDescription - seoTitle -} - ${CollectionFragmentDoc} -${MetadataFragmentDoc}`; -export const ChannelListingProductWithoutPricingFragmentDoc = gql` - fragment ChannelListingProductWithoutPricing on ProductChannelListing { - isPublished - publicationDate - isAvailableForPurchase - availableForPurchase - visibleInListings - channel { - id - name - currencyCode - } -} - `; -export const CollectionProductFragmentDoc = gql` - fragment CollectionProduct on Product { - id - name - productType { - id - name - } - thumbnail { - url - } - channelListings { - ...ChannelListingProductWithoutPricing - } -} - ${ChannelListingProductWithoutPricingFragmentDoc}`; -export const CustomerFragmentDoc = gql` - fragment Customer on User { - id - email - firstName - lastName -} - `; -export const AddressFragmentDoc = gql` - fragment Address on Address { - city - cityArea - companyName - country { - __typename - code - country - } - countryArea - firstName - id - lastName - phone - postalCode - streetAddress1 - streetAddress2 -} - `; -export const CustomerDetailsFragmentDoc = gql` - fragment CustomerDetails on User { - ...Customer - ...Metadata - dateJoined - lastLogin - defaultShippingAddress { - ...Address - } - defaultBillingAddress { - ...Address - } - note - isActive -} - ${CustomerFragmentDoc} -${MetadataFragmentDoc} -${AddressFragmentDoc}`; -export const CustomerAddressesFragmentDoc = gql` - fragment CustomerAddresses on User { - ...Customer - addresses { - ...Address - } - defaultBillingAddress { - id - } - defaultShippingAddress { - id - } -} - ${CustomerFragmentDoc} -${AddressFragmentDoc}`; -export const SaleFragmentDoc = gql` - fragment Sale on Sale { - ...Metadata - id - name - type - startDate - endDate - channelListings { - id - channel { - id - name - currencyCode - } - discountValue - currency - } -} - ${MetadataFragmentDoc}`; -export const PageInfoFragmentDoc = gql` - fragment PageInfo on PageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor -} - `; -export const SaleDetailsFragmentDoc = gql` - fragment SaleDetails on Sale { - ...Sale - variantsCount: variants { - totalCount - } - productsCount: products { - totalCount - } - collectionsCount: collections { - totalCount - } - categoriesCount: categories { - totalCount - } - variants(after: $after, before: $before, first: $first, last: $last) @include(if: $includeVariants) { - edges { - node { - id - name - product { - id - name - thumbnail { - url - } - productType { - id - name - } - channelListings { - ...ChannelListingProductWithoutPricing - } - } - } - } - pageInfo { - ...PageInfo - } - } - products(after: $after, before: $before, first: $first, last: $last) @include(if: $includeProducts) { - edges { - node { - id - name - productType { - id - name - } - thumbnail { - url - } - channelListings { - ...ChannelListingProductWithoutPricing - } - } - } - pageInfo { - ...PageInfo - } - } - categories(after: $after, before: $before, first: $first, last: $last) @include(if: $includeCategories) { - edges { - node { - id - name - products { - totalCount - } - } - } - pageInfo { - ...PageInfo - } - } - collections(after: $after, before: $before, first: $first, last: $last) @include(if: $includeCollections) { - edges { - node { - id - name - products { - totalCount - } - } - } - pageInfo { - ...PageInfo - } - } -} - ${SaleFragmentDoc} -${ChannelListingProductWithoutPricingFragmentDoc} -${PageInfoFragmentDoc}`; -export const VoucherFragmentDoc = gql` - fragment Voucher on Voucher { - ...Metadata - id - code - startDate - endDate - usageLimit - type - discountValueType - countries { - code - country - } - minCheckoutItemsQuantity - channelListings { - id - channel { - id - name - currencyCode - } - discountValue - currency - minSpent { - amount - currency - } - } -} - ${MetadataFragmentDoc}`; -export const VoucherDetailsFragmentDoc = gql` - fragment VoucherDetails on Voucher { - ...Voucher - code - usageLimit - used - applyOncePerOrder - applyOncePerCustomer - onlyForStaff - productsCount: products { - totalCount - } - collectionsCount: collections { - totalCount - } - categoriesCount: categories { - totalCount - } - products(after: $after, before: $before, first: $first, last: $last) @include(if: $includeProducts) { - edges { - node { - id - name - productType { - id - name - } - thumbnail { - url - } - channelListings { - ...ChannelListingProductWithoutPricing - } - } - } - pageInfo { - ...PageInfo - } - } - collections(after: $after, before: $before, first: $first, last: $last) @include(if: $includeCollections) { - edges { - node { - id - name - products { - totalCount - } - } - } - pageInfo { - ...PageInfo - } - } - categories(after: $after, before: $before, first: $first, last: $last) @include(if: $includeCategories) { - edges { - node { - id - name - products { - totalCount - } - } - } - pageInfo { - ...PageInfo - } - } -} - ${VoucherFragmentDoc} -${ChannelListingProductWithoutPricingFragmentDoc} -${PageInfoFragmentDoc}`; -export const TransactionRequestActionErrorFragmentDoc = gql` - fragment TransactionRequestActionError on TransactionRequestActionError { - field - message - code -} - `; -export const TransactionCreateErrorFragmentDoc = gql` - fragment TransactionCreateError on TransactionCreateError { - field - message - code -} - `; -export const OrderGrantRefundCreateErrorFragmentDoc = gql` - fragment OrderGrantRefundCreateError on OrderGrantRefundCreateError { - field - message - code -} - `; -export const OrderGrantRefundUpdateErrorFragmentDoc = gql` - fragment OrderGrantRefundUpdateError on OrderGrantRefundUpdateError { - field - message - code -} - `; -export const AttributeErrorFragmentDoc = gql` - fragment AttributeError on AttributeError { - code - field - message -} - `; -export const ProductErrorFragmentDoc = gql` - fragment ProductError on ProductError { - code - field - message -} - `; -export const ProductErrorWithAttributesFragmentDoc = gql` - fragment ProductErrorWithAttributes on ProductError { - ...ProductError - attributes -} - ${ProductErrorFragmentDoc}`; -export const ProductChannelListingErrorFragmentDoc = gql` - fragment ProductChannelListingError on ProductChannelListingError { - code - field - message - channels -} - `; -export const CollectionChannelListingErrorFragmentDoc = gql` - fragment CollectionChannelListingError on CollectionChannelListingError { - code - field - message - channels -} - `; -export const AccountErrorFragmentDoc = gql` - fragment AccountError on AccountError { - code - field - addressType - message -} - `; -export const DiscountErrorFragmentDoc = gql` - fragment DiscountError on DiscountError { - code - field - channels - message -} - `; -export const MenuErrorFragmentDoc = gql` - fragment MenuError on MenuError { - code - field - message -} - `; -export const OrderErrorFragmentDoc = gql` - fragment OrderError on OrderError { - code - field - addressType - message - orderLines -} - `; -export const OrderSettingsErrorFragmentDoc = gql` - fragment OrderSettingsError on OrderSettingsError { - code - field - message -} - `; -export const PageErrorFragmentDoc = gql` - fragment PageError on PageError { - code - field - message -} - `; -export const PageErrorWithAttributesFragmentDoc = gql` - fragment PageErrorWithAttributes on PageError { - ...PageError - attributes -} - ${PageErrorFragmentDoc}`; -export const PermissionGroupErrorFragmentDoc = gql` - fragment PermissionGroupError on PermissionGroupError { - code - field - message -} - `; -export const BulkProductErrorFragmentDoc = gql` - fragment BulkProductError on BulkProductError { - field - code - index - channels - message -} - `; -export const ProductVariantBulkErrorFragmentDoc = gql` - fragment ProductVariantBulkError on ProductVariantBulkError { - field - code - message - attributes - values - warehouses - channels -} - `; -export const BulkStockErrorFragmentDoc = gql` - fragment BulkStockError on BulkStockError { - code - field - index - message -} - `; -export const StockErrorFragmentDoc = gql` - fragment StockError on StockError { - code - field - message -} - `; -export const ShippingChannelsErrorFragmentDoc = gql` - fragment ShippingChannelsError on ShippingError { - code - field - channels - message -} - `; -export const ShippingErrorFragmentDoc = gql` - fragment ShippingError on ShippingError { - code - field - message -} - `; -export const ShopErrorFragmentDoc = gql` - fragment ShopError on ShopError { - code - field - message -} - `; -export const StaffErrorFragmentDoc = gql` - fragment StaffError on StaffError { - code - field - message -} - `; -export const WarehouseErrorFragmentDoc = gql` - fragment WarehouseError on WarehouseError { - code - field - message -} - `; -export const WebhookErrorFragmentDoc = gql` - fragment WebhookError on WebhookError { - code - field - message -} - `; -export const InvoiceErrorFragmentDoc = gql` - fragment InvoiceError on InvoiceError { - code - field - message -} - `; -export const AppErrorFragmentDoc = gql` - fragment AppError on AppError { - field - message - code - permissions -} - `; -export const ExportErrorFragmentDoc = gql` - fragment ExportError on ExportError { - code - field - message -} - `; -export const PluginErrorFragmentDoc = gql` - fragment PluginError on PluginError { - code - field - message -} - `; -export const MetadataErrorFragmentDoc = gql` - fragment MetadataError on MetadataError { - code - field - message -} - `; -export const CollectionErrorFragmentDoc = gql` - fragment CollectionError on CollectionError { - code - field - message -} - `; -export const UploadErrorFragmentDoc = gql` - fragment UploadError on UploadError { - code - field - message -} - `; -export const GiftCardErrorFragmentDoc = gql` - fragment GiftCardError on GiftCardError { - code - field - message -} - `; -export const GiftCardSettingsErrorFragmentDoc = gql` - fragment GiftCardSettingsError on GiftCardSettingsError { - code - field - message -} - `; -export const SaleBulkDeleteErrorFragmentDoc = gql` - fragment SaleBulkDeleteError on DiscountError { - code - field - message -} - `; -export const VoucherBulkDeleteErrorFragmentDoc = gql` - fragment VoucherBulkDeleteError on DiscountError { - code - field - message -} - `; -export const GiftCardBulkCreateErrorFragmentFragmentDoc = gql` - fragment GiftCardBulkCreateErrorFragment on GiftCardError { - code - field - message -} - `; -export const GiftCardCreateErrorFragmentFragmentDoc = gql` - fragment GiftCardCreateErrorFragment on GiftCardError { - code - field - message -} - `; -export const PageBulkPublishErrorFragmentFragmentDoc = gql` - fragment PageBulkPublishErrorFragment on PageError { - code - field - message -} - `; -export const PageBulkRemoveErrorFragmentFragmentDoc = gql` - fragment PageBulkRemoveErrorFragment on PageError { - code - field - message -} - `; -export const PageTypeDeleteErrorFragmentFragmentDoc = gql` - fragment PageTypeDeleteErrorFragment on PageError { - code - field - message -} - `; -export const ProductVariantStocksDeleteErrorFragmentDoc = gql` - fragment ProductVariantStocksDeleteError on StockError { - code - field - message -} - `; -export const ProductTypeDeleteErrorFragmentFragmentDoc = gql` - fragment ProductTypeDeleteErrorFragment on ProductError { - code - field - message -} - `; -export const ProductTypeBulkDeleteErrorFragmentFragmentDoc = gql` - fragment ProductTypeBulkDeleteErrorFragment on ProductError { - code - field - message -} - `; -export const ProductTypeBulkUpdateErrorFragmentFragmentDoc = gql` - fragment ProductTypeBulkUpdateErrorFragment on ProductError { - code - field - message -} - `; -export const ProductAttributeAssignErrorFragmentFragmentDoc = gql` - fragment ProductAttributeAssignErrorFragment on ProductError { - code - field - message -} - `; -export const ProductAttributeUnassignErrorFragmentFragmentDoc = gql` - fragment ProductAttributeUnassignErrorFragment on ProductError { - code - field - message -} - `; -export const ProductTypeCreateErrorFragmentFragmentDoc = gql` - fragment ProductTypeCreateErrorFragment on ProductError { - code - field - message -} - `; -export const ProductTypeReorderAttributesErrorFragmentFragmentDoc = gql` - fragment ProductTypeReorderAttributesErrorFragment on ProductError { - code - field - message -} - `; -export const ProductAttributeAssignmentUpdateErrorFragmentFragmentDoc = gql` - fragment ProductAttributeAssignmentUpdateErrorFragment on ProductError { - code - field - message - attributes -} - `; -export const ShopSettingsUpdateErrorFragmentFragmentDoc = gql` - fragment ShopSettingsUpdateErrorFragment on ShopError { - code - field - message -} - `; -export const ShopFetchTaxRatesErrorFragmentFragmentDoc = gql` - fragment ShopFetchTaxRatesErrorFragment on ShopError { - code - field - message -} - `; -export const ProductTranslateErrorFragmentFragmentDoc = gql` - fragment ProductTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const ProductVariantTranslateErrorFragmentFragmentDoc = gql` - fragment ProductVariantTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const CategoryTranslateErrorFragmentFragmentDoc = gql` - fragment CategoryTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const CollectionTranslateErrorFragmentFragmentDoc = gql` - fragment CollectionTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const PageTranslateErrorFragmentFragmentDoc = gql` - fragment PageTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const VoucherTranslateErrorFragmentFragmentDoc = gql` - fragment VoucherTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const SaleTranslateErrorFragmentFragmentDoc = gql` - fragment SaleTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const AttributeTranslateErrorFragmentFragmentDoc = gql` - fragment AttributeTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const AttributeValueTranslateErrorFragmentFragmentDoc = gql` - fragment AttributeValueTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const ShippingPriceTranslateErrorFragmentFragmentDoc = gql` - fragment ShippingPriceTranslateErrorFragment on TranslationError { - code - field - message -} - `; -export const TaxConfigurationUpdateErrorFragmentDoc = gql` - fragment TaxConfigurationUpdateError on TaxConfigurationUpdateError { - field - code - message -} - `; -export const TaxCountryConfigurationUpdateErrorFragmentDoc = gql` - fragment TaxCountryConfigurationUpdateError on TaxCountryConfigurationUpdateError { - field - code - message -} - `; -export const TaxCountryConfigurationDeleteErrorFragmentDoc = gql` - fragment TaxCountryConfigurationDeleteError on TaxCountryConfigurationDeleteError { - field - code - message -} - `; -export const TaxClassUpdateErrorFragmentDoc = gql` - fragment TaxClassUpdateError on TaxClassUpdateError { - field - code - message -} - `; -export const TaxClassCreateErrorFragmentDoc = gql` - fragment TaxClassCreateError on TaxClassCreateError { - field - code - message -} - `; -export const TaxClassDeleteErrorFragmentDoc = gql` - fragment TaxClassDeleteError on TaxClassDeleteError { - field - code - message -} - `; -export const GiftCardsSettingsFragmentDoc = gql` - fragment GiftCardsSettings on GiftCardSettings { - expiryType - expiryPeriod { - type - amount - } -} - `; -export const UserBaseFragmentDoc = gql` - fragment UserBase on User { - id - firstName - lastName -} - `; -export const MoneyFragmentDoc = gql` - fragment Money on Money { - amount - currency -} - `; -export const GiftCardEventFragmentDoc = gql` - fragment GiftCardEvent on GiftCardEvent { - expiryDate - oldExpiryDate - id - date - type - user { - ...UserBase - email - } - app { - id - name - } - message - email - orderId - orderNumber - tags - oldTags - balance { - initialBalance { - ...Money - } - currentBalance { - ...Money - } - oldInitialBalance { - ...Money - } - oldCurrentBalance { - ...Money - } - } -} - ${UserBaseFragmentDoc} -${MoneyFragmentDoc}`; -export const GiftCardDataFragmentDoc = gql` - fragment GiftCardData on GiftCard { - ...Metadata - last4CodeChars - boughtInChannel - createdBy { - ...UserBase - } - product { - id - name - } - createdBy { - ...UserBase - } - usedBy { - ...UserBase - } - usedByEmail - createdByEmail - app { - id - name - } - created - expiryDate - lastUsedOn - isActive - initialBalance { - ...Money - } - currentBalance { - ...Money - } - id - tags { - name - } -} - ${MetadataFragmentDoc} -${UserBaseFragmentDoc} -${MoneyFragmentDoc}`; -export const CustomerGiftCardFragmentDoc = gql` - fragment CustomerGiftCard on GiftCard { - id - last4CodeChars - expiryDate - isActive - currentBalance { - ...Money - } -} - ${MoneyFragmentDoc}`; -export const MenuFragmentDoc = gql` - fragment Menu on Menu { - id - name - items { - id - } -} - `; -export const MenuItemFragmentDoc = gql` - fragment MenuItem on MenuItem { - category { - id - name - } - collection { - id - name - } - id - level - name - page { - id - title - } - url -} - `; -export const MenuItemNestedFragmentDoc = gql` - fragment MenuItemNested on MenuItem { - ...MenuItem - children { - ...MenuItem - children { - ...MenuItem - children { - ...MenuItem - children { - ...MenuItem - children { - ...MenuItem - children { - ...MenuItem - } - } - } - } - } - } -} - ${MenuItemFragmentDoc}`; -export const MenuDetailsFragmentDoc = gql` - fragment MenuDetails on Menu { - id - items { - ...MenuItemNested - } - name -} - ${MenuItemNestedFragmentDoc}`; -export const OrderLineGrantRefundFragmentDoc = gql` - fragment OrderLineGrantRefund on OrderLine { - id - thumbnail { - url - } - productName - quantity - quantityToFulfill - variantName - productName - unitPrice { - gross { - ...Money - } - } -} - ${MoneyFragmentDoc}`; -export const OrderFulfillmentGrantRefundFragmentDoc = gql` - fragment OrderFulfillmentGrantRefund on Fulfillment { - id - fulfillmentOrder - status - lines { - id - quantity - orderLine { - ...OrderLineGrantRefund - } - } -} - ${OrderLineGrantRefundFragmentDoc}`; -export const OrderDetailsGrantRefundFragmentDoc = gql` - fragment OrderDetailsGrantRefund on Order { - id - number - lines { - ...OrderLineGrantRefund - } - fulfillments { - ...OrderFulfillmentGrantRefund - } - shippingPrice { - gross { - ...Money - } - } - total { - gross { - ...Money - } - } -} - ${OrderLineGrantRefundFragmentDoc} -${OrderFulfillmentGrantRefundFragmentDoc} -${MoneyFragmentDoc}`; -export const StaffMemberFragmentDoc = gql` - fragment StaffMember on User { - id - email - firstName - isActive - lastName -} - `; -export const StaffMemberAvatarFragmentDoc = gql` - fragment StaffMemberAvatar on User { - ...StaffMember - avatar(size: 512) { - url - } -} - ${StaffMemberFragmentDoc}`; -export const AppAvatarFragmentDoc = gql` - fragment AppAvatar on App { - id - name -} - `; -export const TransactionEventFragmentDoc = gql` - fragment TransactionEvent on TransactionEvent { - id - pspReference - amount { - ...Money - } - type - message - createdAt - createdBy { - ... on User { - ...StaffMemberAvatar - } - ... on App { - ...AppAvatar - } - } - externalUrl -} - ${MoneyFragmentDoc} -${StaffMemberAvatarFragmentDoc} -${AppAvatarFragmentDoc}`; -export const TransactionItemFragmentDoc = gql` - fragment TransactionItem on TransactionItem { - id - type - pspReference - actions - type - status - externalUrl - events { - ...TransactionEvent - } - authorizedAmount { - ...Money - } - chargedAmount { - ...Money - } - refundedAmount { - ...Money - } - canceledAmount { - ...Money - } - authorizePendingAmount { - ...Money - } - chargePendingAmount { - ...Money - } - refundPendingAmount { - ...Money - } - cancelPendingAmount { - ...Money - } -} - ${TransactionEventFragmentDoc} -${MoneyFragmentDoc}`; -export const OrderPaymentFragmentDoc = gql` - fragment OrderPayment on Payment { - id - isActive - actions - gateway - paymentMethodType - availableCaptureAmount { - ...Money - } - capturedAmount { - ...Money - } - total { - ...Money - } - availableRefundAmount { - ...Money - } - modified - transactions { - id - token - created - kind - isSuccess - } -} - ${MoneyFragmentDoc}`; -export const OrderGiftCardFragmentDoc = gql` - fragment OrderGiftCard on GiftCard { - id - last4CodeChars - events { - id - type - orderId - date - balance { - initialBalance { - ...Money - } - currentBalance { - ...Money - } - oldInitialBalance { - ...Money - } - oldCurrentBalance { - ...Money - } - } - } -} - ${MoneyFragmentDoc}`; -export const UserBaseAvatarFragmentDoc = gql` - fragment UserBaseAvatar on User { - id - firstName - lastName - email - avatar { - url - alt - } -} - `; -export const OrderGrantedRefundFragmentDoc = gql` - fragment OrderGrantedRefund on OrderGrantedRefund { - id - createdAt - amount { - currency - amount - } - reason - user { - ...UserBaseAvatar - } - app { - id - name - } -} - ${UserBaseAvatarFragmentDoc}`; -export const OrderEventFragmentDoc = gql` - fragment OrderEvent on OrderEvent { - id - amount - shippingCostsIncluded - date - email - emailType - invoiceNumber - discount { - valueType - value - reason - amount { - amount - currency - } - oldValueType - oldValue - oldAmount { - amount - currency - } - } - relatedOrder { - id - number - } - message - quantity - transactionReference - type - user { - id - email - firstName - lastName - } - app { - id - name - appUrl - } - lines { - quantity - itemName - discount { - valueType - value - reason - amount { - amount - currency - } - oldValueType - oldValue - oldAmount { - amount - currency - } - } - orderLine { - id - productName - variantName - } - } -} - `; -export const StockFragmentDoc = gql` - fragment Stock on Stock { - id - quantity - quantityAllocated - warehouse { - ...Warehouse - } -} - ${WarehouseFragmentDoc}`; -export const TaxedMoneyFragmentDoc = gql` - fragment TaxedMoney on TaxedMoney { - net { - ...Money - } - gross { - ...Money - } -} - ${MoneyFragmentDoc}`; -export const OrderLineFragmentDoc = gql` - fragment OrderLine on OrderLine { - id - isShippingRequired - allocations { - id - quantity - warehouse { - id - name - } - } - variant { - id - quantityAvailable - preorder { - endDate - } - stocks { - ...Stock - } - product { - id - isAvailableForPurchase - } - } - productName - productSku - quantity - quantityFulfilled - quantityToFulfill - totalPrice { - ...TaxedMoney - } - unitDiscount { - amount - currency - } - unitDiscountValue - unitDiscountReason - unitDiscountType - undiscountedUnitPrice { - currency - gross { - amount - currency - } - net { - amount - currency - } - } - unitPrice { - gross { - amount - currency - } - net { - amount - currency - } - } - thumbnail { - url - } -} - ${StockFragmentDoc} -${TaxedMoneyFragmentDoc}`; -export const FulfillmentFragmentDoc = gql` - fragment Fulfillment on Fulfillment { - id - lines { - id - quantity - orderLine { - ...OrderLine - } - } - fulfillmentOrder - status - trackingNumber - warehouse { - id - name - } -} - ${OrderLineFragmentDoc}`; -export const InvoiceFragmentDoc = gql` - fragment Invoice on Invoice { - id - number - createdAt - url - status -} - `; -export const OrderDetailsWithTransactionsFragmentDoc = gql` - fragment OrderDetailsWithTransactions on Order { - id - token - ...Metadata - billingAddress { - ...Address - } - transactions { - ...TransactionItem - } - payments { - ...OrderPayment - } - giftCards { - ...OrderGiftCard - } - grantedRefunds { - ...OrderGrantedRefund - } - isShippingRequired - canFinalize - created - customerNote - discounts { - id - type - calculationMode: valueType - value - reason - amount { - ...Money - } - } - events { - ...OrderEvent - } - fulfillments { - ...Fulfillment - } - lines { - ...OrderLine - } - number - isPaid - paymentStatus - shippingAddress { - ...Address - } - deliveryMethod { - __typename - ... on ShippingMethod { - id - } - ... on Warehouse { - id - clickAndCollectOption - } - } - shippingMethod { - id - } - shippingMethodName - collectionPointName - shippingPrice { - gross { - amount - currency - } - } - status - subtotal { - gross { - ...Money - } - net { - ...Money - } - } - total { - gross { - ...Money - } - net { - ...Money - } - tax { - ...Money - } - } - totalRemainingGrant { - ...Money - } - totalGrantedRefund { - ...Money - } - totalRefundPending { - ...Money - } - totalRefunded { - ...Money - } - actions - totalAuthorizePending { - ...Money - } - totalAuthorized { - ...Money - } - totalCharged { - ...Money - } - totalChargePending { - ...Money - } - totalCanceled { - ...Money - } - totalCancelPending { - ...Money - } - totalBalance { - ...Money - } - undiscountedTotal { - net { - ...Money - } - gross { - ...Money - } - } - user { - id - email - } - userEmail - shippingMethods { - id - name - price { - ...Money - } - active - message - } - invoices { - ...Invoice - } - channel { - isActive - id - name - currencyCode - slug - defaultCountry { - code - } - orderSettings { - markAsPaidStrategy - } - } - isPaid -} - ${MetadataFragmentDoc} -${AddressFragmentDoc} -${TransactionItemFragmentDoc} -${OrderPaymentFragmentDoc} -${OrderGiftCardFragmentDoc} -${OrderGrantedRefundFragmentDoc} -${MoneyFragmentDoc} -${OrderEventFragmentDoc} -${FulfillmentFragmentDoc} -${OrderLineFragmentDoc} -${InvoiceFragmentDoc}`; -export const RefundOrderLineFragmentDoc = gql` - fragment RefundOrderLine on OrderLine { - id - productName - quantity - unitPrice { - gross { - ...Money - } - } - thumbnail(size: 64) { - url - } -} - ${MoneyFragmentDoc}`; -export const OrderDetailsFragmentDoc = gql` - fragment OrderDetails on Order { - id - token - ...Metadata - billingAddress { - ...Address - } - transactions { - id - } - giftCards { - events { - id - type - orderId - balance { - initialBalance { - ...Money - } - currentBalance { - ...Money - } - oldInitialBalance { - ...Money - } - oldCurrentBalance { - ...Money - } - } - } - } - isShippingRequired - canFinalize - created - customerNote - discounts { - id - type - calculationMode: valueType - value - reason - amount { - ...Money - } - } - events { - ...OrderEvent - } - fulfillments { - ...Fulfillment - } - lines { - ...OrderLine - } - number - isPaid - paymentStatus - shippingAddress { - ...Address - } - deliveryMethod { - __typename - ... on ShippingMethod { - id - } - ... on Warehouse { - id - clickAndCollectOption - } - } - shippingMethod { - id - } - shippingMethodName - collectionPointName - shippingPrice { - gross { - amount - currency - } - } - status - subtotal { - gross { - ...Money - } - net { - ...Money - } - } - total { - gross { - ...Money - } - net { - ...Money - } - tax { - ...Money - } - } - actions - totalAuthorized { - ...Money - } - totalCaptured { - ...Money - } - totalBalance { - ...Money - } - undiscountedTotal { - net { - ...Money - } - gross { - ...Money - } - } - user { - id - email - } - userEmail - shippingMethods { - id - name - price { - ...Money - } - active - message - } - invoices { - ...Invoice - } - channel { - isActive - id - name - currencyCode - slug - defaultCountry { - code - } - } - isPaid -} - ${MetadataFragmentDoc} -${AddressFragmentDoc} -${MoneyFragmentDoc} -${OrderEventFragmentDoc} -${FulfillmentFragmentDoc} -${OrderLineFragmentDoc} -${InvoiceFragmentDoc}`; -export const OrderSettingsFragmentDoc = gql` - fragment OrderSettings on OrderSettings { - automaticallyConfirmAllNewOrders - automaticallyFulfillNonShippableGiftCard -} - `; -export const ShopOrderSettingsFragmentDoc = gql` - fragment ShopOrderSettings on Shop { - fulfillmentAutoApprove - fulfillmentAllowUnpaid -} - `; -export const OrderFulfillLineFragmentDoc = gql` - fragment OrderFulfillLine on OrderLine { - id - isShippingRequired - productName - quantity - allocations { - id - quantity - warehouse { - id - name - } - } - quantityFulfilled - quantityToFulfill - variant { - id - name - sku - preorder { - endDate - } - attributes { - values { - id - name - } - } - stocks { - ...Stock - } - trackInventory - } - thumbnail(size: 64) { - url - } -} - ${StockFragmentDoc}`; -export const OrderLineStockDataFragmentDoc = gql` - fragment OrderLineStockData on OrderLine { - id - allocations { - quantity - warehouse { - id - } - } - quantity - quantityToFulfill - variant { - stocks { - ...Stock - } - } -} - ${StockFragmentDoc}`; -export const PageTypeFragmentDoc = gql` - fragment PageType on PageType { - id - name - hasPages -} - `; -export const PageTypeDetailsFragmentDoc = gql` - fragment PageTypeDetails on PageType { - ...PageType - ...Metadata - attributes { - ...Attribute - } -} - ${PageTypeFragmentDoc} -${MetadataFragmentDoc} -${AttributeFragmentDoc}`; -export const PageFragmentDoc = gql` - fragment Page on Page { - id - title - slug - isPublished -} - `; -export const FileFragmentDoc = gql` - fragment File on File { - url - contentType -} - `; -export const AttributeValueFragmentDoc = gql` - fragment AttributeValue on AttributeValue { - id - name - slug - file { - ...File - } - reference - boolean - date - dateTime - value -} - ${FileFragmentDoc}`; -export const AttributeValueDetailsFragmentDoc = gql` - fragment AttributeValueDetails on AttributeValue { - ...AttributeValue - plainText - richText -} - ${AttributeValueFragmentDoc}`; -export const AttributeValueListFragmentDoc = gql` - fragment AttributeValueList on AttributeValueCountableConnection { - pageInfo { - ...PageInfo - } - edges { - cursor - node { - ...AttributeValueDetails - } - } -} - ${PageInfoFragmentDoc} -${AttributeValueDetailsFragmentDoc}`; -export const PageSelectedAttributeFragmentDoc = gql` - fragment PageSelectedAttribute on SelectedAttribute { - attribute { - id - slug - name - inputType - entityType - valueRequired - unit - choices( - first: $firstValues - after: $afterValues - last: $lastValues - before: $beforeValues - ) { - ...AttributeValueList - } - } - values { - ...AttributeValueDetails - } -} - ${AttributeValueListFragmentDoc} -${AttributeValueDetailsFragmentDoc}`; -export const PageAttributesFragmentDoc = gql` - fragment PageAttributes on Page { - attributes { - ...PageSelectedAttribute - } - pageType { - id - name - attributes { - id - name - inputType - entityType - valueRequired - choices( - first: $firstValues - after: $afterValues - last: $lastValues - before: $beforeValues - ) { - ...AttributeValueList - } - } - } -} - ${PageSelectedAttributeFragmentDoc} -${AttributeValueListFragmentDoc}`; -export const PageDetailsFragmentDoc = gql` - fragment PageDetails on Page { - ...Page - ...PageAttributes - ...Metadata - content - seoTitle - seoDescription - publicationDate -} - ${PageFragmentDoc} -${PageAttributesFragmentDoc} -${MetadataFragmentDoc}`; -export const PermissionGroupFragmentDoc = gql` - fragment PermissionGroup on Group { - id - name - userCanManage - users { - id - firstName - lastName - } -} - `; -export const PermissionFragmentDoc = gql` - fragment Permission on Permission { - code - name -} - `; -export const PermissionGroupMemberFragmentDoc = gql` - fragment PermissionGroupMember on User { - ...StaffMember - avatar(size: 128) { - url - } -} - ${StaffMemberFragmentDoc}`; -export const PermissionGroupDetailsFragmentDoc = gql` - fragment PermissionGroupDetails on Group { - ...PermissionGroup - permissions { - ...Permission - } - users { - ...PermissionGroupMember - } -} - ${PermissionGroupFragmentDoc} -${PermissionFragmentDoc} -${PermissionGroupMemberFragmentDoc}`; -export const PluginConfigurationBaseFragmentDoc = gql` - fragment PluginConfigurationBase on PluginConfiguration { - active - channel { - id - name - slug - } -} - `; -export const PluginBaseFragmentDoc = gql` - fragment PluginBase on Plugin { - id - name - description - channelConfigurations { - ...PluginConfigurationBase - } - globalConfiguration { - ...PluginConfigurationBase - } -} - ${PluginConfigurationBaseFragmentDoc}`; -export const ConfigurationItemFragmentDoc = gql` - fragment ConfigurationItem on ConfigurationItem { - name - value - type - helpText - label -} - `; -export const PluginConfigurationExtendedFragmentDoc = gql` - fragment PluginConfigurationExtended on PluginConfiguration { - ...PluginConfigurationBase - configuration { - ...ConfigurationItem - } -} - ${PluginConfigurationBaseFragmentDoc} -${ConfigurationItemFragmentDoc}`; -export const PluginsDetailsFragmentDoc = gql` - fragment PluginsDetails on Plugin { - id - name - description - globalConfiguration { - ...PluginConfigurationExtended - } - channelConfigurations { - ...PluginConfigurationExtended - } -} - ${PluginConfigurationExtendedFragmentDoc}`; -export const PaymentGatewayFragmentDoc = gql` - fragment PaymentGateway on PaymentGateway { - name - id -} - `; -export const ProductTypeFragmentDoc = gql` - fragment ProductType on ProductType { - id - name - kind - hasVariants - isShippingRequired - taxClass { - id - name - } -} - `; -export const ProductTypeDetailsFragmentDoc = gql` - fragment ProductTypeDetails on ProductType { - ...ProductType - ...Metadata - productAttributes { - ...Attribute - } - variantAttributes { - ...Attribute - } - assignedVariantAttributes { - attribute { - ...Attribute - } - variantSelection - } - weight { - unit - value - } -} - ${ProductTypeFragmentDoc} -${MetadataFragmentDoc} -${AttributeFragmentDoc}`; -export const PriceRangeFragmentDoc = gql` - fragment PriceRange on TaxedMoneyRange { - start { - net { - ...Money - } - } - stop { - net { - ...Money - } - } -} - ${MoneyFragmentDoc}`; -export const ChannelListingProductFragmentDoc = gql` - fragment ChannelListingProduct on ProductChannelListing { - ...ChannelListingProductWithoutPricing - pricing { - priceRange { - ...PriceRange - } - } -} - ${ChannelListingProductWithoutPricingFragmentDoc} -${PriceRangeFragmentDoc}`; -export const ProductWithChannelListingsFragmentDoc = gql` - fragment ProductWithChannelListings on Product { - id - name - thumbnail { - url - } - productType { - id - name - hasVariants - } - channelListings { - ...ChannelListingProductWithoutPricing - pricing @include(if: $hasChannel) { - priceRange { - ...PriceRange - } - } - } -} - ${ChannelListingProductWithoutPricingFragmentDoc} -${PriceRangeFragmentDoc}`; -export const ProductVariantAttributesFragmentDoc = gql` - fragment ProductVariantAttributes on Product { - id - attributes { - attribute { - id - slug - name - inputType - entityType - valueRequired - unit - choices( - first: $firstValues - after: $afterValues - last: $lastValues - before: $beforeValues - ) { - ...AttributeValueList - } - } - values { - ...AttributeValueDetails - } - } - productType { - id - variantAttributes { - id - name - inputType - valueRequired - unit - choices( - first: $firstValues - after: $afterValues - last: $lastValues - before: $beforeValues - ) { - ...AttributeValueList - } - } - } - channelListings { - channel { - id - name - currencyCode - } - } -} - ${AttributeValueListFragmentDoc} -${AttributeValueDetailsFragmentDoc}`; -export const ProductMediaFragmentDoc = gql` - fragment ProductMedia on ProductMedia { - id - alt - sortOrder - url - type - oembedData -} - `; -export const PreorderFragmentDoc = gql` - fragment Preorder on PreorderData { - globalThreshold - globalSoldUnits - endDate -} - `; -export const ChannelListingProductVariantFragmentDoc = gql` - fragment ChannelListingProductVariant on ProductVariantChannelListing { - id - channel { - id - name - currencyCode - } - price { - ...Money - } - costPrice { - ...Money - } - preorderThreshold { - quantity - soldUnits - } -} - ${MoneyFragmentDoc}`; -export const ProductDetailsVariantFragmentDoc = gql` - fragment ProductDetailsVariant on ProductVariant { - id - sku - name - attributes { - attribute { - id - name - } - values { - id - name - } - } - media { - url(size: 200) - } - stocks { - ...Stock - } - trackInventory - preorder { - ...Preorder - } - channelListings { - ...ChannelListingProductVariant - } - quantityLimitPerCustomer -} - ${StockFragmentDoc} -${PreorderFragmentDoc} -${ChannelListingProductVariantFragmentDoc}`; -export const WeightFragmentDoc = gql` - fragment Weight on Weight { - unit - value -} - `; -export const ProductFragmentDoc = gql` - fragment Product on Product { - ...ProductVariantAttributes - ...Metadata - name - slug - description - seoTitle - seoDescription - rating - defaultVariant { - id - } - category { - id - name - } - collections { - id - name - } - channelListings { - ...ChannelListingProductWithoutPricing - } - media { - ...ProductMedia - } - isAvailable - variants { - ...ProductDetailsVariant - } - productType { - id - name - hasVariants - } - weight { - ...Weight - } - taxClass { - id - name - } -} - ${ProductVariantAttributesFragmentDoc} -${MetadataFragmentDoc} -${ChannelListingProductWithoutPricingFragmentDoc} -${ProductMediaFragmentDoc} -${ProductDetailsVariantFragmentDoc} -${WeightFragmentDoc}`; -export const VariantAttributeFragmentDoc = gql` - fragment VariantAttribute on Attribute { - id - name - slug - inputType - entityType - valueRequired - unit - choices( - first: $firstValues - after: $afterValues - last: $lastValues - before: $beforeValues - ) { - ...AttributeValueList - } -} - ${AttributeValueListFragmentDoc}`; -export const SelectedVariantAttributeFragmentDoc = gql` - fragment SelectedVariantAttribute on SelectedAttribute { - attribute { - ...VariantAttribute - } - values { - ...AttributeValueDetails - } -} - ${VariantAttributeFragmentDoc} -${AttributeValueDetailsFragmentDoc}`; -export const ProductVariantFragmentDoc = gql` - fragment ProductVariant on ProductVariant { - id - ...Metadata - selectionAttributes: attributes(variantSelection: VARIANT_SELECTION) { - ...SelectedVariantAttribute - } - nonSelectionAttributes: attributes(variantSelection: NOT_VARIANT_SELECTION) { - ...SelectedVariantAttribute - } - media { - id - url - type - oembedData - } - name - product { - id - defaultVariant { - id - } - media { - ...ProductMedia - } - name - thumbnail { - url - } - channelListings { - id - publicationDate - isPublished - channel { - id - name - currencyCode - } - } - variants { - id - name - sku - media { - id - url - type - oembedData - } - } - defaultVariant { - id - } - } - channelListings { - ...ChannelListingProductVariant - } - sku - stocks { - ...Stock - } - trackInventory - preorder { - ...Preorder - } - weight { - ...Weight - } - quantityLimitPerCustomer -} - ${MetadataFragmentDoc} -${SelectedVariantAttributeFragmentDoc} -${ProductMediaFragmentDoc} -${ChannelListingProductVariantFragmentDoc} -${StockFragmentDoc} -${PreorderFragmentDoc} -${WeightFragmentDoc}`; -export const ExportFileFragmentDoc = gql` - fragment ExportFile on ExportFile { - id - status - url -} - `; -export const ProductListAttributeFragmentDoc = gql` - fragment ProductListAttribute on SelectedAttribute { - attribute { - id - } - values { - ...AttributeValue - } -} - ${AttributeValueFragmentDoc}`; -export const ShippingMethodWithPostalCodesFragmentDoc = gql` - fragment ShippingMethodWithPostalCodes on ShippingMethodType { - id - postalCodeRules { - id - inclusionType - start - end - } -} - `; -export const ShippingMethodTypeFragmentDoc = gql` - fragment ShippingMethodType on ShippingMethodType { - ...ShippingMethodWithPostalCodes - ...Metadata - taxClass { - name - id - } - minimumOrderWeight { - unit - value - } - maximumOrderWeight { - unit - value - } - minimumDeliveryDays - maximumDeliveryDays - name - description - type - channelListings { - id - channel { - id - name - currencyCode - } - price { - ...Money - } - minimumOrderPrice { - ...Money - } - maximumOrderPrice { - ...Money - } - } -} - ${ShippingMethodWithPostalCodesFragmentDoc} -${MetadataFragmentDoc} -${MoneyFragmentDoc}`; -export const ShippingMethodWithExcludedProductsFragmentDoc = gql` - fragment ShippingMethodWithExcludedProducts on ShippingMethodType { - ...ShippingMethodType - excludedProducts(before: $before, after: $after, first: $first, last: $last) { - pageInfo { - hasNextPage - hasPreviousPage - endCursor - startCursor - } - edges { - node { - id - name - thumbnail { - url - } - } - } - } -} - ${ShippingMethodTypeFragmentDoc}`; -export const ShippingZoneFragmentDoc = gql` - fragment ShippingZone on ShippingZone { - ...Metadata - id - countries { - code - country - } - name - description -} - ${MetadataFragmentDoc}`; -export const ShippingZoneDetailsFragmentDoc = gql` - fragment ShippingZoneDetails on ShippingZone { - ...ShippingZone - shippingMethods { - ...ShippingMethodType - } - warehouses { - id - name - } -} - ${ShippingZoneFragmentDoc} -${ShippingMethodTypeFragmentDoc}`; -export const LanguageFragmentDoc = gql` - fragment Language on LanguageDisplay { - code - language -} - `; -export const LimitInfoFragmentDoc = gql` - fragment LimitInfo on Limits { - channels @include(if: $channels) - orders @include(if: $orders) - productVariants @include(if: $productVariants) - staffUsers @include(if: $staffUsers) - warehouses @include(if: $warehouses) -} - `; -export const ShopLimitFragmentDoc = gql` - fragment ShopLimit on Shop { - limits { - currentUsage { - ...LimitInfo - } - allowedUsage { - ...LimitInfo - } - } -} - ${LimitInfoFragmentDoc}`; -export const ShopFragmentDoc = gql` - fragment Shop on Shop { - companyAddress { - ...Address - } - countries { - code - country - } - customerSetPasswordUrl - defaultMailSenderAddress - defaultMailSenderName - description - domain { - host - } - name - reserveStockDurationAnonymousUser - reserveStockDurationAuthenticatedUser - limitQuantityPerCheckout -} - ${AddressFragmentDoc}`; -export const StaffMemberDetailsFragmentDoc = gql` - fragment StaffMemberDetails on User { - ...StaffMember - permissionGroups { - id - name - userCanManage - } - userPermissions { - code - name - } - avatar(size: 512) { - url - } -} - ${StaffMemberFragmentDoc}`; -export const CountryFragmentDoc = gql` - fragment Country on CountryDisplay { - country - code -} - `; -export const CountryWithCodeFragmentDoc = gql` - fragment CountryWithCode on CountryDisplay { - country - code -} - `; -export const TaxConfigurationPerCountryFragmentDoc = gql` - fragment TaxConfigurationPerCountry on TaxConfigurationPerCountry { - country { - ...CountryWithCode - } - chargeTaxes - taxCalculationStrategy - displayGrossPrices -} - ${CountryWithCodeFragmentDoc}`; -export const TaxConfigurationFragmentDoc = gql` - fragment TaxConfiguration on TaxConfiguration { - id - channel { - id - name - } - displayGrossPrices - pricesEnteredWithTax - chargeTaxes - taxCalculationStrategy - countries { - ...TaxConfigurationPerCountry - } -} - ${TaxConfigurationPerCountryFragmentDoc}`; -export const TaxCountryConfigurationFragmentDoc = gql` - fragment TaxCountryConfiguration on TaxCountryConfiguration { - country { - ...CountryWithCode - } - taxClassCountryRates { - rate - taxClass { - id - name - } - } -} - ${CountryWithCodeFragmentDoc}`; -export const TaxClassBaseFragmentDoc = gql` - fragment TaxClassBase on TaxClass { - id - name -} - `; -export const TaxRateFragmentDoc = gql` - fragment TaxRate on TaxClassCountryRate { - country { - ...CountryWithCode - } - rate -} - ${CountryWithCodeFragmentDoc}`; -export const TaxClassFragmentDoc = gql` - fragment TaxClass on TaxClass { - ...TaxClassBase - countries { - ...TaxRate - } - ...Metadata -} - ${TaxClassBaseFragmentDoc} -${TaxRateFragmentDoc} -${MetadataFragmentDoc}`; -export const TimePeriodFragmentDoc = gql` - fragment TimePeriod on TimePeriod { - amount - type -} - `; -export const CategoryTranslationFragmentDoc = gql` - fragment CategoryTranslation on CategoryTranslatableContent { - translation(languageCode: $language) { - id - description - language { - language - } - name - seoDescription - seoTitle - } - category { - id - name - description - seoDescription - seoTitle - } -} - `; -export const CollectionTranslationFragmentDoc = gql` - fragment CollectionTranslation on CollectionTranslatableContent { - collection { - id - name - description - seoDescription - seoTitle - } - translation(languageCode: $language) { - id - description - language { - language - } - name - seoDescription - seoTitle - } -} - `; -export const AttributeValueTranslatableFragmentDoc = gql` - fragment AttributeValueTranslatable on AttributeValueTranslatableContent { - id - name - plainText - richText - attributeValue { - id - } - attribute { - id - name - } - translation(languageCode: $language) { - id - name - plainText - richText - language { - code - language - } - } -} - `; -export const ProductTranslationFragmentDoc = gql` - fragment ProductTranslation on ProductTranslatableContent { - product { - id - name - description - seoDescription - seoTitle - } - translation(languageCode: $language) { - id - seoTitle - seoDescription - name - description - language { - code - language - } - } - attributeValues { - ...AttributeValueTranslatable - } -} - ${AttributeValueTranslatableFragmentDoc}`; -export const ProductVariantTranslationFragmentDoc = gql` - fragment ProductVariantTranslation on ProductVariantTranslatableContent { - productVariant { - id - } - name - translation(languageCode: $language) { - id - name - language { - code - language - } - } - attributeValues { - ...AttributeValueTranslatable - } -} - ${AttributeValueTranslatableFragmentDoc}`; -export const SaleTranslationFragmentDoc = gql` - fragment SaleTranslation on SaleTranslatableContent { - sale { - id - name - } - translation(languageCode: $language) { - id - language { - code - language - } - name - } -} - `; -export const VoucherTranslationFragmentDoc = gql` - fragment VoucherTranslation on VoucherTranslatableContent { - name - voucher { - id - name - } - translation(languageCode: $language) { - id - language { - code - language - } - name - } -} - `; -export const ShippingMethodTranslationFragmentDoc = gql` - fragment ShippingMethodTranslation on ShippingMethodTranslatableContent { - id - name - description - shippingMethod { - id - } - translation(languageCode: $language) { - id - language { - code - language - } - name - description - } -} - `; -export const PageTranslationFragmentDoc = gql` - fragment PageTranslation on PageTranslatableContent { - page { - id - content - seoDescription - seoTitle - title - } - translation(languageCode: $language) { - id - content - seoDescription - seoTitle - title - language { - code - language - } - } - attributeValues { - ...AttributeValueTranslatable - } -} - ${AttributeValueTranslatableFragmentDoc}`; -export const PageTranslatableFragmentDoc = gql` - fragment PageTranslatable on PageTranslatableContent { - id - content - seoDescription - seoTitle - title - translation(languageCode: $language) { - id - content - seoDescription - seoTitle - title - language { - code - language - } - } -} - `; -export const AttributeTranslationFragmentDoc = gql` - fragment AttributeTranslation on AttributeTranslatableContent { - id - name - translation(languageCode: $language) { - id - name - } - attribute { - id - name - inputType - } -} - `; -export const AttributeChoicesTranslationFragmentDoc = gql` - fragment AttributeChoicesTranslation on AttributeValueCountableConnection { - pageInfo { - ...PageInfo - } - edges { - cursor - node { - id - name - plainText - richText - inputType - translation(languageCode: $language) { - id - name - plainText - richText - } - } - } -} - ${PageInfoFragmentDoc}`; -export const AttributeTranslationDetailsFragmentDoc = gql` - fragment AttributeTranslationDetails on AttributeTranslatableContent { - translation(languageCode: $language) { - id - name - } - attribute { - id - name - inputType - withChoices - choices( - first: $firstValues - after: $afterValues - last: $lastValues - before: $beforeValues - ) { - ...AttributeChoicesTranslation - } - } -} - ${AttributeChoicesTranslationFragmentDoc}`; -export const MenuItemTranslationFragmentDoc = gql` - fragment MenuItemTranslation on MenuItemTranslatableContent { - translation(languageCode: $language) { - id - language { - language - } - name - } - menuItem { - id - name - } -} - `; -export const WarehouseWithShippingFragmentDoc = gql` - fragment WarehouseWithShipping on Warehouse { - ...Warehouse - shippingZones(first: 100) { - edges { - node { - id - name - } - } - } -} - ${WarehouseFragmentDoc}`; -export const WarehouseDetailsFragmentDoc = gql` - fragment WarehouseDetails on Warehouse { - isPrivate - clickAndCollectOption - ...WarehouseWithShipping - address { - ...Address - } -} - ${WarehouseWithShippingFragmentDoc} -${AddressFragmentDoc}`; -export const WebhookDetailsFragmentDoc = gql` - fragment WebhookDetails on Webhook { - ...Webhook - syncEvents { - eventType - } - asyncEvents { - eventType - } - secretKey - targetUrl - subscriptionQuery - customHeaders -} - ${WebhookFragmentDoc}`; -export const ChannelOrderSettingsUpdateDocument = gql` - mutation ChannelOrderSettingsUpdate($id: ID!, $input: ChannelUpdateInput!) { - channelUpdate(id: $id, input: $input) { - channel { - ...ChannelDetails - ...ChannelOrderSettings - } - errors { - ...ChannelError - } - } -} - ${ChannelDetailsFragmentDoc} -${ChannelOrderSettingsFragmentDoc} -${ChannelErrorFragmentDoc}`; -export type ChannelOrderSettingsUpdateMutationFn = Apollo.MutationFunction; - -/** - * __useChannelOrderSettingsUpdateMutation__ - * - * To run a mutation, you first call `useChannelOrderSettingsUpdateMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useChannelOrderSettingsUpdateMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [channelOrderSettingsUpdateMutation, { data, loading, error }] = useChannelOrderSettingsUpdateMutation({ - * variables: { - * id: // value for 'id' - * input: // value for 'input' - * }, - * }); - */ -export function useChannelOrderSettingsUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(ChannelOrderSettingsUpdateDocument, options); - } -export type ChannelOrderSettingsUpdateMutationHookResult = ReturnType; -export type ChannelOrderSettingsUpdateMutationResult = Apollo.MutationResult; -export type ChannelOrderSettingsUpdateMutationOptions = Apollo.BaseMutationOptions; -export const ChannelCreateWithSettingsDocument = gql` - mutation ChannelCreateWithSettings($input: ChannelCreateInput!) { - channelCreate(input: $input) { - channel { - ...ChannelDetails - ...ChannelOrderSettings - } - errors { - ...ChannelError - } - } -} - ${ChannelDetailsFragmentDoc} -${ChannelOrderSettingsFragmentDoc} -${ChannelErrorFragmentDoc}`; -export type ChannelCreateWithSettingsMutationFn = Apollo.MutationFunction; - -/** - * __useChannelCreateWithSettingsMutation__ - * - * To run a mutation, you first call `useChannelCreateWithSettingsMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useChannelCreateWithSettingsMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [channelCreateWithSettingsMutation, { data, loading, error }] = useChannelCreateWithSettingsMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useChannelCreateWithSettingsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(ChannelCreateWithSettingsDocument, options); - } -export type ChannelCreateWithSettingsMutationHookResult = ReturnType; -export type ChannelCreateWithSettingsMutationResult = Apollo.MutationResult; -export type ChannelCreateWithSettingsMutationOptions = Apollo.BaseMutationOptions; -export const ChannelOrderSettingsDocument = gql` - query ChannelOrderSettings($id: ID!) { - channel(id: $id) { - ...ChannelOrderSettings - } -} - ${ChannelOrderSettingsFragmentDoc}`; - -/** - * __useChannelOrderSettingsQuery__ - * - * To run a query within a React component, call `useChannelOrderSettingsQuery` and pass it any options that fit your needs. - * When your component renders, `useChannelOrderSettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useChannelOrderSettingsQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useChannelOrderSettingsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery(ChannelOrderSettingsDocument, options); - } -export function useChannelOrderSettingsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery(ChannelOrderSettingsDocument, options); - } -export type ChannelOrderSettingsQueryHookResult = ReturnType; -export type ChannelOrderSettingsLazyQueryHookResult = ReturnType; -export type ChannelOrderSettingsQueryResult = Apollo.QueryResult; -export const OrderTransactionRequestActionDocument = gql` - mutation OrderTransactionRequestAction($action: TransactionActionEnum!, $transactionId: ID!) { - transactionRequestAction(actionType: $action, id: $transactionId) { - errors { - ...TransactionRequestActionError - } - } -} - ${TransactionRequestActionErrorFragmentDoc}`; -export type OrderTransactionRequestActionMutationFn = Apollo.MutationFunction; - -/** - * __useOrderTransactionRequestActionMutation__ - * - * To run a mutation, you first call `useOrderTransactionRequestActionMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useOrderTransactionRequestActionMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [orderTransactionRequestActionMutation, { data, loading, error }] = useOrderTransactionRequestActionMutation({ - * variables: { - * action: // value for 'action' - * transactionId: // value for 'transactionId' - * }, - * }); - */ -export function useOrderTransactionRequestActionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(OrderTransactionRequestActionDocument, options); - } -export type OrderTransactionRequestActionMutationHookResult = ReturnType; -export type OrderTransactionRequestActionMutationResult = Apollo.MutationResult; -export type OrderTransactionRequestActionMutationOptions = Apollo.BaseMutationOptions; -export const OrderGrantRefundAddDocument = gql` - mutation OrderGrantRefundAdd($orderId: ID!, $amount: Decimal!, $reason: String) { - orderGrantRefundCreate(id: $orderId, input: {amount: $amount, reason: $reason}) { - errors { - ...OrderGrantRefundCreateError - } - } -} - ${OrderGrantRefundCreateErrorFragmentDoc}`; -export type OrderGrantRefundAddMutationFn = Apollo.MutationFunction; - -/** - * __useOrderGrantRefundAddMutation__ - * - * To run a mutation, you first call `useOrderGrantRefundAddMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useOrderGrantRefundAddMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [orderGrantRefundAddMutation, { data, loading, error }] = useOrderGrantRefundAddMutation({ - * variables: { - * orderId: // value for 'orderId' - * amount: // value for 'amount' - * reason: // value for 'reason' - * }, - * }); - */ -export function useOrderGrantRefundAddMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(OrderGrantRefundAddDocument, options); - } -export type OrderGrantRefundAddMutationHookResult = ReturnType; -export type OrderGrantRefundAddMutationResult = Apollo.MutationResult; -export type OrderGrantRefundAddMutationOptions = Apollo.BaseMutationOptions; -export const OrderGrantRefundEditDocument = gql` - mutation OrderGrantRefundEdit($refundId: ID!, $amount: Decimal!, $reason: String) { - orderGrantRefundUpdate(id: $refundId, input: {amount: $amount, reason: $reason}) { - errors { - ...OrderGrantRefundUpdateError - } - } -} - ${OrderGrantRefundUpdateErrorFragmentDoc}`; -export type OrderGrantRefundEditMutationFn = Apollo.MutationFunction; - -/** - * __useOrderGrantRefundEditMutation__ - * - * To run a mutation, you first call `useOrderGrantRefundEditMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useOrderGrantRefundEditMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [orderGrantRefundEditMutation, { data, loading, error }] = useOrderGrantRefundEditMutation({ - * variables: { - * refundId: // value for 'refundId' - * amount: // value for 'amount' - * reason: // value for 'reason' - * }, - * }); - */ -export function useOrderGrantRefundEditMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(OrderGrantRefundEditDocument, options); - } -export type OrderGrantRefundEditMutationHookResult = ReturnType; -export type OrderGrantRefundEditMutationResult = Apollo.MutationResult; -export type OrderGrantRefundEditMutationOptions = Apollo.BaseMutationOptions; -export const OrderSendRefundDocument = gql` - mutation OrderSendRefund($amount: PositiveDecimal!, $transactionId: ID!) { - transactionRequestAction( - actionType: REFUND - amount: $amount - id: $transactionId - ) { - transaction { - ...TransactionItem - } - errors { - ...TransactionRequestActionError - } - } -} - ${TransactionItemFragmentDoc} -${TransactionRequestActionErrorFragmentDoc}`; -export type OrderSendRefundMutationFn = Apollo.MutationFunction; - -/** - * __useOrderSendRefundMutation__ - * - * To run a mutation, you first call `useOrderSendRefundMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useOrderSendRefundMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [orderSendRefundMutation, { data, loading, error }] = useOrderSendRefundMutation({ - * variables: { - * amount: // value for 'amount' - * transactionId: // value for 'transactionId' - * }, - * }); - */ -export function useOrderSendRefundMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(OrderSendRefundDocument, options); - } -export type OrderSendRefundMutationHookResult = ReturnType; -export type OrderSendRefundMutationResult = Apollo.MutationResult; -export type OrderSendRefundMutationOptions = Apollo.BaseMutationOptions; -export const CreateManualTransactionCaptureDocument = gql` - mutation CreateManualTransactionCapture($orderId: ID!, $amount: PositiveDecimal!, $currency: String!, $description: String, $pspReference: String) { - transactionCreate( - id: $orderId - transaction: {type: "Manual capture", status: "Success", pspReference: $pspReference, amountCharged: {amount: $amount, currency: $currency}} - transactionEvent: {status: SUCCESS, pspReference: $pspReference, name: $description} - ) { - transaction { - ...TransactionItem - } - errors { - ...TransactionCreateError - } - } -} - ${TransactionItemFragmentDoc} -${TransactionCreateErrorFragmentDoc}`; -export type CreateManualTransactionCaptureMutationFn = Apollo.MutationFunction; - -/** - * __useCreateManualTransactionCaptureMutation__ - * - * To run a mutation, you first call `useCreateManualTransactionCaptureMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateManualTransactionCaptureMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createManualTransactionCaptureMutation, { data, loading, error }] = useCreateManualTransactionCaptureMutation({ - * variables: { - * orderId: // value for 'orderId' - * amount: // value for 'amount' - * currency: // value for 'currency' - * description: // value for 'description' - * pspReference: // value for 'pspReference' - * }, - * }); - */ -export function useCreateManualTransactionCaptureMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(CreateManualTransactionCaptureDocument, options); - } -export type CreateManualTransactionCaptureMutationHookResult = ReturnType; -export type CreateManualTransactionCaptureMutationResult = Apollo.MutationResult; -export type CreateManualTransactionCaptureMutationOptions = Apollo.BaseMutationOptions; -export const CreateManualTransactionRefundDocument = gql` - mutation CreateManualTransactionRefund($orderId: ID!, $amount: PositiveDecimal!, $currency: String!, $description: String, $pspReference: String) { - transactionCreate( - id: $orderId - transaction: {type: "Manual refund", status: "Success", pspReference: $pspReference, amountRefunded: {amount: $amount, currency: $currency}} - transactionEvent: {status: SUCCESS, pspReference: $pspReference, name: $description} - ) { - transaction { - ...TransactionItem - } - errors { - ...TransactionCreateError - } - } -} - ${TransactionItemFragmentDoc} -${TransactionCreateErrorFragmentDoc}`; -export type CreateManualTransactionRefundMutationFn = Apollo.MutationFunction; - -/** - * __useCreateManualTransactionRefundMutation__ - * - * To run a mutation, you first call `useCreateManualTransactionRefundMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateManualTransactionRefundMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createManualTransactionRefundMutation, { data, loading, error }] = useCreateManualTransactionRefundMutation({ - * variables: { - * orderId: // value for 'orderId' - * amount: // value for 'amount' - * currency: // value for 'currency' - * description: // value for 'description' - * pspReference: // value for 'pspReference' - * }, - * }); - */ -export function useCreateManualTransactionRefundMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(CreateManualTransactionRefundDocument, options); - } -export type CreateManualTransactionRefundMutationHookResult = ReturnType; -export type CreateManualTransactionRefundMutationResult = Apollo.MutationResult; -export type CreateManualTransactionRefundMutationOptions = Apollo.BaseMutationOptions; -export const OrderDetailsWithTransactionsDocument = gql` - query OrderDetailsWithTransactions($id: ID!) { - order(id: $id) { - ...OrderDetailsWithTransactions - } - shop { - countries { - code - country - } - defaultWeightUnit - fulfillmentAllowUnpaid - fulfillmentAutoApprove - availablePaymentGateways { - ...PaymentGateway - } - } -} - ${OrderDetailsWithTransactionsFragmentDoc} -${PaymentGatewayFragmentDoc}`; - -/** - * __useOrderDetailsWithTransactionsQuery__ - * - * To run a query within a React component, call `useOrderDetailsWithTransactionsQuery` and pass it any options that fit your needs. - * When your component renders, `useOrderDetailsWithTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOrderDetailsWithTransactionsQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useOrderDetailsWithTransactionsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery(OrderDetailsWithTransactionsDocument, options); - } -export function useOrderDetailsWithTransactionsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery(OrderDetailsWithTransactionsDocument, options); - } -export type OrderDetailsWithTransactionsQueryHookResult = ReturnType; -export type OrderDetailsWithTransactionsLazyQueryHookResult = ReturnType; -export type OrderDetailsWithTransactionsQueryResult = Apollo.QueryResult; -export const OrderDetailsGrantRefundDocument = gql` - query OrderDetailsGrantRefund($id: ID!) { - order(id: $id) { - ...OrderDetailsGrantRefund - } -} - ${OrderDetailsGrantRefundFragmentDoc}`; - -/** - * __useOrderDetailsGrantRefundQuery__ - * - * To run a query within a React component, call `useOrderDetailsGrantRefundQuery` and pass it any options that fit your needs. - * When your component renders, `useOrderDetailsGrantRefundQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOrderDetailsGrantRefundQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useOrderDetailsGrantRefundQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery(OrderDetailsGrantRefundDocument, options); - } -export function useOrderDetailsGrantRefundLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery(OrderDetailsGrantRefundDocument, options); - } -export type OrderDetailsGrantRefundQueryHookResult = ReturnType; -export type OrderDetailsGrantRefundLazyQueryHookResult = ReturnType; -export type OrderDetailsGrantRefundQueryResult = Apollo.QueryResult; -export const OrderDetailsGrantRefundEditDocument = gql` - query OrderDetailsGrantRefundEdit($id: ID!) { - order(id: $id) { - ...OrderDetailsGrantRefund - grantedRefunds { - id - reason - amount { - ...Money - } - } - } -} - ${OrderDetailsGrantRefundFragmentDoc} -${MoneyFragmentDoc}`; - -/** - * __useOrderDetailsGrantRefundEditQuery__ - * - * To run a query within a React component, call `useOrderDetailsGrantRefundEditQuery` and pass it any options that fit your needs. - * When your component renders, `useOrderDetailsGrantRefundEditQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOrderDetailsGrantRefundEditQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useOrderDetailsGrantRefundEditQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery(OrderDetailsGrantRefundEditDocument, options); - } -export function useOrderDetailsGrantRefundEditLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery(OrderDetailsGrantRefundEditDocument, options); - } -export type OrderDetailsGrantRefundEditQueryHookResult = ReturnType; -export type OrderDetailsGrantRefundEditLazyQueryHookResult = ReturnType; -export type OrderDetailsGrantRefundEditQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/src/graphql/transactions.ts b/src/graphql/transactions.ts deleted file mode 100644 index dfb5f3a2f..000000000 --- a/src/graphql/transactions.ts +++ /dev/null @@ -1,25 +0,0 @@ -export * from "./hooks.transactions.generated"; -export * from "./types.transactions.generated"; -export * from "./typePolicies.transactions.generated"; -export { default as introspectionQueryResultData } from "./fragmentTypes.transactions.generated"; - -// Rename OrderDetailsWithTransactions -> OrderDetails - -export type { - OrderDetailsWithTransactionsQueryResult as OrderDetailsQueryResult, - OrderDetailsWithTransactionsQueryHookResult as OrderDetailsQueryHookResult, - OrderDetailsWithTransactionsLazyQueryHookResult as OrderDetailsLazyQueryHookResult, -} from "./hooks.transactions.generated"; - -export { - OrderDetailsWithTransactionsFragmentDoc as OrderDetailsFragmentDoc, - OrderDetailsWithTransactionsDocument as OrderDetailsDocument, - useOrderDetailsWithTransactionsQuery as useOrderDetailsQuery, - useOrderDetailsWithTransactionsLazyQuery as useOrderDetailsLazyQuery, -} from "./hooks.transactions.generated"; - -export type { - OrderDetailsWithTransactionsFragment as OrderDetailsFragment, - OrderDetailsWithTransactionsQueryVariables as OrderDetailsQueryVariables, - OrderDetailsWithTransactionsQuery as OrderDetailsQuery, -} from "./types.transactions.generated"; diff --git a/src/graphql/typePolicies.generated.ts b/src/graphql/typePolicies.generated.ts index fa2188549..6c6a7e152 100644 --- a/src/graphql/typePolicies.generated.ts +++ b/src/graphql/typePolicies.generated.ts @@ -1,25 +1,25 @@ /* eslint-disable */ import { FieldPolicy, FieldReadFunction, TypePolicies, TypePolicy } from '@apollo/client/cache'; -export type AccountAddressCreateKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AccountAddressCreateKeySpecifier)[]; +export type AccountAddressCreateKeySpecifier = ('accountErrors' | 'address' | 'errors' | 'user' | AccountAddressCreateKeySpecifier)[]; export type AccountAddressCreateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, + address?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction }; -export type AccountAddressDeleteKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AccountAddressDeleteKeySpecifier)[]; +export type AccountAddressDeleteKeySpecifier = ('accountErrors' | 'address' | 'errors' | 'user' | AccountAddressDeleteKeySpecifier)[]; export type AccountAddressDeleteFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, + address?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction }; -export type AccountAddressUpdateKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AccountAddressUpdateKeySpecifier)[]; +export type AccountAddressUpdateKeySpecifier = ('accountErrors' | 'address' | 'errors' | 'user' | AccountAddressUpdateKeySpecifier)[]; export type AccountAddressUpdateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, + address?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction }; export type AccountDeleteKeySpecifier = ('accountErrors' | 'errors' | 'user' | AccountDeleteKeySpecifier)[]; export type AccountDeleteFieldPolicy = { @@ -27,18 +27,18 @@ export type AccountDeleteFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type AccountErrorKeySpecifier = ('field' | 'message' | 'code' | 'addressType' | AccountErrorKeySpecifier)[]; +export type AccountErrorKeySpecifier = ('addressType' | 'code' | 'field' | 'message' | AccountErrorKeySpecifier)[]; export type AccountErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, + addressType?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction, - addressType?: FieldPolicy | FieldReadFunction + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction }; -export type AccountRegisterKeySpecifier = ('requiresConfirmation' | 'accountErrors' | 'errors' | 'user' | AccountRegisterKeySpecifier)[]; +export type AccountRegisterKeySpecifier = ('accountErrors' | 'errors' | 'requiresConfirmation' | 'user' | AccountRegisterKeySpecifier)[]; export type AccountRegisterFieldPolicy = { - requiresConfirmation?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + requiresConfirmation?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; export type AccountRequestDeletionKeySpecifier = ('accountErrors' | 'errors' | AccountRequestDeletionKeySpecifier)[]; @@ -46,11 +46,11 @@ export type AccountRequestDeletionFieldPolicy = { accountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type AccountSetDefaultAddressKeySpecifier = ('user' | 'accountErrors' | 'errors' | AccountSetDefaultAddressKeySpecifier)[]; +export type AccountSetDefaultAddressKeySpecifier = ('accountErrors' | 'errors' | 'user' | AccountSetDefaultAddressKeySpecifier)[]; export type AccountSetDefaultAddressFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; export type AccountUpdateKeySpecifier = ('accountErrors' | 'errors' | 'user' | AccountUpdateKeySpecifier)[]; export type AccountUpdateFieldPolicy = { @@ -58,99 +58,99 @@ export type AccountUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type AddressKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'firstName' | 'lastName' | 'companyName' | 'streetAddress1' | 'streetAddress2' | 'city' | 'cityArea' | 'postalCode' | 'country' | 'countryArea' | 'phone' | 'isDefaultShippingAddress' | 'isDefaultBillingAddress' | AddressKeySpecifier)[]; +export type AddressKeySpecifier = ('city' | 'cityArea' | 'companyName' | 'country' | 'countryArea' | 'firstName' | 'id' | 'isDefaultBillingAddress' | 'isDefaultShippingAddress' | 'lastName' | 'metadata' | 'metafield' | 'metafields' | 'phone' | 'postalCode' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'streetAddress1' | 'streetAddress2' | AddressKeySpecifier)[]; export type AddressFieldPolicy = { + city?: FieldPolicy | FieldReadFunction, + cityArea?: FieldPolicy | FieldReadFunction, + companyName?: FieldPolicy | FieldReadFunction, + country?: FieldPolicy | FieldReadFunction, + countryArea?: FieldPolicy | FieldReadFunction, + firstName?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + isDefaultBillingAddress?: FieldPolicy | FieldReadFunction, + isDefaultShippingAddress?: FieldPolicy | FieldReadFunction, + lastName?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - firstName?: FieldPolicy | FieldReadFunction, - lastName?: FieldPolicy | FieldReadFunction, - companyName?: FieldPolicy | FieldReadFunction, - streetAddress1?: FieldPolicy | FieldReadFunction, - streetAddress2?: FieldPolicy | FieldReadFunction, - city?: FieldPolicy | FieldReadFunction, - cityArea?: FieldPolicy | FieldReadFunction, - postalCode?: FieldPolicy | FieldReadFunction, - country?: FieldPolicy | FieldReadFunction, - countryArea?: FieldPolicy | FieldReadFunction, phone?: FieldPolicy | FieldReadFunction, - isDefaultShippingAddress?: FieldPolicy | FieldReadFunction, - isDefaultBillingAddress?: FieldPolicy | FieldReadFunction + postalCode?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + streetAddress1?: FieldPolicy | FieldReadFunction, + streetAddress2?: FieldPolicy | FieldReadFunction }; -export type AddressCreateKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AddressCreateKeySpecifier)[]; +export type AddressCreateKeySpecifier = ('accountErrors' | 'address' | 'errors' | 'user' | AddressCreateKeySpecifier)[]; export type AddressCreateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, + address?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction }; -export type AddressCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'address' | AddressCreatedKeySpecifier)[]; +export type AddressCreatedKeySpecifier = ('address' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AddressCreatedKeySpecifier)[]; export type AddressCreatedFieldPolicy = { + address?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AddressDeleteKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AddressDeleteKeySpecifier)[]; +export type AddressDeleteKeySpecifier = ('accountErrors' | 'address' | 'errors' | 'user' | AddressDeleteKeySpecifier)[]; export type AddressDeleteFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, + address?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction }; -export type AddressDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'address' | AddressDeletedKeySpecifier)[]; +export type AddressDeletedKeySpecifier = ('address' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AddressDeletedKeySpecifier)[]; export type AddressDeletedFieldPolicy = { + address?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AddressSetDefaultKeySpecifier = ('user' | 'accountErrors' | 'errors' | AddressSetDefaultKeySpecifier)[]; +export type AddressSetDefaultKeySpecifier = ('accountErrors' | 'errors' | 'user' | AddressSetDefaultKeySpecifier)[]; export type AddressSetDefaultFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AddressUpdateKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AddressUpdateKeySpecifier)[]; -export type AddressUpdateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction }; -export type AddressUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'address' | AddressUpdatedKeySpecifier)[]; +export type AddressUpdateKeySpecifier = ('accountErrors' | 'address' | 'errors' | 'user' | AddressUpdateKeySpecifier)[]; +export type AddressUpdateFieldPolicy = { + accountErrors?: FieldPolicy | FieldReadFunction, + address?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; +export type AddressUpdatedKeySpecifier = ('address' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AddressUpdatedKeySpecifier)[]; export type AddressUpdatedFieldPolicy = { + address?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AddressValidationDataKeySpecifier = ('countryCode' | 'countryName' | 'addressFormat' | 'addressLatinFormat' | 'allowedFields' | 'requiredFields' | 'upperFields' | 'countryAreaType' | 'countryAreaChoices' | 'cityType' | 'cityChoices' | 'cityAreaType' | 'cityAreaChoices' | 'postalCodeType' | 'postalCodeMatchers' | 'postalCodeExamples' | 'postalCodePrefix' | AddressValidationDataKeySpecifier)[]; +export type AddressValidationDataKeySpecifier = ('addressFormat' | 'addressLatinFormat' | 'allowedFields' | 'cityAreaChoices' | 'cityAreaType' | 'cityChoices' | 'cityType' | 'countryAreaChoices' | 'countryAreaType' | 'countryCode' | 'countryName' | 'postalCodeExamples' | 'postalCodeMatchers' | 'postalCodePrefix' | 'postalCodeType' | 'requiredFields' | 'upperFields' | AddressValidationDataKeySpecifier)[]; export type AddressValidationDataFieldPolicy = { - countryCode?: FieldPolicy | FieldReadFunction, - countryName?: FieldPolicy | FieldReadFunction, addressFormat?: FieldPolicy | FieldReadFunction, addressLatinFormat?: FieldPolicy | FieldReadFunction, allowedFields?: FieldPolicy | FieldReadFunction, - requiredFields?: FieldPolicy | FieldReadFunction, - upperFields?: FieldPolicy | FieldReadFunction, - countryAreaType?: FieldPolicy | FieldReadFunction, - countryAreaChoices?: FieldPolicy | FieldReadFunction, - cityType?: FieldPolicy | FieldReadFunction, - cityChoices?: FieldPolicy | FieldReadFunction, - cityAreaType?: FieldPolicy | FieldReadFunction, cityAreaChoices?: FieldPolicy | FieldReadFunction, - postalCodeType?: FieldPolicy | FieldReadFunction, - postalCodeMatchers?: FieldPolicy | FieldReadFunction, + cityAreaType?: FieldPolicy | FieldReadFunction, + cityChoices?: FieldPolicy | FieldReadFunction, + cityType?: FieldPolicy | FieldReadFunction, + countryAreaChoices?: FieldPolicy | FieldReadFunction, + countryAreaType?: FieldPolicy | FieldReadFunction, + countryCode?: FieldPolicy | FieldReadFunction, + countryName?: FieldPolicy | FieldReadFunction, postalCodeExamples?: FieldPolicy | FieldReadFunction, - postalCodePrefix?: FieldPolicy | FieldReadFunction + postalCodeMatchers?: FieldPolicy | FieldReadFunction, + postalCodePrefix?: FieldPolicy | FieldReadFunction, + postalCodeType?: FieldPolicy | FieldReadFunction, + requiredFields?: FieldPolicy | FieldReadFunction, + upperFields?: FieldPolicy | FieldReadFunction }; export type AllocationKeySpecifier = ('id' | 'quantity' | 'warehouse' | AllocationKeySpecifier)[]; export type AllocationFieldPolicy = { @@ -158,273 +158,273 @@ export type AllocationFieldPolicy = { quantity?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type AppKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'permissions' | 'created' | 'isActive' | 'name' | 'type' | 'tokens' | 'webhooks' | 'aboutApp' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'configurationUrl' | 'appUrl' | 'manifestUrl' | 'version' | 'accessToken' | 'author' | 'extensions' | AppKeySpecifier)[]; +export type AppKeySpecifier = ('aboutApp' | 'accessToken' | 'appUrl' | 'author' | 'configurationUrl' | 'created' | 'dataPrivacy' | 'dataPrivacyUrl' | 'extensions' | 'homepageUrl' | 'id' | 'isActive' | 'manifestUrl' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'permissions' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'supportUrl' | 'tokens' | 'type' | 'version' | 'webhooks' | AppKeySpecifier)[]; export type AppFieldPolicy = { + aboutApp?: FieldPolicy | FieldReadFunction, + accessToken?: FieldPolicy | FieldReadFunction, + appUrl?: FieldPolicy | FieldReadFunction, + author?: FieldPolicy | FieldReadFunction, + configurationUrl?: FieldPolicy | FieldReadFunction, + created?: FieldPolicy | FieldReadFunction, + dataPrivacy?: FieldPolicy | FieldReadFunction, + dataPrivacyUrl?: FieldPolicy | FieldReadFunction, + extensions?: FieldPolicy | FieldReadFunction, + homepageUrl?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + isActive?: FieldPolicy | FieldReadFunction, + manifestUrl?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - tokens?: FieldPolicy | FieldReadFunction, - webhooks?: FieldPolicy | FieldReadFunction, - aboutApp?: FieldPolicy | FieldReadFunction, - dataPrivacy?: FieldPolicy | FieldReadFunction, - dataPrivacyUrl?: FieldPolicy | FieldReadFunction, - homepageUrl?: FieldPolicy | FieldReadFunction, - supportUrl?: FieldPolicy | FieldReadFunction, - configurationUrl?: FieldPolicy | FieldReadFunction, - appUrl?: FieldPolicy | FieldReadFunction, - manifestUrl?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - accessToken?: FieldPolicy | FieldReadFunction, - author?: FieldPolicy | FieldReadFunction, - extensions?: FieldPolicy | FieldReadFunction -}; -export type AppActivateKeySpecifier = ('appErrors' | 'errors' | 'app' | AppActivateKeySpecifier)[]; -export type AppActivateFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | AppCountableConnectionKeySpecifier)[]; -export type AppCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type AppCountableEdgeKeySpecifier = ('node' | 'cursor' | AppCountableEdgeKeySpecifier)[]; -export type AppCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type AppCreateKeySpecifier = ('authToken' | 'appErrors' | 'errors' | 'app' | AppCreateKeySpecifier)[]; -export type AppCreateFieldPolicy = { - authToken?: FieldPolicy | FieldReadFunction, - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppDeactivateKeySpecifier = ('appErrors' | 'errors' | 'app' | AppDeactivateKeySpecifier)[]; -export type AppDeactivateFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppDeleteKeySpecifier = ('appErrors' | 'errors' | 'app' | AppDeleteKeySpecifier)[]; -export type AppDeleteFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppDeleteFailedInstallationKeySpecifier = ('appErrors' | 'errors' | 'appInstallation' | AppDeleteFailedInstallationKeySpecifier)[]; -export type AppDeleteFailedInstallationFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appInstallation?: FieldPolicy | FieldReadFunction -}; -export type AppDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'app' | AppDeletedKeySpecifier)[]; -export type AppDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppErrorKeySpecifier = ('field' | 'message' | 'code' | 'permissions' | AppErrorKeySpecifier)[]; -export type AppErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction -}; -export type AppExtensionKeySpecifier = ('id' | 'permissions' | 'label' | 'url' | 'mount' | 'target' | 'app' | 'accessToken' | AppExtensionKeySpecifier)[]; -export type AppExtensionFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, permissions?: FieldPolicy | FieldReadFunction, - label?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - mount?: FieldPolicy | FieldReadFunction, - target?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + supportUrl?: FieldPolicy | FieldReadFunction, + tokens?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + webhooks?: FieldPolicy | FieldReadFunction +}; +export type AppActivateKeySpecifier = ('app' | 'appErrors' | 'errors' | AppActivateKeySpecifier)[]; +export type AppActivateFieldPolicy = { app?: FieldPolicy | FieldReadFunction, - accessToken?: FieldPolicy | FieldReadFunction -}; -export type AppExtensionCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | AppExtensionCountableConnectionKeySpecifier)[]; -export type AppExtensionCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type AppExtensionCountableEdgeKeySpecifier = ('node' | 'cursor' | AppExtensionCountableEdgeKeySpecifier)[]; -export type AppExtensionCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type AppFetchManifestKeySpecifier = ('manifest' | 'appErrors' | 'errors' | AppFetchManifestKeySpecifier)[]; -export type AppFetchManifestFieldPolicy = { - manifest?: FieldPolicy | FieldReadFunction, appErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type AppInstallKeySpecifier = ('appErrors' | 'errors' | 'appInstallation' | AppInstallKeySpecifier)[]; -export type AppInstallFieldPolicy = { +export type AppCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | AppCountableConnectionKeySpecifier)[]; +export type AppCountableConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type AppCountableEdgeKeySpecifier = ('cursor' | 'node' | AppCountableEdgeKeySpecifier)[]; +export type AppCountableEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; +export type AppCreateKeySpecifier = ('app' | 'appErrors' | 'authToken' | 'errors' | AppCreateKeySpecifier)[]; +export type AppCreateFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appInstallation?: FieldPolicy | FieldReadFunction + authToken?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction }; -export type AppInstallationKeySpecifier = ('id' | 'status' | 'createdAt' | 'updatedAt' | 'message' | 'appName' | 'manifestUrl' | AppInstallationKeySpecifier)[]; -export type AppInstallationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - appName?: FieldPolicy | FieldReadFunction, - manifestUrl?: FieldPolicy | FieldReadFunction +export type AppDeactivateKeySpecifier = ('app' | 'appErrors' | 'errors' | AppDeactivateKeySpecifier)[]; +export type AppDeactivateFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, + appErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction }; -export type AppInstalledKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'app' | AppInstalledKeySpecifier)[]; -export type AppInstalledFieldPolicy = { +export type AppDeleteKeySpecifier = ('app' | 'appErrors' | 'errors' | AppDeleteKeySpecifier)[]; +export type AppDeleteFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, + appErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type AppDeleteFailedInstallationKeySpecifier = ('appErrors' | 'appInstallation' | 'errors' | AppDeleteFailedInstallationKeySpecifier)[]; +export type AppDeleteFailedInstallationFieldPolicy = { + appErrors?: FieldPolicy | FieldReadFunction, + appInstallation?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type AppDeletedKeySpecifier = ('app' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AppDeletedKeySpecifier)[]; +export type AppDeletedFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AppManifestExtensionKeySpecifier = ('permissions' | 'label' | 'url' | 'mount' | 'target' | AppManifestExtensionKeySpecifier)[]; -export type AppManifestExtensionFieldPolicy = { - permissions?: FieldPolicy | FieldReadFunction, +export type AppErrorKeySpecifier = ('code' | 'field' | 'message' | 'permissions' | AppErrorKeySpecifier)[]; +export type AppErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + permissions?: FieldPolicy | FieldReadFunction +}; +export type AppExtensionKeySpecifier = ('accessToken' | 'app' | 'id' | 'label' | 'mount' | 'permissions' | 'target' | 'url' | AppExtensionKeySpecifier)[]; +export type AppExtensionFieldPolicy = { + accessToken?: FieldPolicy | FieldReadFunction, + app?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, label?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, mount?: FieldPolicy | FieldReadFunction, - target?: FieldPolicy | FieldReadFunction + permissions?: FieldPolicy | FieldReadFunction, + target?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction +}; +export type AppExtensionCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | AppExtensionCountableConnectionKeySpecifier)[]; +export type AppExtensionCountableConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type AppExtensionCountableEdgeKeySpecifier = ('cursor' | 'node' | AppExtensionCountableEdgeKeySpecifier)[]; +export type AppExtensionCountableEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; +export type AppFetchManifestKeySpecifier = ('appErrors' | 'errors' | 'manifest' | AppFetchManifestKeySpecifier)[]; +export type AppFetchManifestFieldPolicy = { + appErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + manifest?: FieldPolicy | FieldReadFunction +}; +export type AppInstallKeySpecifier = ('appErrors' | 'appInstallation' | 'errors' | AppInstallKeySpecifier)[]; +export type AppInstallFieldPolicy = { + appErrors?: FieldPolicy | FieldReadFunction, + appInstallation?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type AppInstallationKeySpecifier = ('appName' | 'createdAt' | 'id' | 'manifestUrl' | 'message' | 'status' | 'updatedAt' | AppInstallationKeySpecifier)[]; +export type AppInstallationFieldPolicy = { + appName?: FieldPolicy | FieldReadFunction, + createdAt?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + manifestUrl?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + status?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction +}; +export type AppInstalledKeySpecifier = ('app' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AppInstalledKeySpecifier)[]; +export type AppInstalledFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type AppManifestExtensionKeySpecifier = ('label' | 'mount' | 'permissions' | 'target' | 'url' | AppManifestExtensionKeySpecifier)[]; +export type AppManifestExtensionFieldPolicy = { + label?: FieldPolicy | FieldReadFunction, + mount?: FieldPolicy | FieldReadFunction, + permissions?: FieldPolicy | FieldReadFunction, + target?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction }; export type AppManifestRequiredSaleorVersionKeySpecifier = ('constraint' | 'satisfied' | AppManifestRequiredSaleorVersionKeySpecifier)[]; export type AppManifestRequiredSaleorVersionFieldPolicy = { constraint?: FieldPolicy | FieldReadFunction, satisfied?: FieldPolicy | FieldReadFunction }; -export type AppManifestWebhookKeySpecifier = ('name' | 'asyncEvents' | 'syncEvents' | 'query' | 'targetUrl' | AppManifestWebhookKeySpecifier)[]; +export type AppManifestWebhookKeySpecifier = ('asyncEvents' | 'name' | 'query' | 'syncEvents' | 'targetUrl' | AppManifestWebhookKeySpecifier)[]; export type AppManifestWebhookFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, asyncEvents?: FieldPolicy | FieldReadFunction, - syncEvents?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, query?: FieldPolicy | FieldReadFunction, + syncEvents?: FieldPolicy | FieldReadFunction, targetUrl?: FieldPolicy | FieldReadFunction }; -export type AppRetryInstallKeySpecifier = ('appErrors' | 'errors' | 'appInstallation' | AppRetryInstallKeySpecifier)[]; +export type AppRetryInstallKeySpecifier = ('appErrors' | 'appInstallation' | 'errors' | AppRetryInstallKeySpecifier)[]; export type AppRetryInstallFieldPolicy = { appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appInstallation?: FieldPolicy | FieldReadFunction + appInstallation?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction }; -export type AppStatusChangedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'app' | AppStatusChangedKeySpecifier)[]; +export type AppStatusChangedKeySpecifier = ('app' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AppStatusChangedKeySpecifier)[]; export type AppStatusChangedFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AppTokenKeySpecifier = ('id' | 'name' | 'authToken' | AppTokenKeySpecifier)[]; +export type AppTokenKeySpecifier = ('authToken' | 'id' | 'name' | AppTokenKeySpecifier)[]; export type AppTokenFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - authToken?: FieldPolicy | FieldReadFunction -}; -export type AppTokenCreateKeySpecifier = ('authToken' | 'appErrors' | 'errors' | 'appToken' | AppTokenCreateKeySpecifier)[]; -export type AppTokenCreateFieldPolicy = { authToken?: FieldPolicy | FieldReadFunction, - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appToken?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction }; -export type AppTokenDeleteKeySpecifier = ('appErrors' | 'errors' | 'appToken' | AppTokenDeleteKeySpecifier)[]; +export type AppTokenCreateKeySpecifier = ('appErrors' | 'appToken' | 'authToken' | 'errors' | AppTokenCreateKeySpecifier)[]; +export type AppTokenCreateFieldPolicy = { + appErrors?: FieldPolicy | FieldReadFunction, + appToken?: FieldPolicy | FieldReadFunction, + authToken?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type AppTokenDeleteKeySpecifier = ('appErrors' | 'appToken' | 'errors' | AppTokenDeleteKeySpecifier)[]; export type AppTokenDeleteFieldPolicy = { appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appToken?: FieldPolicy | FieldReadFunction + appToken?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction }; -export type AppTokenVerifyKeySpecifier = ('valid' | 'appErrors' | 'errors' | AppTokenVerifyKeySpecifier)[]; +export type AppTokenVerifyKeySpecifier = ('appErrors' | 'errors' | 'valid' | AppTokenVerifyKeySpecifier)[]; export type AppTokenVerifyFieldPolicy = { - valid?: FieldPolicy | FieldReadFunction, + appErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + valid?: FieldPolicy | FieldReadFunction +}; +export type AppUpdateKeySpecifier = ('app' | 'appErrors' | 'errors' | AppUpdateKeySpecifier)[]; +export type AppUpdateFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, appErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type AppUpdateKeySpecifier = ('appErrors' | 'errors' | 'app' | AppUpdateKeySpecifier)[]; -export type AppUpdateFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'app' | AppUpdatedKeySpecifier)[]; +export type AppUpdatedKeySpecifier = ('app' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AppUpdatedKeySpecifier)[]; export type AppUpdatedFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AssignNavigationKeySpecifier = ('menu' | 'menuErrors' | 'errors' | AssignNavigationKeySpecifier)[]; +export type AssignNavigationKeySpecifier = ('errors' | 'menu' | 'menuErrors' | AssignNavigationKeySpecifier)[]; export type AssignNavigationFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, menu?: FieldPolicy | FieldReadFunction, - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + menuErrors?: FieldPolicy | FieldReadFunction }; export type AssignedVariantAttributeKeySpecifier = ('attribute' | 'variantSelection' | AssignedVariantAttributeKeySpecifier)[]; export type AssignedVariantAttributeFieldPolicy = { attribute?: FieldPolicy | FieldReadFunction, variantSelection?: FieldPolicy | FieldReadFunction }; -export type AttributeKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'inputType' | 'entityType' | 'name' | 'slug' | 'type' | 'unit' | 'choices' | 'valueRequired' | 'visibleInStorefront' | 'filterableInStorefront' | 'filterableInDashboard' | 'availableInGrid' | 'storefrontSearchPosition' | 'translation' | 'withChoices' | 'productTypes' | 'productVariantTypes' | 'externalReference' | AttributeKeySpecifier)[]; +export type AttributeKeySpecifier = ('availableInGrid' | 'choices' | 'entityType' | 'externalReference' | 'filterableInDashboard' | 'filterableInStorefront' | 'id' | 'inputType' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'productTypes' | 'productVariantTypes' | 'slug' | 'storefrontSearchPosition' | 'translation' | 'type' | 'unit' | 'valueRequired' | 'visibleInStorefront' | 'withChoices' | AttributeKeySpecifier)[]; export type AttributeFieldPolicy = { + availableInGrid?: FieldPolicy | FieldReadFunction, + choices?: FieldPolicy | FieldReadFunction, + entityType?: FieldPolicy | FieldReadFunction, + externalReference?: FieldPolicy | FieldReadFunction, + filterableInDashboard?: FieldPolicy | FieldReadFunction, + filterableInStorefront?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + inputType?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - inputType?: FieldPolicy | FieldReadFunction, - entityType?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - unit?: FieldPolicy | FieldReadFunction, - choices?: FieldPolicy | FieldReadFunction, - valueRequired?: FieldPolicy | FieldReadFunction, - visibleInStorefront?: FieldPolicy | FieldReadFunction, - filterableInStorefront?: FieldPolicy | FieldReadFunction, - filterableInDashboard?: FieldPolicy | FieldReadFunction, - availableInGrid?: FieldPolicy | FieldReadFunction, - storefrontSearchPosition?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - withChoices?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, productTypes?: FieldPolicy | FieldReadFunction, productVariantTypes?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction + slug?: FieldPolicy | FieldReadFunction, + storefrontSearchPosition?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, + unit?: FieldPolicy | FieldReadFunction, + valueRequired?: FieldPolicy | FieldReadFunction, + visibleInStorefront?: FieldPolicy | FieldReadFunction, + withChoices?: FieldPolicy | FieldReadFunction }; -export type AttributeBulkDeleteKeySpecifier = ('count' | 'attributeErrors' | 'errors' | AttributeBulkDeleteKeySpecifier)[]; +export type AttributeBulkDeleteKeySpecifier = ('attributeErrors' | 'count' | 'errors' | AttributeBulkDeleteKeySpecifier)[]; export type AttributeBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, attributeErrors?: FieldPolicy | FieldReadFunction, + count?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type AttributeCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | AttributeCountableConnectionKeySpecifier)[]; +export type AttributeCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | AttributeCountableConnectionKeySpecifier)[]; export type AttributeCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type AttributeCountableEdgeKeySpecifier = ('node' | 'cursor' | AttributeCountableEdgeKeySpecifier)[]; +export type AttributeCountableEdgeKeySpecifier = ('cursor' | 'node' | AttributeCountableEdgeKeySpecifier)[]; export type AttributeCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; export type AttributeCreateKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | AttributeCreateKeySpecifier)[]; export type AttributeCreateFieldPolicy = { @@ -432,33 +432,33 @@ export type AttributeCreateFieldPolicy = { attributeErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type AttributeCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeCreatedKeySpecifier)[]; +export type AttributeCreatedKeySpecifier = ('attribute' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AttributeCreatedKeySpecifier)[]; export type AttributeCreatedFieldPolicy = { + attribute?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AttributeDeleteKeySpecifier = ('attributeErrors' | 'errors' | 'attribute' | AttributeDeleteKeySpecifier)[]; +export type AttributeDeleteKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | AttributeDeleteKeySpecifier)[]; export type AttributeDeleteFieldPolicy = { + attribute?: FieldPolicy | FieldReadFunction, attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction }; -export type AttributeDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeDeletedKeySpecifier)[]; +export type AttributeDeletedKeySpecifier = ('attribute' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AttributeDeletedKeySpecifier)[]; export type AttributeDeletedFieldPolicy = { + attribute?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AttributeErrorKeySpecifier = ('field' | 'message' | 'code' | AttributeErrorKeySpecifier)[]; +export type AttributeErrorKeySpecifier = ('code' | 'field' | 'message' | AttributeErrorKeySpecifier)[]; export type AttributeErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; export type AttributeReorderValuesKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | AttributeReorderValuesKeySpecifier)[]; export type AttributeReorderValuesFieldPolicy = { @@ -466,18 +466,18 @@ export type AttributeReorderValuesFieldPolicy = { attributeErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type AttributeTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'attribute' | AttributeTranslatableContentKeySpecifier)[]; +export type AttributeTranslatableContentKeySpecifier = ('attribute' | 'id' | 'name' | 'translation' | AttributeTranslatableContentKeySpecifier)[]; export type AttributeTranslatableContentFieldPolicy = { + attribute?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction + translation?: FieldPolicy | FieldReadFunction }; -export type AttributeTranslateKeySpecifier = ('translationErrors' | 'errors' | 'attribute' | AttributeTranslateKeySpecifier)[]; +export type AttributeTranslateKeySpecifier = ('attribute' | 'errors' | 'translationErrors' | AttributeTranslateKeySpecifier)[]; export type AttributeTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, + attribute?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction + translationErrors?: FieldPolicy | FieldReadFunction }; export type AttributeTranslationKeySpecifier = ('id' | 'language' | 'name' | AttributeTranslationKeySpecifier)[]; export type AttributeTranslationFieldPolicy = { @@ -491,268 +491,268 @@ export type AttributeUpdateFieldPolicy = { attributeErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type AttributeUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeUpdatedKeySpecifier)[]; +export type AttributeUpdatedKeySpecifier = ('attribute' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AttributeUpdatedKeySpecifier)[]; export type AttributeUpdatedFieldPolicy = { + attribute?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AttributeValueKeySpecifier = ('id' | 'name' | 'slug' | 'value' | 'translation' | 'inputType' | 'reference' | 'file' | 'richText' | 'plainText' | 'boolean' | 'date' | 'dateTime' | 'externalReference' | AttributeValueKeySpecifier)[]; +export type AttributeValueKeySpecifier = ('boolean' | 'date' | 'dateTime' | 'externalReference' | 'file' | 'id' | 'inputType' | 'name' | 'plainText' | 'reference' | 'richText' | 'slug' | 'translation' | 'value' | AttributeValueKeySpecifier)[]; export type AttributeValueFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - inputType?: FieldPolicy | FieldReadFunction, - reference?: FieldPolicy | FieldReadFunction, - file?: FieldPolicy | FieldReadFunction, - richText?: FieldPolicy | FieldReadFunction, - plainText?: FieldPolicy | FieldReadFunction, boolean?: FieldPolicy | FieldReadFunction, date?: FieldPolicy | FieldReadFunction, dateTime?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction + externalReference?: FieldPolicy | FieldReadFunction, + file?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + inputType?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + plainText?: FieldPolicy | FieldReadFunction, + reference?: FieldPolicy | FieldReadFunction, + richText?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + value?: FieldPolicy | FieldReadFunction }; -export type AttributeValueBulkDeleteKeySpecifier = ('count' | 'attributeErrors' | 'errors' | AttributeValueBulkDeleteKeySpecifier)[]; +export type AttributeValueBulkDeleteKeySpecifier = ('attributeErrors' | 'count' | 'errors' | AttributeValueBulkDeleteKeySpecifier)[]; export type AttributeValueBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, attributeErrors?: FieldPolicy | FieldReadFunction, + count?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type AttributeValueCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | AttributeValueCountableConnectionKeySpecifier)[]; +export type AttributeValueCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | AttributeValueCountableConnectionKeySpecifier)[]; export type AttributeValueCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type AttributeValueCountableEdgeKeySpecifier = ('node' | 'cursor' | AttributeValueCountableEdgeKeySpecifier)[]; +export type AttributeValueCountableEdgeKeySpecifier = ('cursor' | 'node' | AttributeValueCountableEdgeKeySpecifier)[]; export type AttributeValueCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type AttributeValueCreateKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | 'attributeValue' | AttributeValueCreateKeySpecifier)[]; +export type AttributeValueCreateKeySpecifier = ('attribute' | 'attributeErrors' | 'attributeValue' | 'errors' | AttributeValueCreateKeySpecifier)[]; export type AttributeValueCreateFieldPolicy = { attribute?: FieldPolicy | FieldReadFunction, attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction + attributeValue?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction }; -export type AttributeValueCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attributeValue' | AttributeValueCreatedKeySpecifier)[]; +export type AttributeValueCreatedKeySpecifier = ('attributeValue' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AttributeValueCreatedKeySpecifier)[]; export type AttributeValueCreatedFieldPolicy = { + attributeValue?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AttributeValueDeleteKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | 'attributeValue' | AttributeValueDeleteKeySpecifier)[]; +export type AttributeValueDeleteKeySpecifier = ('attribute' | 'attributeErrors' | 'attributeValue' | 'errors' | AttributeValueDeleteKeySpecifier)[]; export type AttributeValueDeleteFieldPolicy = { attribute?: FieldPolicy | FieldReadFunction, attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction + attributeValue?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction }; -export type AttributeValueDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attributeValue' | AttributeValueDeletedKeySpecifier)[]; +export type AttributeValueDeletedKeySpecifier = ('attributeValue' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AttributeValueDeletedKeySpecifier)[]; export type AttributeValueDeletedFieldPolicy = { + attributeValue?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type AttributeValueTranslatableContentKeySpecifier = ('id' | 'name' | 'richText' | 'plainText' | 'translation' | 'attributeValue' | 'attribute' | AttributeValueTranslatableContentKeySpecifier)[]; +export type AttributeValueTranslatableContentKeySpecifier = ('attribute' | 'attributeValue' | 'id' | 'name' | 'plainText' | 'richText' | 'translation' | AttributeValueTranslatableContentKeySpecifier)[]; export type AttributeValueTranslatableContentFieldPolicy = { + attribute?: FieldPolicy | FieldReadFunction, + attributeValue?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - richText?: FieldPolicy | FieldReadFunction, plainText?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction + richText?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction }; -export type AttributeValueTranslateKeySpecifier = ('translationErrors' | 'errors' | 'attributeValue' | AttributeValueTranslateKeySpecifier)[]; +export type AttributeValueTranslateKeySpecifier = ('attributeValue' | 'errors' | 'translationErrors' | AttributeValueTranslateKeySpecifier)[]; export type AttributeValueTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, + attributeValue?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction + translationErrors?: FieldPolicy | FieldReadFunction }; -export type AttributeValueTranslationKeySpecifier = ('id' | 'language' | 'name' | 'richText' | 'plainText' | AttributeValueTranslationKeySpecifier)[]; +export type AttributeValueTranslationKeySpecifier = ('id' | 'language' | 'name' | 'plainText' | 'richText' | AttributeValueTranslationKeySpecifier)[]; export type AttributeValueTranslationFieldPolicy = { id?: FieldPolicy | FieldReadFunction, language?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - richText?: FieldPolicy | FieldReadFunction, - plainText?: FieldPolicy | FieldReadFunction + plainText?: FieldPolicy | FieldReadFunction, + richText?: FieldPolicy | FieldReadFunction }; -export type AttributeValueUpdateKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | 'attributeValue' | AttributeValueUpdateKeySpecifier)[]; +export type AttributeValueUpdateKeySpecifier = ('attribute' | 'attributeErrors' | 'attributeValue' | 'errors' | AttributeValueUpdateKeySpecifier)[]; export type AttributeValueUpdateFieldPolicy = { attribute?: FieldPolicy | FieldReadFunction, attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction + attributeValue?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction }; -export type AttributeValueUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attributeValue' | AttributeValueUpdatedKeySpecifier)[]; +export type AttributeValueUpdatedKeySpecifier = ('attributeValue' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | AttributeValueUpdatedKeySpecifier)[]; export type AttributeValueUpdatedFieldPolicy = { + attributeValue?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type BulkProductErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'index' | 'warehouses' | 'channels' | BulkProductErrorKeySpecifier)[]; +export type BulkProductErrorKeySpecifier = ('attributes' | 'channels' | 'code' | 'field' | 'index' | 'message' | 'values' | 'warehouses' | BulkProductErrorKeySpecifier)[]; export type BulkProductErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction, + channels?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, index?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction -}; -export type BulkStockErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'index' | BulkStockErrorKeySpecifier)[]; -export type BulkStockErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, values?: FieldPolicy | FieldReadFunction, - index?: FieldPolicy | FieldReadFunction + warehouses?: FieldPolicy | FieldReadFunction }; -export type CalculateTaxesKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'taxBase' | CalculateTaxesKeySpecifier)[]; +export type BulkStockErrorKeySpecifier = ('attributes' | 'code' | 'field' | 'index' | 'message' | 'values' | BulkStockErrorKeySpecifier)[]; +export type BulkStockErrorFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + index?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + values?: FieldPolicy | FieldReadFunction +}; +export type CalculateTaxesKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'taxBase' | 'version' | CalculateTaxesKeySpecifier)[]; export type CalculateTaxesFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - taxBase?: FieldPolicy | FieldReadFunction + taxBase?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type CategoryKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'slug' | 'parent' | 'level' | 'descriptionJson' | 'ancestors' | 'products' | 'children' | 'backgroundImage' | 'translation' | CategoryKeySpecifier)[]; +export type CategoryKeySpecifier = ('ancestors' | 'backgroundImage' | 'children' | 'description' | 'descriptionJson' | 'id' | 'level' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'parent' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'products' | 'seoDescription' | 'seoTitle' | 'slug' | 'translation' | CategoryKeySpecifier)[]; export type CategoryFieldPolicy = { + ancestors?: FieldPolicy | FieldReadFunction, + backgroundImage?: FieldPolicy | FieldReadFunction, + children?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, + descriptionJson?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + level?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, parent?: FieldPolicy | FieldReadFunction, - level?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, - ancestors?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, products?: FieldPolicy | FieldReadFunction, - children?: FieldPolicy | FieldReadFunction, - backgroundImage?: FieldPolicy | FieldReadFunction, + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction, translation?: FieldPolicy | FieldReadFunction }; -export type CategoryBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | CategoryBulkDeleteKeySpecifier)[]; +export type CategoryBulkDeleteKeySpecifier = ('count' | 'errors' | 'productErrors' | CategoryBulkDeleteKeySpecifier)[]; export type CategoryBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type CategoryCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | CategoryCountableConnectionKeySpecifier)[]; +export type CategoryCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | CategoryCountableConnectionKeySpecifier)[]; export type CategoryCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type CategoryCountableEdgeKeySpecifier = ('node' | 'cursor' | CategoryCountableEdgeKeySpecifier)[]; +export type CategoryCountableEdgeKeySpecifier = ('cursor' | 'node' | CategoryCountableEdgeKeySpecifier)[]; export type CategoryCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type CategoryCreateKeySpecifier = ('productErrors' | 'errors' | 'category' | CategoryCreateKeySpecifier)[]; +export type CategoryCreateKeySpecifier = ('category' | 'errors' | 'productErrors' | CategoryCreateKeySpecifier)[]; export type CategoryCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + productErrors?: FieldPolicy | FieldReadFunction }; -export type CategoryCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'category' | CategoryCreatedKeySpecifier)[]; +export type CategoryCreatedKeySpecifier = ('category' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CategoryCreatedKeySpecifier)[]; export type CategoryCreatedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type CategoryDeleteKeySpecifier = ('productErrors' | 'errors' | 'category' | CategoryDeleteKeySpecifier)[]; +export type CategoryDeleteKeySpecifier = ('category' | 'errors' | 'productErrors' | CategoryDeleteKeySpecifier)[]; export type CategoryDeleteFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + productErrors?: FieldPolicy | FieldReadFunction }; -export type CategoryDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'category' | CategoryDeletedKeySpecifier)[]; +export type CategoryDeletedKeySpecifier = ('category' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CategoryDeletedKeySpecifier)[]; export type CategoryDeletedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type CategoryTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | 'translation' | 'category' | CategoryTranslatableContentKeySpecifier)[]; +export type CategoryTranslatableContentKeySpecifier = ('category' | 'description' | 'descriptionJson' | 'id' | 'name' | 'seoDescription' | 'seoTitle' | 'translation' | CategoryTranslatableContentKeySpecifier)[]; export type CategoryTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, descriptionJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction }; -export type CategoryTranslateKeySpecifier = ('translationErrors' | 'errors' | 'category' | CategoryTranslateKeySpecifier)[]; +export type CategoryTranslateKeySpecifier = ('category' | 'errors' | 'translationErrors' | CategoryTranslateKeySpecifier)[]; export type CategoryTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + translationErrors?: FieldPolicy | FieldReadFunction }; -export type CategoryTranslationKeySpecifier = ('id' | 'language' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | CategoryTranslationKeySpecifier)[]; +export type CategoryTranslationKeySpecifier = ('description' | 'descriptionJson' | 'id' | 'language' | 'name' | 'seoDescription' | 'seoTitle' | CategoryTranslationKeySpecifier)[]; export type CategoryTranslationFieldPolicy = { + description?: FieldPolicy | FieldReadFunction, + descriptionJson?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, language?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction }; -export type CategoryUpdateKeySpecifier = ('productErrors' | 'errors' | 'category' | CategoryUpdateKeySpecifier)[]; +export type CategoryUpdateKeySpecifier = ('category' | 'errors' | 'productErrors' | CategoryUpdateKeySpecifier)[]; export type CategoryUpdateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + productErrors?: FieldPolicy | FieldReadFunction }; -export type CategoryUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'category' | CategoryUpdatedKeySpecifier)[]; +export type CategoryUpdatedKeySpecifier = ('category' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CategoryUpdatedKeySpecifier)[]; export type CategoryUpdatedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ChannelKeySpecifier = ('id' | 'slug' | 'name' | 'isActive' | 'currencyCode' | 'hasOrders' | 'defaultCountry' | 'warehouses' | 'countries' | 'availableShippingMethodsPerCountry' | 'stockSettings' | 'orderSettings' | ChannelKeySpecifier)[]; +export type ChannelKeySpecifier = ('availableShippingMethodsPerCountry' | 'countries' | 'currencyCode' | 'defaultCountry' | 'hasOrders' | 'id' | 'isActive' | 'name' | 'orderSettings' | 'slug' | 'stockSettings' | 'warehouses' | ChannelKeySpecifier)[]; export type ChannelFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - currencyCode?: FieldPolicy | FieldReadFunction, - hasOrders?: FieldPolicy | FieldReadFunction, - defaultCountry?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction, availableShippingMethodsPerCountry?: FieldPolicy | FieldReadFunction, + countries?: FieldPolicy | FieldReadFunction, + currencyCode?: FieldPolicy | FieldReadFunction, + defaultCountry?: FieldPolicy | FieldReadFunction, + hasOrders?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + isActive?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + orderSettings?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction, stockSettings?: FieldPolicy | FieldReadFunction, - orderSettings?: FieldPolicy | FieldReadFunction + warehouses?: FieldPolicy | FieldReadFunction }; export type ChannelActivateKeySpecifier = ('channel' | 'channelErrors' | 'errors' | ChannelActivateKeySpecifier)[]; export type ChannelActivateFieldPolicy = { @@ -760,19 +760,19 @@ export type ChannelActivateFieldPolicy = { channelErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type ChannelCreateKeySpecifier = ('channelErrors' | 'errors' | 'channel' | ChannelCreateKeySpecifier)[]; +export type ChannelCreateKeySpecifier = ('channel' | 'channelErrors' | 'errors' | ChannelCreateKeySpecifier)[]; export type ChannelCreateFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, channelErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction }; -export type ChannelCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'channel' | ChannelCreatedKeySpecifier)[]; +export type ChannelCreatedKeySpecifier = ('channel' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | ChannelCreatedKeySpecifier)[]; export type ChannelCreatedFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; export type ChannelDeactivateKeySpecifier = ('channel' | 'channelErrors' | 'errors' | ChannelDeactivateKeySpecifier)[]; export type ChannelDeactivateFieldPolicy = { @@ -780,25 +780,25 @@ export type ChannelDeactivateFieldPolicy = { channelErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type ChannelDeleteKeySpecifier = ('channelErrors' | 'errors' | 'channel' | ChannelDeleteKeySpecifier)[]; +export type ChannelDeleteKeySpecifier = ('channel' | 'channelErrors' | 'errors' | ChannelDeleteKeySpecifier)[]; export type ChannelDeleteFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, channelErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction }; -export type ChannelDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'channel' | ChannelDeletedKeySpecifier)[]; +export type ChannelDeletedKeySpecifier = ('channel' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | ChannelDeletedKeySpecifier)[]; export type ChannelDeletedFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ChannelErrorKeySpecifier = ('field' | 'message' | 'code' | 'shippingZones' | 'warehouses' | ChannelErrorKeySpecifier)[]; +export type ChannelErrorKeySpecifier = ('code' | 'field' | 'message' | 'shippingZones' | 'warehouses' | ChannelErrorKeySpecifier)[]; export type ChannelErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, shippingZones?: FieldPolicy | FieldReadFunction, warehouses?: FieldPolicy | FieldReadFunction }; @@ -807,68 +807,72 @@ export type ChannelReorderWarehousesFieldPolicy = { channel?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type ChannelStatusChangedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'channel' | ChannelStatusChangedKeySpecifier)[]; +export type ChannelStatusChangedKeySpecifier = ('channel' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | ChannelStatusChangedKeySpecifier)[]; export type ChannelStatusChangedFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ChannelUpdateKeySpecifier = ('channelErrors' | 'errors' | 'channel' | ChannelUpdateKeySpecifier)[]; +export type ChannelUpdateKeySpecifier = ('channel' | 'channelErrors' | 'errors' | ChannelUpdateKeySpecifier)[]; export type ChannelUpdateFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, channelErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction }; -export type ChannelUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'channel' | ChannelUpdatedKeySpecifier)[]; +export type ChannelUpdatedKeySpecifier = ('channel' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | ChannelUpdatedKeySpecifier)[]; export type ChannelUpdatedFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type CheckoutKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'created' | 'lastChange' | 'user' | 'channel' | 'billingAddress' | 'shippingAddress' | 'note' | 'discount' | 'discountName' | 'translatedDiscountName' | 'voucherCode' | 'availableShippingMethods' | 'shippingMethods' | 'availableCollectionPoints' | 'availablePaymentGateways' | 'email' | 'giftCards' | 'isShippingRequired' | 'quantity' | 'stockReservationExpires' | 'lines' | 'shippingPrice' | 'shippingMethod' | 'deliveryMethod' | 'subtotalPrice' | 'taxExemption' | 'token' | 'totalPrice' | 'languageCode' | 'transactions' | 'displayGrossPrices' | CheckoutKeySpecifier)[]; +export type CheckoutKeySpecifier = ('authorizeStatus' | 'availableCollectionPoints' | 'availablePaymentGateways' | 'availableShippingMethods' | 'billingAddress' | 'channel' | 'chargeStatus' | 'created' | 'deliveryMethod' | 'discount' | 'discountName' | 'displayGrossPrices' | 'email' | 'giftCards' | 'id' | 'isShippingRequired' | 'languageCode' | 'lastChange' | 'lines' | 'metadata' | 'metafield' | 'metafields' | 'note' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'quantity' | 'shippingAddress' | 'shippingMethod' | 'shippingMethods' | 'shippingPrice' | 'stockReservationExpires' | 'subtotalPrice' | 'taxExemption' | 'token' | 'totalBalance' | 'totalPrice' | 'transactions' | 'translatedDiscountName' | 'updatedAt' | 'user' | 'voucherCode' | CheckoutKeySpecifier)[]; export type CheckoutFieldPolicy = { + authorizeStatus?: FieldPolicy | FieldReadFunction, + availableCollectionPoints?: FieldPolicy | FieldReadFunction, + availablePaymentGateways?: FieldPolicy | FieldReadFunction, + availableShippingMethods?: FieldPolicy | FieldReadFunction, + billingAddress?: FieldPolicy | FieldReadFunction, + channel?: FieldPolicy | FieldReadFunction, + chargeStatus?: FieldPolicy | FieldReadFunction, + created?: FieldPolicy | FieldReadFunction, + deliveryMethod?: FieldPolicy | FieldReadFunction, + discount?: FieldPolicy | FieldReadFunction, + discountName?: FieldPolicy | FieldReadFunction, + displayGrossPrices?: FieldPolicy | FieldReadFunction, + email?: FieldPolicy | FieldReadFunction, + giftCards?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + isShippingRequired?: FieldPolicy | FieldReadFunction, + languageCode?: FieldPolicy | FieldReadFunction, + lastChange?: FieldPolicy | FieldReadFunction, + lines?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - lastChange?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - billingAddress?: FieldPolicy | FieldReadFunction, - shippingAddress?: FieldPolicy | FieldReadFunction, note?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction, - discountName?: FieldPolicy | FieldReadFunction, - translatedDiscountName?: FieldPolicy | FieldReadFunction, - voucherCode?: FieldPolicy | FieldReadFunction, - availableShippingMethods?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction, - availableCollectionPoints?: FieldPolicy | FieldReadFunction, - availablePaymentGateways?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - isShippingRequired?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, quantity?: FieldPolicy | FieldReadFunction, - stockReservationExpires?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, - shippingPrice?: FieldPolicy | FieldReadFunction, + shippingAddress?: FieldPolicy | FieldReadFunction, shippingMethod?: FieldPolicy | FieldReadFunction, - deliveryMethod?: FieldPolicy | FieldReadFunction, + shippingMethods?: FieldPolicy | FieldReadFunction, + shippingPrice?: FieldPolicy | FieldReadFunction, + stockReservationExpires?: FieldPolicy | FieldReadFunction, subtotalPrice?: FieldPolicy | FieldReadFunction, taxExemption?: FieldPolicy | FieldReadFunction, token?: FieldPolicy | FieldReadFunction, + totalBalance?: FieldPolicy | FieldReadFunction, totalPrice?: FieldPolicy | FieldReadFunction, - languageCode?: FieldPolicy | FieldReadFunction, transactions?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction + translatedDiscountName?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction, + voucherCode?: FieldPolicy | FieldReadFunction }; export type CheckoutAddPromoCodeKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutAddPromoCodeKeySpecifier)[]; export type CheckoutAddPromoCodeFieldPolicy = { @@ -882,39 +886,39 @@ export type CheckoutBillingAddressUpdateFieldPolicy = { checkoutErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CheckoutCompleteKeySpecifier = ('order' | 'confirmationNeeded' | 'confirmationData' | 'checkoutErrors' | 'errors' | CheckoutCompleteKeySpecifier)[]; +export type CheckoutCompleteKeySpecifier = ('checkoutErrors' | 'confirmationData' | 'confirmationNeeded' | 'errors' | 'order' | CheckoutCompleteKeySpecifier)[]; export type CheckoutCompleteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - confirmationNeeded?: FieldPolicy | FieldReadFunction, - confirmationData?: FieldPolicy | FieldReadFunction, checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + confirmationData?: FieldPolicy | FieldReadFunction, + confirmationNeeded?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction }; -export type CheckoutCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | CheckoutCountableConnectionKeySpecifier)[]; +export type CheckoutCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | CheckoutCountableConnectionKeySpecifier)[]; export type CheckoutCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type CheckoutCountableEdgeKeySpecifier = ('node' | 'cursor' | CheckoutCountableEdgeKeySpecifier)[]; +export type CheckoutCountableEdgeKeySpecifier = ('cursor' | 'node' | CheckoutCountableEdgeKeySpecifier)[]; export type CheckoutCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type CheckoutCreateKeySpecifier = ('created' | 'checkoutErrors' | 'errors' | 'checkout' | CheckoutCreateKeySpecifier)[]; +export type CheckoutCreateKeySpecifier = ('checkout' | 'checkoutErrors' | 'created' | 'errors' | CheckoutCreateKeySpecifier)[]; export type CheckoutCreateFieldPolicy = { - created?: FieldPolicy | FieldReadFunction, + checkout?: FieldPolicy | FieldReadFunction, checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction + created?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction }; -export type CheckoutCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | CheckoutCreatedKeySpecifier)[]; +export type CheckoutCreatedKeySpecifier = ('checkout' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CheckoutCreatedKeySpecifier)[]; export type CheckoutCreatedFieldPolicy = { + checkout?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; export type CheckoutCustomerAttachKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutCustomerAttachKeySpecifier)[]; export type CheckoutCustomerAttachFieldPolicy = { @@ -939,23 +943,31 @@ export type CheckoutEmailUpdateFieldPolicy = { checkoutErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CheckoutErrorKeySpecifier = ('field' | 'message' | 'code' | 'variants' | 'lines' | 'addressType' | CheckoutErrorKeySpecifier)[]; +export type CheckoutErrorKeySpecifier = ('addressType' | 'code' | 'field' | 'lines' | 'message' | 'variants' | CheckoutErrorKeySpecifier)[]; export type CheckoutErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, + addressType?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, lines?: FieldPolicy | FieldReadFunction, - addressType?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction, + variants?: FieldPolicy | FieldReadFunction }; -export type CheckoutFilterShippingMethodsKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | 'shippingMethods' | CheckoutFilterShippingMethodsKeySpecifier)[]; +export type CheckoutFilterShippingMethodsKeySpecifier = ('checkout' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingMethods' | 'version' | CheckoutFilterShippingMethodsKeySpecifier)[]; export type CheckoutFilterShippingMethodsFieldPolicy = { + checkout?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + shippingMethods?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type CheckoutFullyPaidKeySpecifier = ('checkout' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CheckoutFullyPaidKeySpecifier)[]; +export type CheckoutFullyPaidFieldPolicy = { checkout?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; export type CheckoutLanguageCodeUpdateKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutLanguageCodeUpdateKeySpecifier)[]; export type CheckoutLanguageCodeUpdateFieldPolicy = { @@ -963,33 +975,33 @@ export type CheckoutLanguageCodeUpdateFieldPolicy = { checkoutErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CheckoutLineKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'variant' | 'quantity' | 'unitPrice' | 'undiscountedUnitPrice' | 'totalPrice' | 'undiscountedTotalPrice' | 'requiresShipping' | CheckoutLineKeySpecifier)[]; +export type CheckoutLineKeySpecifier = ('id' | 'metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'quantity' | 'requiresShipping' | 'totalPrice' | 'undiscountedTotalPrice' | 'undiscountedUnitPrice' | 'unitPrice' | 'variant' | CheckoutLineKeySpecifier)[]; export type CheckoutLineFieldPolicy = { id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - variant?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, quantity?: FieldPolicy | FieldReadFunction, - unitPrice?: FieldPolicy | FieldReadFunction, - undiscountedUnitPrice?: FieldPolicy | FieldReadFunction, + requiresShipping?: FieldPolicy | FieldReadFunction, totalPrice?: FieldPolicy | FieldReadFunction, undiscountedTotalPrice?: FieldPolicy | FieldReadFunction, - requiresShipping?: FieldPolicy | FieldReadFunction + undiscountedUnitPrice?: FieldPolicy | FieldReadFunction, + unitPrice?: FieldPolicy | FieldReadFunction, + variant?: FieldPolicy | FieldReadFunction }; -export type CheckoutLineCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | CheckoutLineCountableConnectionKeySpecifier)[]; +export type CheckoutLineCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | CheckoutLineCountableConnectionKeySpecifier)[]; export type CheckoutLineCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type CheckoutLineCountableEdgeKeySpecifier = ('node' | 'cursor' | CheckoutLineCountableEdgeKeySpecifier)[]; +export type CheckoutLineCountableEdgeKeySpecifier = ('cursor' | 'node' | CheckoutLineCountableEdgeKeySpecifier)[]; export type CheckoutLineCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; export type CheckoutLineDeleteKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutLineDeleteKeySpecifier)[]; export type CheckoutLineDeleteFieldPolicy = { @@ -1014,20 +1026,20 @@ export type CheckoutLinesUpdateFieldPolicy = { checkoutErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CheckoutMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | CheckoutMetadataUpdatedKeySpecifier)[]; +export type CheckoutMetadataUpdatedKeySpecifier = ('checkout' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CheckoutMetadataUpdatedKeySpecifier)[]; export type CheckoutMetadataUpdatedFieldPolicy = { + checkout?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type CheckoutPaymentCreateKeySpecifier = ('checkout' | 'payment' | 'paymentErrors' | 'errors' | CheckoutPaymentCreateKeySpecifier)[]; +export type CheckoutPaymentCreateKeySpecifier = ('checkout' | 'errors' | 'payment' | 'paymentErrors' | CheckoutPaymentCreateKeySpecifier)[]; export type CheckoutPaymentCreateFieldPolicy = { checkout?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, payment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + paymentErrors?: FieldPolicy | FieldReadFunction }; export type CheckoutRemovePromoCodeKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutRemovePromoCodeKeySpecifier)[]; export type CheckoutRemovePromoCodeFieldPolicy = { @@ -1047,39 +1059,39 @@ export type CheckoutShippingMethodUpdateFieldPolicy = { checkoutErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CheckoutUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | CheckoutUpdatedKeySpecifier)[]; +export type CheckoutUpdatedKeySpecifier = ('checkout' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CheckoutUpdatedKeySpecifier)[]; export type CheckoutUpdatedFieldPolicy = { + checkout?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; export type ChoiceValueKeySpecifier = ('raw' | 'verbose' | ChoiceValueKeySpecifier)[]; export type ChoiceValueFieldPolicy = { raw?: FieldPolicy | FieldReadFunction, verbose?: FieldPolicy | FieldReadFunction }; -export type CollectionKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'slug' | 'channel' | 'descriptionJson' | 'products' | 'backgroundImage' | 'translation' | 'channelListings' | CollectionKeySpecifier)[]; +export type CollectionKeySpecifier = ('backgroundImage' | 'channel' | 'channelListings' | 'description' | 'descriptionJson' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'products' | 'seoDescription' | 'seoTitle' | 'slug' | 'translation' | CollectionKeySpecifier)[]; export type CollectionFieldPolicy = { + backgroundImage?: FieldPolicy | FieldReadFunction, + channel?: FieldPolicy | FieldReadFunction, + channelListings?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, + descriptionJson?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, products?: FieldPolicy | FieldReadFunction, - backgroundImage?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction }; export type CollectionAddProductsKeySpecifier = ('collection' | 'collectionErrors' | 'errors' | CollectionAddProductsKeySpecifier)[]; export type CollectionAddProductsFieldPolicy = { @@ -1087,28 +1099,28 @@ export type CollectionAddProductsFieldPolicy = { collectionErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CollectionBulkDeleteKeySpecifier = ('count' | 'collectionErrors' | 'errors' | CollectionBulkDeleteKeySpecifier)[]; +export type CollectionBulkDeleteKeySpecifier = ('collectionErrors' | 'count' | 'errors' | CollectionBulkDeleteKeySpecifier)[]; export type CollectionBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, collectionErrors?: FieldPolicy | FieldReadFunction, + count?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CollectionChannelListingKeySpecifier = ('id' | 'publicationDate' | 'publishedAt' | 'isPublished' | 'channel' | CollectionChannelListingKeySpecifier)[]; +export type CollectionChannelListingKeySpecifier = ('channel' | 'id' | 'isPublished' | 'publicationDate' | 'publishedAt' | CollectionChannelListingKeySpecifier)[]; export type CollectionChannelListingFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - publicationDate?: FieldPolicy | FieldReadFunction, - publishedAt?: FieldPolicy | FieldReadFunction, isPublished?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + publicationDate?: FieldPolicy | FieldReadFunction, + publishedAt?: FieldPolicy | FieldReadFunction }; -export type CollectionChannelListingErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'channels' | CollectionChannelListingErrorKeySpecifier)[]; +export type CollectionChannelListingErrorKeySpecifier = ('attributes' | 'channels' | 'code' | 'field' | 'message' | 'values' | CollectionChannelListingErrorKeySpecifier)[]; export type CollectionChannelListingErrorFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + channels?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction + values?: FieldPolicy | FieldReadFunction }; export type CollectionChannelListingUpdateKeySpecifier = ('collection' | 'collectionChannelListingErrors' | 'errors' | CollectionChannelListingUpdateKeySpecifier)[]; export type CollectionChannelListingUpdateFieldPolicy = { @@ -1116,59 +1128,59 @@ export type CollectionChannelListingUpdateFieldPolicy = { collectionChannelListingErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CollectionCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | CollectionCountableConnectionKeySpecifier)[]; +export type CollectionCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | CollectionCountableConnectionKeySpecifier)[]; export type CollectionCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type CollectionCountableEdgeKeySpecifier = ('node' | 'cursor' | CollectionCountableEdgeKeySpecifier)[]; +export type CollectionCountableEdgeKeySpecifier = ('cursor' | 'node' | CollectionCountableEdgeKeySpecifier)[]; export type CollectionCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type CollectionCreateKeySpecifier = ('collectionErrors' | 'errors' | 'collection' | CollectionCreateKeySpecifier)[]; +export type CollectionCreateKeySpecifier = ('collection' | 'collectionErrors' | 'errors' | CollectionCreateKeySpecifier)[]; export type CollectionCreateFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction, collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction }; -export type CollectionCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'collection' | CollectionCreatedKeySpecifier)[]; +export type CollectionCreatedKeySpecifier = ('collection' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CollectionCreatedKeySpecifier)[]; export type CollectionCreatedFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type CollectionDeleteKeySpecifier = ('collectionErrors' | 'errors' | 'collection' | CollectionDeleteKeySpecifier)[]; +export type CollectionDeleteKeySpecifier = ('collection' | 'collectionErrors' | 'errors' | CollectionDeleteKeySpecifier)[]; export type CollectionDeleteFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction, collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction }; -export type CollectionDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'collection' | CollectionDeletedKeySpecifier)[]; +export type CollectionDeletedKeySpecifier = ('collection' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CollectionDeletedKeySpecifier)[]; export type CollectionDeletedFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type CollectionErrorKeySpecifier = ('field' | 'message' | 'products' | 'code' | CollectionErrorKeySpecifier)[]; +export type CollectionErrorKeySpecifier = ('code' | 'field' | 'message' | 'products' | CollectionErrorKeySpecifier)[]; export type CollectionErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + products?: FieldPolicy | FieldReadFunction }; -export type CollectionMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'collection' | CollectionMetadataUpdatedKeySpecifier)[]; +export type CollectionMetadataUpdatedKeySpecifier = ('collection' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CollectionMetadataUpdatedKeySpecifier)[]; export type CollectionMetadataUpdatedFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; export type CollectionRemoveProductsKeySpecifier = ('collection' | 'collectionErrors' | 'errors' | CollectionRemoveProductsKeySpecifier)[]; export type CollectionRemoveProductsFieldPolicy = { @@ -1182,66 +1194,66 @@ export type CollectionReorderProductsFieldPolicy = { collectionErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type CollectionTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | 'translation' | 'collection' | CollectionTranslatableContentKeySpecifier)[]; +export type CollectionTranslatableContentKeySpecifier = ('collection' | 'description' | 'descriptionJson' | 'id' | 'name' | 'seoDescription' | 'seoTitle' | 'translation' | CollectionTranslatableContentKeySpecifier)[]; export type CollectionTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, + collection?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, descriptionJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction }; -export type CollectionTranslateKeySpecifier = ('translationErrors' | 'errors' | 'collection' | CollectionTranslateKeySpecifier)[]; +export type CollectionTranslateKeySpecifier = ('collection' | 'errors' | 'translationErrors' | CollectionTranslateKeySpecifier)[]; export type CollectionTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, + collection?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + translationErrors?: FieldPolicy | FieldReadFunction }; -export type CollectionTranslationKeySpecifier = ('id' | 'language' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | CollectionTranslationKeySpecifier)[]; +export type CollectionTranslationKeySpecifier = ('description' | 'descriptionJson' | 'id' | 'language' | 'name' | 'seoDescription' | 'seoTitle' | CollectionTranslationKeySpecifier)[]; export type CollectionTranslationFieldPolicy = { + description?: FieldPolicy | FieldReadFunction, + descriptionJson?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, language?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction }; -export type CollectionUpdateKeySpecifier = ('collectionErrors' | 'errors' | 'collection' | CollectionUpdateKeySpecifier)[]; +export type CollectionUpdateKeySpecifier = ('collection' | 'collectionErrors' | 'errors' | CollectionUpdateKeySpecifier)[]; export type CollectionUpdateFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction, collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction }; -export type CollectionUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'collection' | CollectionUpdatedKeySpecifier)[]; +export type CollectionUpdatedKeySpecifier = ('collection' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | CollectionUpdatedKeySpecifier)[]; export type CollectionUpdatedFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ConfigurationItemKeySpecifier = ('name' | 'value' | 'type' | 'helpText' | 'label' | ConfigurationItemKeySpecifier)[]; +export type ConfigurationItemKeySpecifier = ('helpText' | 'label' | 'name' | 'type' | 'value' | ConfigurationItemKeySpecifier)[]; export type ConfigurationItemFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, helpText?: FieldPolicy | FieldReadFunction, - label?: FieldPolicy | FieldReadFunction + label?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, + value?: FieldPolicy | FieldReadFunction }; -export type ConfirmAccountKeySpecifier = ('user' | 'accountErrors' | 'errors' | ConfirmAccountKeySpecifier)[]; +export type ConfirmAccountKeySpecifier = ('accountErrors' | 'errors' | 'user' | ConfirmAccountKeySpecifier)[]; export type ConfirmAccountFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type ConfirmEmailChangeKeySpecifier = ('user' | 'accountErrors' | 'errors' | ConfirmEmailChangeKeySpecifier)[]; +export type ConfirmEmailChangeKeySpecifier = ('accountErrors' | 'errors' | 'user' | ConfirmEmailChangeKeySpecifier)[]; export type ConfirmEmailChangeFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; export type CountryDisplayKeySpecifier = ('code' | 'country' | 'vat' | CountryDisplayKeySpecifier)[]; export type CountryDisplayFieldPolicy = { @@ -1249,42 +1261,59 @@ export type CountryDisplayFieldPolicy = { country?: FieldPolicy | FieldReadFunction, vat?: FieldPolicy | FieldReadFunction }; -export type CreateTokenKeySpecifier = ('token' | 'refreshToken' | 'csrfToken' | 'user' | 'accountErrors' | 'errors' | CreateTokenKeySpecifier)[]; +export type CreateTokenKeySpecifier = ('accountErrors' | 'csrfToken' | 'errors' | 'refreshToken' | 'token' | 'user' | CreateTokenKeySpecifier)[]; export type CreateTokenFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - refreshToken?: FieldPolicy | FieldReadFunction, - csrfToken?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + csrfToken?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + refreshToken?: FieldPolicy | FieldReadFunction, + token?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type CreditCardKeySpecifier = ('brand' | 'firstDigits' | 'lastDigits' | 'expMonth' | 'expYear' | CreditCardKeySpecifier)[]; +export type CreditCardKeySpecifier = ('brand' | 'expMonth' | 'expYear' | 'firstDigits' | 'lastDigits' | CreditCardKeySpecifier)[]; export type CreditCardFieldPolicy = { brand?: FieldPolicy | FieldReadFunction, - firstDigits?: FieldPolicy | FieldReadFunction, - lastDigits?: FieldPolicy | FieldReadFunction, expMonth?: FieldPolicy | FieldReadFunction, - expYear?: FieldPolicy | FieldReadFunction + expYear?: FieldPolicy | FieldReadFunction, + firstDigits?: FieldPolicy | FieldReadFunction, + lastDigits?: FieldPolicy | FieldReadFunction }; -export type CustomerBulkDeleteKeySpecifier = ('count' | 'accountErrors' | 'errors' | CustomerBulkDeleteKeySpecifier)[]; +export type CustomerBulkDeleteKeySpecifier = ('accountErrors' | 'count' | 'errors' | CustomerBulkDeleteKeySpecifier)[]; export type CustomerBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, + count?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type CustomerBulkResultKeySpecifier = ('customer' | 'errors' | CustomerBulkResultKeySpecifier)[]; +export type CustomerBulkResultFieldPolicy = { + customer?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type CustomerBulkUpdateKeySpecifier = ('count' | 'errors' | 'results' | CustomerBulkUpdateKeySpecifier)[]; +export type CustomerBulkUpdateFieldPolicy = { + count?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + results?: FieldPolicy | FieldReadFunction +}; +export type CustomerBulkUpdateErrorKeySpecifier = ('code' | 'message' | 'path' | CustomerBulkUpdateErrorKeySpecifier)[]; +export type CustomerBulkUpdateErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + path?: FieldPolicy | FieldReadFunction +}; export type CustomerCreateKeySpecifier = ('accountErrors' | 'errors' | 'user' | CustomerCreateKeySpecifier)[]; export type CustomerCreateFieldPolicy = { accountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type CustomerCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | CustomerCreatedKeySpecifier)[]; +export type CustomerCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'user' | 'version' | CustomerCreatedKeySpecifier)[]; export type CustomerCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; export type CustomerDeleteKeySpecifier = ('accountErrors' | 'errors' | 'user' | CustomerDeleteKeySpecifier)[]; export type CustomerDeleteFieldPolicy = { @@ -1292,25 +1321,25 @@ export type CustomerDeleteFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type CustomerEventKeySpecifier = ('id' | 'date' | 'type' | 'user' | 'app' | 'message' | 'count' | 'order' | 'orderLine' | CustomerEventKeySpecifier)[]; +export type CustomerEventKeySpecifier = ('app' | 'count' | 'date' | 'id' | 'message' | 'order' | 'orderLine' | 'type' | 'user' | CustomerEventKeySpecifier)[]; export type CustomerEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, app?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, count?: FieldPolicy | FieldReadFunction, + date?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction + orderLine?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type CustomerMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | CustomerMetadataUpdatedKeySpecifier)[]; +export type CustomerMetadataUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'user' | 'version' | CustomerMetadataUpdatedKeySpecifier)[]; export type CustomerMetadataUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; export type CustomerUpdateKeySpecifier = ('accountErrors' | 'errors' | 'user' | CustomerUpdateKeySpecifier)[]; export type CustomerUpdateFieldPolicy = { @@ -1318,101 +1347,101 @@ export type CustomerUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type CustomerUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | CustomerUpdatedKeySpecifier)[]; +export type CustomerUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'user' | 'version' | CustomerUpdatedKeySpecifier)[]; export type CustomerUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; export type DeactivateAllUserTokensKeySpecifier = ('accountErrors' | 'errors' | DeactivateAllUserTokensKeySpecifier)[]; export type DeactivateAllUserTokensFieldPolicy = { accountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type DeleteMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | DeleteMetadataKeySpecifier)[]; +export type DeleteMetadataKeySpecifier = ('errors' | 'item' | 'metadataErrors' | DeleteMetadataKeySpecifier)[]; export type DeleteMetadataFieldPolicy = { - metadataErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - item?: FieldPolicy | FieldReadFunction + item?: FieldPolicy | FieldReadFunction, + metadataErrors?: FieldPolicy | FieldReadFunction }; -export type DeletePrivateMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | DeletePrivateMetadataKeySpecifier)[]; +export type DeletePrivateMetadataKeySpecifier = ('errors' | 'item' | 'metadataErrors' | DeletePrivateMetadataKeySpecifier)[]; export type DeletePrivateMetadataFieldPolicy = { - metadataErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - item?: FieldPolicy | FieldReadFunction + item?: FieldPolicy | FieldReadFunction, + metadataErrors?: FieldPolicy | FieldReadFunction }; -export type DigitalContentKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'useDefaultSettings' | 'automaticFulfillment' | 'contentFile' | 'maxDownloads' | 'urlValidDays' | 'urls' | 'productVariant' | DigitalContentKeySpecifier)[]; +export type DigitalContentKeySpecifier = ('automaticFulfillment' | 'contentFile' | 'id' | 'maxDownloads' | 'metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'productVariant' | 'urlValidDays' | 'urls' | 'useDefaultSettings' | DigitalContentKeySpecifier)[]; export type DigitalContentFieldPolicy = { + automaticFulfillment?: FieldPolicy | FieldReadFunction, + contentFile?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + maxDownloads?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - useDefaultSettings?: FieldPolicy | FieldReadFunction, - automaticFulfillment?: FieldPolicy | FieldReadFunction, - contentFile?: FieldPolicy | FieldReadFunction, - maxDownloads?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, urlValidDays?: FieldPolicy | FieldReadFunction, urls?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction + useDefaultSettings?: FieldPolicy | FieldReadFunction }; -export type DigitalContentCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | DigitalContentCountableConnectionKeySpecifier)[]; +export type DigitalContentCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | DigitalContentCountableConnectionKeySpecifier)[]; export type DigitalContentCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type DigitalContentCountableEdgeKeySpecifier = ('node' | 'cursor' | DigitalContentCountableEdgeKeySpecifier)[]; +export type DigitalContentCountableEdgeKeySpecifier = ('cursor' | 'node' | DigitalContentCountableEdgeKeySpecifier)[]; export type DigitalContentCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type DigitalContentCreateKeySpecifier = ('variant' | 'content' | 'productErrors' | 'errors' | DigitalContentCreateKeySpecifier)[]; +export type DigitalContentCreateKeySpecifier = ('content' | 'errors' | 'productErrors' | 'variant' | DigitalContentCreateKeySpecifier)[]; export type DigitalContentCreateFieldPolicy = { - variant?: FieldPolicy | FieldReadFunction, content?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + variant?: FieldPolicy | FieldReadFunction }; -export type DigitalContentDeleteKeySpecifier = ('variant' | 'productErrors' | 'errors' | DigitalContentDeleteKeySpecifier)[]; +export type DigitalContentDeleteKeySpecifier = ('errors' | 'productErrors' | 'variant' | DigitalContentDeleteKeySpecifier)[]; export type DigitalContentDeleteFieldPolicy = { - variant?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + variant?: FieldPolicy | FieldReadFunction }; -export type DigitalContentUpdateKeySpecifier = ('variant' | 'content' | 'productErrors' | 'errors' | DigitalContentUpdateKeySpecifier)[]; +export type DigitalContentUpdateKeySpecifier = ('content' | 'errors' | 'productErrors' | 'variant' | DigitalContentUpdateKeySpecifier)[]; export type DigitalContentUpdateFieldPolicy = { - variant?: FieldPolicy | FieldReadFunction, content?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + variant?: FieldPolicy | FieldReadFunction }; -export type DigitalContentUrlKeySpecifier = ('id' | 'content' | 'created' | 'downloadNum' | 'url' | 'token' | DigitalContentUrlKeySpecifier)[]; +export type DigitalContentUrlKeySpecifier = ('content' | 'created' | 'downloadNum' | 'id' | 'token' | 'url' | DigitalContentUrlKeySpecifier)[]; export type DigitalContentUrlFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, content?: FieldPolicy | FieldReadFunction, created?: FieldPolicy | FieldReadFunction, downloadNum?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction, + token?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction }; -export type DigitalContentUrlCreateKeySpecifier = ('productErrors' | 'errors' | 'digitalContentUrl' | DigitalContentUrlCreateKeySpecifier)[]; +export type DigitalContentUrlCreateKeySpecifier = ('digitalContentUrl' | 'errors' | 'productErrors' | DigitalContentUrlCreateKeySpecifier)[]; export type DigitalContentUrlCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, + digitalContentUrl?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - digitalContentUrl?: FieldPolicy | FieldReadFunction + productErrors?: FieldPolicy | FieldReadFunction }; -export type DiscountErrorKeySpecifier = ('field' | 'message' | 'products' | 'code' | 'channels' | DiscountErrorKeySpecifier)[]; +export type DiscountErrorKeySpecifier = ('channels' | 'code' | 'field' | 'message' | 'products' | DiscountErrorKeySpecifier)[]; export type DiscountErrorFieldPolicy = { + channels?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction + products?: FieldPolicy | FieldReadFunction }; export type DomainKeySpecifier = ('host' | 'sslEnabled' | 'url' | DomainKeySpecifier)[]; export type DomainFieldPolicy = { @@ -1420,388 +1449,388 @@ export type DomainFieldPolicy = { sslEnabled?: FieldPolicy | FieldReadFunction, url?: FieldPolicy | FieldReadFunction }; -export type DraftOrderBulkDeleteKeySpecifier = ('count' | 'orderErrors' | 'errors' | DraftOrderBulkDeleteKeySpecifier)[]; +export type DraftOrderBulkDeleteKeySpecifier = ('count' | 'errors' | 'orderErrors' | DraftOrderBulkDeleteKeySpecifier)[]; export type DraftOrderBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderCompleteKeySpecifier = ('order' | 'orderErrors' | 'errors' | DraftOrderCompleteKeySpecifier)[]; -export type DraftOrderCompleteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderCreateKeySpecifier = ('orderErrors' | 'errors' | 'order' | DraftOrderCreateKeySpecifier)[]; -export type DraftOrderCreateFieldPolicy = { - orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; -export type DraftOrderCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | DraftOrderCreatedKeySpecifier)[]; +export type DraftOrderCompleteKeySpecifier = ('errors' | 'order' | 'orderErrors' | DraftOrderCompleteKeySpecifier)[]; +export type DraftOrderCompleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type DraftOrderCreateKeySpecifier = ('errors' | 'order' | 'orderErrors' | DraftOrderCreateKeySpecifier)[]; +export type DraftOrderCreateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type DraftOrderCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | DraftOrderCreatedKeySpecifier)[]; export type DraftOrderCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type DraftOrderDeleteKeySpecifier = ('orderErrors' | 'errors' | 'order' | DraftOrderDeleteKeySpecifier)[]; +export type DraftOrderDeleteKeySpecifier = ('errors' | 'order' | 'orderErrors' | DraftOrderDeleteKeySpecifier)[]; export type DraftOrderDeleteFieldPolicy = { - orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction }; -export type DraftOrderDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | DraftOrderDeletedKeySpecifier)[]; +export type DraftOrderDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | DraftOrderDeletedKeySpecifier)[]; export type DraftOrderDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type DraftOrderLinesBulkDeleteKeySpecifier = ('count' | 'orderErrors' | 'errors' | DraftOrderLinesBulkDeleteKeySpecifier)[]; +export type DraftOrderLinesBulkDeleteKeySpecifier = ('count' | 'errors' | 'orderErrors' | DraftOrderLinesBulkDeleteKeySpecifier)[]; export type DraftOrderLinesBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderUpdateKeySpecifier = ('orderErrors' | 'errors' | 'order' | DraftOrderUpdateKeySpecifier)[]; -export type DraftOrderUpdateFieldPolicy = { - orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; -export type DraftOrderUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | DraftOrderUpdatedKeySpecifier)[]; +export type DraftOrderUpdateKeySpecifier = ('errors' | 'order' | 'orderErrors' | DraftOrderUpdateKeySpecifier)[]; +export type DraftOrderUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type DraftOrderUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | DraftOrderUpdatedKeySpecifier)[]; export type DraftOrderUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type EventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | EventKeySpecifier)[]; +export type EventKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | EventKeySpecifier)[]; export type EventFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type EventDeliveryKeySpecifier = ('id' | 'createdAt' | 'status' | 'eventType' | 'attempts' | 'payload' | EventDeliveryKeySpecifier)[]; +export type EventDeliveryKeySpecifier = ('attempts' | 'createdAt' | 'eventType' | 'id' | 'payload' | 'status' | EventDeliveryKeySpecifier)[]; export type EventDeliveryFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - eventType?: FieldPolicy | FieldReadFunction, attempts?: FieldPolicy | FieldReadFunction, - payload?: FieldPolicy | FieldReadFunction -}; -export type EventDeliveryAttemptKeySpecifier = ('id' | 'createdAt' | 'taskId' | 'duration' | 'response' | 'responseHeaders' | 'responseStatusCode' | 'requestHeaders' | 'status' | EventDeliveryAttemptKeySpecifier)[]; -export type EventDeliveryAttemptFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, createdAt?: FieldPolicy | FieldReadFunction, - taskId?: FieldPolicy | FieldReadFunction, + eventType?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + payload?: FieldPolicy | FieldReadFunction, + status?: FieldPolicy | FieldReadFunction +}; +export type EventDeliveryAttemptKeySpecifier = ('createdAt' | 'duration' | 'id' | 'requestHeaders' | 'response' | 'responseHeaders' | 'responseStatusCode' | 'status' | 'taskId' | EventDeliveryAttemptKeySpecifier)[]; +export type EventDeliveryAttemptFieldPolicy = { + createdAt?: FieldPolicy | FieldReadFunction, duration?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + requestHeaders?: FieldPolicy | FieldReadFunction, response?: FieldPolicy | FieldReadFunction, responseHeaders?: FieldPolicy | FieldReadFunction, responseStatusCode?: FieldPolicy | FieldReadFunction, - requestHeaders?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction + status?: FieldPolicy | FieldReadFunction, + taskId?: FieldPolicy | FieldReadFunction }; -export type EventDeliveryAttemptCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | EventDeliveryAttemptCountableConnectionKeySpecifier)[]; +export type EventDeliveryAttemptCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | EventDeliveryAttemptCountableConnectionKeySpecifier)[]; export type EventDeliveryAttemptCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type EventDeliveryAttemptCountableEdgeKeySpecifier = ('node' | 'cursor' | EventDeliveryAttemptCountableEdgeKeySpecifier)[]; +export type EventDeliveryAttemptCountableEdgeKeySpecifier = ('cursor' | 'node' | EventDeliveryAttemptCountableEdgeKeySpecifier)[]; export type EventDeliveryAttemptCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type EventDeliveryCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | EventDeliveryCountableConnectionKeySpecifier)[]; +export type EventDeliveryCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | EventDeliveryCountableConnectionKeySpecifier)[]; export type EventDeliveryCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type EventDeliveryCountableEdgeKeySpecifier = ('node' | 'cursor' | EventDeliveryCountableEdgeKeySpecifier)[]; +export type EventDeliveryCountableEdgeKeySpecifier = ('cursor' | 'node' | EventDeliveryCountableEdgeKeySpecifier)[]; export type EventDeliveryCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; export type EventDeliveryRetryKeySpecifier = ('delivery' | 'errors' | EventDeliveryRetryKeySpecifier)[]; export type EventDeliveryRetryFieldPolicy = { delivery?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type ExportErrorKeySpecifier = ('field' | 'message' | 'code' | ExportErrorKeySpecifier)[]; +export type ExportErrorKeySpecifier = ('code' | 'field' | 'message' | ExportErrorKeySpecifier)[]; export type ExportErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type ExportEventKeySpecifier = ('id' | 'date' | 'type' | 'user' | 'app' | 'message' | ExportEventKeySpecifier)[]; -export type ExportEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction }; -export type ExportFileKeySpecifier = ('id' | 'status' | 'createdAt' | 'updatedAt' | 'message' | 'url' | 'events' | 'user' | 'app' | ExportFileKeySpecifier)[]; -export type ExportFileFieldPolicy = { +export type ExportEventKeySpecifier = ('app' | 'date' | 'id' | 'message' | 'type' | 'user' | ExportEventKeySpecifier)[]; +export type ExportEventFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, + date?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction + type?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type ExportFileCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ExportFileCountableConnectionKeySpecifier)[]; +export type ExportFileKeySpecifier = ('app' | 'createdAt' | 'events' | 'id' | 'message' | 'status' | 'updatedAt' | 'url' | 'user' | ExportFileKeySpecifier)[]; +export type ExportFileFieldPolicy = { + app?: FieldPolicy | FieldReadFunction, + createdAt?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + status?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; +export type ExportFileCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | ExportFileCountableConnectionKeySpecifier)[]; export type ExportFileCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type ExportFileCountableEdgeKeySpecifier = ('node' | 'cursor' | ExportFileCountableEdgeKeySpecifier)[]; +export type ExportFileCountableEdgeKeySpecifier = ('cursor' | 'node' | ExportFileCountableEdgeKeySpecifier)[]; export type ExportFileCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type ExportGiftCardsKeySpecifier = ('exportFile' | 'errors' | ExportGiftCardsKeySpecifier)[]; +export type ExportGiftCardsKeySpecifier = ('errors' | 'exportFile' | ExportGiftCardsKeySpecifier)[]; export type ExportGiftCardsFieldPolicy = { - exportFile?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + exportFile?: FieldPolicy | FieldReadFunction }; -export type ExportProductsKeySpecifier = ('exportFile' | 'exportErrors' | 'errors' | ExportProductsKeySpecifier)[]; +export type ExportProductsKeySpecifier = ('errors' | 'exportErrors' | 'exportFile' | ExportProductsKeySpecifier)[]; export type ExportProductsFieldPolicy = { - exportFile?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, exportErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + exportFile?: FieldPolicy | FieldReadFunction }; export type ExternalAuthenticationKeySpecifier = ('id' | 'name' | ExternalAuthenticationKeySpecifier)[]; export type ExternalAuthenticationFieldPolicy = { id?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; -export type ExternalAuthenticationUrlKeySpecifier = ('authenticationData' | 'accountErrors' | 'errors' | ExternalAuthenticationUrlKeySpecifier)[]; +export type ExternalAuthenticationUrlKeySpecifier = ('accountErrors' | 'authenticationData' | 'errors' | ExternalAuthenticationUrlKeySpecifier)[]; export type ExternalAuthenticationUrlFieldPolicy = { + accountErrors?: FieldPolicy | FieldReadFunction, authenticationData?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type ExternalLogoutKeySpecifier = ('logoutData' | 'accountErrors' | 'errors' | ExternalLogoutKeySpecifier)[]; +export type ExternalLogoutKeySpecifier = ('accountErrors' | 'errors' | 'logoutData' | ExternalLogoutKeySpecifier)[]; export type ExternalLogoutFieldPolicy = { - logoutData?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + logoutData?: FieldPolicy | FieldReadFunction }; -export type ExternalNotificationErrorKeySpecifier = ('field' | 'message' | 'code' | ExternalNotificationErrorKeySpecifier)[]; +export type ExternalNotificationErrorKeySpecifier = ('code' | 'field' | 'message' | ExternalNotificationErrorKeySpecifier)[]; export type ExternalNotificationErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; export type ExternalNotificationTriggerKeySpecifier = ('errors' | ExternalNotificationTriggerKeySpecifier)[]; export type ExternalNotificationTriggerFieldPolicy = { errors?: FieldPolicy | FieldReadFunction }; -export type ExternalObtainAccessTokensKeySpecifier = ('token' | 'refreshToken' | 'csrfToken' | 'user' | 'accountErrors' | 'errors' | ExternalObtainAccessTokensKeySpecifier)[]; +export type ExternalObtainAccessTokensKeySpecifier = ('accountErrors' | 'csrfToken' | 'errors' | 'refreshToken' | 'token' | 'user' | ExternalObtainAccessTokensKeySpecifier)[]; export type ExternalObtainAccessTokensFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - refreshToken?: FieldPolicy | FieldReadFunction, - csrfToken?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + csrfToken?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + refreshToken?: FieldPolicy | FieldReadFunction, + token?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type ExternalRefreshKeySpecifier = ('token' | 'refreshToken' | 'csrfToken' | 'user' | 'accountErrors' | 'errors' | ExternalRefreshKeySpecifier)[]; +export type ExternalRefreshKeySpecifier = ('accountErrors' | 'csrfToken' | 'errors' | 'refreshToken' | 'token' | 'user' | ExternalRefreshKeySpecifier)[]; export type ExternalRefreshFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - refreshToken?: FieldPolicy | FieldReadFunction, + accountErrors?: FieldPolicy | FieldReadFunction, csrfToken?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + refreshToken?: FieldPolicy | FieldReadFunction, + token?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type ExternalVerifyKeySpecifier = ('user' | 'isValid' | 'verifyData' | 'accountErrors' | 'errors' | ExternalVerifyKeySpecifier)[]; +export type ExternalVerifyKeySpecifier = ('accountErrors' | 'errors' | 'isValid' | 'user' | 'verifyData' | ExternalVerifyKeySpecifier)[]; export type ExternalVerifyFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - isValid?: FieldPolicy | FieldReadFunction, - verifyData?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + isValid?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction, + verifyData?: FieldPolicy | FieldReadFunction }; -export type FileKeySpecifier = ('url' | 'contentType' | FileKeySpecifier)[]; +export type FileKeySpecifier = ('contentType' | 'url' | FileKeySpecifier)[]; export type FileFieldPolicy = { - url?: FieldPolicy | FieldReadFunction, - contentType?: FieldPolicy | FieldReadFunction + contentType?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction }; -export type FileUploadKeySpecifier = ('uploadedFile' | 'uploadErrors' | 'errors' | FileUploadKeySpecifier)[]; +export type FileUploadKeySpecifier = ('errors' | 'uploadErrors' | 'uploadedFile' | FileUploadKeySpecifier)[]; export type FileUploadFieldPolicy = { - uploadedFile?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, uploadErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + uploadedFile?: FieldPolicy | FieldReadFunction }; -export type FulfillmentKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'fulfillmentOrder' | 'status' | 'trackingNumber' | 'created' | 'lines' | 'statusDisplay' | 'warehouse' | FulfillmentKeySpecifier)[]; +export type FulfillmentKeySpecifier = ('created' | 'fulfillmentOrder' | 'id' | 'lines' | 'metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'status' | 'statusDisplay' | 'trackingNumber' | 'warehouse' | FulfillmentKeySpecifier)[]; export type FulfillmentFieldPolicy = { + created?: FieldPolicy | FieldReadFunction, + fulfillmentOrder?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + lines?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - fulfillmentOrder?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, status?: FieldPolicy | FieldReadFunction, - trackingNumber?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, statusDisplay?: FieldPolicy | FieldReadFunction, + trackingNumber?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type FulfillmentApproveKeySpecifier = ('fulfillment' | 'order' | 'orderErrors' | 'errors' | FulfillmentApproveKeySpecifier)[]; +export type FulfillmentApproveKeySpecifier = ('errors' | 'fulfillment' | 'order' | 'orderErrors' | FulfillmentApproveKeySpecifier)[]; export type FulfillmentApproveFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, fulfillment?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; -export type FulfillmentApprovedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'fulfillment' | 'order' | FulfillmentApprovedKeySpecifier)[]; +export type FulfillmentApprovedKeySpecifier = ('fulfillment' | 'issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | FulfillmentApprovedKeySpecifier)[]; export type FulfillmentApprovedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type FulfillmentCancelKeySpecifier = ('fulfillment' | 'order' | 'orderErrors' | 'errors' | FulfillmentCancelKeySpecifier)[]; +export type FulfillmentCancelKeySpecifier = ('errors' | 'fulfillment' | 'order' | 'orderErrors' | FulfillmentCancelKeySpecifier)[]; export type FulfillmentCancelFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, fulfillment?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; -export type FulfillmentCanceledKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'fulfillment' | 'order' | FulfillmentCanceledKeySpecifier)[]; +export type FulfillmentCanceledKeySpecifier = ('fulfillment' | 'issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | FulfillmentCanceledKeySpecifier)[]; export type FulfillmentCanceledFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type FulfillmentCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'fulfillment' | 'order' | FulfillmentCreatedKeySpecifier)[]; +export type FulfillmentCreatedKeySpecifier = ('fulfillment' | 'issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | FulfillmentCreatedKeySpecifier)[]; export type FulfillmentCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type FulfillmentLineKeySpecifier = ('id' | 'quantity' | 'orderLine' | FulfillmentLineKeySpecifier)[]; +export type FulfillmentLineKeySpecifier = ('id' | 'orderLine' | 'quantity' | FulfillmentLineKeySpecifier)[]; export type FulfillmentLineFieldPolicy = { id?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction + orderLine?: FieldPolicy | FieldReadFunction, + quantity?: FieldPolicy | FieldReadFunction }; -export type FulfillmentMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'fulfillment' | 'order' | FulfillmentMetadataUpdatedKeySpecifier)[]; +export type FulfillmentMetadataUpdatedKeySpecifier = ('fulfillment' | 'issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | FulfillmentMetadataUpdatedKeySpecifier)[]; export type FulfillmentMetadataUpdatedFieldPolicy = { + fulfillment?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type FulfillmentRefundProductsKeySpecifier = ('fulfillment' | 'order' | 'orderErrors' | 'errors' | FulfillmentRefundProductsKeySpecifier)[]; +export type FulfillmentRefundProductsKeySpecifier = ('errors' | 'fulfillment' | 'order' | 'orderErrors' | FulfillmentRefundProductsKeySpecifier)[]; export type FulfillmentRefundProductsFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, fulfillment?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; -export type FulfillmentReturnProductsKeySpecifier = ('returnFulfillment' | 'replaceFulfillment' | 'order' | 'replaceOrder' | 'orderErrors' | 'errors' | FulfillmentReturnProductsKeySpecifier)[]; +export type FulfillmentReturnProductsKeySpecifier = ('errors' | 'order' | 'orderErrors' | 'replaceFulfillment' | 'replaceOrder' | 'returnFulfillment' | FulfillmentReturnProductsKeySpecifier)[]; export type FulfillmentReturnProductsFieldPolicy = { - returnFulfillment?: FieldPolicy | FieldReadFunction, - replaceFulfillment?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - replaceOrder?: FieldPolicy | FieldReadFunction, orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + replaceFulfillment?: FieldPolicy | FieldReadFunction, + replaceOrder?: FieldPolicy | FieldReadFunction, + returnFulfillment?: FieldPolicy | FieldReadFunction }; -export type FulfillmentUpdateTrackingKeySpecifier = ('fulfillment' | 'order' | 'orderErrors' | 'errors' | FulfillmentUpdateTrackingKeySpecifier)[]; +export type FulfillmentUpdateTrackingKeySpecifier = ('errors' | 'fulfillment' | 'order' | 'orderErrors' | FulfillmentUpdateTrackingKeySpecifier)[]; export type FulfillmentUpdateTrackingFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, fulfillment?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; export type GatewayConfigLineKeySpecifier = ('field' | 'value' | GatewayConfigLineKeySpecifier)[]; export type GatewayConfigLineFieldPolicy = { field?: FieldPolicy | FieldReadFunction, value?: FieldPolicy | FieldReadFunction }; -export type GiftCardKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'displayCode' | 'last4CodeChars' | 'code' | 'created' | 'createdBy' | 'usedBy' | 'createdByEmail' | 'usedByEmail' | 'lastUsedOn' | 'expiryDate' | 'app' | 'product' | 'events' | 'tags' | 'boughtInChannel' | 'isActive' | 'initialBalance' | 'currentBalance' | 'user' | 'endDate' | 'startDate' | GiftCardKeySpecifier)[]; +export type GiftCardKeySpecifier = ('app' | 'boughtInChannel' | 'code' | 'created' | 'createdBy' | 'createdByEmail' | 'currentBalance' | 'displayCode' | 'endDate' | 'events' | 'expiryDate' | 'id' | 'initialBalance' | 'isActive' | 'last4CodeChars' | 'lastUsedOn' | 'metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'product' | 'startDate' | 'tags' | 'usedBy' | 'usedByEmail' | 'user' | GiftCardKeySpecifier)[]; export type GiftCardFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - displayCode?: FieldPolicy | FieldReadFunction, - last4CodeChars?: FieldPolicy | FieldReadFunction, + app?: FieldPolicy | FieldReadFunction, + boughtInChannel?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction, created?: FieldPolicy | FieldReadFunction, createdBy?: FieldPolicy | FieldReadFunction, - usedBy?: FieldPolicy | FieldReadFunction, createdByEmail?: FieldPolicy | FieldReadFunction, - usedByEmail?: FieldPolicy | FieldReadFunction, - lastUsedOn?: FieldPolicy | FieldReadFunction, - expiryDate?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - tags?: FieldPolicy | FieldReadFunction, - boughtInChannel?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - initialBalance?: FieldPolicy | FieldReadFunction, currentBalance?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, + displayCode?: FieldPolicy | FieldReadFunction, endDate?: FieldPolicy | FieldReadFunction, - startDate?: FieldPolicy | FieldReadFunction + events?: FieldPolicy | FieldReadFunction, + expiryDate?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + initialBalance?: FieldPolicy | FieldReadFunction, + isActive?: FieldPolicy | FieldReadFunction, + last4CodeChars?: FieldPolicy | FieldReadFunction, + lastUsedOn?: FieldPolicy | FieldReadFunction, + metadata?: FieldPolicy | FieldReadFunction, + metafield?: FieldPolicy | FieldReadFunction, + metafields?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + product?: FieldPolicy | FieldReadFunction, + startDate?: FieldPolicy | FieldReadFunction, + tags?: FieldPolicy | FieldReadFunction, + usedBy?: FieldPolicy | FieldReadFunction, + usedByEmail?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type GiftCardActivateKeySpecifier = ('giftCard' | 'giftCardErrors' | 'errors' | GiftCardActivateKeySpecifier)[]; +export type GiftCardActivateKeySpecifier = ('errors' | 'giftCard' | 'giftCardErrors' | GiftCardActivateKeySpecifier)[]; export type GiftCardActivateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, giftCard?: FieldPolicy | FieldReadFunction, - giftCardErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + giftCardErrors?: FieldPolicy | FieldReadFunction }; -export type GiftCardAddNoteKeySpecifier = ('giftCard' | 'event' | 'errors' | GiftCardAddNoteKeySpecifier)[]; +export type GiftCardAddNoteKeySpecifier = ('errors' | 'event' | 'giftCard' | GiftCardAddNoteKeySpecifier)[]; export type GiftCardAddNoteFieldPolicy = { - giftCard?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, event?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + giftCard?: FieldPolicy | FieldReadFunction }; export type GiftCardBulkActivateKeySpecifier = ('count' | 'errors' | GiftCardBulkActivateKeySpecifier)[]; export type GiftCardBulkActivateFieldPolicy = { count?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type GiftCardBulkCreateKeySpecifier = ('count' | 'giftCards' | 'errors' | GiftCardBulkCreateKeySpecifier)[]; +export type GiftCardBulkCreateKeySpecifier = ('count' | 'errors' | 'giftCards' | GiftCardBulkCreateKeySpecifier)[]; export type GiftCardBulkCreateFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + giftCards?: FieldPolicy | FieldReadFunction }; export type GiftCardBulkDeactivateKeySpecifier = ('count' | 'errors' | GiftCardBulkDeactivateKeySpecifier)[]; export type GiftCardBulkDeactivateFieldPolicy = { @@ -1813,277 +1842,287 @@ export type GiftCardBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type GiftCardCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | GiftCardCountableConnectionKeySpecifier)[]; +export type GiftCardCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | GiftCardCountableConnectionKeySpecifier)[]; export type GiftCardCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type GiftCardCountableEdgeKeySpecifier = ('node' | 'cursor' | GiftCardCountableEdgeKeySpecifier)[]; +export type GiftCardCountableEdgeKeySpecifier = ('cursor' | 'node' | GiftCardCountableEdgeKeySpecifier)[]; export type GiftCardCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type GiftCardCreateKeySpecifier = ('giftCardErrors' | 'errors' | 'giftCard' | GiftCardCreateKeySpecifier)[]; +export type GiftCardCreateKeySpecifier = ('errors' | 'giftCard' | 'giftCardErrors' | GiftCardCreateKeySpecifier)[]; export type GiftCardCreateFieldPolicy = { - giftCardErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardCreatedKeySpecifier)[]; -export type GiftCardCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardDeactivateKeySpecifier = ('giftCard' | 'giftCardErrors' | 'errors' | GiftCardDeactivateKeySpecifier)[]; -export type GiftCardDeactivateFieldPolicy = { giftCard?: FieldPolicy | FieldReadFunction, - giftCardErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + giftCardErrors?: FieldPolicy | FieldReadFunction }; -export type GiftCardDeleteKeySpecifier = ('giftCardErrors' | 'errors' | 'giftCard' | GiftCardDeleteKeySpecifier)[]; -export type GiftCardDeleteFieldPolicy = { - giftCardErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardDeletedKeySpecifier)[]; -export type GiftCardDeletedFieldPolicy = { +export type GiftCardCreatedKeySpecifier = ('giftCard' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | GiftCardCreatedKeySpecifier)[]; +export type GiftCardCreatedFieldPolicy = { + giftCard?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type GiftCardErrorKeySpecifier = ('field' | 'message' | 'code' | 'tags' | GiftCardErrorKeySpecifier)[]; +export type GiftCardDeactivateKeySpecifier = ('errors' | 'giftCard' | 'giftCardErrors' | GiftCardDeactivateKeySpecifier)[]; +export type GiftCardDeactivateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + giftCard?: FieldPolicy | FieldReadFunction, + giftCardErrors?: FieldPolicy | FieldReadFunction +}; +export type GiftCardDeleteKeySpecifier = ('errors' | 'giftCard' | 'giftCardErrors' | GiftCardDeleteKeySpecifier)[]; +export type GiftCardDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + giftCard?: FieldPolicy | FieldReadFunction, + giftCardErrors?: FieldPolicy | FieldReadFunction +}; +export type GiftCardDeletedKeySpecifier = ('giftCard' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | GiftCardDeletedKeySpecifier)[]; +export type GiftCardDeletedFieldPolicy = { + giftCard?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type GiftCardErrorKeySpecifier = ('code' | 'field' | 'message' | 'tags' | GiftCardErrorKeySpecifier)[]; export type GiftCardErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, tags?: FieldPolicy | FieldReadFunction }; -export type GiftCardEventKeySpecifier = ('id' | 'date' | 'type' | 'user' | 'app' | 'message' | 'email' | 'orderId' | 'orderNumber' | 'tags' | 'oldTags' | 'balance' | 'expiryDate' | 'oldExpiryDate' | GiftCardEventKeySpecifier)[]; +export type GiftCardEventKeySpecifier = ('app' | 'balance' | 'date' | 'email' | 'expiryDate' | 'id' | 'message' | 'oldExpiryDate' | 'oldTags' | 'orderId' | 'orderNumber' | 'tags' | 'type' | 'user' | GiftCardEventKeySpecifier)[]; export type GiftCardEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, app?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, + balance?: FieldPolicy | FieldReadFunction, + date?: FieldPolicy | FieldReadFunction, email?: FieldPolicy | FieldReadFunction, + expiryDate?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + oldExpiryDate?: FieldPolicy | FieldReadFunction, + oldTags?: FieldPolicy | FieldReadFunction, orderId?: FieldPolicy | FieldReadFunction, orderNumber?: FieldPolicy | FieldReadFunction, tags?: FieldPolicy | FieldReadFunction, - oldTags?: FieldPolicy | FieldReadFunction, - balance?: FieldPolicy | FieldReadFunction, - expiryDate?: FieldPolicy | FieldReadFunction, - oldExpiryDate?: FieldPolicy | FieldReadFunction + type?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type GiftCardEventBalanceKeySpecifier = ('initialBalance' | 'currentBalance' | 'oldInitialBalance' | 'oldCurrentBalance' | GiftCardEventBalanceKeySpecifier)[]; +export type GiftCardEventBalanceKeySpecifier = ('currentBalance' | 'initialBalance' | 'oldCurrentBalance' | 'oldInitialBalance' | GiftCardEventBalanceKeySpecifier)[]; export type GiftCardEventBalanceFieldPolicy = { - initialBalance?: FieldPolicy | FieldReadFunction, currentBalance?: FieldPolicy | FieldReadFunction, - oldInitialBalance?: FieldPolicy | FieldReadFunction, - oldCurrentBalance?: FieldPolicy | FieldReadFunction + initialBalance?: FieldPolicy | FieldReadFunction, + oldCurrentBalance?: FieldPolicy | FieldReadFunction, + oldInitialBalance?: FieldPolicy | FieldReadFunction }; -export type GiftCardMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardMetadataUpdatedKeySpecifier)[]; +export type GiftCardMetadataUpdatedKeySpecifier = ('giftCard' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | GiftCardMetadataUpdatedKeySpecifier)[]; export type GiftCardMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardResendKeySpecifier = ('giftCard' | 'errors' | GiftCardResendKeySpecifier)[]; -export type GiftCardResendFieldPolicy = { giftCard?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardSettingsKeySpecifier = ('expiryType' | 'expiryPeriod' | GiftCardSettingsKeySpecifier)[]; -export type GiftCardSettingsFieldPolicy = { - expiryType?: FieldPolicy | FieldReadFunction, - expiryPeriod?: FieldPolicy | FieldReadFunction -}; -export type GiftCardSettingsErrorKeySpecifier = ('field' | 'message' | 'code' | GiftCardSettingsErrorKeySpecifier)[]; -export type GiftCardSettingsErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type GiftCardSettingsUpdateKeySpecifier = ('giftCardSettings' | 'errors' | GiftCardSettingsUpdateKeySpecifier)[]; -export type GiftCardSettingsUpdateFieldPolicy = { - giftCardSettings?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardStatusChangedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardStatusChangedKeySpecifier)[]; -export type GiftCardStatusChangedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type GiftCardResendKeySpecifier = ('errors' | 'giftCard' | GiftCardResendKeySpecifier)[]; +export type GiftCardResendFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, giftCard?: FieldPolicy | FieldReadFunction }; +export type GiftCardSentKeySpecifier = ('channel' | 'giftCard' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'sentToEmail' | 'version' | GiftCardSentKeySpecifier)[]; +export type GiftCardSentFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, + giftCard?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + sentToEmail?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type GiftCardSettingsKeySpecifier = ('expiryPeriod' | 'expiryType' | GiftCardSettingsKeySpecifier)[]; +export type GiftCardSettingsFieldPolicy = { + expiryPeriod?: FieldPolicy | FieldReadFunction, + expiryType?: FieldPolicy | FieldReadFunction +}; +export type GiftCardSettingsErrorKeySpecifier = ('code' | 'field' | 'message' | GiftCardSettingsErrorKeySpecifier)[]; +export type GiftCardSettingsErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type GiftCardSettingsUpdateKeySpecifier = ('errors' | 'giftCardSettings' | GiftCardSettingsUpdateKeySpecifier)[]; +export type GiftCardSettingsUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + giftCardSettings?: FieldPolicy | FieldReadFunction +}; +export type GiftCardStatusChangedKeySpecifier = ('giftCard' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | GiftCardStatusChangedKeySpecifier)[]; +export type GiftCardStatusChangedFieldPolicy = { + giftCard?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; export type GiftCardTagKeySpecifier = ('id' | 'name' | GiftCardTagKeySpecifier)[]; export type GiftCardTagFieldPolicy = { id?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; -export type GiftCardTagCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | GiftCardTagCountableConnectionKeySpecifier)[]; +export type GiftCardTagCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | GiftCardTagCountableConnectionKeySpecifier)[]; export type GiftCardTagCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type GiftCardTagCountableEdgeKeySpecifier = ('node' | 'cursor' | GiftCardTagCountableEdgeKeySpecifier)[]; +export type GiftCardTagCountableEdgeKeySpecifier = ('cursor' | 'node' | GiftCardTagCountableEdgeKeySpecifier)[]; export type GiftCardTagCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type GiftCardUpdateKeySpecifier = ('giftCardErrors' | 'errors' | 'giftCard' | GiftCardUpdateKeySpecifier)[]; +export type GiftCardUpdateKeySpecifier = ('errors' | 'giftCard' | 'giftCardErrors' | GiftCardUpdateKeySpecifier)[]; export type GiftCardUpdateFieldPolicy = { - giftCardErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction + giftCard?: FieldPolicy | FieldReadFunction, + giftCardErrors?: FieldPolicy | FieldReadFunction }; -export type GiftCardUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardUpdatedKeySpecifier)[]; +export type GiftCardUpdatedKeySpecifier = ('giftCard' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | GiftCardUpdatedKeySpecifier)[]; export type GiftCardUpdatedFieldPolicy = { + giftCard?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type GroupKeySpecifier = ('id' | 'name' | 'users' | 'permissions' | 'userCanManage' | GroupKeySpecifier)[]; +export type GroupKeySpecifier = ('id' | 'name' | 'permissions' | 'userCanManage' | 'users' | GroupKeySpecifier)[]; export type GroupFieldPolicy = { id?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - users?: FieldPolicy | FieldReadFunction, permissions?: FieldPolicy | FieldReadFunction, - userCanManage?: FieldPolicy | FieldReadFunction + userCanManage?: FieldPolicy | FieldReadFunction, + users?: FieldPolicy | FieldReadFunction }; -export type GroupCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | GroupCountableConnectionKeySpecifier)[]; +export type GroupCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | GroupCountableConnectionKeySpecifier)[]; export type GroupCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type GroupCountableEdgeKeySpecifier = ('node' | 'cursor' | GroupCountableEdgeKeySpecifier)[]; +export type GroupCountableEdgeKeySpecifier = ('cursor' | 'node' | GroupCountableEdgeKeySpecifier)[]; export type GroupCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type ImageKeySpecifier = ('url' | 'alt' | ImageKeySpecifier)[]; +export type ImageKeySpecifier = ('alt' | 'url' | ImageKeySpecifier)[]; export type ImageFieldPolicy = { - url?: FieldPolicy | FieldReadFunction, - alt?: FieldPolicy | FieldReadFunction + alt?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction }; -export type InvoiceKeySpecifier = ('privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'status' | 'createdAt' | 'updatedAt' | 'message' | 'id' | 'number' | 'externalUrl' | 'url' | 'order' | InvoiceKeySpecifier)[]; +export type InvoiceKeySpecifier = ('createdAt' | 'externalUrl' | 'id' | 'message' | 'metadata' | 'metafield' | 'metafields' | 'number' | 'order' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'status' | 'updatedAt' | 'url' | InvoiceKeySpecifier)[]; export type InvoiceFieldPolicy = { - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + createdAt?: FieldPolicy | FieldReadFunction, + externalUrl?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, number?: FieldPolicy | FieldReadFunction, - externalUrl?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type InvoiceCreateKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceCreateKeySpecifier)[]; -export type InvoiceCreateFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceDeleteKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceDeleteKeySpecifier)[]; -export type InvoiceDeleteFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'invoice' | 'order' | InvoiceDeletedKeySpecifier)[]; -export type InvoiceDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type InvoiceErrorKeySpecifier = ('field' | 'message' | 'code' | InvoiceErrorKeySpecifier)[]; -export type InvoiceErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type InvoiceRequestKeySpecifier = ('order' | 'invoiceErrors' | 'errors' | 'invoice' | InvoiceRequestKeySpecifier)[]; -export type InvoiceRequestFieldPolicy = { order?: FieldPolicy | FieldReadFunction, - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceRequestDeleteKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceRequestDeleteKeySpecifier)[]; -export type InvoiceRequestDeleteFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceRequestedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'invoice' | 'order' | InvoiceRequestedKeySpecifier)[]; -export type InvoiceRequestedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type InvoiceSendNotificationKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceSendNotificationKeySpecifier)[]; -export type InvoiceSendNotificationFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceSentKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'invoice' | 'order' | InvoiceSentKeySpecifier)[]; -export type InvoiceSentFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type InvoiceUpdateKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceUpdateKeySpecifier)[]; -export type InvoiceUpdateFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type JobKeySpecifier = ('status' | 'createdAt' | 'updatedAt' | 'message' | JobKeySpecifier)[]; -export type JobFieldPolicy = { + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, status?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, updatedAt?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction +}; +export type InvoiceCreateKeySpecifier = ('errors' | 'invoice' | 'invoiceErrors' | InvoiceCreateKeySpecifier)[]; +export type InvoiceCreateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + invoice?: FieldPolicy | FieldReadFunction, + invoiceErrors?: FieldPolicy | FieldReadFunction +}; +export type InvoiceDeleteKeySpecifier = ('errors' | 'invoice' | 'invoiceErrors' | InvoiceDeleteKeySpecifier)[]; +export type InvoiceDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + invoice?: FieldPolicy | FieldReadFunction, + invoiceErrors?: FieldPolicy | FieldReadFunction +}; +export type InvoiceDeletedKeySpecifier = ('invoice' | 'issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | InvoiceDeletedKeySpecifier)[]; +export type InvoiceDeletedFieldPolicy = { + invoice?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type InvoiceErrorKeySpecifier = ('code' | 'field' | 'message' | InvoiceErrorKeySpecifier)[]; +export type InvoiceErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction }; +export type InvoiceRequestKeySpecifier = ('errors' | 'invoice' | 'invoiceErrors' | 'order' | InvoiceRequestKeySpecifier)[]; +export type InvoiceRequestFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + invoice?: FieldPolicy | FieldReadFunction, + invoiceErrors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction +}; +export type InvoiceRequestDeleteKeySpecifier = ('errors' | 'invoice' | 'invoiceErrors' | InvoiceRequestDeleteKeySpecifier)[]; +export type InvoiceRequestDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + invoice?: FieldPolicy | FieldReadFunction, + invoiceErrors?: FieldPolicy | FieldReadFunction +}; +export type InvoiceRequestedKeySpecifier = ('invoice' | 'issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | InvoiceRequestedKeySpecifier)[]; +export type InvoiceRequestedFieldPolicy = { + invoice?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type InvoiceSendNotificationKeySpecifier = ('errors' | 'invoice' | 'invoiceErrors' | InvoiceSendNotificationKeySpecifier)[]; +export type InvoiceSendNotificationFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + invoice?: FieldPolicy | FieldReadFunction, + invoiceErrors?: FieldPolicy | FieldReadFunction +}; +export type InvoiceSentKeySpecifier = ('invoice' | 'issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | InvoiceSentKeySpecifier)[]; +export type InvoiceSentFieldPolicy = { + invoice?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type InvoiceUpdateKeySpecifier = ('errors' | 'invoice' | 'invoiceErrors' | InvoiceUpdateKeySpecifier)[]; +export type InvoiceUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + invoice?: FieldPolicy | FieldReadFunction, + invoiceErrors?: FieldPolicy | FieldReadFunction +}; +export type JobKeySpecifier = ('createdAt' | 'message' | 'status' | 'updatedAt' | JobKeySpecifier)[]; +export type JobFieldPolicy = { + createdAt?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + status?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction +}; export type LanguageDisplayKeySpecifier = ('code' | 'language' | LanguageDisplayKeySpecifier)[]; export type LanguageDisplayFieldPolicy = { code?: FieldPolicy | FieldReadFunction, language?: FieldPolicy | FieldReadFunction }; -export type LimitInfoKeySpecifier = ('currentUsage' | 'allowedUsage' | LimitInfoKeySpecifier)[]; +export type LimitInfoKeySpecifier = ('allowedUsage' | 'currentUsage' | LimitInfoKeySpecifier)[]; export type LimitInfoFieldPolicy = { - currentUsage?: FieldPolicy | FieldReadFunction, - allowedUsage?: FieldPolicy | FieldReadFunction + allowedUsage?: FieldPolicy | FieldReadFunction, + currentUsage?: FieldPolicy | FieldReadFunction }; export type LimitsKeySpecifier = ('channels' | 'orders' | 'productVariants' | 'staffUsers' | 'warehouses' | LimitsKeySpecifier)[]; export type LimitsFieldPolicy = { @@ -2093,178 +2132,178 @@ export type LimitsFieldPolicy = { staffUsers?: FieldPolicy | FieldReadFunction, warehouses?: FieldPolicy | FieldReadFunction }; -export type ManifestKeySpecifier = ('identifier' | 'version' | 'name' | 'about' | 'permissions' | 'appUrl' | 'configurationUrl' | 'tokenTargetUrl' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'extensions' | 'webhooks' | 'audience' | 'requiredSaleorVersion' | 'author' | ManifestKeySpecifier)[]; +export type ManifestKeySpecifier = ('about' | 'appUrl' | 'audience' | 'author' | 'configurationUrl' | 'dataPrivacy' | 'dataPrivacyUrl' | 'extensions' | 'homepageUrl' | 'identifier' | 'name' | 'permissions' | 'requiredSaleorVersion' | 'supportUrl' | 'tokenTargetUrl' | 'version' | 'webhooks' | ManifestKeySpecifier)[]; export type ManifestFieldPolicy = { - identifier?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, about?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, appUrl?: FieldPolicy | FieldReadFunction, + audience?: FieldPolicy | FieldReadFunction, + author?: FieldPolicy | FieldReadFunction, configurationUrl?: FieldPolicy | FieldReadFunction, - tokenTargetUrl?: FieldPolicy | FieldReadFunction, dataPrivacy?: FieldPolicy | FieldReadFunction, dataPrivacyUrl?: FieldPolicy | FieldReadFunction, - homepageUrl?: FieldPolicy | FieldReadFunction, - supportUrl?: FieldPolicy | FieldReadFunction, extensions?: FieldPolicy | FieldReadFunction, - webhooks?: FieldPolicy | FieldReadFunction, - audience?: FieldPolicy | FieldReadFunction, + homepageUrl?: FieldPolicy | FieldReadFunction, + identifier?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + permissions?: FieldPolicy | FieldReadFunction, requiredSaleorVersion?: FieldPolicy | FieldReadFunction, - author?: FieldPolicy | FieldReadFunction + supportUrl?: FieldPolicy | FieldReadFunction, + tokenTargetUrl?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + webhooks?: FieldPolicy | FieldReadFunction }; export type MarginKeySpecifier = ('start' | 'stop' | MarginKeySpecifier)[]; export type MarginFieldPolicy = { start?: FieldPolicy | FieldReadFunction, stop?: FieldPolicy | FieldReadFunction }; -export type MenuKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'slug' | 'items' | MenuKeySpecifier)[]; +export type MenuKeySpecifier = ('id' | 'items' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'slug' | MenuKeySpecifier)[]; export type MenuFieldPolicy = { id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + items?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - items?: FieldPolicy | FieldReadFunction + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction }; -export type MenuBulkDeleteKeySpecifier = ('count' | 'menuErrors' | 'errors' | MenuBulkDeleteKeySpecifier)[]; +export type MenuBulkDeleteKeySpecifier = ('count' | 'errors' | 'menuErrors' | MenuBulkDeleteKeySpecifier)[]; export type MenuBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + menuErrors?: FieldPolicy | FieldReadFunction }; -export type MenuCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | MenuCountableConnectionKeySpecifier)[]; +export type MenuCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | MenuCountableConnectionKeySpecifier)[]; export type MenuCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type MenuCountableEdgeKeySpecifier = ('node' | 'cursor' | MenuCountableEdgeKeySpecifier)[]; +export type MenuCountableEdgeKeySpecifier = ('cursor' | 'node' | MenuCountableEdgeKeySpecifier)[]; export type MenuCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type MenuCreateKeySpecifier = ('menuErrors' | 'errors' | 'menu' | MenuCreateKeySpecifier)[]; +export type MenuCreateKeySpecifier = ('errors' | 'menu' | 'menuErrors' | MenuCreateKeySpecifier)[]; export type MenuCreateFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction + menu?: FieldPolicy | FieldReadFunction, + menuErrors?: FieldPolicy | FieldReadFunction }; -export type MenuCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menu' | MenuCreatedKeySpecifier)[]; +export type MenuCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'menu' | 'recipient' | 'version' | MenuCreatedKeySpecifier)[]; export type MenuCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + menu?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type MenuDeleteKeySpecifier = ('menuErrors' | 'errors' | 'menu' | MenuDeleteKeySpecifier)[]; +export type MenuDeleteKeySpecifier = ('errors' | 'menu' | 'menuErrors' | MenuDeleteKeySpecifier)[]; export type MenuDeleteFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction + menu?: FieldPolicy | FieldReadFunction, + menuErrors?: FieldPolicy | FieldReadFunction }; -export type MenuDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menu' | MenuDeletedKeySpecifier)[]; +export type MenuDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'menu' | 'recipient' | 'version' | MenuDeletedKeySpecifier)[]; export type MenuDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + menu?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type MenuErrorKeySpecifier = ('field' | 'message' | 'code' | MenuErrorKeySpecifier)[]; +export type MenuErrorKeySpecifier = ('code' | 'field' | 'message' | MenuErrorKeySpecifier)[]; export type MenuErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; -export type MenuItemKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'menu' | 'parent' | 'category' | 'collection' | 'page' | 'level' | 'children' | 'url' | 'translation' | MenuItemKeySpecifier)[]; +export type MenuItemKeySpecifier = ('category' | 'children' | 'collection' | 'id' | 'level' | 'menu' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'page' | 'parent' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'translation' | 'url' | MenuItemKeySpecifier)[]; export type MenuItemFieldPolicy = { + category?: FieldPolicy | FieldReadFunction, + children?: FieldPolicy | FieldReadFunction, + collection?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + level?: FieldPolicy | FieldReadFunction, + menu?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction, - parent?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction, page?: FieldPolicy | FieldReadFunction, - level?: FieldPolicy | FieldReadFunction, - children?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction + parent?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction }; -export type MenuItemBulkDeleteKeySpecifier = ('count' | 'menuErrors' | 'errors' | MenuItemBulkDeleteKeySpecifier)[]; +export type MenuItemBulkDeleteKeySpecifier = ('count' | 'errors' | 'menuErrors' | MenuItemBulkDeleteKeySpecifier)[]; export type MenuItemBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + menuErrors?: FieldPolicy | FieldReadFunction }; -export type MenuItemCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | MenuItemCountableConnectionKeySpecifier)[]; +export type MenuItemCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | MenuItemCountableConnectionKeySpecifier)[]; export type MenuItemCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type MenuItemCountableEdgeKeySpecifier = ('node' | 'cursor' | MenuItemCountableEdgeKeySpecifier)[]; +export type MenuItemCountableEdgeKeySpecifier = ('cursor' | 'node' | MenuItemCountableEdgeKeySpecifier)[]; export type MenuItemCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type MenuItemCreateKeySpecifier = ('menuErrors' | 'errors' | 'menuItem' | MenuItemCreateKeySpecifier)[]; +export type MenuItemCreateKeySpecifier = ('errors' | 'menuErrors' | 'menuItem' | MenuItemCreateKeySpecifier)[]; export type MenuItemCreateFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + menuErrors?: FieldPolicy | FieldReadFunction, menuItem?: FieldPolicy | FieldReadFunction }; -export type MenuItemCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menuItem' | MenuItemCreatedKeySpecifier)[]; +export type MenuItemCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'menuItem' | 'recipient' | 'version' | MenuItemCreatedKeySpecifier)[]; export type MenuItemCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + menuItem?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type MenuItemDeleteKeySpecifier = ('menuErrors' | 'errors' | 'menuItem' | MenuItemDeleteKeySpecifier)[]; +export type MenuItemDeleteKeySpecifier = ('errors' | 'menuErrors' | 'menuItem' | MenuItemDeleteKeySpecifier)[]; export type MenuItemDeleteFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + menuErrors?: FieldPolicy | FieldReadFunction, menuItem?: FieldPolicy | FieldReadFunction }; -export type MenuItemDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menuItem' | MenuItemDeletedKeySpecifier)[]; +export type MenuItemDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'menuItem' | 'recipient' | 'version' | MenuItemDeletedKeySpecifier)[]; export type MenuItemDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + menuItem?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type MenuItemMoveKeySpecifier = ('menu' | 'menuErrors' | 'errors' | MenuItemMoveKeySpecifier)[]; +export type MenuItemMoveKeySpecifier = ('errors' | 'menu' | 'menuErrors' | MenuItemMoveKeySpecifier)[]; export type MenuItemMoveFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, menu?: FieldPolicy | FieldReadFunction, - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + menuErrors?: FieldPolicy | FieldReadFunction }; -export type MenuItemTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'menuItem' | MenuItemTranslatableContentKeySpecifier)[]; +export type MenuItemTranslatableContentKeySpecifier = ('id' | 'menuItem' | 'name' | 'translation' | MenuItemTranslatableContentKeySpecifier)[]; export type MenuItemTranslatableContentFieldPolicy = { id?: FieldPolicy | FieldReadFunction, + menuItem?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction + translation?: FieldPolicy | FieldReadFunction }; -export type MenuItemTranslateKeySpecifier = ('translationErrors' | 'errors' | 'menuItem' | MenuItemTranslateKeySpecifier)[]; +export type MenuItemTranslateKeySpecifier = ('errors' | 'menuItem' | 'translationErrors' | MenuItemTranslateKeySpecifier)[]; export type MenuItemTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction + menuItem?: FieldPolicy | FieldReadFunction, + translationErrors?: FieldPolicy | FieldReadFunction }; export type MenuItemTranslationKeySpecifier = ('id' | 'language' | 'name' | MenuItemTranslationKeySpecifier)[]; export type MenuItemTranslationFieldPolicy = { @@ -2272,1221 +2311,1318 @@ export type MenuItemTranslationFieldPolicy = { language?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; -export type MenuItemUpdateKeySpecifier = ('menuErrors' | 'errors' | 'menuItem' | MenuItemUpdateKeySpecifier)[]; +export type MenuItemUpdateKeySpecifier = ('errors' | 'menuErrors' | 'menuItem' | MenuItemUpdateKeySpecifier)[]; export type MenuItemUpdateFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + menuErrors?: FieldPolicy | FieldReadFunction, menuItem?: FieldPolicy | FieldReadFunction }; -export type MenuItemUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menuItem' | MenuItemUpdatedKeySpecifier)[]; +export type MenuItemUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'menuItem' | 'recipient' | 'version' | MenuItemUpdatedKeySpecifier)[]; export type MenuItemUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + menuItem?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type MenuUpdateKeySpecifier = ('menuErrors' | 'errors' | 'menu' | MenuUpdateKeySpecifier)[]; +export type MenuUpdateKeySpecifier = ('errors' | 'menu' | 'menuErrors' | MenuUpdateKeySpecifier)[]; export type MenuUpdateFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction + menu?: FieldPolicy | FieldReadFunction, + menuErrors?: FieldPolicy | FieldReadFunction }; -export type MenuUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menu' | MenuUpdatedKeySpecifier)[]; +export type MenuUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'menu' | 'recipient' | 'version' | MenuUpdatedKeySpecifier)[]; export type MenuUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + menu?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type MetadataErrorKeySpecifier = ('field' | 'message' | 'code' | MetadataErrorKeySpecifier)[]; +export type MetadataErrorKeySpecifier = ('code' | 'field' | 'message' | MetadataErrorKeySpecifier)[]; export type MetadataErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; export type MetadataItemKeySpecifier = ('key' | 'value' | MetadataItemKeySpecifier)[]; export type MetadataItemFieldPolicy = { key?: FieldPolicy | FieldReadFunction, value?: FieldPolicy | FieldReadFunction }; -export type MoneyKeySpecifier = ('currency' | 'amount' | MoneyKeySpecifier)[]; +export type MoneyKeySpecifier = ('amount' | 'currency' | MoneyKeySpecifier)[]; export type MoneyFieldPolicy = { - currency?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction + amount?: FieldPolicy | FieldReadFunction, + currency?: FieldPolicy | FieldReadFunction }; export type MoneyRangeKeySpecifier = ('start' | 'stop' | MoneyRangeKeySpecifier)[]; export type MoneyRangeFieldPolicy = { start?: FieldPolicy | FieldReadFunction, stop?: FieldPolicy | FieldReadFunction }; -export type MutationKeySpecifier = ('webhookCreate' | 'webhookDelete' | 'webhookUpdate' | 'eventDeliveryRetry' | 'webhookDryRun' | 'webhookTrigger' | 'createWarehouse' | 'updateWarehouse' | 'deleteWarehouse' | 'assignWarehouseShippingZone' | 'unassignWarehouseShippingZone' | 'taxClassCreate' | 'taxClassDelete' | 'taxClassUpdate' | 'taxConfigurationUpdate' | 'taxCountryConfigurationUpdate' | 'taxCountryConfigurationDelete' | 'taxExemptionManage' | 'stockBulkUpdate' | 'staffNotificationRecipientCreate' | 'staffNotificationRecipientUpdate' | 'staffNotificationRecipientDelete' | 'shopDomainUpdate' | 'shopSettingsUpdate' | 'shopFetchTaxRates' | 'shopSettingsTranslate' | 'shopAddressUpdate' | 'orderSettingsUpdate' | 'giftCardSettingsUpdate' | 'shippingMethodChannelListingUpdate' | 'shippingPriceCreate' | 'shippingPriceDelete' | 'shippingPriceBulkDelete' | 'shippingPriceUpdate' | 'shippingPriceTranslate' | 'shippingPriceExcludeProducts' | 'shippingPriceRemoveProductFromExclude' | 'shippingZoneCreate' | 'shippingZoneDelete' | 'shippingZoneBulkDelete' | 'shippingZoneUpdate' | 'productAttributeAssign' | 'productAttributeAssignmentUpdate' | 'productAttributeUnassign' | 'categoryCreate' | 'categoryDelete' | 'categoryBulkDelete' | 'categoryUpdate' | 'categoryTranslate' | 'collectionAddProducts' | 'collectionCreate' | 'collectionDelete' | 'collectionReorderProducts' | 'collectionBulkDelete' | 'collectionRemoveProducts' | 'collectionUpdate' | 'collectionTranslate' | 'collectionChannelListingUpdate' | 'productCreate' | 'productDelete' | 'productBulkDelete' | 'productUpdate' | 'productTranslate' | 'productChannelListingUpdate' | 'productMediaCreate' | 'productVariantReorder' | 'productMediaDelete' | 'productMediaBulkDelete' | 'productMediaReorder' | 'productMediaUpdate' | 'productTypeCreate' | 'productTypeDelete' | 'productTypeBulkDelete' | 'productTypeUpdate' | 'productTypeReorderAttributes' | 'productReorderAttributeValues' | 'digitalContentCreate' | 'digitalContentDelete' | 'digitalContentUpdate' | 'digitalContentUrlCreate' | 'productVariantCreate' | 'productVariantDelete' | 'productVariantBulkCreate' | 'productVariantBulkUpdate' | 'productVariantBulkDelete' | 'productVariantStocksCreate' | 'productVariantStocksDelete' | 'productVariantStocksUpdate' | 'productVariantUpdate' | 'productVariantSetDefault' | 'productVariantTranslate' | 'productVariantChannelListingUpdate' | 'productVariantReorderAttributeValues' | 'productVariantPreorderDeactivate' | 'variantMediaAssign' | 'variantMediaUnassign' | 'paymentCapture' | 'paymentRefund' | 'paymentVoid' | 'paymentInitialize' | 'paymentCheckBalance' | 'transactionCreate' | 'transactionUpdate' | 'transactionRequestAction' | 'pageCreate' | 'pageDelete' | 'pageBulkDelete' | 'pageBulkPublish' | 'pageUpdate' | 'pageTranslate' | 'pageTypeCreate' | 'pageTypeUpdate' | 'pageTypeDelete' | 'pageTypeBulkDelete' | 'pageAttributeAssign' | 'pageAttributeUnassign' | 'pageTypeReorderAttributes' | 'pageReorderAttributeValues' | 'draftOrderComplete' | 'draftOrderCreate' | 'draftOrderDelete' | 'draftOrderBulkDelete' | 'draftOrderLinesBulkDelete' | 'draftOrderUpdate' | 'orderAddNote' | 'orderCancel' | 'orderCapture' | 'orderConfirm' | 'orderFulfill' | 'orderFulfillmentCancel' | 'orderFulfillmentApprove' | 'orderFulfillmentUpdateTracking' | 'orderFulfillmentRefundProducts' | 'orderFulfillmentReturnProducts' | 'orderLinesCreate' | 'orderLineDelete' | 'orderLineUpdate' | 'orderDiscountAdd' | 'orderDiscountUpdate' | 'orderDiscountDelete' | 'orderLineDiscountUpdate' | 'orderLineDiscountRemove' | 'orderMarkAsPaid' | 'orderRefund' | 'orderUpdate' | 'orderUpdateShipping' | 'orderVoid' | 'orderBulkCancel' | 'deleteMetadata' | 'deletePrivateMetadata' | 'updateMetadata' | 'updatePrivateMetadata' | 'assignNavigation' | 'menuCreate' | 'menuDelete' | 'menuBulkDelete' | 'menuUpdate' | 'menuItemCreate' | 'menuItemDelete' | 'menuItemBulkDelete' | 'menuItemUpdate' | 'menuItemTranslate' | 'menuItemMove' | 'invoiceRequest' | 'invoiceRequestDelete' | 'invoiceCreate' | 'invoiceDelete' | 'invoiceUpdate' | 'invoiceSendNotification' | 'giftCardActivate' | 'giftCardCreate' | 'giftCardDelete' | 'giftCardDeactivate' | 'giftCardUpdate' | 'giftCardResend' | 'giftCardAddNote' | 'giftCardBulkCreate' | 'giftCardBulkDelete' | 'giftCardBulkActivate' | 'giftCardBulkDeactivate' | 'pluginUpdate' | 'externalNotificationTrigger' | 'saleCreate' | 'saleDelete' | 'saleBulkDelete' | 'saleUpdate' | 'saleCataloguesAdd' | 'saleCataloguesRemove' | 'saleTranslate' | 'saleChannelListingUpdate' | 'voucherCreate' | 'voucherDelete' | 'voucherBulkDelete' | 'voucherUpdate' | 'voucherCataloguesAdd' | 'voucherCataloguesRemove' | 'voucherTranslate' | 'voucherChannelListingUpdate' | 'exportProducts' | 'exportGiftCards' | 'fileUpload' | 'checkoutAddPromoCode' | 'checkoutBillingAddressUpdate' | 'checkoutComplete' | 'checkoutCreate' | 'checkoutCustomerAttach' | 'checkoutCustomerDetach' | 'checkoutEmailUpdate' | 'checkoutLineDelete' | 'checkoutLinesDelete' | 'checkoutLinesAdd' | 'checkoutLinesUpdate' | 'checkoutRemovePromoCode' | 'checkoutPaymentCreate' | 'checkoutShippingAddressUpdate' | 'checkoutShippingMethodUpdate' | 'checkoutDeliveryMethodUpdate' | 'checkoutLanguageCodeUpdate' | 'orderCreateFromCheckout' | 'channelCreate' | 'channelUpdate' | 'channelDelete' | 'channelActivate' | 'channelDeactivate' | 'channelReorderWarehouses' | 'attributeCreate' | 'attributeDelete' | 'attributeUpdate' | 'attributeTranslate' | 'attributeBulkDelete' | 'attributeValueBulkDelete' | 'attributeValueCreate' | 'attributeValueDelete' | 'attributeValueUpdate' | 'attributeValueTranslate' | 'attributeReorderValues' | 'appCreate' | 'appUpdate' | 'appDelete' | 'appTokenCreate' | 'appTokenDelete' | 'appTokenVerify' | 'appInstall' | 'appRetryInstall' | 'appDeleteFailedInstallation' | 'appFetchManifest' | 'appActivate' | 'appDeactivate' | 'tokenCreate' | 'tokenRefresh' | 'tokenVerify' | 'tokensDeactivateAll' | 'externalAuthenticationUrl' | 'externalObtainAccessTokens' | 'externalRefresh' | 'externalLogout' | 'externalVerify' | 'requestPasswordReset' | 'confirmAccount' | 'setPassword' | 'passwordChange' | 'requestEmailChange' | 'confirmEmailChange' | 'accountAddressCreate' | 'accountAddressUpdate' | 'accountAddressDelete' | 'accountSetDefaultAddress' | 'accountRegister' | 'accountUpdate' | 'accountRequestDeletion' | 'accountDelete' | 'addressCreate' | 'addressUpdate' | 'addressDelete' | 'addressSetDefault' | 'customerCreate' | 'customerUpdate' | 'customerDelete' | 'customerBulkDelete' | 'staffCreate' | 'staffUpdate' | 'staffDelete' | 'staffBulkDelete' | 'userAvatarUpdate' | 'userAvatarDelete' | 'userBulkSetActive' | 'permissionGroupCreate' | 'permissionGroupUpdate' | 'permissionGroupDelete' | MutationKeySpecifier)[]; +export type MutationKeySpecifier = ('accountAddressCreate' | 'accountAddressDelete' | 'accountAddressUpdate' | 'accountDelete' | 'accountRegister' | 'accountRequestDeletion' | 'accountSetDefaultAddress' | 'accountUpdate' | 'addressCreate' | 'addressDelete' | 'addressSetDefault' | 'addressUpdate' | 'appActivate' | 'appCreate' | 'appDeactivate' | 'appDelete' | 'appDeleteFailedInstallation' | 'appFetchManifest' | 'appInstall' | 'appRetryInstall' | 'appTokenCreate' | 'appTokenDelete' | 'appTokenVerify' | 'appUpdate' | 'assignNavigation' | 'assignWarehouseShippingZone' | 'attributeBulkDelete' | 'attributeCreate' | 'attributeDelete' | 'attributeReorderValues' | 'attributeTranslate' | 'attributeUpdate' | 'attributeValueBulkDelete' | 'attributeValueCreate' | 'attributeValueDelete' | 'attributeValueTranslate' | 'attributeValueUpdate' | 'categoryBulkDelete' | 'categoryCreate' | 'categoryDelete' | 'categoryTranslate' | 'categoryUpdate' | 'channelActivate' | 'channelCreate' | 'channelDeactivate' | 'channelDelete' | 'channelReorderWarehouses' | 'channelUpdate' | 'checkoutAddPromoCode' | 'checkoutBillingAddressUpdate' | 'checkoutComplete' | 'checkoutCreate' | 'checkoutCustomerAttach' | 'checkoutCustomerDetach' | 'checkoutDeliveryMethodUpdate' | 'checkoutEmailUpdate' | 'checkoutLanguageCodeUpdate' | 'checkoutLineDelete' | 'checkoutLinesAdd' | 'checkoutLinesDelete' | 'checkoutLinesUpdate' | 'checkoutPaymentCreate' | 'checkoutRemovePromoCode' | 'checkoutShippingAddressUpdate' | 'checkoutShippingMethodUpdate' | 'collectionAddProducts' | 'collectionBulkDelete' | 'collectionChannelListingUpdate' | 'collectionCreate' | 'collectionDelete' | 'collectionRemoveProducts' | 'collectionReorderProducts' | 'collectionTranslate' | 'collectionUpdate' | 'confirmAccount' | 'confirmEmailChange' | 'createWarehouse' | 'customerBulkDelete' | 'customerBulkUpdate' | 'customerCreate' | 'customerDelete' | 'customerUpdate' | 'deleteMetadata' | 'deletePrivateMetadata' | 'deleteWarehouse' | 'digitalContentCreate' | 'digitalContentDelete' | 'digitalContentUpdate' | 'digitalContentUrlCreate' | 'draftOrderBulkDelete' | 'draftOrderComplete' | 'draftOrderCreate' | 'draftOrderDelete' | 'draftOrderLinesBulkDelete' | 'draftOrderUpdate' | 'eventDeliveryRetry' | 'exportGiftCards' | 'exportProducts' | 'externalAuthenticationUrl' | 'externalLogout' | 'externalNotificationTrigger' | 'externalObtainAccessTokens' | 'externalRefresh' | 'externalVerify' | 'fileUpload' | 'giftCardActivate' | 'giftCardAddNote' | 'giftCardBulkActivate' | 'giftCardBulkCreate' | 'giftCardBulkDeactivate' | 'giftCardBulkDelete' | 'giftCardCreate' | 'giftCardDeactivate' | 'giftCardDelete' | 'giftCardResend' | 'giftCardSettingsUpdate' | 'giftCardUpdate' | 'invoiceCreate' | 'invoiceDelete' | 'invoiceRequest' | 'invoiceRequestDelete' | 'invoiceSendNotification' | 'invoiceUpdate' | 'menuBulkDelete' | 'menuCreate' | 'menuDelete' | 'menuItemBulkDelete' | 'menuItemCreate' | 'menuItemDelete' | 'menuItemMove' | 'menuItemTranslate' | 'menuItemUpdate' | 'menuUpdate' | 'orderAddNote' | 'orderBulkCancel' | 'orderCancel' | 'orderCapture' | 'orderConfirm' | 'orderCreateFromCheckout' | 'orderDiscountAdd' | 'orderDiscountDelete' | 'orderDiscountUpdate' | 'orderFulfill' | 'orderFulfillmentApprove' | 'orderFulfillmentCancel' | 'orderFulfillmentRefundProducts' | 'orderFulfillmentReturnProducts' | 'orderFulfillmentUpdateTracking' | 'orderGrantRefundCreate' | 'orderGrantRefundUpdate' | 'orderLineDelete' | 'orderLineDiscountRemove' | 'orderLineDiscountUpdate' | 'orderLineUpdate' | 'orderLinesCreate' | 'orderMarkAsPaid' | 'orderRefund' | 'orderSettingsUpdate' | 'orderUpdate' | 'orderUpdateShipping' | 'orderVoid' | 'pageAttributeAssign' | 'pageAttributeUnassign' | 'pageBulkDelete' | 'pageBulkPublish' | 'pageCreate' | 'pageDelete' | 'pageReorderAttributeValues' | 'pageTranslate' | 'pageTypeBulkDelete' | 'pageTypeCreate' | 'pageTypeDelete' | 'pageTypeReorderAttributes' | 'pageTypeUpdate' | 'pageUpdate' | 'passwordChange' | 'paymentCapture' | 'paymentCheckBalance' | 'paymentGatewayInitialize' | 'paymentInitialize' | 'paymentRefund' | 'paymentVoid' | 'permissionGroupCreate' | 'permissionGroupDelete' | 'permissionGroupUpdate' | 'pluginUpdate' | 'productAttributeAssign' | 'productAttributeAssignmentUpdate' | 'productAttributeUnassign' | 'productBulkCreate' | 'productBulkDelete' | 'productChannelListingUpdate' | 'productCreate' | 'productDelete' | 'productMediaBulkDelete' | 'productMediaCreate' | 'productMediaDelete' | 'productMediaReorder' | 'productMediaUpdate' | 'productReorderAttributeValues' | 'productTranslate' | 'productTypeBulkDelete' | 'productTypeCreate' | 'productTypeDelete' | 'productTypeReorderAttributes' | 'productTypeUpdate' | 'productUpdate' | 'productVariantBulkCreate' | 'productVariantBulkDelete' | 'productVariantBulkUpdate' | 'productVariantChannelListingUpdate' | 'productVariantCreate' | 'productVariantDelete' | 'productVariantPreorderDeactivate' | 'productVariantReorder' | 'productVariantReorderAttributeValues' | 'productVariantSetDefault' | 'productVariantStocksCreate' | 'productVariantStocksDelete' | 'productVariantStocksUpdate' | 'productVariantTranslate' | 'productVariantUpdate' | 'requestEmailChange' | 'requestPasswordReset' | 'saleBulkDelete' | 'saleCataloguesAdd' | 'saleCataloguesRemove' | 'saleChannelListingUpdate' | 'saleCreate' | 'saleDelete' | 'saleTranslate' | 'saleUpdate' | 'setPassword' | 'shippingMethodChannelListingUpdate' | 'shippingPriceBulkDelete' | 'shippingPriceCreate' | 'shippingPriceDelete' | 'shippingPriceExcludeProducts' | 'shippingPriceRemoveProductFromExclude' | 'shippingPriceTranslate' | 'shippingPriceUpdate' | 'shippingZoneBulkDelete' | 'shippingZoneCreate' | 'shippingZoneDelete' | 'shippingZoneUpdate' | 'shopAddressUpdate' | 'shopDomainUpdate' | 'shopFetchTaxRates' | 'shopSettingsTranslate' | 'shopSettingsUpdate' | 'staffBulkDelete' | 'staffCreate' | 'staffDelete' | 'staffNotificationRecipientCreate' | 'staffNotificationRecipientDelete' | 'staffNotificationRecipientUpdate' | 'staffUpdate' | 'stockBulkUpdate' | 'taxClassCreate' | 'taxClassDelete' | 'taxClassUpdate' | 'taxConfigurationUpdate' | 'taxCountryConfigurationDelete' | 'taxCountryConfigurationUpdate' | 'taxExemptionManage' | 'tokenCreate' | 'tokenRefresh' | 'tokenVerify' | 'tokensDeactivateAll' | 'transactionCreate' | 'transactionEventReport' | 'transactionInitialize' | 'transactionProcess' | 'transactionRequestAction' | 'transactionUpdate' | 'unassignWarehouseShippingZone' | 'updateMetadata' | 'updatePrivateMetadata' | 'updateWarehouse' | 'userAvatarDelete' | 'userAvatarUpdate' | 'userBulkSetActive' | 'variantMediaAssign' | 'variantMediaUnassign' | 'voucherBulkDelete' | 'voucherCataloguesAdd' | 'voucherCataloguesRemove' | 'voucherChannelListingUpdate' | 'voucherCreate' | 'voucherDelete' | 'voucherTranslate' | 'voucherUpdate' | 'webhookCreate' | 'webhookDelete' | 'webhookDryRun' | 'webhookTrigger' | 'webhookUpdate' | MutationKeySpecifier)[]; export type MutationFieldPolicy = { - webhookCreate?: FieldPolicy | FieldReadFunction, - webhookDelete?: FieldPolicy | FieldReadFunction, - webhookUpdate?: FieldPolicy | FieldReadFunction, - eventDeliveryRetry?: FieldPolicy | FieldReadFunction, - webhookDryRun?: FieldPolicy | FieldReadFunction, - webhookTrigger?: FieldPolicy | FieldReadFunction, - createWarehouse?: FieldPolicy | FieldReadFunction, - updateWarehouse?: FieldPolicy | FieldReadFunction, - deleteWarehouse?: FieldPolicy | FieldReadFunction, + accountAddressCreate?: FieldPolicy | FieldReadFunction, + accountAddressDelete?: FieldPolicy | FieldReadFunction, + accountAddressUpdate?: FieldPolicy | FieldReadFunction, + accountDelete?: FieldPolicy | FieldReadFunction, + accountRegister?: FieldPolicy | FieldReadFunction, + accountRequestDeletion?: FieldPolicy | FieldReadFunction, + accountSetDefaultAddress?: FieldPolicy | FieldReadFunction, + accountUpdate?: FieldPolicy | FieldReadFunction, + addressCreate?: FieldPolicy | FieldReadFunction, + addressDelete?: FieldPolicy | FieldReadFunction, + addressSetDefault?: FieldPolicy | FieldReadFunction, + addressUpdate?: FieldPolicy | FieldReadFunction, + appActivate?: FieldPolicy | FieldReadFunction, + appCreate?: FieldPolicy | FieldReadFunction, + appDeactivate?: FieldPolicy | FieldReadFunction, + appDelete?: FieldPolicy | FieldReadFunction, + appDeleteFailedInstallation?: FieldPolicy | FieldReadFunction, + appFetchManifest?: FieldPolicy | FieldReadFunction, + appInstall?: FieldPolicy | FieldReadFunction, + appRetryInstall?: FieldPolicy | FieldReadFunction, + appTokenCreate?: FieldPolicy | FieldReadFunction, + appTokenDelete?: FieldPolicy | FieldReadFunction, + appTokenVerify?: FieldPolicy | FieldReadFunction, + appUpdate?: FieldPolicy | FieldReadFunction, + assignNavigation?: FieldPolicy | FieldReadFunction, assignWarehouseShippingZone?: FieldPolicy | FieldReadFunction, - unassignWarehouseShippingZone?: FieldPolicy | FieldReadFunction, - taxClassCreate?: FieldPolicy | FieldReadFunction, - taxClassDelete?: FieldPolicy | FieldReadFunction, - taxClassUpdate?: FieldPolicy | FieldReadFunction, - taxConfigurationUpdate?: FieldPolicy | FieldReadFunction, - taxCountryConfigurationUpdate?: FieldPolicy | FieldReadFunction, - taxCountryConfigurationDelete?: FieldPolicy | FieldReadFunction, - taxExemptionManage?: FieldPolicy | FieldReadFunction, - stockBulkUpdate?: FieldPolicy | FieldReadFunction, - staffNotificationRecipientCreate?: FieldPolicy | FieldReadFunction, - staffNotificationRecipientUpdate?: FieldPolicy | FieldReadFunction, - staffNotificationRecipientDelete?: FieldPolicy | FieldReadFunction, - shopDomainUpdate?: FieldPolicy | FieldReadFunction, - shopSettingsUpdate?: FieldPolicy | FieldReadFunction, - shopFetchTaxRates?: FieldPolicy | FieldReadFunction, - shopSettingsTranslate?: FieldPolicy | FieldReadFunction, - shopAddressUpdate?: FieldPolicy | FieldReadFunction, - orderSettingsUpdate?: FieldPolicy | FieldReadFunction, - giftCardSettingsUpdate?: FieldPolicy | FieldReadFunction, - shippingMethodChannelListingUpdate?: FieldPolicy | FieldReadFunction, - shippingPriceCreate?: FieldPolicy | FieldReadFunction, - shippingPriceDelete?: FieldPolicy | FieldReadFunction, - shippingPriceBulkDelete?: FieldPolicy | FieldReadFunction, - shippingPriceUpdate?: FieldPolicy | FieldReadFunction, - shippingPriceTranslate?: FieldPolicy | FieldReadFunction, - shippingPriceExcludeProducts?: FieldPolicy | FieldReadFunction, - shippingPriceRemoveProductFromExclude?: FieldPolicy | FieldReadFunction, - shippingZoneCreate?: FieldPolicy | FieldReadFunction, - shippingZoneDelete?: FieldPolicy | FieldReadFunction, - shippingZoneBulkDelete?: FieldPolicy | FieldReadFunction, - shippingZoneUpdate?: FieldPolicy | FieldReadFunction, - productAttributeAssign?: FieldPolicy | FieldReadFunction, - productAttributeAssignmentUpdate?: FieldPolicy | FieldReadFunction, - productAttributeUnassign?: FieldPolicy | FieldReadFunction, + attributeBulkDelete?: FieldPolicy | FieldReadFunction, + attributeCreate?: FieldPolicy | FieldReadFunction, + attributeDelete?: FieldPolicy | FieldReadFunction, + attributeReorderValues?: FieldPolicy | FieldReadFunction, + attributeTranslate?: FieldPolicy | FieldReadFunction, + attributeUpdate?: FieldPolicy | FieldReadFunction, + attributeValueBulkDelete?: FieldPolicy | FieldReadFunction, + attributeValueCreate?: FieldPolicy | FieldReadFunction, + attributeValueDelete?: FieldPolicy | FieldReadFunction, + attributeValueTranslate?: FieldPolicy | FieldReadFunction, + attributeValueUpdate?: FieldPolicy | FieldReadFunction, + categoryBulkDelete?: FieldPolicy | FieldReadFunction, categoryCreate?: FieldPolicy | FieldReadFunction, categoryDelete?: FieldPolicy | FieldReadFunction, - categoryBulkDelete?: FieldPolicy | FieldReadFunction, - categoryUpdate?: FieldPolicy | FieldReadFunction, categoryTranslate?: FieldPolicy | FieldReadFunction, - collectionAddProducts?: FieldPolicy | FieldReadFunction, - collectionCreate?: FieldPolicy | FieldReadFunction, - collectionDelete?: FieldPolicy | FieldReadFunction, - collectionReorderProducts?: FieldPolicy | FieldReadFunction, - collectionBulkDelete?: FieldPolicy | FieldReadFunction, - collectionRemoveProducts?: FieldPolicy | FieldReadFunction, - collectionUpdate?: FieldPolicy | FieldReadFunction, - collectionTranslate?: FieldPolicy | FieldReadFunction, - collectionChannelListingUpdate?: FieldPolicy | FieldReadFunction, - productCreate?: FieldPolicy | FieldReadFunction, - productDelete?: FieldPolicy | FieldReadFunction, - productBulkDelete?: FieldPolicy | FieldReadFunction, - productUpdate?: FieldPolicy | FieldReadFunction, - productTranslate?: FieldPolicy | FieldReadFunction, - productChannelListingUpdate?: FieldPolicy | FieldReadFunction, - productMediaCreate?: FieldPolicy | FieldReadFunction, - productVariantReorder?: FieldPolicy | FieldReadFunction, - productMediaDelete?: FieldPolicy | FieldReadFunction, - productMediaBulkDelete?: FieldPolicy | FieldReadFunction, - productMediaReorder?: FieldPolicy | FieldReadFunction, - productMediaUpdate?: FieldPolicy | FieldReadFunction, - productTypeCreate?: FieldPolicy | FieldReadFunction, - productTypeDelete?: FieldPolicy | FieldReadFunction, - productTypeBulkDelete?: FieldPolicy | FieldReadFunction, - productTypeUpdate?: FieldPolicy | FieldReadFunction, - productTypeReorderAttributes?: FieldPolicy | FieldReadFunction, - productReorderAttributeValues?: FieldPolicy | FieldReadFunction, - digitalContentCreate?: FieldPolicy | FieldReadFunction, - digitalContentDelete?: FieldPolicy | FieldReadFunction, - digitalContentUpdate?: FieldPolicy | FieldReadFunction, - digitalContentUrlCreate?: FieldPolicy | FieldReadFunction, - productVariantCreate?: FieldPolicy | FieldReadFunction, - productVariantDelete?: FieldPolicy | FieldReadFunction, - productVariantBulkCreate?: FieldPolicy | FieldReadFunction, - productVariantBulkUpdate?: FieldPolicy | FieldReadFunction, - productVariantBulkDelete?: FieldPolicy | FieldReadFunction, - productVariantStocksCreate?: FieldPolicy | FieldReadFunction, - productVariantStocksDelete?: FieldPolicy | FieldReadFunction, - productVariantStocksUpdate?: FieldPolicy | FieldReadFunction, - productVariantUpdate?: FieldPolicy | FieldReadFunction, - productVariantSetDefault?: FieldPolicy | FieldReadFunction, - productVariantTranslate?: FieldPolicy | FieldReadFunction, - productVariantChannelListingUpdate?: FieldPolicy | FieldReadFunction, - productVariantReorderAttributeValues?: FieldPolicy | FieldReadFunction, - productVariantPreorderDeactivate?: FieldPolicy | FieldReadFunction, - variantMediaAssign?: FieldPolicy | FieldReadFunction, - variantMediaUnassign?: FieldPolicy | FieldReadFunction, - paymentCapture?: FieldPolicy | FieldReadFunction, - paymentRefund?: FieldPolicy | FieldReadFunction, - paymentVoid?: FieldPolicy | FieldReadFunction, - paymentInitialize?: FieldPolicy | FieldReadFunction, - paymentCheckBalance?: FieldPolicy | FieldReadFunction, - transactionCreate?: FieldPolicy | FieldReadFunction, - transactionUpdate?: FieldPolicy | FieldReadFunction, - transactionRequestAction?: FieldPolicy | FieldReadFunction, - pageCreate?: FieldPolicy | FieldReadFunction, - pageDelete?: FieldPolicy | FieldReadFunction, - pageBulkDelete?: FieldPolicy | FieldReadFunction, - pageBulkPublish?: FieldPolicy | FieldReadFunction, - pageUpdate?: FieldPolicy | FieldReadFunction, - pageTranslate?: FieldPolicy | FieldReadFunction, - pageTypeCreate?: FieldPolicy | FieldReadFunction, - pageTypeUpdate?: FieldPolicy | FieldReadFunction, - pageTypeDelete?: FieldPolicy | FieldReadFunction, - pageTypeBulkDelete?: FieldPolicy | FieldReadFunction, - pageAttributeAssign?: FieldPolicy | FieldReadFunction, - pageAttributeUnassign?: FieldPolicy | FieldReadFunction, - pageTypeReorderAttributes?: FieldPolicy | FieldReadFunction, - pageReorderAttributeValues?: FieldPolicy | FieldReadFunction, - draftOrderComplete?: FieldPolicy | FieldReadFunction, - draftOrderCreate?: FieldPolicy | FieldReadFunction, - draftOrderDelete?: FieldPolicy | FieldReadFunction, - draftOrderBulkDelete?: FieldPolicy | FieldReadFunction, - draftOrderLinesBulkDelete?: FieldPolicy | FieldReadFunction, - draftOrderUpdate?: FieldPolicy | FieldReadFunction, - orderAddNote?: FieldPolicy | FieldReadFunction, - orderCancel?: FieldPolicy | FieldReadFunction, - orderCapture?: FieldPolicy | FieldReadFunction, - orderConfirm?: FieldPolicy | FieldReadFunction, - orderFulfill?: FieldPolicy | FieldReadFunction, - orderFulfillmentCancel?: FieldPolicy | FieldReadFunction, - orderFulfillmentApprove?: FieldPolicy | FieldReadFunction, - orderFulfillmentUpdateTracking?: FieldPolicy | FieldReadFunction, - orderFulfillmentRefundProducts?: FieldPolicy | FieldReadFunction, - orderFulfillmentReturnProducts?: FieldPolicy | FieldReadFunction, - orderLinesCreate?: FieldPolicy | FieldReadFunction, - orderLineDelete?: FieldPolicy | FieldReadFunction, - orderLineUpdate?: FieldPolicy | FieldReadFunction, - orderDiscountAdd?: FieldPolicy | FieldReadFunction, - orderDiscountUpdate?: FieldPolicy | FieldReadFunction, - orderDiscountDelete?: FieldPolicy | FieldReadFunction, - orderLineDiscountUpdate?: FieldPolicy | FieldReadFunction, - orderLineDiscountRemove?: FieldPolicy | FieldReadFunction, - orderMarkAsPaid?: FieldPolicy | FieldReadFunction, - orderRefund?: FieldPolicy | FieldReadFunction, - orderUpdate?: FieldPolicy | FieldReadFunction, - orderUpdateShipping?: FieldPolicy | FieldReadFunction, - orderVoid?: FieldPolicy | FieldReadFunction, - orderBulkCancel?: FieldPolicy | FieldReadFunction, - deleteMetadata?: FieldPolicy | FieldReadFunction, - deletePrivateMetadata?: FieldPolicy | FieldReadFunction, - updateMetadata?: FieldPolicy | FieldReadFunction, - updatePrivateMetadata?: FieldPolicy | FieldReadFunction, - assignNavigation?: FieldPolicy | FieldReadFunction, - menuCreate?: FieldPolicy | FieldReadFunction, - menuDelete?: FieldPolicy | FieldReadFunction, - menuBulkDelete?: FieldPolicy | FieldReadFunction, - menuUpdate?: FieldPolicy | FieldReadFunction, - menuItemCreate?: FieldPolicy | FieldReadFunction, - menuItemDelete?: FieldPolicy | FieldReadFunction, - menuItemBulkDelete?: FieldPolicy | FieldReadFunction, - menuItemUpdate?: FieldPolicy | FieldReadFunction, - menuItemTranslate?: FieldPolicy | FieldReadFunction, - menuItemMove?: FieldPolicy | FieldReadFunction, - invoiceRequest?: FieldPolicy | FieldReadFunction, - invoiceRequestDelete?: FieldPolicy | FieldReadFunction, - invoiceCreate?: FieldPolicy | FieldReadFunction, - invoiceDelete?: FieldPolicy | FieldReadFunction, - invoiceUpdate?: FieldPolicy | FieldReadFunction, - invoiceSendNotification?: FieldPolicy | FieldReadFunction, - giftCardActivate?: FieldPolicy | FieldReadFunction, - giftCardCreate?: FieldPolicy | FieldReadFunction, - giftCardDelete?: FieldPolicy | FieldReadFunction, - giftCardDeactivate?: FieldPolicy | FieldReadFunction, - giftCardUpdate?: FieldPolicy | FieldReadFunction, - giftCardResend?: FieldPolicy | FieldReadFunction, - giftCardAddNote?: FieldPolicy | FieldReadFunction, - giftCardBulkCreate?: FieldPolicy | FieldReadFunction, - giftCardBulkDelete?: FieldPolicy | FieldReadFunction, - giftCardBulkActivate?: FieldPolicy | FieldReadFunction, - giftCardBulkDeactivate?: FieldPolicy | FieldReadFunction, - pluginUpdate?: FieldPolicy | FieldReadFunction, - externalNotificationTrigger?: FieldPolicy | FieldReadFunction, - saleCreate?: FieldPolicy | FieldReadFunction, - saleDelete?: FieldPolicy | FieldReadFunction, - saleBulkDelete?: FieldPolicy | FieldReadFunction, - saleUpdate?: FieldPolicy | FieldReadFunction, - saleCataloguesAdd?: FieldPolicy | FieldReadFunction, - saleCataloguesRemove?: FieldPolicy | FieldReadFunction, - saleTranslate?: FieldPolicy | FieldReadFunction, - saleChannelListingUpdate?: FieldPolicy | FieldReadFunction, - voucherCreate?: FieldPolicy | FieldReadFunction, - voucherDelete?: FieldPolicy | FieldReadFunction, - voucherBulkDelete?: FieldPolicy | FieldReadFunction, - voucherUpdate?: FieldPolicy | FieldReadFunction, - voucherCataloguesAdd?: FieldPolicy | FieldReadFunction, - voucherCataloguesRemove?: FieldPolicy | FieldReadFunction, - voucherTranslate?: FieldPolicy | FieldReadFunction, - voucherChannelListingUpdate?: FieldPolicy | FieldReadFunction, - exportProducts?: FieldPolicy | FieldReadFunction, - exportGiftCards?: FieldPolicy | FieldReadFunction, - fileUpload?: FieldPolicy | FieldReadFunction, + categoryUpdate?: FieldPolicy | FieldReadFunction, + channelActivate?: FieldPolicy | FieldReadFunction, + channelCreate?: FieldPolicy | FieldReadFunction, + channelDeactivate?: FieldPolicy | FieldReadFunction, + channelDelete?: FieldPolicy | FieldReadFunction, + channelReorderWarehouses?: FieldPolicy | FieldReadFunction, + channelUpdate?: FieldPolicy | FieldReadFunction, checkoutAddPromoCode?: FieldPolicy | FieldReadFunction, checkoutBillingAddressUpdate?: FieldPolicy | FieldReadFunction, checkoutComplete?: FieldPolicy | FieldReadFunction, checkoutCreate?: FieldPolicy | FieldReadFunction, checkoutCustomerAttach?: FieldPolicy | FieldReadFunction, checkoutCustomerDetach?: FieldPolicy | FieldReadFunction, + checkoutDeliveryMethodUpdate?: FieldPolicy | FieldReadFunction, checkoutEmailUpdate?: FieldPolicy | FieldReadFunction, + checkoutLanguageCodeUpdate?: FieldPolicy | FieldReadFunction, checkoutLineDelete?: FieldPolicy | FieldReadFunction, - checkoutLinesDelete?: FieldPolicy | FieldReadFunction, checkoutLinesAdd?: FieldPolicy | FieldReadFunction, + checkoutLinesDelete?: FieldPolicy | FieldReadFunction, checkoutLinesUpdate?: FieldPolicy | FieldReadFunction, - checkoutRemovePromoCode?: FieldPolicy | FieldReadFunction, checkoutPaymentCreate?: FieldPolicy | FieldReadFunction, + checkoutRemovePromoCode?: FieldPolicy | FieldReadFunction, checkoutShippingAddressUpdate?: FieldPolicy | FieldReadFunction, checkoutShippingMethodUpdate?: FieldPolicy | FieldReadFunction, - checkoutDeliveryMethodUpdate?: FieldPolicy | FieldReadFunction, - checkoutLanguageCodeUpdate?: FieldPolicy | FieldReadFunction, + collectionAddProducts?: FieldPolicy | FieldReadFunction, + collectionBulkDelete?: FieldPolicy | FieldReadFunction, + collectionChannelListingUpdate?: FieldPolicy | FieldReadFunction, + collectionCreate?: FieldPolicy | FieldReadFunction, + collectionDelete?: FieldPolicy | FieldReadFunction, + collectionRemoveProducts?: FieldPolicy | FieldReadFunction, + collectionReorderProducts?: FieldPolicy | FieldReadFunction, + collectionTranslate?: FieldPolicy | FieldReadFunction, + collectionUpdate?: FieldPolicy | FieldReadFunction, + confirmAccount?: FieldPolicy | FieldReadFunction, + confirmEmailChange?: FieldPolicy | FieldReadFunction, + createWarehouse?: FieldPolicy | FieldReadFunction, + customerBulkDelete?: FieldPolicy | FieldReadFunction, + customerBulkUpdate?: FieldPolicy | FieldReadFunction, + customerCreate?: FieldPolicy | FieldReadFunction, + customerDelete?: FieldPolicy | FieldReadFunction, + customerUpdate?: FieldPolicy | FieldReadFunction, + deleteMetadata?: FieldPolicy | FieldReadFunction, + deletePrivateMetadata?: FieldPolicy | FieldReadFunction, + deleteWarehouse?: FieldPolicy | FieldReadFunction, + digitalContentCreate?: FieldPolicy | FieldReadFunction, + digitalContentDelete?: FieldPolicy | FieldReadFunction, + digitalContentUpdate?: FieldPolicy | FieldReadFunction, + digitalContentUrlCreate?: FieldPolicy | FieldReadFunction, + draftOrderBulkDelete?: FieldPolicy | FieldReadFunction, + draftOrderComplete?: FieldPolicy | FieldReadFunction, + draftOrderCreate?: FieldPolicy | FieldReadFunction, + draftOrderDelete?: FieldPolicy | FieldReadFunction, + draftOrderLinesBulkDelete?: FieldPolicy | FieldReadFunction, + draftOrderUpdate?: FieldPolicy | FieldReadFunction, + eventDeliveryRetry?: FieldPolicy | FieldReadFunction, + exportGiftCards?: FieldPolicy | FieldReadFunction, + exportProducts?: FieldPolicy | FieldReadFunction, + externalAuthenticationUrl?: FieldPolicy | FieldReadFunction, + externalLogout?: FieldPolicy | FieldReadFunction, + externalNotificationTrigger?: FieldPolicy | FieldReadFunction, + externalObtainAccessTokens?: FieldPolicy | FieldReadFunction, + externalRefresh?: FieldPolicy | FieldReadFunction, + externalVerify?: FieldPolicy | FieldReadFunction, + fileUpload?: FieldPolicy | FieldReadFunction, + giftCardActivate?: FieldPolicy | FieldReadFunction, + giftCardAddNote?: FieldPolicy | FieldReadFunction, + giftCardBulkActivate?: FieldPolicy | FieldReadFunction, + giftCardBulkCreate?: FieldPolicy | FieldReadFunction, + giftCardBulkDeactivate?: FieldPolicy | FieldReadFunction, + giftCardBulkDelete?: FieldPolicy | FieldReadFunction, + giftCardCreate?: FieldPolicy | FieldReadFunction, + giftCardDeactivate?: FieldPolicy | FieldReadFunction, + giftCardDelete?: FieldPolicy | FieldReadFunction, + giftCardResend?: FieldPolicy | FieldReadFunction, + giftCardSettingsUpdate?: FieldPolicy | FieldReadFunction, + giftCardUpdate?: FieldPolicy | FieldReadFunction, + invoiceCreate?: FieldPolicy | FieldReadFunction, + invoiceDelete?: FieldPolicy | FieldReadFunction, + invoiceRequest?: FieldPolicy | FieldReadFunction, + invoiceRequestDelete?: FieldPolicy | FieldReadFunction, + invoiceSendNotification?: FieldPolicy | FieldReadFunction, + invoiceUpdate?: FieldPolicy | FieldReadFunction, + menuBulkDelete?: FieldPolicy | FieldReadFunction, + menuCreate?: FieldPolicy | FieldReadFunction, + menuDelete?: FieldPolicy | FieldReadFunction, + menuItemBulkDelete?: FieldPolicy | FieldReadFunction, + menuItemCreate?: FieldPolicy | FieldReadFunction, + menuItemDelete?: FieldPolicy | FieldReadFunction, + menuItemMove?: FieldPolicy | FieldReadFunction, + menuItemTranslate?: FieldPolicy | FieldReadFunction, + menuItemUpdate?: FieldPolicy | FieldReadFunction, + menuUpdate?: FieldPolicy | FieldReadFunction, + orderAddNote?: FieldPolicy | FieldReadFunction, + orderBulkCancel?: FieldPolicy | FieldReadFunction, + orderCancel?: FieldPolicy | FieldReadFunction, + orderCapture?: FieldPolicy | FieldReadFunction, + orderConfirm?: FieldPolicy | FieldReadFunction, orderCreateFromCheckout?: FieldPolicy | FieldReadFunction, - channelCreate?: FieldPolicy | FieldReadFunction, - channelUpdate?: FieldPolicy | FieldReadFunction, - channelDelete?: FieldPolicy | FieldReadFunction, - channelActivate?: FieldPolicy | FieldReadFunction, - channelDeactivate?: FieldPolicy | FieldReadFunction, - channelReorderWarehouses?: FieldPolicy | FieldReadFunction, - attributeCreate?: FieldPolicy | FieldReadFunction, - attributeDelete?: FieldPolicy | FieldReadFunction, - attributeUpdate?: FieldPolicy | FieldReadFunction, - attributeTranslate?: FieldPolicy | FieldReadFunction, - attributeBulkDelete?: FieldPolicy | FieldReadFunction, - attributeValueBulkDelete?: FieldPolicy | FieldReadFunction, - attributeValueCreate?: FieldPolicy | FieldReadFunction, - attributeValueDelete?: FieldPolicy | FieldReadFunction, - attributeValueUpdate?: FieldPolicy | FieldReadFunction, - attributeValueTranslate?: FieldPolicy | FieldReadFunction, - attributeReorderValues?: FieldPolicy | FieldReadFunction, - appCreate?: FieldPolicy | FieldReadFunction, - appUpdate?: FieldPolicy | FieldReadFunction, - appDelete?: FieldPolicy | FieldReadFunction, - appTokenCreate?: FieldPolicy | FieldReadFunction, - appTokenDelete?: FieldPolicy | FieldReadFunction, - appTokenVerify?: FieldPolicy | FieldReadFunction, - appInstall?: FieldPolicy | FieldReadFunction, - appRetryInstall?: FieldPolicy | FieldReadFunction, - appDeleteFailedInstallation?: FieldPolicy | FieldReadFunction, - appFetchManifest?: FieldPolicy | FieldReadFunction, - appActivate?: FieldPolicy | FieldReadFunction, - appDeactivate?: FieldPolicy | FieldReadFunction, + orderDiscountAdd?: FieldPolicy | FieldReadFunction, + orderDiscountDelete?: FieldPolicy | FieldReadFunction, + orderDiscountUpdate?: FieldPolicy | FieldReadFunction, + orderFulfill?: FieldPolicy | FieldReadFunction, + orderFulfillmentApprove?: FieldPolicy | FieldReadFunction, + orderFulfillmentCancel?: FieldPolicy | FieldReadFunction, + orderFulfillmentRefundProducts?: FieldPolicy | FieldReadFunction, + orderFulfillmentReturnProducts?: FieldPolicy | FieldReadFunction, + orderFulfillmentUpdateTracking?: FieldPolicy | FieldReadFunction, + orderGrantRefundCreate?: FieldPolicy | FieldReadFunction, + orderGrantRefundUpdate?: FieldPolicy | FieldReadFunction, + orderLineDelete?: FieldPolicy | FieldReadFunction, + orderLineDiscountRemove?: FieldPolicy | FieldReadFunction, + orderLineDiscountUpdate?: FieldPolicy | FieldReadFunction, + orderLineUpdate?: FieldPolicy | FieldReadFunction, + orderLinesCreate?: FieldPolicy | FieldReadFunction, + orderMarkAsPaid?: FieldPolicy | FieldReadFunction, + orderRefund?: FieldPolicy | FieldReadFunction, + orderSettingsUpdate?: FieldPolicy | FieldReadFunction, + orderUpdate?: FieldPolicy | FieldReadFunction, + orderUpdateShipping?: FieldPolicy | FieldReadFunction, + orderVoid?: FieldPolicy | FieldReadFunction, + pageAttributeAssign?: FieldPolicy | FieldReadFunction, + pageAttributeUnassign?: FieldPolicy | FieldReadFunction, + pageBulkDelete?: FieldPolicy | FieldReadFunction, + pageBulkPublish?: FieldPolicy | FieldReadFunction, + pageCreate?: FieldPolicy | FieldReadFunction, + pageDelete?: FieldPolicy | FieldReadFunction, + pageReorderAttributeValues?: FieldPolicy | FieldReadFunction, + pageTranslate?: FieldPolicy | FieldReadFunction, + pageTypeBulkDelete?: FieldPolicy | FieldReadFunction, + pageTypeCreate?: FieldPolicy | FieldReadFunction, + pageTypeDelete?: FieldPolicy | FieldReadFunction, + pageTypeReorderAttributes?: FieldPolicy | FieldReadFunction, + pageTypeUpdate?: FieldPolicy | FieldReadFunction, + pageUpdate?: FieldPolicy | FieldReadFunction, + passwordChange?: FieldPolicy | FieldReadFunction, + paymentCapture?: FieldPolicy | FieldReadFunction, + paymentCheckBalance?: FieldPolicy | FieldReadFunction, + paymentGatewayInitialize?: FieldPolicy | FieldReadFunction, + paymentInitialize?: FieldPolicy | FieldReadFunction, + paymentRefund?: FieldPolicy | FieldReadFunction, + paymentVoid?: FieldPolicy | FieldReadFunction, + permissionGroupCreate?: FieldPolicy | FieldReadFunction, + permissionGroupDelete?: FieldPolicy | FieldReadFunction, + permissionGroupUpdate?: FieldPolicy | FieldReadFunction, + pluginUpdate?: FieldPolicy | FieldReadFunction, + productAttributeAssign?: FieldPolicy | FieldReadFunction, + productAttributeAssignmentUpdate?: FieldPolicy | FieldReadFunction, + productAttributeUnassign?: FieldPolicy | FieldReadFunction, + productBulkCreate?: FieldPolicy | FieldReadFunction, + productBulkDelete?: FieldPolicy | FieldReadFunction, + productChannelListingUpdate?: FieldPolicy | FieldReadFunction, + productCreate?: FieldPolicy | FieldReadFunction, + productDelete?: FieldPolicy | FieldReadFunction, + productMediaBulkDelete?: FieldPolicy | FieldReadFunction, + productMediaCreate?: FieldPolicy | FieldReadFunction, + productMediaDelete?: FieldPolicy | FieldReadFunction, + productMediaReorder?: FieldPolicy | FieldReadFunction, + productMediaUpdate?: FieldPolicy | FieldReadFunction, + productReorderAttributeValues?: FieldPolicy | FieldReadFunction, + productTranslate?: FieldPolicy | FieldReadFunction, + productTypeBulkDelete?: FieldPolicy | FieldReadFunction, + productTypeCreate?: FieldPolicy | FieldReadFunction, + productTypeDelete?: FieldPolicy | FieldReadFunction, + productTypeReorderAttributes?: FieldPolicy | FieldReadFunction, + productTypeUpdate?: FieldPolicy | FieldReadFunction, + productUpdate?: FieldPolicy | FieldReadFunction, + productVariantBulkCreate?: FieldPolicy | FieldReadFunction, + productVariantBulkDelete?: FieldPolicy | FieldReadFunction, + productVariantBulkUpdate?: FieldPolicy | FieldReadFunction, + productVariantChannelListingUpdate?: FieldPolicy | FieldReadFunction, + productVariantCreate?: FieldPolicy | FieldReadFunction, + productVariantDelete?: FieldPolicy | FieldReadFunction, + productVariantPreorderDeactivate?: FieldPolicy | FieldReadFunction, + productVariantReorder?: FieldPolicy | FieldReadFunction, + productVariantReorderAttributeValues?: FieldPolicy | FieldReadFunction, + productVariantSetDefault?: FieldPolicy | FieldReadFunction, + productVariantStocksCreate?: FieldPolicy | FieldReadFunction, + productVariantStocksDelete?: FieldPolicy | FieldReadFunction, + productVariantStocksUpdate?: FieldPolicy | FieldReadFunction, + productVariantTranslate?: FieldPolicy | FieldReadFunction, + productVariantUpdate?: FieldPolicy | FieldReadFunction, + requestEmailChange?: FieldPolicy | FieldReadFunction, + requestPasswordReset?: FieldPolicy | FieldReadFunction, + saleBulkDelete?: FieldPolicy | FieldReadFunction, + saleCataloguesAdd?: FieldPolicy | FieldReadFunction, + saleCataloguesRemove?: FieldPolicy | FieldReadFunction, + saleChannelListingUpdate?: FieldPolicy | FieldReadFunction, + saleCreate?: FieldPolicy | FieldReadFunction, + saleDelete?: FieldPolicy | FieldReadFunction, + saleTranslate?: FieldPolicy | FieldReadFunction, + saleUpdate?: FieldPolicy | FieldReadFunction, + setPassword?: FieldPolicy | FieldReadFunction, + shippingMethodChannelListingUpdate?: FieldPolicy | FieldReadFunction, + shippingPriceBulkDelete?: FieldPolicy | FieldReadFunction, + shippingPriceCreate?: FieldPolicy | FieldReadFunction, + shippingPriceDelete?: FieldPolicy | FieldReadFunction, + shippingPriceExcludeProducts?: FieldPolicy | FieldReadFunction, + shippingPriceRemoveProductFromExclude?: FieldPolicy | FieldReadFunction, + shippingPriceTranslate?: FieldPolicy | FieldReadFunction, + shippingPriceUpdate?: FieldPolicy | FieldReadFunction, + shippingZoneBulkDelete?: FieldPolicy | FieldReadFunction, + shippingZoneCreate?: FieldPolicy | FieldReadFunction, + shippingZoneDelete?: FieldPolicy | FieldReadFunction, + shippingZoneUpdate?: FieldPolicy | FieldReadFunction, + shopAddressUpdate?: FieldPolicy | FieldReadFunction, + shopDomainUpdate?: FieldPolicy | FieldReadFunction, + shopFetchTaxRates?: FieldPolicy | FieldReadFunction, + shopSettingsTranslate?: FieldPolicy | FieldReadFunction, + shopSettingsUpdate?: FieldPolicy | FieldReadFunction, + staffBulkDelete?: FieldPolicy | FieldReadFunction, + staffCreate?: FieldPolicy | FieldReadFunction, + staffDelete?: FieldPolicy | FieldReadFunction, + staffNotificationRecipientCreate?: FieldPolicy | FieldReadFunction, + staffNotificationRecipientDelete?: FieldPolicy | FieldReadFunction, + staffNotificationRecipientUpdate?: FieldPolicy | FieldReadFunction, + staffUpdate?: FieldPolicy | FieldReadFunction, + stockBulkUpdate?: FieldPolicy | FieldReadFunction, + taxClassCreate?: FieldPolicy | FieldReadFunction, + taxClassDelete?: FieldPolicy | FieldReadFunction, + taxClassUpdate?: FieldPolicy | FieldReadFunction, + taxConfigurationUpdate?: FieldPolicy | FieldReadFunction, + taxCountryConfigurationDelete?: FieldPolicy | FieldReadFunction, + taxCountryConfigurationUpdate?: FieldPolicy | FieldReadFunction, + taxExemptionManage?: FieldPolicy | FieldReadFunction, tokenCreate?: FieldPolicy | FieldReadFunction, tokenRefresh?: FieldPolicy | FieldReadFunction, tokenVerify?: FieldPolicy | FieldReadFunction, tokensDeactivateAll?: FieldPolicy | FieldReadFunction, - externalAuthenticationUrl?: FieldPolicy | FieldReadFunction, - externalObtainAccessTokens?: FieldPolicy | FieldReadFunction, - externalRefresh?: FieldPolicy | FieldReadFunction, - externalLogout?: FieldPolicy | FieldReadFunction, - externalVerify?: FieldPolicy | FieldReadFunction, - requestPasswordReset?: FieldPolicy | FieldReadFunction, - confirmAccount?: FieldPolicy | FieldReadFunction, - setPassword?: FieldPolicy | FieldReadFunction, - passwordChange?: FieldPolicy | FieldReadFunction, - requestEmailChange?: FieldPolicy | FieldReadFunction, - confirmEmailChange?: FieldPolicy | FieldReadFunction, - accountAddressCreate?: FieldPolicy | FieldReadFunction, - accountAddressUpdate?: FieldPolicy | FieldReadFunction, - accountAddressDelete?: FieldPolicy | FieldReadFunction, - accountSetDefaultAddress?: FieldPolicy | FieldReadFunction, - accountRegister?: FieldPolicy | FieldReadFunction, - accountUpdate?: FieldPolicy | FieldReadFunction, - accountRequestDeletion?: FieldPolicy | FieldReadFunction, - accountDelete?: FieldPolicy | FieldReadFunction, - addressCreate?: FieldPolicy | FieldReadFunction, - addressUpdate?: FieldPolicy | FieldReadFunction, - addressDelete?: FieldPolicy | FieldReadFunction, - addressSetDefault?: FieldPolicy | FieldReadFunction, - customerCreate?: FieldPolicy | FieldReadFunction, - customerUpdate?: FieldPolicy | FieldReadFunction, - customerDelete?: FieldPolicy | FieldReadFunction, - customerBulkDelete?: FieldPolicy | FieldReadFunction, - staffCreate?: FieldPolicy | FieldReadFunction, - staffUpdate?: FieldPolicy | FieldReadFunction, - staffDelete?: FieldPolicy | FieldReadFunction, - staffBulkDelete?: FieldPolicy | FieldReadFunction, - userAvatarUpdate?: FieldPolicy | FieldReadFunction, + transactionCreate?: FieldPolicy | FieldReadFunction, + transactionEventReport?: FieldPolicy | FieldReadFunction, + transactionInitialize?: FieldPolicy | FieldReadFunction, + transactionProcess?: FieldPolicy | FieldReadFunction, + transactionRequestAction?: FieldPolicy | FieldReadFunction, + transactionUpdate?: FieldPolicy | FieldReadFunction, + unassignWarehouseShippingZone?: FieldPolicy | FieldReadFunction, + updateMetadata?: FieldPolicy | FieldReadFunction, + updatePrivateMetadata?: FieldPolicy | FieldReadFunction, + updateWarehouse?: FieldPolicy | FieldReadFunction, userAvatarDelete?: FieldPolicy | FieldReadFunction, + userAvatarUpdate?: FieldPolicy | FieldReadFunction, userBulkSetActive?: FieldPolicy | FieldReadFunction, - permissionGroupCreate?: FieldPolicy | FieldReadFunction, - permissionGroupUpdate?: FieldPolicy | FieldReadFunction, - permissionGroupDelete?: FieldPolicy | FieldReadFunction + variantMediaAssign?: FieldPolicy | FieldReadFunction, + variantMediaUnassign?: FieldPolicy | FieldReadFunction, + voucherBulkDelete?: FieldPolicy | FieldReadFunction, + voucherCataloguesAdd?: FieldPolicy | FieldReadFunction, + voucherCataloguesRemove?: FieldPolicy | FieldReadFunction, + voucherChannelListingUpdate?: FieldPolicy | FieldReadFunction, + voucherCreate?: FieldPolicy | FieldReadFunction, + voucherDelete?: FieldPolicy | FieldReadFunction, + voucherTranslate?: FieldPolicy | FieldReadFunction, + voucherUpdate?: FieldPolicy | FieldReadFunction, + webhookCreate?: FieldPolicy | FieldReadFunction, + webhookDelete?: FieldPolicy | FieldReadFunction, + webhookDryRun?: FieldPolicy | FieldReadFunction, + webhookTrigger?: FieldPolicy | FieldReadFunction, + webhookUpdate?: FieldPolicy | FieldReadFunction }; export type NodeKeySpecifier = ('id' | NodeKeySpecifier)[]; export type NodeFieldPolicy = { id?: FieldPolicy | FieldReadFunction }; -export type ObjectWithMetadataKeySpecifier = ('privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | ObjectWithMetadataKeySpecifier)[]; +export type ObjectWithMetadataKeySpecifier = ('metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | ObjectWithMetadataKeySpecifier)[]; export type ObjectWithMetadataFieldPolicy = { - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction -}; -export type OrderKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'created' | 'updatedAt' | 'status' | 'user' | 'trackingClientId' | 'billingAddress' | 'shippingAddress' | 'shippingMethodName' | 'collectionPointName' | 'channel' | 'fulfillments' | 'lines' | 'actions' | 'availableShippingMethods' | 'shippingMethods' | 'availableCollectionPoints' | 'invoices' | 'number' | 'original' | 'origin' | 'isPaid' | 'paymentStatus' | 'paymentStatusDisplay' | 'authorizeStatus' | 'chargeStatus' | 'taxExemption' | 'transactions' | 'payments' | 'total' | 'undiscountedTotal' | 'shippingMethod' | 'shippingPrice' | 'shippingTaxRate' | 'shippingTaxClass' | 'shippingTaxClassName' | 'shippingTaxClassMetadata' | 'shippingTaxClassPrivateMetadata' | 'token' | 'voucher' | 'giftCards' | 'customerNote' | 'weight' | 'redirectUrl' | 'subtotal' | 'statusDisplay' | 'canFinalize' | 'totalAuthorized' | 'totalCaptured' | 'events' | 'totalBalance' | 'userEmail' | 'isShippingRequired' | 'deliveryMethod' | 'languageCode' | 'languageCodeEnum' | 'discount' | 'discountName' | 'translatedDiscountName' | 'discounts' | 'errors' | 'displayGrossPrices' | 'externalReference' | 'checkoutId' | OrderKeySpecifier)[]; -export type OrderFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - trackingClientId?: FieldPolicy | FieldReadFunction, - billingAddress?: FieldPolicy | FieldReadFunction, - shippingAddress?: FieldPolicy | FieldReadFunction, - shippingMethodName?: FieldPolicy | FieldReadFunction, - collectionPointName?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - fulfillments?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction +}; +export type OrderKeySpecifier = ('actions' | 'authorizeStatus' | 'availableCollectionPoints' | 'availableShippingMethods' | 'billingAddress' | 'canFinalize' | 'channel' | 'chargeStatus' | 'checkoutId' | 'collectionPointName' | 'created' | 'customerNote' | 'deliveryMethod' | 'discount' | 'discountName' | 'discounts' | 'displayGrossPrices' | 'errors' | 'events' | 'externalReference' | 'fulfillments' | 'giftCards' | 'grantedRefunds' | 'id' | 'invoices' | 'isPaid' | 'isShippingRequired' | 'languageCode' | 'languageCodeEnum' | 'lines' | 'metadata' | 'metafield' | 'metafields' | 'number' | 'origin' | 'original' | 'paymentStatus' | 'paymentStatusDisplay' | 'payments' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'redirectUrl' | 'shippingAddress' | 'shippingMethod' | 'shippingMethodName' | 'shippingMethods' | 'shippingPrice' | 'shippingTaxClass' | 'shippingTaxClassMetadata' | 'shippingTaxClassName' | 'shippingTaxClassPrivateMetadata' | 'shippingTaxRate' | 'status' | 'statusDisplay' | 'subtotal' | 'taxExemption' | 'token' | 'total' | 'totalAuthorizePending' | 'totalAuthorized' | 'totalBalance' | 'totalCancelPending' | 'totalCanceled' | 'totalCaptured' | 'totalChargePending' | 'totalCharged' | 'totalGrantedRefund' | 'totalRefundPending' | 'totalRefunded' | 'totalRemainingGrant' | 'trackingClientId' | 'transactions' | 'translatedDiscountName' | 'undiscountedTotal' | 'updatedAt' | 'user' | 'userEmail' | 'voucher' | 'weight' | OrderKeySpecifier)[]; +export type OrderFieldPolicy = { actions?: FieldPolicy | FieldReadFunction, - availableShippingMethods?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction, - availableCollectionPoints?: FieldPolicy | FieldReadFunction, - invoices?: FieldPolicy | FieldReadFunction, - number?: FieldPolicy | FieldReadFunction, - original?: FieldPolicy | FieldReadFunction, - origin?: FieldPolicy | FieldReadFunction, - isPaid?: FieldPolicy | FieldReadFunction, - paymentStatus?: FieldPolicy | FieldReadFunction, - paymentStatusDisplay?: FieldPolicy | FieldReadFunction, authorizeStatus?: FieldPolicy | FieldReadFunction, - chargeStatus?: FieldPolicy | FieldReadFunction, - taxExemption?: FieldPolicy | FieldReadFunction, - transactions?: FieldPolicy | FieldReadFunction, - payments?: FieldPolicy | FieldReadFunction, - total?: FieldPolicy | FieldReadFunction, - undiscountedTotal?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingPrice?: FieldPolicy | FieldReadFunction, - shippingTaxRate?: FieldPolicy | FieldReadFunction, - shippingTaxClass?: FieldPolicy | FieldReadFunction, - shippingTaxClassName?: FieldPolicy | FieldReadFunction, - shippingTaxClassMetadata?: FieldPolicy | FieldReadFunction, - shippingTaxClassPrivateMetadata?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - customerNote?: FieldPolicy | FieldReadFunction, - weight?: FieldPolicy | FieldReadFunction, - redirectUrl?: FieldPolicy | FieldReadFunction, - subtotal?: FieldPolicy | FieldReadFunction, - statusDisplay?: FieldPolicy | FieldReadFunction, + availableCollectionPoints?: FieldPolicy | FieldReadFunction, + availableShippingMethods?: FieldPolicy | FieldReadFunction, + billingAddress?: FieldPolicy | FieldReadFunction, canFinalize?: FieldPolicy | FieldReadFunction, - totalAuthorized?: FieldPolicy | FieldReadFunction, - totalCaptured?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - totalBalance?: FieldPolicy | FieldReadFunction, - userEmail?: FieldPolicy | FieldReadFunction, - isShippingRequired?: FieldPolicy | FieldReadFunction, + channel?: FieldPolicy | FieldReadFunction, + chargeStatus?: FieldPolicy | FieldReadFunction, + checkoutId?: FieldPolicy | FieldReadFunction, + collectionPointName?: FieldPolicy | FieldReadFunction, + created?: FieldPolicy | FieldReadFunction, + customerNote?: FieldPolicy | FieldReadFunction, deliveryMethod?: FieldPolicy | FieldReadFunction, - languageCode?: FieldPolicy | FieldReadFunction, - languageCodeEnum?: FieldPolicy | FieldReadFunction, discount?: FieldPolicy | FieldReadFunction, discountName?: FieldPolicy | FieldReadFunction, - translatedDiscountName?: FieldPolicy | FieldReadFunction, discounts?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, displayGrossPrices?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, externalReference?: FieldPolicy | FieldReadFunction, - checkoutId?: FieldPolicy | FieldReadFunction + fulfillments?: FieldPolicy | FieldReadFunction, + giftCards?: FieldPolicy | FieldReadFunction, + grantedRefunds?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + invoices?: FieldPolicy | FieldReadFunction, + isPaid?: FieldPolicy | FieldReadFunction, + isShippingRequired?: FieldPolicy | FieldReadFunction, + languageCode?: FieldPolicy | FieldReadFunction, + languageCodeEnum?: FieldPolicy | FieldReadFunction, + lines?: FieldPolicy | FieldReadFunction, + metadata?: FieldPolicy | FieldReadFunction, + metafield?: FieldPolicy | FieldReadFunction, + metafields?: FieldPolicy | FieldReadFunction, + number?: FieldPolicy | FieldReadFunction, + origin?: FieldPolicy | FieldReadFunction, + original?: FieldPolicy | FieldReadFunction, + paymentStatus?: FieldPolicy | FieldReadFunction, + paymentStatusDisplay?: FieldPolicy | FieldReadFunction, + payments?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + redirectUrl?: FieldPolicy | FieldReadFunction, + shippingAddress?: FieldPolicy | FieldReadFunction, + shippingMethod?: FieldPolicy | FieldReadFunction, + shippingMethodName?: FieldPolicy | FieldReadFunction, + shippingMethods?: FieldPolicy | FieldReadFunction, + shippingPrice?: FieldPolicy | FieldReadFunction, + shippingTaxClass?: FieldPolicy | FieldReadFunction, + shippingTaxClassMetadata?: FieldPolicy | FieldReadFunction, + shippingTaxClassName?: FieldPolicy | FieldReadFunction, + shippingTaxClassPrivateMetadata?: FieldPolicy | FieldReadFunction, + shippingTaxRate?: FieldPolicy | FieldReadFunction, + status?: FieldPolicy | FieldReadFunction, + statusDisplay?: FieldPolicy | FieldReadFunction, + subtotal?: FieldPolicy | FieldReadFunction, + taxExemption?: FieldPolicy | FieldReadFunction, + token?: FieldPolicy | FieldReadFunction, + total?: FieldPolicy | FieldReadFunction, + totalAuthorizePending?: FieldPolicy | FieldReadFunction, + totalAuthorized?: FieldPolicy | FieldReadFunction, + totalBalance?: FieldPolicy | FieldReadFunction, + totalCancelPending?: FieldPolicy | FieldReadFunction, + totalCanceled?: FieldPolicy | FieldReadFunction, + totalCaptured?: FieldPolicy | FieldReadFunction, + totalChargePending?: FieldPolicy | FieldReadFunction, + totalCharged?: FieldPolicy | FieldReadFunction, + totalGrantedRefund?: FieldPolicy | FieldReadFunction, + totalRefundPending?: FieldPolicy | FieldReadFunction, + totalRefunded?: FieldPolicy | FieldReadFunction, + totalRemainingGrant?: FieldPolicy | FieldReadFunction, + trackingClientId?: FieldPolicy | FieldReadFunction, + transactions?: FieldPolicy | FieldReadFunction, + translatedDiscountName?: FieldPolicy | FieldReadFunction, + undiscountedTotal?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction, + userEmail?: FieldPolicy | FieldReadFunction, + voucher?: FieldPolicy | FieldReadFunction, + weight?: FieldPolicy | FieldReadFunction }; -export type OrderAddNoteKeySpecifier = ('order' | 'event' | 'orderErrors' | 'errors' | OrderAddNoteKeySpecifier)[]; +export type OrderAddNoteKeySpecifier = ('errors' | 'event' | 'order' | 'orderErrors' | OrderAddNoteKeySpecifier)[]; export type OrderAddNoteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, event?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction }; -export type OrderBulkCancelKeySpecifier = ('count' | 'orderErrors' | 'errors' | OrderBulkCancelKeySpecifier)[]; +export type OrderBulkCancelKeySpecifier = ('count' | 'errors' | 'orderErrors' | OrderBulkCancelKeySpecifier)[]; export type OrderBulkCancelFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction }; -export type OrderCancelKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderCancelKeySpecifier)[]; +export type OrderCancelKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderCancelKeySpecifier)[]; export type OrderCancelFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; -export type OrderCancelledKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderCancelledKeySpecifier)[]; +export type OrderCancelledKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | OrderCancelledKeySpecifier)[]; export type OrderCancelledFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type OrderCaptureKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderCaptureKeySpecifier)[]; +export type OrderCaptureKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderCaptureKeySpecifier)[]; export type OrderCaptureFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; -export type OrderConfirmKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderConfirmKeySpecifier)[]; +export type OrderConfirmKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderConfirmKeySpecifier)[]; export type OrderConfirmFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + orderErrors?: FieldPolicy | FieldReadFunction }; -export type OrderConfirmedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderConfirmedKeySpecifier)[]; +export type OrderConfirmedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | OrderConfirmedKeySpecifier)[]; export type OrderConfirmedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type OrderCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | OrderCountableConnectionKeySpecifier)[]; +export type OrderCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | OrderCountableConnectionKeySpecifier)[]; export type OrderCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type OrderCountableEdgeKeySpecifier = ('node' | 'cursor' | OrderCountableEdgeKeySpecifier)[]; +export type OrderCountableEdgeKeySpecifier = ('cursor' | 'node' | OrderCountableEdgeKeySpecifier)[]; export type OrderCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type OrderCreateFromCheckoutKeySpecifier = ('order' | 'errors' | OrderCreateFromCheckoutKeySpecifier)[]; +export type OrderCreateFromCheckoutKeySpecifier = ('errors' | 'order' | OrderCreateFromCheckoutKeySpecifier)[]; export type OrderCreateFromCheckoutFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction }; -export type OrderCreateFromCheckoutErrorKeySpecifier = ('field' | 'message' | 'code' | 'variants' | 'lines' | OrderCreateFromCheckoutErrorKeySpecifier)[]; +export type OrderCreateFromCheckoutErrorKeySpecifier = ('code' | 'field' | 'lines' | 'message' | 'variants' | OrderCreateFromCheckoutErrorKeySpecifier)[]; export type OrderCreateFromCheckoutErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction -}; -export type OrderCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderCreatedKeySpecifier)[]; -export type OrderCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderDiscountKeySpecifier = ('id' | 'type' | 'name' | 'translatedName' | 'valueType' | 'value' | 'reason' | 'amount' | OrderDiscountKeySpecifier)[]; -export type OrderDiscountFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - translatedName?: FieldPolicy | FieldReadFunction, - valueType?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction, - reason?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction -}; -export type OrderDiscountAddKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderDiscountAddKeySpecifier)[]; -export type OrderDiscountAddFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderDiscountDeleteKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderDiscountDeleteKeySpecifier)[]; -export type OrderDiscountDeleteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderDiscountUpdateKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderDiscountUpdateKeySpecifier)[]; -export type OrderDiscountUpdateFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderErrorKeySpecifier = ('field' | 'message' | 'code' | 'warehouse' | 'orderLines' | 'variants' | 'addressType' | OrderErrorKeySpecifier)[]; -export type OrderErrorFieldPolicy = { field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction, - orderLines?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - addressType?: FieldPolicy | FieldReadFunction -}; -export type OrderEventKeySpecifier = ('id' | 'date' | 'type' | 'user' | 'app' | 'message' | 'email' | 'emailType' | 'amount' | 'paymentId' | 'paymentGateway' | 'quantity' | 'composedId' | 'orderNumber' | 'invoiceNumber' | 'oversoldItems' | 'lines' | 'fulfilledItems' | 'warehouse' | 'transactionReference' | 'shippingCostsIncluded' | 'relatedOrder' | 'discount' | 'status' | 'reference' | OrderEventKeySpecifier)[]; -export type OrderEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - emailType?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction, - paymentId?: FieldPolicy | FieldReadFunction, - paymentGateway?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - composedId?: FieldPolicy | FieldReadFunction, - orderNumber?: FieldPolicy | FieldReadFunction, - invoiceNumber?: FieldPolicy | FieldReadFunction, - oversoldItems?: FieldPolicy | FieldReadFunction, lines?: FieldPolicy | FieldReadFunction, - fulfilledItems?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction, - transactionReference?: FieldPolicy | FieldReadFunction, - shippingCostsIncluded?: FieldPolicy | FieldReadFunction, - relatedOrder?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - reference?: FieldPolicy | FieldReadFunction -}; -export type OrderEventCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | OrderEventCountableConnectionKeySpecifier)[]; -export type OrderEventCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type OrderEventCountableEdgeKeySpecifier = ('node' | 'cursor' | OrderEventCountableEdgeKeySpecifier)[]; -export type OrderEventCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type OrderEventDiscountObjectKeySpecifier = ('valueType' | 'value' | 'reason' | 'amount' | 'oldValueType' | 'oldValue' | 'oldAmount' | OrderEventDiscountObjectKeySpecifier)[]; -export type OrderEventDiscountObjectFieldPolicy = { - valueType?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction, - reason?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction, - oldValueType?: FieldPolicy | FieldReadFunction, - oldValue?: FieldPolicy | FieldReadFunction, - oldAmount?: FieldPolicy | FieldReadFunction -}; -export type OrderEventOrderLineObjectKeySpecifier = ('quantity' | 'orderLine' | 'itemName' | 'discount' | OrderEventOrderLineObjectKeySpecifier)[]; -export type OrderEventOrderLineObjectFieldPolicy = { - quantity?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction, - itemName?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction -}; -export type OrderFilterShippingMethodsKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | 'shippingMethods' | OrderFilterShippingMethodsKeySpecifier)[]; -export type OrderFilterShippingMethodsFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction -}; -export type OrderFulfillKeySpecifier = ('fulfillments' | 'order' | 'orderErrors' | 'errors' | OrderFulfillKeySpecifier)[]; -export type OrderFulfillFieldPolicy = { - fulfillments?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderFulfilledKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderFulfilledKeySpecifier)[]; -export type OrderFulfilledFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderFullyPaidKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderFullyPaidKeySpecifier)[]; -export type OrderFullyPaidFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderLineKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'productName' | 'variantName' | 'productSku' | 'productVariantId' | 'isShippingRequired' | 'quantity' | 'quantityFulfilled' | 'unitDiscountReason' | 'taxRate' | 'digitalContentUrl' | 'thumbnail' | 'unitPrice' | 'undiscountedUnitPrice' | 'unitDiscount' | 'unitDiscountValue' | 'totalPrice' | 'variant' | 'translatedProductName' | 'translatedVariantName' | 'allocations' | 'quantityToFulfill' | 'unitDiscountType' | 'taxClass' | 'taxClassName' | 'taxClassMetadata' | 'taxClassPrivateMetadata' | OrderLineKeySpecifier)[]; -export type OrderLineFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - productName?: FieldPolicy | FieldReadFunction, - variantName?: FieldPolicy | FieldReadFunction, - productSku?: FieldPolicy | FieldReadFunction, - productVariantId?: FieldPolicy | FieldReadFunction, - isShippingRequired?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - quantityFulfilled?: FieldPolicy | FieldReadFunction, - unitDiscountReason?: FieldPolicy | FieldReadFunction, - taxRate?: FieldPolicy | FieldReadFunction, - digitalContentUrl?: FieldPolicy | FieldReadFunction, - thumbnail?: FieldPolicy | FieldReadFunction, - unitPrice?: FieldPolicy | FieldReadFunction, - undiscountedUnitPrice?: FieldPolicy | FieldReadFunction, - unitDiscount?: FieldPolicy | FieldReadFunction, - unitDiscountValue?: FieldPolicy | FieldReadFunction, - totalPrice?: FieldPolicy | FieldReadFunction, - variant?: FieldPolicy | FieldReadFunction, - translatedProductName?: FieldPolicy | FieldReadFunction, - translatedVariantName?: FieldPolicy | FieldReadFunction, - allocations?: FieldPolicy | FieldReadFunction, - quantityToFulfill?: FieldPolicy | FieldReadFunction, - unitDiscountType?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction, - taxClassName?: FieldPolicy | FieldReadFunction, - taxClassMetadata?: FieldPolicy | FieldReadFunction, - taxClassPrivateMetadata?: FieldPolicy | FieldReadFunction -}; -export type OrderLineDeleteKeySpecifier = ('order' | 'orderLine' | 'orderErrors' | 'errors' | OrderLineDeleteKeySpecifier)[]; -export type OrderLineDeleteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderLineDiscountRemoveKeySpecifier = ('orderLine' | 'order' | 'orderErrors' | 'errors' | OrderLineDiscountRemoveKeySpecifier)[]; -export type OrderLineDiscountRemoveFieldPolicy = { - orderLine?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderLineDiscountUpdateKeySpecifier = ('orderLine' | 'order' | 'orderErrors' | 'errors' | OrderLineDiscountUpdateKeySpecifier)[]; -export type OrderLineDiscountUpdateFieldPolicy = { - orderLine?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderLineUpdateKeySpecifier = ('order' | 'orderErrors' | 'errors' | 'orderLine' | OrderLineUpdateKeySpecifier)[]; -export type OrderLineUpdateFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction -}; -export type OrderLinesCreateKeySpecifier = ('order' | 'orderLines' | 'orderErrors' | 'errors' | OrderLinesCreateKeySpecifier)[]; -export type OrderLinesCreateFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderLines?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderMarkAsPaidKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderMarkAsPaidKeySpecifier)[]; -export type OrderMarkAsPaidFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderMetadataUpdatedKeySpecifier)[]; -export type OrderMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderRefundKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderRefundKeySpecifier)[]; -export type OrderRefundFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderSettingsKeySpecifier = ('automaticallyConfirmAllNewOrders' | 'automaticallyFulfillNonShippableGiftCard' | OrderSettingsKeySpecifier)[]; -export type OrderSettingsFieldPolicy = { - automaticallyConfirmAllNewOrders?: FieldPolicy | FieldReadFunction, - automaticallyFulfillNonShippableGiftCard?: FieldPolicy | FieldReadFunction -}; -export type OrderSettingsErrorKeySpecifier = ('field' | 'message' | 'code' | OrderSettingsErrorKeySpecifier)[]; -export type OrderSettingsErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type OrderSettingsUpdateKeySpecifier = ('orderSettings' | 'orderSettingsErrors' | 'errors' | OrderSettingsUpdateKeySpecifier)[]; -export type OrderSettingsUpdateFieldPolicy = { - orderSettings?: FieldPolicy | FieldReadFunction, - orderSettingsErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderUpdateKeySpecifier = ('orderErrors' | 'errors' | 'order' | OrderUpdateKeySpecifier)[]; -export type OrderUpdateFieldPolicy = { - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderUpdateShippingKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderUpdateShippingKeySpecifier)[]; -export type OrderUpdateShippingFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderUpdatedKeySpecifier)[]; -export type OrderUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderVoidKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderVoidKeySpecifier)[]; -export type OrderVoidFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'seoTitle' | 'seoDescription' | 'title' | 'content' | 'publicationDate' | 'publishedAt' | 'isPublished' | 'slug' | 'pageType' | 'created' | 'contentJson' | 'translation' | 'attributes' | PageKeySpecifier)[]; -export type PageFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - title?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - publicationDate?: FieldPolicy | FieldReadFunction, - publishedAt?: FieldPolicy | FieldReadFunction, - isPublished?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - contentJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction -}; -export type PageAttributeAssignKeySpecifier = ('pageType' | 'pageErrors' | 'errors' | PageAttributeAssignKeySpecifier)[]; -export type PageAttributeAssignFieldPolicy = { - pageType?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageAttributeUnassignKeySpecifier = ('pageType' | 'pageErrors' | 'errors' | PageAttributeUnassignKeySpecifier)[]; -export type PageAttributeUnassignFieldPolicy = { - pageType?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageBulkDeleteKeySpecifier = ('count' | 'pageErrors' | 'errors' | PageBulkDeleteKeySpecifier)[]; -export type PageBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageBulkPublishKeySpecifier = ('count' | 'pageErrors' | 'errors' | PageBulkPublishKeySpecifier)[]; -export type PageBulkPublishFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PageCountableConnectionKeySpecifier)[]; -export type PageCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type PageCountableEdgeKeySpecifier = ('node' | 'cursor' | PageCountableEdgeKeySpecifier)[]; -export type PageCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type PageCreateKeySpecifier = ('pageErrors' | 'errors' | 'page' | PageCreateKeySpecifier)[]; -export type PageCreateFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'page' | PageCreatedKeySpecifier)[]; -export type PageCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageDeleteKeySpecifier = ('pageErrors' | 'errors' | 'page' | PageDeleteKeySpecifier)[]; -export type PageDeleteFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'page' | PageDeletedKeySpecifier)[]; -export type PageDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | PageErrorKeySpecifier)[]; -export type PageErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction -}; -export type PageInfoKeySpecifier = ('hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor' | PageInfoKeySpecifier)[]; -export type PageInfoFieldPolicy = { - hasNextPage?: FieldPolicy | FieldReadFunction, - hasPreviousPage?: FieldPolicy | FieldReadFunction, - startCursor?: FieldPolicy | FieldReadFunction, - endCursor?: FieldPolicy | FieldReadFunction -}; -export type PageReorderAttributeValuesKeySpecifier = ('page' | 'pageErrors' | 'errors' | PageReorderAttributeValuesKeySpecifier)[]; -export type PageReorderAttributeValuesFieldPolicy = { - page?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'title' | 'content' | 'contentJson' | 'translation' | 'page' | 'attributeValues' | PageTranslatableContentKeySpecifier)[]; -export type PageTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - title?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - contentJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction, - attributeValues?: FieldPolicy | FieldReadFunction -}; -export type PageTranslateKeySpecifier = ('translationErrors' | 'errors' | 'page' | PageTranslateKeySpecifier)[]; -export type PageTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageTranslationKeySpecifier = ('id' | 'language' | 'seoTitle' | 'seoDescription' | 'title' | 'content' | 'contentJson' | PageTranslationKeySpecifier)[]; -export type PageTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - title?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - contentJson?: FieldPolicy | FieldReadFunction -}; -export type PageTypeKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'slug' | 'attributes' | 'availableAttributes' | 'hasPages' | PageTypeKeySpecifier)[]; -export type PageTypeFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - availableAttributes?: FieldPolicy | FieldReadFunction, - hasPages?: FieldPolicy | FieldReadFunction -}; -export type PageTypeBulkDeleteKeySpecifier = ('count' | 'pageErrors' | 'errors' | PageTypeBulkDeleteKeySpecifier)[]; -export type PageTypeBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageTypeCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PageTypeCountableConnectionKeySpecifier)[]; -export type PageTypeCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type PageTypeCountableEdgeKeySpecifier = ('node' | 'cursor' | PageTypeCountableEdgeKeySpecifier)[]; -export type PageTypeCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type PageTypeCreateKeySpecifier = ('pageErrors' | 'errors' | 'pageType' | PageTypeCreateKeySpecifier)[]; -export type PageTypeCreateFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'pageType' | PageTypeCreatedKeySpecifier)[]; -export type PageTypeCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeDeleteKeySpecifier = ('pageErrors' | 'errors' | 'pageType' | PageTypeDeleteKeySpecifier)[]; -export type PageTypeDeleteFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'pageType' | PageTypeDeletedKeySpecifier)[]; -export type PageTypeDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeReorderAttributesKeySpecifier = ('pageType' | 'pageErrors' | 'errors' | PageTypeReorderAttributesKeySpecifier)[]; -export type PageTypeReorderAttributesFieldPolicy = { - pageType?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageTypeUpdateKeySpecifier = ('pageErrors' | 'errors' | 'pageType' | PageTypeUpdateKeySpecifier)[]; -export type PageTypeUpdateFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'pageType' | PageTypeUpdatedKeySpecifier)[]; -export type PageTypeUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageUpdateKeySpecifier = ('pageErrors' | 'errors' | 'page' | PageUpdateKeySpecifier)[]; -export type PageUpdateFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'page' | PageUpdatedKeySpecifier)[]; -export type PageUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PasswordChangeKeySpecifier = ('user' | 'accountErrors' | 'errors' | PasswordChangeKeySpecifier)[]; -export type PasswordChangeFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'gateway' | 'isActive' | 'created' | 'modified' | 'token' | 'checkout' | 'order' | 'paymentMethodType' | 'customerIpAddress' | 'chargeStatus' | 'actions' | 'total' | 'capturedAmount' | 'transactions' | 'availableCaptureAmount' | 'availableRefundAmount' | 'creditCard' | PaymentKeySpecifier)[]; -export type PaymentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - gateway?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - modified?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - paymentMethodType?: FieldPolicy | FieldReadFunction, - customerIpAddress?: FieldPolicy | FieldReadFunction, - chargeStatus?: FieldPolicy | FieldReadFunction, - actions?: FieldPolicy | FieldReadFunction, - total?: FieldPolicy | FieldReadFunction, - capturedAmount?: FieldPolicy | FieldReadFunction, - transactions?: FieldPolicy | FieldReadFunction, - availableCaptureAmount?: FieldPolicy | FieldReadFunction, - availableRefundAmount?: FieldPolicy | FieldReadFunction, - creditCard?: FieldPolicy | FieldReadFunction -}; -export type PaymentAuthorizeKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentAuthorizeKeySpecifier)[]; -export type PaymentAuthorizeFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentCaptureKeySpecifier = ('payment' | 'paymentErrors' | 'errors' | PaymentCaptureKeySpecifier)[]; -export type PaymentCaptureFieldPolicy = { - payment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentCaptureEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentCaptureEventKeySpecifier)[]; -export type PaymentCaptureEventFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentCheckBalanceKeySpecifier = ('data' | 'paymentErrors' | 'errors' | PaymentCheckBalanceKeySpecifier)[]; -export type PaymentCheckBalanceFieldPolicy = { - data?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentConfirmEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentConfirmEventKeySpecifier)[]; -export type PaymentConfirmEventFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PaymentCountableConnectionKeySpecifier)[]; -export type PaymentCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type PaymentCountableEdgeKeySpecifier = ('node' | 'cursor' | PaymentCountableEdgeKeySpecifier)[]; -export type PaymentCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type PaymentErrorKeySpecifier = ('field' | 'message' | 'code' | 'variants' | PaymentErrorKeySpecifier)[]; -export type PaymentErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction }; -export type PaymentGatewayKeySpecifier = ('name' | 'id' | 'config' | 'currencies' | PaymentGatewayKeySpecifier)[]; -export type PaymentGatewayFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, - config?: FieldPolicy | FieldReadFunction, - currencies?: FieldPolicy | FieldReadFunction -}; -export type PaymentInitializeKeySpecifier = ('initializedPayment' | 'paymentErrors' | 'errors' | PaymentInitializeKeySpecifier)[]; -export type PaymentInitializeFieldPolicy = { - initializedPayment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentInitializedKeySpecifier = ('gateway' | 'name' | 'data' | PaymentInitializedKeySpecifier)[]; -export type PaymentInitializedFieldPolicy = { - gateway?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - data?: FieldPolicy | FieldReadFunction -}; -export type PaymentListGatewaysKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | PaymentListGatewaysKeySpecifier)[]; -export type PaymentListGatewaysFieldPolicy = { +export type OrderCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | OrderCreatedKeySpecifier)[]; +export type OrderCreatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type OrderDiscountKeySpecifier = ('amount' | 'id' | 'name' | 'reason' | 'translatedName' | 'type' | 'value' | 'valueType' | OrderDiscountKeySpecifier)[]; +export type OrderDiscountFieldPolicy = { + amount?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + reason?: FieldPolicy | FieldReadFunction, + translatedName?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, + value?: FieldPolicy | FieldReadFunction, + valueType?: FieldPolicy | FieldReadFunction +}; +export type OrderDiscountAddKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderDiscountAddKeySpecifier)[]; +export type OrderDiscountAddFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderDiscountDeleteKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderDiscountDeleteKeySpecifier)[]; +export type OrderDiscountDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderDiscountUpdateKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderDiscountUpdateKeySpecifier)[]; +export type OrderDiscountUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderErrorKeySpecifier = ('addressType' | 'code' | 'field' | 'message' | 'orderLines' | 'variants' | 'warehouse' | OrderErrorKeySpecifier)[]; +export type OrderErrorFieldPolicy = { + addressType?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + orderLines?: FieldPolicy | FieldReadFunction, + variants?: FieldPolicy | FieldReadFunction, + warehouse?: FieldPolicy | FieldReadFunction +}; +export type OrderEventKeySpecifier = ('amount' | 'app' | 'composedId' | 'date' | 'discount' | 'email' | 'emailType' | 'fulfilledItems' | 'id' | 'invoiceNumber' | 'lines' | 'message' | 'orderNumber' | 'oversoldItems' | 'paymentGateway' | 'paymentId' | 'quantity' | 'reference' | 'relatedOrder' | 'shippingCostsIncluded' | 'status' | 'transactionReference' | 'type' | 'user' | 'warehouse' | OrderEventKeySpecifier)[]; +export type OrderEventFieldPolicy = { + amount?: FieldPolicy | FieldReadFunction, + app?: FieldPolicy | FieldReadFunction, + composedId?: FieldPolicy | FieldReadFunction, + date?: FieldPolicy | FieldReadFunction, + discount?: FieldPolicy | FieldReadFunction, + email?: FieldPolicy | FieldReadFunction, + emailType?: FieldPolicy | FieldReadFunction, + fulfilledItems?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + invoiceNumber?: FieldPolicy | FieldReadFunction, + lines?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + orderNumber?: FieldPolicy | FieldReadFunction, + oversoldItems?: FieldPolicy | FieldReadFunction, + paymentGateway?: FieldPolicy | FieldReadFunction, + paymentId?: FieldPolicy | FieldReadFunction, + quantity?: FieldPolicy | FieldReadFunction, + reference?: FieldPolicy | FieldReadFunction, + relatedOrder?: FieldPolicy | FieldReadFunction, + shippingCostsIncluded?: FieldPolicy | FieldReadFunction, + status?: FieldPolicy | FieldReadFunction, + transactionReference?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction, + warehouse?: FieldPolicy | FieldReadFunction +}; +export type OrderEventCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | OrderEventCountableConnectionKeySpecifier)[]; +export type OrderEventCountableConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type OrderEventCountableEdgeKeySpecifier = ('cursor' | 'node' | OrderEventCountableEdgeKeySpecifier)[]; +export type OrderEventCountableEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; +export type OrderEventDiscountObjectKeySpecifier = ('amount' | 'oldAmount' | 'oldValue' | 'oldValueType' | 'reason' | 'value' | 'valueType' | OrderEventDiscountObjectKeySpecifier)[]; +export type OrderEventDiscountObjectFieldPolicy = { + amount?: FieldPolicy | FieldReadFunction, + oldAmount?: FieldPolicy | FieldReadFunction, + oldValue?: FieldPolicy | FieldReadFunction, + oldValueType?: FieldPolicy | FieldReadFunction, + reason?: FieldPolicy | FieldReadFunction, + value?: FieldPolicy | FieldReadFunction, + valueType?: FieldPolicy | FieldReadFunction +}; +export type OrderEventOrderLineObjectKeySpecifier = ('discount' | 'itemName' | 'orderLine' | 'quantity' | OrderEventOrderLineObjectKeySpecifier)[]; +export type OrderEventOrderLineObjectFieldPolicy = { + discount?: FieldPolicy | FieldReadFunction, + itemName?: FieldPolicy | FieldReadFunction, + orderLine?: FieldPolicy | FieldReadFunction, + quantity?: FieldPolicy | FieldReadFunction +}; +export type OrderExpiredKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | OrderExpiredKeySpecifier)[]; +export type OrderExpiredFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type OrderFilterShippingMethodsKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'shippingMethods' | 'version' | OrderFilterShippingMethodsKeySpecifier)[]; +export type OrderFilterShippingMethodsFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + shippingMethods?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type OrderFulfillKeySpecifier = ('errors' | 'fulfillments' | 'order' | 'orderErrors' | OrderFulfillKeySpecifier)[]; +export type OrderFulfillFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + fulfillments?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderFulfilledKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | OrderFulfilledKeySpecifier)[]; +export type OrderFulfilledFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type OrderFullyPaidKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | OrderFullyPaidKeySpecifier)[]; +export type OrderFullyPaidFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type OrderGrantRefundCreateKeySpecifier = ('errors' | 'grantedRefund' | 'order' | OrderGrantRefundCreateKeySpecifier)[]; +export type OrderGrantRefundCreateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + grantedRefund?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction +}; +export type OrderGrantRefundCreateErrorKeySpecifier = ('code' | 'field' | 'message' | OrderGrantRefundCreateErrorKeySpecifier)[]; +export type OrderGrantRefundCreateErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type OrderGrantRefundUpdateKeySpecifier = ('errors' | 'grantedRefund' | 'order' | 'orderGrantedRefund' | OrderGrantRefundUpdateKeySpecifier)[]; +export type OrderGrantRefundUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + grantedRefund?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderGrantedRefund?: FieldPolicy | FieldReadFunction +}; +export type OrderGrantRefundUpdateErrorKeySpecifier = ('code' | 'field' | 'message' | OrderGrantRefundUpdateErrorKeySpecifier)[]; +export type OrderGrantRefundUpdateErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type OrderGrantedRefundKeySpecifier = ('amount' | 'app' | 'createdAt' | 'id' | 'reason' | 'updatedAt' | 'user' | OrderGrantedRefundKeySpecifier)[]; +export type OrderGrantedRefundFieldPolicy = { + amount?: FieldPolicy | FieldReadFunction, + app?: FieldPolicy | FieldReadFunction, + createdAt?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + reason?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; +export type OrderLineKeySpecifier = ('allocations' | 'digitalContentUrl' | 'id' | 'isShippingRequired' | 'metadata' | 'metafield' | 'metafields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'productName' | 'productSku' | 'productVariantId' | 'quantity' | 'quantityFulfilled' | 'quantityToFulfill' | 'taxClass' | 'taxClassMetadata' | 'taxClassName' | 'taxClassPrivateMetadata' | 'taxRate' | 'thumbnail' | 'totalPrice' | 'translatedProductName' | 'translatedVariantName' | 'undiscountedUnitPrice' | 'unitDiscount' | 'unitDiscountReason' | 'unitDiscountType' | 'unitDiscountValue' | 'unitPrice' | 'variant' | 'variantName' | OrderLineKeySpecifier)[]; +export type OrderLineFieldPolicy = { + allocations?: FieldPolicy | FieldReadFunction, + digitalContentUrl?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + isShippingRequired?: FieldPolicy | FieldReadFunction, + metadata?: FieldPolicy | FieldReadFunction, + metafield?: FieldPolicy | FieldReadFunction, + metafields?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + productName?: FieldPolicy | FieldReadFunction, + productSku?: FieldPolicy | FieldReadFunction, + productVariantId?: FieldPolicy | FieldReadFunction, + quantity?: FieldPolicy | FieldReadFunction, + quantityFulfilled?: FieldPolicy | FieldReadFunction, + quantityToFulfill?: FieldPolicy | FieldReadFunction, + taxClass?: FieldPolicy | FieldReadFunction, + taxClassMetadata?: FieldPolicy | FieldReadFunction, + taxClassName?: FieldPolicy | FieldReadFunction, + taxClassPrivateMetadata?: FieldPolicy | FieldReadFunction, + taxRate?: FieldPolicy | FieldReadFunction, + thumbnail?: FieldPolicy | FieldReadFunction, + totalPrice?: FieldPolicy | FieldReadFunction, + translatedProductName?: FieldPolicy | FieldReadFunction, + translatedVariantName?: FieldPolicy | FieldReadFunction, + undiscountedUnitPrice?: FieldPolicy | FieldReadFunction, + unitDiscount?: FieldPolicy | FieldReadFunction, + unitDiscountReason?: FieldPolicy | FieldReadFunction, + unitDiscountType?: FieldPolicy | FieldReadFunction, + unitDiscountValue?: FieldPolicy | FieldReadFunction, + unitPrice?: FieldPolicy | FieldReadFunction, + variant?: FieldPolicy | FieldReadFunction, + variantName?: FieldPolicy | FieldReadFunction +}; +export type OrderLineDeleteKeySpecifier = ('errors' | 'order' | 'orderErrors' | 'orderLine' | OrderLineDeleteKeySpecifier)[]; +export type OrderLineDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction, + orderLine?: FieldPolicy | FieldReadFunction +}; +export type OrderLineDiscountRemoveKeySpecifier = ('errors' | 'order' | 'orderErrors' | 'orderLine' | OrderLineDiscountRemoveKeySpecifier)[]; +export type OrderLineDiscountRemoveFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction, + orderLine?: FieldPolicy | FieldReadFunction +}; +export type OrderLineDiscountUpdateKeySpecifier = ('errors' | 'order' | 'orderErrors' | 'orderLine' | OrderLineDiscountUpdateKeySpecifier)[]; +export type OrderLineDiscountUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction, + orderLine?: FieldPolicy | FieldReadFunction +}; +export type OrderLineUpdateKeySpecifier = ('errors' | 'order' | 'orderErrors' | 'orderLine' | OrderLineUpdateKeySpecifier)[]; +export type OrderLineUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction, + orderLine?: FieldPolicy | FieldReadFunction +}; +export type OrderLinesCreateKeySpecifier = ('errors' | 'order' | 'orderErrors' | 'orderLines' | OrderLinesCreateKeySpecifier)[]; +export type OrderLinesCreateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction, + orderLines?: FieldPolicy | FieldReadFunction +}; +export type OrderMarkAsPaidKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderMarkAsPaidKeySpecifier)[]; +export type OrderMarkAsPaidFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderMetadataUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | OrderMetadataUpdatedKeySpecifier)[]; +export type OrderMetadataUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type OrderRefundKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderRefundKeySpecifier)[]; +export type OrderRefundFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderSettingsKeySpecifier = ('automaticallyConfirmAllNewOrders' | 'automaticallyFulfillNonShippableGiftCard' | 'defaultTransactionFlowStrategy' | 'expireOrdersAfter' | 'markAsPaidStrategy' | OrderSettingsKeySpecifier)[]; +export type OrderSettingsFieldPolicy = { + automaticallyConfirmAllNewOrders?: FieldPolicy | FieldReadFunction, + automaticallyFulfillNonShippableGiftCard?: FieldPolicy | FieldReadFunction, + defaultTransactionFlowStrategy?: FieldPolicy | FieldReadFunction, + expireOrdersAfter?: FieldPolicy | FieldReadFunction, + markAsPaidStrategy?: FieldPolicy | FieldReadFunction +}; +export type OrderSettingsErrorKeySpecifier = ('code' | 'field' | 'message' | OrderSettingsErrorKeySpecifier)[]; +export type OrderSettingsErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type OrderSettingsUpdateKeySpecifier = ('errors' | 'orderSettings' | 'orderSettingsErrors' | OrderSettingsUpdateKeySpecifier)[]; +export type OrderSettingsUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + orderSettings?: FieldPolicy | FieldReadFunction, + orderSettingsErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderUpdateKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderUpdateKeySpecifier)[]; +export type OrderUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderUpdateShippingKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderUpdateShippingKeySpecifier)[]; +export type OrderUpdateShippingFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type OrderUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'order' | 'recipient' | 'version' | OrderUpdatedKeySpecifier)[]; +export type OrderUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type OrderVoidKeySpecifier = ('errors' | 'order' | 'orderErrors' | OrderVoidKeySpecifier)[]; +export type OrderVoidFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderErrors?: FieldPolicy | FieldReadFunction +}; +export type PageKeySpecifier = ('attributes' | 'content' | 'contentJson' | 'created' | 'id' | 'isPublished' | 'metadata' | 'metafield' | 'metafields' | 'pageType' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'publicationDate' | 'publishedAt' | 'seoDescription' | 'seoTitle' | 'slug' | 'title' | 'translation' | PageKeySpecifier)[]; +export type PageFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + content?: FieldPolicy | FieldReadFunction, + contentJson?: FieldPolicy | FieldReadFunction, + created?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + isPublished?: FieldPolicy | FieldReadFunction, + metadata?: FieldPolicy | FieldReadFunction, + metafield?: FieldPolicy | FieldReadFunction, + metafields?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + publicationDate?: FieldPolicy | FieldReadFunction, + publishedAt?: FieldPolicy | FieldReadFunction, + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction, + title?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction +}; +export type PageAttributeAssignKeySpecifier = ('errors' | 'pageErrors' | 'pageType' | PageAttributeAssignKeySpecifier)[]; +export type PageAttributeAssignFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction +}; +export type PageAttributeUnassignKeySpecifier = ('errors' | 'pageErrors' | 'pageType' | PageAttributeUnassignKeySpecifier)[]; +export type PageAttributeUnassignFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction +}; +export type PageBulkDeleteKeySpecifier = ('count' | 'errors' | 'pageErrors' | PageBulkDeleteKeySpecifier)[]; +export type PageBulkDeleteFieldPolicy = { + count?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction +}; +export type PageBulkPublishKeySpecifier = ('count' | 'errors' | 'pageErrors' | PageBulkPublishKeySpecifier)[]; +export type PageBulkPublishFieldPolicy = { + count?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction +}; +export type PageCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | PageCountableConnectionKeySpecifier)[]; +export type PageCountableConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type PageCountableEdgeKeySpecifier = ('cursor' | 'node' | PageCountableEdgeKeySpecifier)[]; +export type PageCountableEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; +export type PageCreateKeySpecifier = ('errors' | 'page' | 'pageErrors' | PageCreateKeySpecifier)[]; +export type PageCreateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction +}; +export type PageCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'page' | 'recipient' | 'version' | PageCreatedKeySpecifier)[]; +export type PageCreatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PageDeleteKeySpecifier = ('errors' | 'page' | 'pageErrors' | PageDeleteKeySpecifier)[]; +export type PageDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction +}; +export type PageDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'page' | 'recipient' | 'version' | PageDeletedKeySpecifier)[]; +export type PageDeletedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PageErrorKeySpecifier = ('attributes' | 'code' | 'field' | 'message' | 'values' | PageErrorKeySpecifier)[]; +export type PageErrorFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + values?: FieldPolicy | FieldReadFunction +}; +export type PageInfoKeySpecifier = ('endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | PageInfoKeySpecifier)[]; +export type PageInfoFieldPolicy = { + endCursor?: FieldPolicy | FieldReadFunction, + hasNextPage?: FieldPolicy | FieldReadFunction, + hasPreviousPage?: FieldPolicy | FieldReadFunction, + startCursor?: FieldPolicy | FieldReadFunction +}; +export type PageReorderAttributeValuesKeySpecifier = ('errors' | 'page' | 'pageErrors' | PageReorderAttributeValuesKeySpecifier)[]; +export type PageReorderAttributeValuesFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction +}; +export type PageTranslatableContentKeySpecifier = ('attributeValues' | 'content' | 'contentJson' | 'id' | 'page' | 'seoDescription' | 'seoTitle' | 'title' | 'translation' | PageTranslatableContentKeySpecifier)[]; +export type PageTranslatableContentFieldPolicy = { + attributeValues?: FieldPolicy | FieldReadFunction, + content?: FieldPolicy | FieldReadFunction, + contentJson?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + title?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction +}; +export type PageTranslateKeySpecifier = ('errors' | 'page' | 'translationErrors' | PageTranslateKeySpecifier)[]; +export type PageTranslateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + translationErrors?: FieldPolicy | FieldReadFunction +}; +export type PageTranslationKeySpecifier = ('content' | 'contentJson' | 'id' | 'language' | 'seoDescription' | 'seoTitle' | 'title' | PageTranslationKeySpecifier)[]; +export type PageTranslationFieldPolicy = { + content?: FieldPolicy | FieldReadFunction, + contentJson?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + language?: FieldPolicy | FieldReadFunction, + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + title?: FieldPolicy | FieldReadFunction +}; +export type PageTypeKeySpecifier = ('attributes' | 'availableAttributes' | 'hasPages' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'slug' | PageTypeKeySpecifier)[]; +export type PageTypeFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + availableAttributes?: FieldPolicy | FieldReadFunction, + hasPages?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + metadata?: FieldPolicy | FieldReadFunction, + metafield?: FieldPolicy | FieldReadFunction, + metafields?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction +}; +export type PageTypeBulkDeleteKeySpecifier = ('count' | 'errors' | 'pageErrors' | PageTypeBulkDeleteKeySpecifier)[]; +export type PageTypeBulkDeleteFieldPolicy = { + count?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction +}; +export type PageTypeCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | PageTypeCountableConnectionKeySpecifier)[]; +export type PageTypeCountableConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type PageTypeCountableEdgeKeySpecifier = ('cursor' | 'node' | PageTypeCountableEdgeKeySpecifier)[]; +export type PageTypeCountableEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; +export type PageTypeCreateKeySpecifier = ('errors' | 'pageErrors' | 'pageType' | PageTypeCreateKeySpecifier)[]; +export type PageTypeCreateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction +}; +export type PageTypeCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'pageType' | 'recipient' | 'version' | PageTypeCreatedKeySpecifier)[]; +export type PageTypeCreatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PageTypeDeleteKeySpecifier = ('errors' | 'pageErrors' | 'pageType' | PageTypeDeleteKeySpecifier)[]; +export type PageTypeDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction +}; +export type PageTypeDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'pageType' | 'recipient' | 'version' | PageTypeDeletedKeySpecifier)[]; +export type PageTypeDeletedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PageTypeReorderAttributesKeySpecifier = ('errors' | 'pageErrors' | 'pageType' | PageTypeReorderAttributesKeySpecifier)[]; +export type PageTypeReorderAttributesFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction +}; +export type PageTypeUpdateKeySpecifier = ('errors' | 'pageErrors' | 'pageType' | PageTypeUpdateKeySpecifier)[]; +export type PageTypeUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction +}; +export type PageTypeUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'pageType' | 'recipient' | 'version' | PageTypeUpdatedKeySpecifier)[]; +export type PageTypeUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PageUpdateKeySpecifier = ('errors' | 'page' | 'pageErrors' | PageUpdateKeySpecifier)[]; +export type PageUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + pageErrors?: FieldPolicy | FieldReadFunction +}; +export type PageUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'page' | 'recipient' | 'version' | PageUpdatedKeySpecifier)[]; +export type PageUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PasswordChangeKeySpecifier = ('accountErrors' | 'errors' | 'user' | PasswordChangeKeySpecifier)[]; +export type PasswordChangeFieldPolicy = { + accountErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; +export type PaymentKeySpecifier = ('actions' | 'availableCaptureAmount' | 'availableRefundAmount' | 'capturedAmount' | 'chargeStatus' | 'checkout' | 'created' | 'creditCard' | 'customerIpAddress' | 'gateway' | 'id' | 'isActive' | 'metadata' | 'metafield' | 'metafields' | 'modified' | 'order' | 'paymentMethodType' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'token' | 'total' | 'transactions' | PaymentKeySpecifier)[]; +export type PaymentFieldPolicy = { + actions?: FieldPolicy | FieldReadFunction, + availableCaptureAmount?: FieldPolicy | FieldReadFunction, + availableRefundAmount?: FieldPolicy | FieldReadFunction, + capturedAmount?: FieldPolicy | FieldReadFunction, + chargeStatus?: FieldPolicy | FieldReadFunction, + checkout?: FieldPolicy | FieldReadFunction, + created?: FieldPolicy | FieldReadFunction, + creditCard?: FieldPolicy | FieldReadFunction, + customerIpAddress?: FieldPolicy | FieldReadFunction, + gateway?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + isActive?: FieldPolicy | FieldReadFunction, + metadata?: FieldPolicy | FieldReadFunction, + metafield?: FieldPolicy | FieldReadFunction, + metafields?: FieldPolicy | FieldReadFunction, + modified?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + paymentMethodType?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + token?: FieldPolicy | FieldReadFunction, + total?: FieldPolicy | FieldReadFunction, + transactions?: FieldPolicy | FieldReadFunction +}; +export type PaymentAuthorizeKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'payment' | 'recipient' | 'version' | PaymentAuthorizeKeySpecifier)[]; +export type PaymentAuthorizeFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PaymentCaptureKeySpecifier = ('errors' | 'payment' | 'paymentErrors' | PaymentCaptureKeySpecifier)[]; +export type PaymentCaptureFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, + paymentErrors?: FieldPolicy | FieldReadFunction +}; +export type PaymentCaptureEventKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'payment' | 'recipient' | 'version' | PaymentCaptureEventKeySpecifier)[]; +export type PaymentCaptureEventFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PaymentCheckBalanceKeySpecifier = ('data' | 'errors' | 'paymentErrors' | PaymentCheckBalanceKeySpecifier)[]; +export type PaymentCheckBalanceFieldPolicy = { + data?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + paymentErrors?: FieldPolicy | FieldReadFunction +}; +export type PaymentConfirmEventKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'payment' | 'recipient' | 'version' | PaymentConfirmEventKeySpecifier)[]; +export type PaymentConfirmEventFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PaymentCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | PaymentCountableConnectionKeySpecifier)[]; +export type PaymentCountableConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type PaymentCountableEdgeKeySpecifier = ('cursor' | 'node' | PaymentCountableEdgeKeySpecifier)[]; +export type PaymentCountableEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; +export type PaymentErrorKeySpecifier = ('code' | 'field' | 'message' | 'variants' | PaymentErrorKeySpecifier)[]; +export type PaymentErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + variants?: FieldPolicy | FieldReadFunction +}; +export type PaymentGatewayKeySpecifier = ('config' | 'currencies' | 'id' | 'name' | PaymentGatewayKeySpecifier)[]; +export type PaymentGatewayFieldPolicy = { + config?: FieldPolicy | FieldReadFunction, + currencies?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction +}; +export type PaymentGatewayConfigKeySpecifier = ('data' | 'errors' | 'id' | PaymentGatewayConfigKeySpecifier)[]; +export type PaymentGatewayConfigFieldPolicy = { + data?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction +}; +export type PaymentGatewayConfigErrorKeySpecifier = ('code' | 'field' | 'message' | PaymentGatewayConfigErrorKeySpecifier)[]; +export type PaymentGatewayConfigErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type PaymentGatewayInitializeKeySpecifier = ('errors' | 'gatewayConfigs' | PaymentGatewayInitializeKeySpecifier)[]; +export type PaymentGatewayInitializeFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + gatewayConfigs?: FieldPolicy | FieldReadFunction +}; +export type PaymentGatewayInitializeErrorKeySpecifier = ('code' | 'field' | 'message' | PaymentGatewayInitializeErrorKeySpecifier)[]; +export type PaymentGatewayInitializeErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type PaymentGatewayInitializeSessionKeySpecifier = ('amount' | 'data' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'sourceObject' | 'version' | PaymentGatewayInitializeSessionKeySpecifier)[]; +export type PaymentGatewayInitializeSessionFieldPolicy = { + amount?: FieldPolicy | FieldReadFunction, + data?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction + sourceObject?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type PaymentProcessEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentProcessEventKeySpecifier)[]; +export type PaymentInitializeKeySpecifier = ('errors' | 'initializedPayment' | 'paymentErrors' | PaymentInitializeKeySpecifier)[]; +export type PaymentInitializeFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + initializedPayment?: FieldPolicy | FieldReadFunction, + paymentErrors?: FieldPolicy | FieldReadFunction +}; +export type PaymentInitializedKeySpecifier = ('data' | 'gateway' | 'name' | PaymentInitializedKeySpecifier)[]; +export type PaymentInitializedFieldPolicy = { + data?: FieldPolicy | FieldReadFunction, + gateway?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction +}; +export type PaymentListGatewaysKeySpecifier = ('checkout' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | PaymentListGatewaysKeySpecifier)[]; +export type PaymentListGatewaysFieldPolicy = { + checkout?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type PaymentProcessEventKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'payment' | 'recipient' | 'version' | PaymentProcessEventKeySpecifier)[]; export type PaymentProcessEventFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentRefundKeySpecifier = ('payment' | 'paymentErrors' | 'errors' | PaymentRefundKeySpecifier)[]; -export type PaymentRefundFieldPolicy = { payment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type PaymentRefundEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentRefundEventKeySpecifier)[]; +export type PaymentRefundKeySpecifier = ('errors' | 'payment' | 'paymentErrors' | PaymentRefundKeySpecifier)[]; +export type PaymentRefundFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, + paymentErrors?: FieldPolicy | FieldReadFunction +}; +export type PaymentRefundEventKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'payment' | 'recipient' | 'version' | PaymentRefundEventKeySpecifier)[]; export type PaymentRefundEventFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentSourceKeySpecifier = ('gateway' | 'paymentMethodId' | 'creditCardInfo' | 'metadata' | PaymentSourceKeySpecifier)[]; -export type PaymentSourceFieldPolicy = { - gateway?: FieldPolicy | FieldReadFunction, - paymentMethodId?: FieldPolicy | FieldReadFunction, - creditCardInfo?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction -}; -export type PaymentVoidKeySpecifier = ('payment' | 'paymentErrors' | 'errors' | PaymentVoidKeySpecifier)[]; -export type PaymentVoidFieldPolicy = { payment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type PaymentVoidEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentVoidEventKeySpecifier)[]; +export type PaymentSourceKeySpecifier = ('creditCardInfo' | 'gateway' | 'metadata' | 'paymentMethodId' | PaymentSourceKeySpecifier)[]; +export type PaymentSourceFieldPolicy = { + creditCardInfo?: FieldPolicy | FieldReadFunction, + gateway?: FieldPolicy | FieldReadFunction, + metadata?: FieldPolicy | FieldReadFunction, + paymentMethodId?: FieldPolicy | FieldReadFunction +}; +export type PaymentVoidKeySpecifier = ('errors' | 'payment' | 'paymentErrors' | PaymentVoidKeySpecifier)[]; +export type PaymentVoidFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, + paymentErrors?: FieldPolicy | FieldReadFunction +}; +export type PaymentVoidEventKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'payment' | 'recipient' | 'version' | PaymentVoidEventKeySpecifier)[]; export type PaymentVoidEventFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; export type PermissionKeySpecifier = ('code' | 'name' | PermissionKeySpecifier)[]; export type PermissionFieldPolicy = { code?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; -export type PermissionGroupCreateKeySpecifier = ('permissionGroupErrors' | 'errors' | 'group' | PermissionGroupCreateKeySpecifier)[]; +export type PermissionGroupCreateKeySpecifier = ('errors' | 'group' | 'permissionGroupErrors' | PermissionGroupCreateKeySpecifier)[]; export type PermissionGroupCreateFieldPolicy = { - permissionGroupErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - group?: FieldPolicy | FieldReadFunction + group?: FieldPolicy | FieldReadFunction, + permissionGroupErrors?: FieldPolicy | FieldReadFunction }; -export type PermissionGroupCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'permissionGroup' | PermissionGroupCreatedKeySpecifier)[]; +export type PermissionGroupCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'permissionGroup' | 'recipient' | 'version' | PermissionGroupCreatedKeySpecifier)[]; export type PermissionGroupCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + permissionGroup?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - permissionGroup?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type PermissionGroupDeleteKeySpecifier = ('permissionGroupErrors' | 'errors' | 'group' | PermissionGroupDeleteKeySpecifier)[]; +export type PermissionGroupDeleteKeySpecifier = ('errors' | 'group' | 'permissionGroupErrors' | PermissionGroupDeleteKeySpecifier)[]; export type PermissionGroupDeleteFieldPolicy = { - permissionGroupErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - group?: FieldPolicy | FieldReadFunction + group?: FieldPolicy | FieldReadFunction, + permissionGroupErrors?: FieldPolicy | FieldReadFunction }; -export type PermissionGroupDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'permissionGroup' | PermissionGroupDeletedKeySpecifier)[]; +export type PermissionGroupDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'permissionGroup' | 'recipient' | 'version' | PermissionGroupDeletedKeySpecifier)[]; export type PermissionGroupDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + permissionGroup?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - permissionGroup?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type PermissionGroupErrorKeySpecifier = ('field' | 'message' | 'code' | 'permissions' | 'users' | PermissionGroupErrorKeySpecifier)[]; +export type PermissionGroupErrorKeySpecifier = ('code' | 'field' | 'message' | 'permissions' | 'users' | PermissionGroupErrorKeySpecifier)[]; export type PermissionGroupErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, permissions?: FieldPolicy | FieldReadFunction, users?: FieldPolicy | FieldReadFunction }; -export type PermissionGroupUpdateKeySpecifier = ('permissionGroupErrors' | 'errors' | 'group' | PermissionGroupUpdateKeySpecifier)[]; +export type PermissionGroupUpdateKeySpecifier = ('errors' | 'group' | 'permissionGroupErrors' | PermissionGroupUpdateKeySpecifier)[]; export type PermissionGroupUpdateFieldPolicy = { - permissionGroupErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - group?: FieldPolicy | FieldReadFunction + group?: FieldPolicy | FieldReadFunction, + permissionGroupErrors?: FieldPolicy | FieldReadFunction }; -export type PermissionGroupUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'permissionGroup' | PermissionGroupUpdatedKeySpecifier)[]; +export type PermissionGroupUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'permissionGroup' | 'recipient' | 'version' | PermissionGroupUpdatedKeySpecifier)[]; export type PermissionGroupUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + permissionGroup?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - permissionGroup?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type PluginKeySpecifier = ('id' | 'name' | 'description' | 'globalConfiguration' | 'channelConfigurations' | PluginKeySpecifier)[]; +export type PluginKeySpecifier = ('channelConfigurations' | 'description' | 'globalConfiguration' | 'id' | 'name' | PluginKeySpecifier)[]; export type PluginFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, + channelConfigurations?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, globalConfiguration?: FieldPolicy | FieldReadFunction, - channelConfigurations?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction }; export type PluginConfigurationKeySpecifier = ('active' | 'channel' | 'configuration' | PluginConfigurationKeySpecifier)[]; export type PluginConfigurationFieldPolicy = { @@ -3494,778 +3630,799 @@ export type PluginConfigurationFieldPolicy = { channel?: FieldPolicy | FieldReadFunction, configuration?: FieldPolicy | FieldReadFunction }; -export type PluginCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PluginCountableConnectionKeySpecifier)[]; +export type PluginCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | PluginCountableConnectionKeySpecifier)[]; export type PluginCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type PluginCountableEdgeKeySpecifier = ('node' | 'cursor' | PluginCountableEdgeKeySpecifier)[]; +export type PluginCountableEdgeKeySpecifier = ('cursor' | 'node' | PluginCountableEdgeKeySpecifier)[]; export type PluginCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type PluginErrorKeySpecifier = ('field' | 'message' | 'code' | PluginErrorKeySpecifier)[]; +export type PluginErrorKeySpecifier = ('code' | 'field' | 'message' | PluginErrorKeySpecifier)[]; export type PluginErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; -export type PluginUpdateKeySpecifier = ('plugin' | 'pluginsErrors' | 'errors' | PluginUpdateKeySpecifier)[]; +export type PluginUpdateKeySpecifier = ('errors' | 'plugin' | 'pluginsErrors' | PluginUpdateKeySpecifier)[]; export type PluginUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, plugin?: FieldPolicy | FieldReadFunction, - pluginsErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + pluginsErrors?: FieldPolicy | FieldReadFunction }; -export type PreorderDataKeySpecifier = ('globalThreshold' | 'globalSoldUnits' | 'endDate' | PreorderDataKeySpecifier)[]; +export type PreorderDataKeySpecifier = ('endDate' | 'globalSoldUnits' | 'globalThreshold' | PreorderDataKeySpecifier)[]; export type PreorderDataFieldPolicy = { - globalThreshold?: FieldPolicy | FieldReadFunction, + endDate?: FieldPolicy | FieldReadFunction, globalSoldUnits?: FieldPolicy | FieldReadFunction, - endDate?: FieldPolicy | FieldReadFunction + globalThreshold?: FieldPolicy | FieldReadFunction }; export type PreorderThresholdKeySpecifier = ('quantity' | 'soldUnits' | PreorderThresholdKeySpecifier)[]; export type PreorderThresholdFieldPolicy = { quantity?: FieldPolicy | FieldReadFunction, soldUnits?: FieldPolicy | FieldReadFunction }; -export type ProductKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'productType' | 'slug' | 'category' | 'created' | 'updatedAt' | 'chargeTaxes' | 'weight' | 'defaultVariant' | 'rating' | 'channel' | 'descriptionJson' | 'thumbnail' | 'pricing' | 'isAvailable' | 'taxType' | 'attribute' | 'attributes' | 'channelListings' | 'mediaById' | 'imageById' | 'variant' | 'variants' | 'media' | 'images' | 'collections' | 'translation' | 'availableForPurchase' | 'availableForPurchaseAt' | 'isAvailableForPurchase' | 'taxClass' | 'externalReference' | ProductKeySpecifier)[]; +export type ProductKeySpecifier = ('attribute' | 'attributes' | 'availableForPurchase' | 'availableForPurchaseAt' | 'category' | 'channel' | 'channelListings' | 'chargeTaxes' | 'collections' | 'created' | 'defaultVariant' | 'description' | 'descriptionJson' | 'externalReference' | 'id' | 'imageById' | 'images' | 'isAvailable' | 'isAvailableForPurchase' | 'media' | 'mediaById' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'pricing' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'productType' | 'rating' | 'seoDescription' | 'seoTitle' | 'slug' | 'taxClass' | 'taxType' | 'thumbnail' | 'translation' | 'updatedAt' | 'variant' | 'variants' | 'weight' | ProductKeySpecifier)[]; export type ProductFieldPolicy = { + attribute?: FieldPolicy | FieldReadFunction, + attributes?: FieldPolicy | FieldReadFunction, + availableForPurchase?: FieldPolicy | FieldReadFunction, + availableForPurchaseAt?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction, + channel?: FieldPolicy | FieldReadFunction, + channelListings?: FieldPolicy | FieldReadFunction, + chargeTaxes?: FieldPolicy | FieldReadFunction, + collections?: FieldPolicy | FieldReadFunction, + created?: FieldPolicy | FieldReadFunction, + defaultVariant?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, + descriptionJson?: FieldPolicy | FieldReadFunction, + externalReference?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + imageById?: FieldPolicy | FieldReadFunction, + images?: FieldPolicy | FieldReadFunction, + isAvailable?: FieldPolicy | FieldReadFunction, + isAvailableForPurchase?: FieldPolicy | FieldReadFunction, + media?: FieldPolicy | FieldReadFunction, + mediaById?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - productType?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - chargeTaxes?: FieldPolicy | FieldReadFunction, - weight?: FieldPolicy | FieldReadFunction, - defaultVariant?: FieldPolicy | FieldReadFunction, - rating?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, - thumbnail?: FieldPolicy | FieldReadFunction, pricing?: FieldPolicy | FieldReadFunction, - isAvailable?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + productType?: FieldPolicy | FieldReadFunction, + rating?: FieldPolicy | FieldReadFunction, + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction, + taxClass?: FieldPolicy | FieldReadFunction, taxType?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction, - mediaById?: FieldPolicy | FieldReadFunction, - imageById?: FieldPolicy | FieldReadFunction, + thumbnail?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction, variant?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - images?: FieldPolicy | FieldReadFunction, - collections?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - availableForPurchase?: FieldPolicy | FieldReadFunction, - availableForPurchaseAt?: FieldPolicy | FieldReadFunction, - isAvailableForPurchase?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction + weight?: FieldPolicy | FieldReadFunction }; -export type ProductAttributeAssignKeySpecifier = ('productType' | 'productErrors' | 'errors' | ProductAttributeAssignKeySpecifier)[]; +export type ProductAttributeAssignKeySpecifier = ('errors' | 'productErrors' | 'productType' | ProductAttributeAssignKeySpecifier)[]; export type ProductAttributeAssignFieldPolicy = { - productType?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + productType?: FieldPolicy | FieldReadFunction }; -export type ProductAttributeAssignmentUpdateKeySpecifier = ('productType' | 'productErrors' | 'errors' | ProductAttributeAssignmentUpdateKeySpecifier)[]; +export type ProductAttributeAssignmentUpdateKeySpecifier = ('errors' | 'productErrors' | 'productType' | ProductAttributeAssignmentUpdateKeySpecifier)[]; export type ProductAttributeAssignmentUpdateFieldPolicy = { - productType?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + productType?: FieldPolicy | FieldReadFunction }; -export type ProductAttributeUnassignKeySpecifier = ('productType' | 'productErrors' | 'errors' | ProductAttributeUnassignKeySpecifier)[]; +export type ProductAttributeUnassignKeySpecifier = ('errors' | 'productErrors' | 'productType' | ProductAttributeUnassignKeySpecifier)[]; export type ProductAttributeUnassignFieldPolicy = { - productType?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + productType?: FieldPolicy | FieldReadFunction }; -export type ProductBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | ProductBulkDeleteKeySpecifier)[]; +export type ProductBulkCreateKeySpecifier = ('count' | 'errors' | 'results' | ProductBulkCreateKeySpecifier)[]; +export type ProductBulkCreateFieldPolicy = { + count?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + results?: FieldPolicy | FieldReadFunction +}; +export type ProductBulkCreateErrorKeySpecifier = ('attributes' | 'channels' | 'code' | 'message' | 'path' | 'values' | 'warehouses' | ProductBulkCreateErrorKeySpecifier)[]; +export type ProductBulkCreateErrorFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + channels?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + path?: FieldPolicy | FieldReadFunction, + values?: FieldPolicy | FieldReadFunction, + warehouses?: FieldPolicy | FieldReadFunction +}; +export type ProductBulkDeleteKeySpecifier = ('count' | 'errors' | 'productErrors' | ProductBulkDeleteKeySpecifier)[]; export type ProductBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductChannelListingKeySpecifier = ('id' | 'publicationDate' | 'publishedAt' | 'isPublished' | 'channel' | 'visibleInListings' | 'availableForPurchase' | 'availableForPurchaseAt' | 'discountedPrice' | 'purchaseCost' | 'margin' | 'isAvailableForPurchase' | 'pricing' | ProductChannelListingKeySpecifier)[]; +export type ProductBulkResultKeySpecifier = ('errors' | 'product' | ProductBulkResultKeySpecifier)[]; +export type ProductBulkResultFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + product?: FieldPolicy | FieldReadFunction +}; +export type ProductChannelListingKeySpecifier = ('availableForPurchase' | 'availableForPurchaseAt' | 'channel' | 'discountedPrice' | 'id' | 'isAvailableForPurchase' | 'isPublished' | 'margin' | 'pricing' | 'publicationDate' | 'publishedAt' | 'purchaseCost' | 'visibleInListings' | ProductChannelListingKeySpecifier)[]; export type ProductChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - publicationDate?: FieldPolicy | FieldReadFunction, - publishedAt?: FieldPolicy | FieldReadFunction, - isPublished?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - visibleInListings?: FieldPolicy | FieldReadFunction, availableForPurchase?: FieldPolicy | FieldReadFunction, availableForPurchaseAt?: FieldPolicy | FieldReadFunction, + channel?: FieldPolicy | FieldReadFunction, discountedPrice?: FieldPolicy | FieldReadFunction, - purchaseCost?: FieldPolicy | FieldReadFunction, - margin?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, isAvailableForPurchase?: FieldPolicy | FieldReadFunction, - pricing?: FieldPolicy | FieldReadFunction + isPublished?: FieldPolicy | FieldReadFunction, + margin?: FieldPolicy | FieldReadFunction, + pricing?: FieldPolicy | FieldReadFunction, + publicationDate?: FieldPolicy | FieldReadFunction, + publishedAt?: FieldPolicy | FieldReadFunction, + purchaseCost?: FieldPolicy | FieldReadFunction, + visibleInListings?: FieldPolicy | FieldReadFunction }; -export type ProductChannelListingErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'channels' | 'variants' | ProductChannelListingErrorKeySpecifier)[]; +export type ProductChannelListingErrorKeySpecifier = ('attributes' | 'channels' | 'code' | 'field' | 'message' | 'values' | 'variants' | ProductChannelListingErrorKeySpecifier)[]; export type ProductChannelListingErrorFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + channels?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, values?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction }; -export type ProductChannelListingUpdateKeySpecifier = ('product' | 'productChannelListingErrors' | 'errors' | ProductChannelListingUpdateKeySpecifier)[]; +export type ProductChannelListingUpdateKeySpecifier = ('errors' | 'product' | 'productChannelListingErrors' | ProductChannelListingUpdateKeySpecifier)[]; export type ProductChannelListingUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction, - productChannelListingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + productChannelListingErrors?: FieldPolicy | FieldReadFunction }; -export type ProductCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ProductCountableConnectionKeySpecifier)[]; +export type ProductCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | ProductCountableConnectionKeySpecifier)[]; export type ProductCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type ProductCountableEdgeKeySpecifier = ('node' | 'cursor' | ProductCountableEdgeKeySpecifier)[]; +export type ProductCountableEdgeKeySpecifier = ('cursor' | 'node' | ProductCountableEdgeKeySpecifier)[]; export type ProductCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type ProductCreateKeySpecifier = ('productErrors' | 'errors' | 'product' | ProductCreateKeySpecifier)[]; +export type ProductCreateKeySpecifier = ('errors' | 'product' | 'productErrors' | ProductCreateKeySpecifier)[]; export type ProductCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction + product?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'product' | 'category' | ProductCreatedKeySpecifier)[]; +export type ProductCreatedKeySpecifier = ('category' | 'issuedAt' | 'issuingPrincipal' | 'product' | 'recipient' | 'version' | ProductCreatedKeySpecifier)[]; export type ProductCreatedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ProductDeleteKeySpecifier = ('productErrors' | 'errors' | 'product' | ProductDeleteKeySpecifier)[]; +export type ProductDeleteKeySpecifier = ('errors' | 'product' | 'productErrors' | ProductDeleteKeySpecifier)[]; export type ProductDeleteFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction -}; -export type ProductDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'product' | 'category' | ProductDeletedKeySpecifier)[]; -export type ProductDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | ProductErrorKeySpecifier)[]; +export type ProductDeletedKeySpecifier = ('category' | 'issuedAt' | 'issuingPrincipal' | 'product' | 'recipient' | 'version' | ProductDeletedKeySpecifier)[]; +export type ProductDeletedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + product?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type ProductErrorKeySpecifier = ('attributes' | 'code' | 'field' | 'message' | 'values' | ProductErrorKeySpecifier)[]; export type ProductErrorFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, values?: FieldPolicy | FieldReadFunction }; -export type ProductImageKeySpecifier = ('id' | 'alt' | 'sortOrder' | 'url' | ProductImageKeySpecifier)[]; +export type ProductImageKeySpecifier = ('alt' | 'id' | 'sortOrder' | 'url' | ProductImageKeySpecifier)[]; export type ProductImageFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, alt?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, sortOrder?: FieldPolicy | FieldReadFunction, url?: FieldPolicy | FieldReadFunction }; -export type ProductMediaKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'sortOrder' | 'alt' | 'type' | 'oembedData' | 'url' | 'productId' | ProductMediaKeySpecifier)[]; +export type ProductMediaKeySpecifier = ('alt' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'oembedData' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'productId' | 'sortOrder' | 'type' | 'url' | ProductMediaKeySpecifier)[]; export type ProductMediaFieldPolicy = { + alt?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - sortOrder?: FieldPolicy | FieldReadFunction, - alt?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, oembedData?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - productId?: FieldPolicy | FieldReadFunction + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + productId?: FieldPolicy | FieldReadFunction, + sortOrder?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction }; -export type ProductMediaBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | ProductMediaBulkDeleteKeySpecifier)[]; +export type ProductMediaBulkDeleteKeySpecifier = ('count' | 'errors' | 'productErrors' | ProductMediaBulkDeleteKeySpecifier)[]; export type ProductMediaBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductMediaCreateKeySpecifier = ('product' | 'media' | 'productErrors' | 'errors' | ProductMediaCreateKeySpecifier)[]; +export type ProductMediaCreateKeySpecifier = ('errors' | 'media' | 'product' | 'productErrors' | ProductMediaCreateKeySpecifier)[]; export type ProductMediaCreateFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + product?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductMediaCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productMedia' | ProductMediaCreatedKeySpecifier)[]; +export type ProductMediaCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productMedia' | 'recipient' | 'version' | ProductMediaCreatedKeySpecifier)[]; export type ProductMediaCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + productMedia?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - productMedia?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ProductMediaDeleteKeySpecifier = ('product' | 'media' | 'productErrors' | 'errors' | ProductMediaDeleteKeySpecifier)[]; +export type ProductMediaDeleteKeySpecifier = ('errors' | 'media' | 'product' | 'productErrors' | ProductMediaDeleteKeySpecifier)[]; export type ProductMediaDeleteFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + product?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductMediaDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productMedia' | ProductMediaDeletedKeySpecifier)[]; +export type ProductMediaDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productMedia' | 'recipient' | 'version' | ProductMediaDeletedKeySpecifier)[]; export type ProductMediaDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + productMedia?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - productMedia?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ProductMediaReorderKeySpecifier = ('product' | 'media' | 'productErrors' | 'errors' | ProductMediaReorderKeySpecifier)[]; +export type ProductMediaReorderKeySpecifier = ('errors' | 'media' | 'product' | 'productErrors' | ProductMediaReorderKeySpecifier)[]; export type ProductMediaReorderFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + product?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductMediaUpdateKeySpecifier = ('product' | 'media' | 'productErrors' | 'errors' | ProductMediaUpdateKeySpecifier)[]; +export type ProductMediaUpdateKeySpecifier = ('errors' | 'media' | 'product' | 'productErrors' | ProductMediaUpdateKeySpecifier)[]; export type ProductMediaUpdateFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + product?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductMediaUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productMedia' | ProductMediaUpdatedKeySpecifier)[]; +export type ProductMediaUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productMedia' | 'recipient' | 'version' | ProductMediaUpdatedKeySpecifier)[]; export type ProductMediaUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + productMedia?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - productMedia?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ProductMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'product' | 'category' | ProductMetadataUpdatedKeySpecifier)[]; +export type ProductMetadataUpdatedKeySpecifier = ('category' | 'issuedAt' | 'issuingPrincipal' | 'product' | 'recipient' | 'version' | ProductMetadataUpdatedKeySpecifier)[]; export type ProductMetadataUpdatedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ProductPricingInfoKeySpecifier = ('onSale' | 'discount' | 'discountLocalCurrency' | 'priceRange' | 'priceRangeUndiscounted' | 'priceRangeLocalCurrency' | 'displayGrossPrices' | ProductPricingInfoKeySpecifier)[]; +export type ProductPricingInfoKeySpecifier = ('discount' | 'discountLocalCurrency' | 'displayGrossPrices' | 'onSale' | 'priceRange' | 'priceRangeLocalCurrency' | 'priceRangeUndiscounted' | ProductPricingInfoKeySpecifier)[]; export type ProductPricingInfoFieldPolicy = { - onSale?: FieldPolicy | FieldReadFunction, discount?: FieldPolicy | FieldReadFunction, discountLocalCurrency?: FieldPolicy | FieldReadFunction, + displayGrossPrices?: FieldPolicy | FieldReadFunction, + onSale?: FieldPolicy | FieldReadFunction, priceRange?: FieldPolicy | FieldReadFunction, - priceRangeUndiscounted?: FieldPolicy | FieldReadFunction, priceRangeLocalCurrency?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction + priceRangeUndiscounted?: FieldPolicy | FieldReadFunction }; -export type ProductReorderAttributeValuesKeySpecifier = ('product' | 'productErrors' | 'errors' | ProductReorderAttributeValuesKeySpecifier)[]; +export type ProductReorderAttributeValuesKeySpecifier = ('errors' | 'product' | 'productErrors' | ProductReorderAttributeValuesKeySpecifier)[]; export type ProductReorderAttributeValuesFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | 'translation' | 'product' | 'attributeValues' | ProductTranslatableContentKeySpecifier)[]; +export type ProductTranslatableContentKeySpecifier = ('attributeValues' | 'description' | 'descriptionJson' | 'id' | 'name' | 'product' | 'seoDescription' | 'seoTitle' | 'translation' | ProductTranslatableContentKeySpecifier)[]; export type ProductTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, + attributeValues?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, descriptionJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction, - attributeValues?: FieldPolicy | FieldReadFunction + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction }; -export type ProductTranslateKeySpecifier = ('translationErrors' | 'errors' | 'product' | ProductTranslateKeySpecifier)[]; +export type ProductTranslateKeySpecifier = ('errors' | 'product' | 'translationErrors' | ProductTranslateKeySpecifier)[]; export type ProductTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction + product?: FieldPolicy | FieldReadFunction, + translationErrors?: FieldPolicy | FieldReadFunction }; -export type ProductTranslationKeySpecifier = ('id' | 'language' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | ProductTranslationKeySpecifier)[]; +export type ProductTranslationKeySpecifier = ('description' | 'descriptionJson' | 'id' | 'language' | 'name' | 'seoDescription' | 'seoTitle' | ProductTranslationKeySpecifier)[]; export type ProductTranslationFieldPolicy = { + description?: FieldPolicy | FieldReadFunction, + descriptionJson?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, language?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction + seoDescription?: FieldPolicy | FieldReadFunction, + seoTitle?: FieldPolicy | FieldReadFunction }; -export type ProductTypeKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'slug' | 'hasVariants' | 'isShippingRequired' | 'isDigital' | 'weight' | 'kind' | 'products' | 'taxType' | 'taxClass' | 'variantAttributes' | 'assignedVariantAttributes' | 'productAttributes' | 'availableAttributes' | ProductTypeKeySpecifier)[]; +export type ProductTypeKeySpecifier = ('assignedVariantAttributes' | 'availableAttributes' | 'hasVariants' | 'id' | 'isDigital' | 'isShippingRequired' | 'kind' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'productAttributes' | 'products' | 'slug' | 'taxClass' | 'taxType' | 'variantAttributes' | 'weight' | ProductTypeKeySpecifier)[]; export type ProductTypeFieldPolicy = { + assignedVariantAttributes?: FieldPolicy | FieldReadFunction, + availableAttributes?: FieldPolicy | FieldReadFunction, + hasVariants?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + isDigital?: FieldPolicy | FieldReadFunction, + isShippingRequired?: FieldPolicy | FieldReadFunction, + kind?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - hasVariants?: FieldPolicy | FieldReadFunction, - isShippingRequired?: FieldPolicy | FieldReadFunction, - isDigital?: FieldPolicy | FieldReadFunction, - weight?: FieldPolicy | FieldReadFunction, - kind?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - taxType?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction, - variantAttributes?: FieldPolicy | FieldReadFunction, - assignedVariantAttributes?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, productAttributes?: FieldPolicy | FieldReadFunction, - availableAttributes?: FieldPolicy | FieldReadFunction + products?: FieldPolicy | FieldReadFunction, + slug?: FieldPolicy | FieldReadFunction, + taxClass?: FieldPolicy | FieldReadFunction, + taxType?: FieldPolicy | FieldReadFunction, + variantAttributes?: FieldPolicy | FieldReadFunction, + weight?: FieldPolicy | FieldReadFunction }; -export type ProductTypeBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | ProductTypeBulkDeleteKeySpecifier)[]; +export type ProductTypeBulkDeleteKeySpecifier = ('count' | 'errors' | 'productErrors' | ProductTypeBulkDeleteKeySpecifier)[]; export type ProductTypeBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductTypeCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ProductTypeCountableConnectionKeySpecifier)[]; +export type ProductTypeCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | ProductTypeCountableConnectionKeySpecifier)[]; export type ProductTypeCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type ProductTypeCountableEdgeKeySpecifier = ('node' | 'cursor' | ProductTypeCountableEdgeKeySpecifier)[]; +export type ProductTypeCountableEdgeKeySpecifier = ('cursor' | 'node' | ProductTypeCountableEdgeKeySpecifier)[]; export type ProductTypeCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type ProductTypeCreateKeySpecifier = ('productErrors' | 'errors' | 'productType' | ProductTypeCreateKeySpecifier)[]; +export type ProductTypeCreateKeySpecifier = ('errors' | 'productErrors' | 'productType' | ProductTypeCreateKeySpecifier)[]; export type ProductTypeCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction, productType?: FieldPolicy | FieldReadFunction }; -export type ProductTypeDeleteKeySpecifier = ('productErrors' | 'errors' | 'productType' | ProductTypeDeleteKeySpecifier)[]; +export type ProductTypeDeleteKeySpecifier = ('errors' | 'productErrors' | 'productType' | ProductTypeDeleteKeySpecifier)[]; export type ProductTypeDeleteFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction, productType?: FieldPolicy | FieldReadFunction }; -export type ProductTypeReorderAttributesKeySpecifier = ('productType' | 'productErrors' | 'errors' | ProductTypeReorderAttributesKeySpecifier)[]; +export type ProductTypeReorderAttributesKeySpecifier = ('errors' | 'productErrors' | 'productType' | ProductTypeReorderAttributesKeySpecifier)[]; export type ProductTypeReorderAttributesFieldPolicy = { - productType?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeUpdateKeySpecifier = ('productErrors' | 'errors' | 'productType' | ProductTypeUpdateKeySpecifier)[]; -export type ProductTypeUpdateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction, productType?: FieldPolicy | FieldReadFunction }; -export type ProductUpdateKeySpecifier = ('productErrors' | 'errors' | 'product' | ProductUpdateKeySpecifier)[]; -export type ProductUpdateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, +export type ProductTypeUpdateKeySpecifier = ('errors' | 'productErrors' | 'productType' | ProductTypeUpdateKeySpecifier)[]; +export type ProductTypeUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction + productErrors?: FieldPolicy | FieldReadFunction, + productType?: FieldPolicy | FieldReadFunction }; -export type ProductUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'product' | 'category' | ProductUpdatedKeySpecifier)[]; -export type ProductUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, +export type ProductUpdateKeySpecifier = ('errors' | 'product' | 'productErrors' | ProductUpdateKeySpecifier)[]; +export type ProductUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductVariantKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'sku' | 'product' | 'trackInventory' | 'quantityLimitPerCustomer' | 'weight' | 'channel' | 'channelListings' | 'pricing' | 'attributes' | 'margin' | 'quantityOrdered' | 'revenue' | 'images' | 'media' | 'translation' | 'digitalContent' | 'stocks' | 'quantityAvailable' | 'preorder' | 'created' | 'updatedAt' | 'externalReference' | ProductVariantKeySpecifier)[]; +export type ProductUpdatedKeySpecifier = ('category' | 'issuedAt' | 'issuingPrincipal' | 'product' | 'recipient' | 'version' | ProductUpdatedKeySpecifier)[]; +export type ProductUpdatedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + product?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantKeySpecifier = ('attributes' | 'channel' | 'channelListings' | 'created' | 'digitalContent' | 'externalReference' | 'id' | 'images' | 'margin' | 'media' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'preorder' | 'pricing' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'product' | 'quantityAvailable' | 'quantityLimitPerCustomer' | 'quantityOrdered' | 'revenue' | 'sku' | 'stocks' | 'trackInventory' | 'translation' | 'updatedAt' | 'weight' | ProductVariantKeySpecifier)[]; export type ProductVariantFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + channel?: FieldPolicy | FieldReadFunction, + channelListings?: FieldPolicy | FieldReadFunction, + created?: FieldPolicy | FieldReadFunction, + digitalContent?: FieldPolicy | FieldReadFunction, + externalReference?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + images?: FieldPolicy | FieldReadFunction, + margin?: FieldPolicy | FieldReadFunction, + media?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - sku?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - trackInventory?: FieldPolicy | FieldReadFunction, - quantityLimitPerCustomer?: FieldPolicy | FieldReadFunction, - weight?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction, + preorder?: FieldPolicy | FieldReadFunction, pricing?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - margin?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + product?: FieldPolicy | FieldReadFunction, + quantityAvailable?: FieldPolicy | FieldReadFunction, + quantityLimitPerCustomer?: FieldPolicy | FieldReadFunction, quantityOrdered?: FieldPolicy | FieldReadFunction, revenue?: FieldPolicy | FieldReadFunction, - images?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - digitalContent?: FieldPolicy | FieldReadFunction, + sku?: FieldPolicy | FieldReadFunction, stocks?: FieldPolicy | FieldReadFunction, - quantityAvailable?: FieldPolicy | FieldReadFunction, - preorder?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, + trackInventory?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, updatedAt?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction + weight?: FieldPolicy | FieldReadFunction }; -export type ProductVariantBackInStockKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | 'warehouse' | ProductVariantBackInStockKeySpecifier)[]; +export type ProductVariantBackInStockKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | 'warehouse' | ProductVariantBackInStockKeySpecifier)[]; export type ProductVariantBackInStockFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type ProductVariantBulkCreateKeySpecifier = ('count' | 'productVariants' | 'results' | 'bulkProductErrors' | 'errors' | ProductVariantBulkCreateKeySpecifier)[]; +export type ProductVariantBulkCreateKeySpecifier = ('bulkProductErrors' | 'count' | 'errors' | 'productVariants' | 'results' | ProductVariantBulkCreateKeySpecifier)[]; export type ProductVariantBulkCreateFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - productVariants?: FieldPolicy | FieldReadFunction, - results?: FieldPolicy | FieldReadFunction, bulkProductErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + count?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + productVariants?: FieldPolicy | FieldReadFunction, + results?: FieldPolicy | FieldReadFunction }; -export type ProductVariantBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | ProductVariantBulkDeleteKeySpecifier)[]; +export type ProductVariantBulkDeleteKeySpecifier = ('count' | 'errors' | 'productErrors' | ProductVariantBulkDeleteKeySpecifier)[]; export type ProductVariantBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction }; -export type ProductVariantBulkErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'warehouses' | 'stocks' | 'channels' | 'channelListings' | ProductVariantBulkErrorKeySpecifier)[]; +export type ProductVariantBulkErrorKeySpecifier = ('attributes' | 'channelListings' | 'channels' | 'code' | 'field' | 'message' | 'stocks' | 'values' | 'warehouses' | ProductVariantBulkErrorKeySpecifier)[]; export type ProductVariantBulkErrorFieldPolicy = { + attributes?: FieldPolicy | FieldReadFunction, + channelListings?: FieldPolicy | FieldReadFunction, + channels?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, stocks?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction + values?: FieldPolicy | FieldReadFunction, + warehouses?: FieldPolicy | FieldReadFunction }; -export type ProductVariantBulkResultKeySpecifier = ('productVariant' | 'errors' | ProductVariantBulkResultKeySpecifier)[]; +export type ProductVariantBulkResultKeySpecifier = ('errors' | 'productVariant' | ProductVariantBulkResultKeySpecifier)[]; export type ProductVariantBulkResultFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction }; -export type ProductVariantBulkUpdateKeySpecifier = ('count' | 'results' | 'errors' | ProductVariantBulkUpdateKeySpecifier)[]; +export type ProductVariantBulkUpdateKeySpecifier = ('count' | 'errors' | 'results' | ProductVariantBulkUpdateKeySpecifier)[]; export type ProductVariantBulkUpdateFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - results?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + results?: FieldPolicy | FieldReadFunction }; -export type ProductVariantChannelListingKeySpecifier = ('id' | 'channel' | 'price' | 'costPrice' | 'margin' | 'preorderThreshold' | ProductVariantChannelListingKeySpecifier)[]; +export type ProductVariantChannelListingKeySpecifier = ('channel' | 'costPrice' | 'id' | 'margin' | 'preorderThreshold' | 'price' | ProductVariantChannelListingKeySpecifier)[]; export type ProductVariantChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, channel?: FieldPolicy | FieldReadFunction, - price?: FieldPolicy | FieldReadFunction, costPrice?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, margin?: FieldPolicy | FieldReadFunction, - preorderThreshold?: FieldPolicy | FieldReadFunction + preorderThreshold?: FieldPolicy | FieldReadFunction, + price?: FieldPolicy | FieldReadFunction }; -export type ProductVariantChannelListingUpdateKeySpecifier = ('variant' | 'productChannelListingErrors' | 'errors' | ProductVariantChannelListingUpdateKeySpecifier)[]; +export type ProductVariantChannelListingUpdateKeySpecifier = ('errors' | 'productChannelListingErrors' | 'variant' | ProductVariantChannelListingUpdateKeySpecifier)[]; export type ProductVariantChannelListingUpdateFieldPolicy = { - variant?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, productChannelListingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + variant?: FieldPolicy | FieldReadFunction }; -export type ProductVariantCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ProductVariantCountableConnectionKeySpecifier)[]; +export type ProductVariantCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | ProductVariantCountableConnectionKeySpecifier)[]; export type ProductVariantCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type ProductVariantCountableEdgeKeySpecifier = ('node' | 'cursor' | ProductVariantCountableEdgeKeySpecifier)[]; +export type ProductVariantCountableEdgeKeySpecifier = ('cursor' | 'node' | ProductVariantCountableEdgeKeySpecifier)[]; export type ProductVariantCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type ProductVariantCreateKeySpecifier = ('productErrors' | 'errors' | 'productVariant' | ProductVariantCreateKeySpecifier)[]; +export type ProductVariantCreateKeySpecifier = ('errors' | 'productErrors' | 'productVariant' | ProductVariantCreateKeySpecifier)[]; export type ProductVariantCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction }; -export type ProductVariantCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | ProductVariantCreatedKeySpecifier)[]; +export type ProductVariantCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | ProductVariantCreatedKeySpecifier)[]; export type ProductVariantCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ProductVariantDeleteKeySpecifier = ('productErrors' | 'errors' | 'productVariant' | ProductVariantDeleteKeySpecifier)[]; +export type ProductVariantDeleteKeySpecifier = ('errors' | 'productErrors' | 'productVariant' | ProductVariantDeleteKeySpecifier)[]; export type ProductVariantDeleteFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction }; -export type ProductVariantDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | ProductVariantDeletedKeySpecifier)[]; +export type ProductVariantDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | ProductVariantDeletedKeySpecifier)[]; export type ProductVariantDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ProductVariantMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | ProductVariantMetadataUpdatedKeySpecifier)[]; +export type ProductVariantMetadataUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | ProductVariantMetadataUpdatedKeySpecifier)[]; export type ProductVariantMetadataUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type ProductVariantOutOfStockKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | 'warehouse' | ProductVariantOutOfStockKeySpecifier)[]; +export type ProductVariantOutOfStockKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | 'warehouse' | ProductVariantOutOfStockKeySpecifier)[]; export type ProductVariantOutOfStockFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type ProductVariantPreorderDeactivateKeySpecifier = ('productVariant' | 'errors' | ProductVariantPreorderDeactivateKeySpecifier)[]; +export type ProductVariantPreorderDeactivateKeySpecifier = ('errors' | 'productVariant' | ProductVariantPreorderDeactivateKeySpecifier)[]; export type ProductVariantPreorderDeactivateFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantReorderKeySpecifier = ('product' | 'productErrors' | 'errors' | ProductVariantReorderKeySpecifier)[]; -export type ProductVariantReorderFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantReorderAttributeValuesKeySpecifier = ('productVariant' | 'productErrors' | 'errors' | ProductVariantReorderAttributeValuesKeySpecifier)[]; -export type ProductVariantReorderAttributeValuesFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantSetDefaultKeySpecifier = ('product' | 'productErrors' | 'errors' | ProductVariantSetDefaultKeySpecifier)[]; -export type ProductVariantSetDefaultFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantStockUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | 'warehouse' | ProductVariantStockUpdatedKeySpecifier)[]; -export type ProductVariantStockUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantStocksCreateKeySpecifier = ('productVariant' | 'bulkStockErrors' | 'errors' | ProductVariantStocksCreateKeySpecifier)[]; -export type ProductVariantStocksCreateFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - bulkStockErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantStocksDeleteKeySpecifier = ('productVariant' | 'stockErrors' | 'errors' | ProductVariantStocksDeleteKeySpecifier)[]; -export type ProductVariantStocksDeleteFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - stockErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantStocksUpdateKeySpecifier = ('productVariant' | 'bulkStockErrors' | 'errors' | ProductVariantStocksUpdateKeySpecifier)[]; -export type ProductVariantStocksUpdateFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - bulkStockErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'productVariant' | 'attributeValues' | ProductVariantTranslatableContentKeySpecifier)[]; -export type ProductVariantTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction, - attributeValues?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantTranslateKeySpecifier = ('translationErrors' | 'errors' | 'productVariant' | ProductVariantTranslateKeySpecifier)[]; -export type ProductVariantTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction }; +export type ProductVariantReorderKeySpecifier = ('errors' | 'product' | 'productErrors' | ProductVariantReorderKeySpecifier)[]; +export type ProductVariantReorderFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + product?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantReorderAttributeValuesKeySpecifier = ('errors' | 'productErrors' | 'productVariant' | ProductVariantReorderAttributeValuesKeySpecifier)[]; +export type ProductVariantReorderAttributeValuesFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantSetDefaultKeySpecifier = ('errors' | 'product' | 'productErrors' | ProductVariantSetDefaultKeySpecifier)[]; +export type ProductVariantSetDefaultFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + product?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantStockUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | 'warehouse' | ProductVariantStockUpdatedKeySpecifier)[]; +export type ProductVariantStockUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + warehouse?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantStocksCreateKeySpecifier = ('bulkStockErrors' | 'errors' | 'productVariant' | ProductVariantStocksCreateKeySpecifier)[]; +export type ProductVariantStocksCreateFieldPolicy = { + bulkStockErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantStocksDeleteKeySpecifier = ('errors' | 'productVariant' | 'stockErrors' | ProductVariantStocksDeleteKeySpecifier)[]; +export type ProductVariantStocksDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, + stockErrors?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantStocksUpdateKeySpecifier = ('bulkStockErrors' | 'errors' | 'productVariant' | ProductVariantStocksUpdateKeySpecifier)[]; +export type ProductVariantStocksUpdateFieldPolicy = { + bulkStockErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantTranslatableContentKeySpecifier = ('attributeValues' | 'id' | 'name' | 'productVariant' | 'translation' | ProductVariantTranslatableContentKeySpecifier)[]; +export type ProductVariantTranslatableContentFieldPolicy = { + attributeValues?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantTranslateKeySpecifier = ('errors' | 'productVariant' | 'translationErrors' | ProductVariantTranslateKeySpecifier)[]; +export type ProductVariantTranslateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, + translationErrors?: FieldPolicy | FieldReadFunction +}; export type ProductVariantTranslationKeySpecifier = ('id' | 'language' | 'name' | ProductVariantTranslationKeySpecifier)[]; export type ProductVariantTranslationFieldPolicy = { id?: FieldPolicy | FieldReadFunction, language?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; -export type ProductVariantUpdateKeySpecifier = ('productErrors' | 'errors' | 'productVariant' | ProductVariantUpdateKeySpecifier)[]; +export type ProductVariantUpdateKeySpecifier = ('errors' | 'productErrors' | 'productVariant' | ProductVariantUpdateKeySpecifier)[]; export type ProductVariantUpdateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + productErrors?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction }; -export type ProductVariantUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | ProductVariantUpdatedKeySpecifier)[]; +export type ProductVariantUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | ProductVariantUpdatedKeySpecifier)[]; export type ProductVariantUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type QueryKeySpecifier = ('webhook' | 'webhookEvents' | 'webhookSamplePayload' | 'warehouse' | 'warehouses' | 'translations' | 'translation' | 'taxConfiguration' | 'taxConfigurations' | 'taxClass' | 'taxClasses' | 'taxCountryConfiguration' | 'taxCountryConfigurations' | 'stock' | 'stocks' | 'shop' | 'orderSettings' | 'giftCardSettings' | 'shippingZone' | 'shippingZones' | 'digitalContent' | 'digitalContents' | 'categories' | 'category' | 'collection' | 'collections' | 'product' | 'products' | 'productType' | 'productTypes' | 'productVariant' | 'productVariants' | 'reportProductSales' | 'payment' | 'payments' | 'transaction' | 'page' | 'pages' | 'pageType' | 'pageTypes' | 'homepageEvents' | 'order' | 'orders' | 'draftOrders' | 'ordersTotal' | 'orderByToken' | 'menu' | 'menus' | 'menuItem' | 'menuItems' | 'giftCard' | 'giftCards' | 'giftCardCurrencies' | 'giftCardTags' | 'plugin' | 'plugins' | 'sale' | 'sales' | 'voucher' | 'vouchers' | 'exportFile' | 'exportFiles' | 'taxTypes' | 'checkout' | 'checkouts' | 'checkoutLines' | 'channel' | 'channels' | 'attributes' | 'attribute' | 'appsInstallations' | 'apps' | 'app' | 'appExtensions' | 'appExtension' | 'addressValidationRules' | 'address' | 'customers' | 'permissionGroups' | 'permissionGroup' | 'me' | 'staffUsers' | 'user' | '_entities' | '_service' | QueryKeySpecifier)[]; +export type QueryKeySpecifier = ('_entities' | '_service' | 'address' | 'addressValidationRules' | 'app' | 'appExtension' | 'appExtensions' | 'apps' | 'appsInstallations' | 'attribute' | 'attributes' | 'categories' | 'category' | 'channel' | 'channels' | 'checkout' | 'checkoutLines' | 'checkouts' | 'collection' | 'collections' | 'customers' | 'digitalContent' | 'digitalContents' | 'draftOrders' | 'exportFile' | 'exportFiles' | 'giftCard' | 'giftCardCurrencies' | 'giftCardSettings' | 'giftCardTags' | 'giftCards' | 'homepageEvents' | 'me' | 'menu' | 'menuItem' | 'menuItems' | 'menus' | 'order' | 'orderByToken' | 'orderSettings' | 'orders' | 'ordersTotal' | 'page' | 'pageType' | 'pageTypes' | 'pages' | 'payment' | 'payments' | 'permissionGroup' | 'permissionGroups' | 'plugin' | 'plugins' | 'product' | 'productType' | 'productTypes' | 'productVariant' | 'productVariants' | 'products' | 'reportProductSales' | 'sale' | 'sales' | 'shippingZone' | 'shippingZones' | 'shop' | 'staffUsers' | 'stock' | 'stocks' | 'taxClass' | 'taxClasses' | 'taxConfiguration' | 'taxConfigurations' | 'taxCountryConfiguration' | 'taxCountryConfigurations' | 'taxTypes' | 'transaction' | 'translation' | 'translations' | 'user' | 'voucher' | 'vouchers' | 'warehouse' | 'warehouses' | 'webhook' | 'webhookEvents' | 'webhookSamplePayload' | QueryKeySpecifier)[]; export type QueryFieldPolicy = { - webhook?: FieldPolicy | FieldReadFunction, - webhookEvents?: FieldPolicy | FieldReadFunction, - webhookSamplePayload?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - translations?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - taxConfiguration?: FieldPolicy | FieldReadFunction, - taxConfigurations?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction, - taxClasses?: FieldPolicy | FieldReadFunction, - taxCountryConfiguration?: FieldPolicy | FieldReadFunction, - taxCountryConfigurations?: FieldPolicy | FieldReadFunction, - stock?: FieldPolicy | FieldReadFunction, - stocks?: FieldPolicy | FieldReadFunction, - shop?: FieldPolicy | FieldReadFunction, - orderSettings?: FieldPolicy | FieldReadFunction, - giftCardSettings?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction, - shippingZones?: FieldPolicy | FieldReadFunction, - digitalContent?: FieldPolicy | FieldReadFunction, - digitalContents?: FieldPolicy | FieldReadFunction, + _entities?: FieldPolicy | FieldReadFunction, + _service?: FieldPolicy | FieldReadFunction, + address?: FieldPolicy | FieldReadFunction, + addressValidationRules?: FieldPolicy | FieldReadFunction, + app?: FieldPolicy | FieldReadFunction, + appExtension?: FieldPolicy | FieldReadFunction, + appExtensions?: FieldPolicy | FieldReadFunction, + apps?: FieldPolicy | FieldReadFunction, + appsInstallations?: FieldPolicy | FieldReadFunction, + attribute?: FieldPolicy | FieldReadFunction, + attributes?: FieldPolicy | FieldReadFunction, categories?: FieldPolicy | FieldReadFunction, category?: FieldPolicy | FieldReadFunction, + channel?: FieldPolicy | FieldReadFunction, + channels?: FieldPolicy | FieldReadFunction, + checkout?: FieldPolicy | FieldReadFunction, + checkoutLines?: FieldPolicy | FieldReadFunction, + checkouts?: FieldPolicy | FieldReadFunction, collection?: FieldPolicy | FieldReadFunction, collections?: FieldPolicy | FieldReadFunction, + customers?: FieldPolicy | FieldReadFunction, + digitalContent?: FieldPolicy | FieldReadFunction, + digitalContents?: FieldPolicy | FieldReadFunction, + draftOrders?: FieldPolicy | FieldReadFunction, + exportFile?: FieldPolicy | FieldReadFunction, + exportFiles?: FieldPolicy | FieldReadFunction, + giftCard?: FieldPolicy | FieldReadFunction, + giftCardCurrencies?: FieldPolicy | FieldReadFunction, + giftCardSettings?: FieldPolicy | FieldReadFunction, + giftCardTags?: FieldPolicy | FieldReadFunction, + giftCards?: FieldPolicy | FieldReadFunction, + homepageEvents?: FieldPolicy | FieldReadFunction, + me?: FieldPolicy | FieldReadFunction, + menu?: FieldPolicy | FieldReadFunction, + menuItem?: FieldPolicy | FieldReadFunction, + menuItems?: FieldPolicy | FieldReadFunction, + menus?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + orderByToken?: FieldPolicy | FieldReadFunction, + orderSettings?: FieldPolicy | FieldReadFunction, + orders?: FieldPolicy | FieldReadFunction, + ordersTotal?: FieldPolicy | FieldReadFunction, + page?: FieldPolicy | FieldReadFunction, + pageType?: FieldPolicy | FieldReadFunction, + pageTypes?: FieldPolicy | FieldReadFunction, + pages?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, + payments?: FieldPolicy | FieldReadFunction, + permissionGroup?: FieldPolicy | FieldReadFunction, + permissionGroups?: FieldPolicy | FieldReadFunction, + plugin?: FieldPolicy | FieldReadFunction, + plugins?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, productType?: FieldPolicy | FieldReadFunction, productTypes?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction, productVariants?: FieldPolicy | FieldReadFunction, + products?: FieldPolicy | FieldReadFunction, reportProductSales?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction, - payments?: FieldPolicy | FieldReadFunction, - transaction?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction, - pages?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction, - pageTypes?: FieldPolicy | FieldReadFunction, - homepageEvents?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orders?: FieldPolicy | FieldReadFunction, - draftOrders?: FieldPolicy | FieldReadFunction, - ordersTotal?: FieldPolicy | FieldReadFunction, - orderByToken?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction, - menus?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction, - menuItems?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - giftCardCurrencies?: FieldPolicy | FieldReadFunction, - giftCardTags?: FieldPolicy | FieldReadFunction, - plugin?: FieldPolicy | FieldReadFunction, - plugins?: FieldPolicy | FieldReadFunction, sale?: FieldPolicy | FieldReadFunction, sales?: FieldPolicy | FieldReadFunction, + shippingZone?: FieldPolicy | FieldReadFunction, + shippingZones?: FieldPolicy | FieldReadFunction, + shop?: FieldPolicy | FieldReadFunction, + staffUsers?: FieldPolicy | FieldReadFunction, + stock?: FieldPolicy | FieldReadFunction, + stocks?: FieldPolicy | FieldReadFunction, + taxClass?: FieldPolicy | FieldReadFunction, + taxClasses?: FieldPolicy | FieldReadFunction, + taxConfiguration?: FieldPolicy | FieldReadFunction, + taxConfigurations?: FieldPolicy | FieldReadFunction, + taxCountryConfiguration?: FieldPolicy | FieldReadFunction, + taxCountryConfigurations?: FieldPolicy | FieldReadFunction, + taxTypes?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + translations?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction, vouchers?: FieldPolicy | FieldReadFunction, - exportFile?: FieldPolicy | FieldReadFunction, - exportFiles?: FieldPolicy | FieldReadFunction, - taxTypes?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - checkouts?: FieldPolicy | FieldReadFunction, - checkoutLines?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction, - appsInstallations?: FieldPolicy | FieldReadFunction, - apps?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - appExtensions?: FieldPolicy | FieldReadFunction, - appExtension?: FieldPolicy | FieldReadFunction, - addressValidationRules?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction, - customers?: FieldPolicy | FieldReadFunction, - permissionGroups?: FieldPolicy | FieldReadFunction, - permissionGroup?: FieldPolicy | FieldReadFunction, - me?: FieldPolicy | FieldReadFunction, - staffUsers?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - _entities?: FieldPolicy | FieldReadFunction, - _service?: FieldPolicy | FieldReadFunction + warehouse?: FieldPolicy | FieldReadFunction, + warehouses?: FieldPolicy | FieldReadFunction, + webhook?: FieldPolicy | FieldReadFunction, + webhookEvents?: FieldPolicy | FieldReadFunction, + webhookSamplePayload?: FieldPolicy | FieldReadFunction }; export type ReducedRateKeySpecifier = ('rate' | 'rateType' | ReducedRateKeySpecifier)[]; export type ReducedRateFieldPolicy = { rate?: FieldPolicy | FieldReadFunction, rateType?: FieldPolicy | FieldReadFunction }; -export type RefreshTokenKeySpecifier = ('token' | 'user' | 'accountErrors' | 'errors' | RefreshTokenKeySpecifier)[]; +export type RefreshTokenKeySpecifier = ('accountErrors' | 'errors' | 'token' | 'user' | RefreshTokenKeySpecifier)[]; export type RefreshTokenFieldPolicy = { + accountErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, token?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction }; -export type RequestEmailChangeKeySpecifier = ('user' | 'accountErrors' | 'errors' | RequestEmailChangeKeySpecifier)[]; +export type RequestEmailChangeKeySpecifier = ('accountErrors' | 'errors' | 'user' | RequestEmailChangeKeySpecifier)[]; export type RequestEmailChangeFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; export type RequestPasswordResetKeySpecifier = ('accountErrors' | 'errors' | RequestPasswordResetKeySpecifier)[]; export type RequestPasswordResetFieldPolicy = { accountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type SaleKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'type' | 'startDate' | 'endDate' | 'created' | 'updatedAt' | 'categories' | 'collections' | 'products' | 'variants' | 'translation' | 'channelListings' | 'discountValue' | 'currency' | SaleKeySpecifier)[]; +export type SaleKeySpecifier = ('categories' | 'channelListings' | 'collections' | 'created' | 'currency' | 'discountValue' | 'endDate' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'products' | 'startDate' | 'translation' | 'type' | 'updatedAt' | 'variants' | SaleKeySpecifier)[]; export type SaleFieldPolicy = { + categories?: FieldPolicy | FieldReadFunction, + channelListings?: FieldPolicy | FieldReadFunction, + collections?: FieldPolicy | FieldReadFunction, + created?: FieldPolicy | FieldReadFunction, + currency?: FieldPolicy | FieldReadFunction, + discountValue?: FieldPolicy | FieldReadFunction, + endDate?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - startDate?: FieldPolicy | FieldReadFunction, - endDate?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - categories?: FieldPolicy | FieldReadFunction, - collections?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, products?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, + startDate?: FieldPolicy | FieldReadFunction, translation?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction, - discountValue?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction + type?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction, + variants?: FieldPolicy | FieldReadFunction }; -export type SaleAddCataloguesKeySpecifier = ('sale' | 'discountErrors' | 'errors' | SaleAddCataloguesKeySpecifier)[]; +export type SaleAddCataloguesKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleAddCataloguesKeySpecifier)[]; export type SaleAddCataloguesFieldPolicy = { - sale?: FieldPolicy | FieldReadFunction, discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + sale?: FieldPolicy | FieldReadFunction }; export type SaleBulkDeleteKeySpecifier = ('count' | 'discountErrors' | 'errors' | SaleBulkDeleteKeySpecifier)[]; export type SaleBulkDeleteFieldPolicy = { @@ -4273,29 +4430,29 @@ export type SaleBulkDeleteFieldPolicy = { discountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type SaleChannelListingKeySpecifier = ('id' | 'channel' | 'discountValue' | 'currency' | SaleChannelListingKeySpecifier)[]; +export type SaleChannelListingKeySpecifier = ('channel' | 'currency' | 'discountValue' | 'id' | SaleChannelListingKeySpecifier)[]; export type SaleChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, channel?: FieldPolicy | FieldReadFunction, + currency?: FieldPolicy | FieldReadFunction, discountValue?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction }; -export type SaleChannelListingUpdateKeySpecifier = ('sale' | 'discountErrors' | 'errors' | SaleChannelListingUpdateKeySpecifier)[]; +export type SaleChannelListingUpdateKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleChannelListingUpdateKeySpecifier)[]; export type SaleChannelListingUpdateFieldPolicy = { - sale?: FieldPolicy | FieldReadFunction, discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + sale?: FieldPolicy | FieldReadFunction }; -export type SaleCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | SaleCountableConnectionKeySpecifier)[]; +export type SaleCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | SaleCountableConnectionKeySpecifier)[]; export type SaleCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type SaleCountableEdgeKeySpecifier = ('node' | 'cursor' | SaleCountableEdgeKeySpecifier)[]; +export type SaleCountableEdgeKeySpecifier = ('cursor' | 'node' | SaleCountableEdgeKeySpecifier)[]; export type SaleCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; export type SaleCreateKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleCreateKeySpecifier)[]; export type SaleCreateFieldPolicy = { @@ -4303,13 +4460,13 @@ export type SaleCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, sale?: FieldPolicy | FieldReadFunction }; -export type SaleCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'sale' | SaleCreatedKeySpecifier)[]; +export type SaleCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'sale' | 'version' | SaleCreatedKeySpecifier)[]; export type SaleCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction + sale?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; export type SaleDeleteKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleDeleteKeySpecifier)[]; export type SaleDeleteFieldPolicy = { @@ -4317,40 +4474,40 @@ export type SaleDeleteFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, sale?: FieldPolicy | FieldReadFunction }; -export type SaleDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'sale' | SaleDeletedKeySpecifier)[]; +export type SaleDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'sale' | 'version' | SaleDeletedKeySpecifier)[]; export type SaleDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + sale?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type SaleRemoveCataloguesKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleRemoveCataloguesKeySpecifier)[]; +export type SaleRemoveCataloguesFieldPolicy = { + discountErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, sale?: FieldPolicy | FieldReadFunction }; -export type SaleRemoveCataloguesKeySpecifier = ('sale' | 'discountErrors' | 'errors' | SaleRemoveCataloguesKeySpecifier)[]; -export type SaleRemoveCataloguesFieldPolicy = { - sale?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type SaleToggleKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'sale' | SaleToggleKeySpecifier)[]; +export type SaleToggleKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'sale' | 'version' | SaleToggleKeySpecifier)[]; export type SaleToggleFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction + sale?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type SaleTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'sale' | SaleTranslatableContentKeySpecifier)[]; +export type SaleTranslatableContentKeySpecifier = ('id' | 'name' | 'sale' | 'translation' | SaleTranslatableContentKeySpecifier)[]; export type SaleTranslatableContentFieldPolicy = { id?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction + sale?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction }; -export type SaleTranslateKeySpecifier = ('translationErrors' | 'errors' | 'sale' | SaleTranslateKeySpecifier)[]; +export type SaleTranslateKeySpecifier = ('errors' | 'sale' | 'translationErrors' | SaleTranslateKeySpecifier)[]; export type SaleTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction + sale?: FieldPolicy | FieldReadFunction, + translationErrors?: FieldPolicy | FieldReadFunction }; export type SaleTranslationKeySpecifier = ('id' | 'language' | 'name' | SaleTranslationKeySpecifier)[]; export type SaleTranslationFieldPolicy = { @@ -4364,496 +4521,496 @@ export type SaleUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, sale?: FieldPolicy | FieldReadFunction }; -export type SaleUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'sale' | SaleUpdatedKeySpecifier)[]; +export type SaleUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'sale' | 'version' | SaleUpdatedKeySpecifier)[]; export type SaleUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction + sale?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; export type SelectedAttributeKeySpecifier = ('attribute' | 'values' | SelectedAttributeKeySpecifier)[]; export type SelectedAttributeFieldPolicy = { attribute?: FieldPolicy | FieldReadFunction, values?: FieldPolicy | FieldReadFunction }; -export type SetPasswordKeySpecifier = ('token' | 'refreshToken' | 'csrfToken' | 'user' | 'accountErrors' | 'errors' | SetPasswordKeySpecifier)[]; +export type SetPasswordKeySpecifier = ('accountErrors' | 'csrfToken' | 'errors' | 'refreshToken' | 'token' | 'user' | SetPasswordKeySpecifier)[]; export type SetPasswordFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - refreshToken?: FieldPolicy | FieldReadFunction, - csrfToken?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + csrfToken?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + refreshToken?: FieldPolicy | FieldReadFunction, + token?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction }; -export type ShippingErrorKeySpecifier = ('field' | 'message' | 'code' | 'warehouses' | 'channels' | ShippingErrorKeySpecifier)[]; +export type ShippingErrorKeySpecifier = ('channels' | 'code' | 'field' | 'message' | 'warehouses' | ShippingErrorKeySpecifier)[]; export type ShippingErrorFieldPolicy = { + channels?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction + warehouses?: FieldPolicy | FieldReadFunction }; -export type ShippingListMethodsForCheckoutKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | 'shippingMethods' | ShippingListMethodsForCheckoutKeySpecifier)[]; +export type ShippingListMethodsForCheckoutKeySpecifier = ('checkout' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingMethods' | 'version' | ShippingListMethodsForCheckoutKeySpecifier)[]; export type ShippingListMethodsForCheckoutFieldPolicy = { + checkout?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction + shippingMethods?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ShippingMethodKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'type' | 'name' | 'description' | 'maximumDeliveryDays' | 'minimumDeliveryDays' | 'maximumOrderWeight' | 'minimumOrderWeight' | 'translation' | 'price' | 'maximumOrderPrice' | 'minimumOrderPrice' | 'active' | 'message' | ShippingMethodKeySpecifier)[]; +export type ShippingMethodKeySpecifier = ('active' | 'description' | 'id' | 'maximumDeliveryDays' | 'maximumOrderPrice' | 'maximumOrderWeight' | 'message' | 'metadata' | 'metafield' | 'metafields' | 'minimumDeliveryDays' | 'minimumOrderPrice' | 'minimumOrderWeight' | 'name' | 'price' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'translation' | 'type' | ShippingMethodKeySpecifier)[]; export type ShippingMethodFieldPolicy = { + active?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + maximumDeliveryDays?: FieldPolicy | FieldReadFunction, + maximumOrderPrice?: FieldPolicy | FieldReadFunction, + maximumOrderWeight?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - maximumDeliveryDays?: FieldPolicy | FieldReadFunction, minimumDeliveryDays?: FieldPolicy | FieldReadFunction, - maximumOrderWeight?: FieldPolicy | FieldReadFunction, - minimumOrderWeight?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - price?: FieldPolicy | FieldReadFunction, - maximumOrderPrice?: FieldPolicy | FieldReadFunction, minimumOrderPrice?: FieldPolicy | FieldReadFunction, - active?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction + minimumOrderWeight?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + price?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction }; -export type ShippingMethodChannelListingKeySpecifier = ('id' | 'channel' | 'maximumOrderPrice' | 'minimumOrderPrice' | 'price' | ShippingMethodChannelListingKeySpecifier)[]; +export type ShippingMethodChannelListingKeySpecifier = ('channel' | 'id' | 'maximumOrderPrice' | 'minimumOrderPrice' | 'price' | ShippingMethodChannelListingKeySpecifier)[]; export type ShippingMethodChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, channel?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, maximumOrderPrice?: FieldPolicy | FieldReadFunction, minimumOrderPrice?: FieldPolicy | FieldReadFunction, price?: FieldPolicy | FieldReadFunction }; -export type ShippingMethodChannelListingUpdateKeySpecifier = ('shippingMethod' | 'shippingErrors' | 'errors' | ShippingMethodChannelListingUpdateKeySpecifier)[]; +export type ShippingMethodChannelListingUpdateKeySpecifier = ('errors' | 'shippingErrors' | 'shippingMethod' | ShippingMethodChannelListingUpdateKeySpecifier)[]; export type ShippingMethodChannelListingUpdateFieldPolicy = { - shippingMethod?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodPostalCodeRuleKeySpecifier = ('id' | 'start' | 'end' | 'inclusionType' | ShippingMethodPostalCodeRuleKeySpecifier)[]; -export type ShippingMethodPostalCodeRuleFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - start?: FieldPolicy | FieldReadFunction, - end?: FieldPolicy | FieldReadFunction, - inclusionType?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodTranslatableContentKeySpecifier = ('id' | 'name' | 'description' | 'translation' | 'shippingMethod' | ShippingMethodTranslatableContentKeySpecifier)[]; -export type ShippingMethodTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, shippingMethod?: FieldPolicy | FieldReadFunction }; -export type ShippingMethodTranslationKeySpecifier = ('id' | 'language' | 'name' | 'description' | ShippingMethodTranslationKeySpecifier)[]; +export type ShippingMethodPostalCodeRuleKeySpecifier = ('end' | 'id' | 'inclusionType' | 'start' | ShippingMethodPostalCodeRuleKeySpecifier)[]; +export type ShippingMethodPostalCodeRuleFieldPolicy = { + end?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + inclusionType?: FieldPolicy | FieldReadFunction, + start?: FieldPolicy | FieldReadFunction +}; +export type ShippingMethodTranslatableContentKeySpecifier = ('description' | 'id' | 'name' | 'shippingMethod' | 'translation' | ShippingMethodTranslatableContentKeySpecifier)[]; +export type ShippingMethodTranslatableContentFieldPolicy = { + description?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + shippingMethod?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction +}; +export type ShippingMethodTranslationKeySpecifier = ('description' | 'id' | 'language' | 'name' | ShippingMethodTranslationKeySpecifier)[]; export type ShippingMethodTranslationFieldPolicy = { + description?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, language?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction + name?: FieldPolicy | FieldReadFunction }; -export type ShippingMethodTypeKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'description' | 'type' | 'translation' | 'channelListings' | 'maximumOrderPrice' | 'minimumOrderPrice' | 'postalCodeRules' | 'excludedProducts' | 'minimumOrderWeight' | 'maximumOrderWeight' | 'maximumDeliveryDays' | 'minimumDeliveryDays' | 'taxClass' | ShippingMethodTypeKeySpecifier)[]; +export type ShippingMethodTypeKeySpecifier = ('channelListings' | 'description' | 'excludedProducts' | 'id' | 'maximumDeliveryDays' | 'maximumOrderPrice' | 'maximumOrderWeight' | 'metadata' | 'metafield' | 'metafields' | 'minimumDeliveryDays' | 'minimumOrderPrice' | 'minimumOrderWeight' | 'name' | 'postalCodeRules' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'taxClass' | 'translation' | 'type' | ShippingMethodTypeKeySpecifier)[]; export type ShippingMethodTypeFieldPolicy = { + channelListings?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, + excludedProducts?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + maximumDeliveryDays?: FieldPolicy | FieldReadFunction, + maximumOrderPrice?: FieldPolicy | FieldReadFunction, + maximumOrderWeight?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction, - maximumOrderPrice?: FieldPolicy | FieldReadFunction, - minimumOrderPrice?: FieldPolicy | FieldReadFunction, - postalCodeRules?: FieldPolicy | FieldReadFunction, - excludedProducts?: FieldPolicy | FieldReadFunction, - minimumOrderWeight?: FieldPolicy | FieldReadFunction, - maximumOrderWeight?: FieldPolicy | FieldReadFunction, - maximumDeliveryDays?: FieldPolicy | FieldReadFunction, minimumDeliveryDays?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction + minimumOrderPrice?: FieldPolicy | FieldReadFunction, + minimumOrderWeight?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + postalCodeRules?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + taxClass?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction }; export type ShippingMethodsPerCountryKeySpecifier = ('countryCode' | 'shippingMethods' | ShippingMethodsPerCountryKeySpecifier)[]; export type ShippingMethodsPerCountryFieldPolicy = { countryCode?: FieldPolicy | FieldReadFunction, shippingMethods?: FieldPolicy | FieldReadFunction }; -export type ShippingPriceBulkDeleteKeySpecifier = ('count' | 'shippingErrors' | 'errors' | ShippingPriceBulkDeleteKeySpecifier)[]; +export type ShippingPriceBulkDeleteKeySpecifier = ('count' | 'errors' | 'shippingErrors' | ShippingPriceBulkDeleteKeySpecifier)[]; export type ShippingPriceBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + shippingErrors?: FieldPolicy | FieldReadFunction }; -export type ShippingPriceCreateKeySpecifier = ('shippingZone' | 'shippingMethod' | 'shippingErrors' | 'errors' | ShippingPriceCreateKeySpecifier)[]; +export type ShippingPriceCreateKeySpecifier = ('errors' | 'shippingErrors' | 'shippingMethod' | 'shippingZone' | ShippingPriceCreateKeySpecifier)[]; export type ShippingPriceCreateFieldPolicy = { - shippingZone?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + shippingMethod?: FieldPolicy | FieldReadFunction, + shippingZone?: FieldPolicy | FieldReadFunction }; -export type ShippingPriceCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | ShippingPriceCreatedKeySpecifier)[]; +export type ShippingPriceCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | 'version' | ShippingPriceCreatedKeySpecifier)[]; export type ShippingPriceCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, shippingMethod?: FieldPolicy | FieldReadFunction, + shippingZone?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type ShippingPriceDeleteKeySpecifier = ('errors' | 'shippingErrors' | 'shippingMethod' | 'shippingZone' | ShippingPriceDeleteKeySpecifier)[]; +export type ShippingPriceDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + shippingErrors?: FieldPolicy | FieldReadFunction, + shippingMethod?: FieldPolicy | FieldReadFunction, shippingZone?: FieldPolicy | FieldReadFunction }; -export type ShippingPriceDeleteKeySpecifier = ('shippingMethod' | 'shippingZone' | 'shippingErrors' | 'errors' | ShippingPriceDeleteKeySpecifier)[]; -export type ShippingPriceDeleteFieldPolicy = { - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | ShippingPriceDeletedKeySpecifier)[]; +export type ShippingPriceDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | 'version' | ShippingPriceDeletedKeySpecifier)[]; export type ShippingPriceDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, shippingMethod?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction + shippingZone?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ShippingPriceExcludeProductsKeySpecifier = ('shippingMethod' | 'shippingErrors' | 'errors' | ShippingPriceExcludeProductsKeySpecifier)[]; +export type ShippingPriceExcludeProductsKeySpecifier = ('errors' | 'shippingErrors' | 'shippingMethod' | ShippingPriceExcludeProductsKeySpecifier)[]; export type ShippingPriceExcludeProductsFieldPolicy = { - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceRemoveProductFromExcludeKeySpecifier = ('shippingMethod' | 'shippingErrors' | 'errors' | ShippingPriceRemoveProductFromExcludeKeySpecifier)[]; -export type ShippingPriceRemoveProductFromExcludeFieldPolicy = { - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceTranslateKeySpecifier = ('translationErrors' | 'errors' | 'shippingMethod' | ShippingPriceTranslateKeySpecifier)[]; -export type ShippingPriceTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + shippingErrors?: FieldPolicy | FieldReadFunction, shippingMethod?: FieldPolicy | FieldReadFunction }; -export type ShippingPriceUpdateKeySpecifier = ('shippingZone' | 'shippingMethod' | 'shippingErrors' | 'errors' | ShippingPriceUpdateKeySpecifier)[]; -export type ShippingPriceUpdateFieldPolicy = { - shippingZone?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, +export type ShippingPriceRemoveProductFromExcludeKeySpecifier = ('errors' | 'shippingErrors' | 'shippingMethod' | ShippingPriceRemoveProductFromExcludeKeySpecifier)[]; +export type ShippingPriceRemoveProductFromExcludeFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + shippingMethod?: FieldPolicy | FieldReadFunction }; -export type ShippingPriceUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | ShippingPriceUpdatedKeySpecifier)[]; -export type ShippingPriceUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, +export type ShippingPriceTranslateKeySpecifier = ('errors' | 'shippingMethod' | 'translationErrors' | ShippingPriceTranslateKeySpecifier)[]; +export type ShippingPriceTranslateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + shippingMethod?: FieldPolicy | FieldReadFunction, + translationErrors?: FieldPolicy | FieldReadFunction +}; +export type ShippingPriceUpdateKeySpecifier = ('errors' | 'shippingErrors' | 'shippingMethod' | 'shippingZone' | ShippingPriceUpdateKeySpecifier)[]; +export type ShippingPriceUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + shippingErrors?: FieldPolicy | FieldReadFunction, shippingMethod?: FieldPolicy | FieldReadFunction, shippingZone?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'default' | 'priceRange' | 'countries' | 'shippingMethods' | 'warehouses' | 'channels' | 'description' | ShippingZoneKeySpecifier)[]; +export type ShippingPriceUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | 'version' | ShippingPriceUpdatedKeySpecifier)[]; +export type ShippingPriceUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + shippingMethod?: FieldPolicy | FieldReadFunction, + shippingZone?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type ShippingZoneKeySpecifier = ('channels' | 'countries' | 'default' | 'description' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'priceRange' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'shippingMethods' | 'warehouses' | ShippingZoneKeySpecifier)[]; export type ShippingZoneFieldPolicy = { + channels?: FieldPolicy | FieldReadFunction, + countries?: FieldPolicy | FieldReadFunction, + default?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - default?: FieldPolicy | FieldReadFunction, priceRange?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, shippingMethods?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction + warehouses?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneBulkDeleteKeySpecifier = ('count' | 'shippingErrors' | 'errors' | ShippingZoneBulkDeleteKeySpecifier)[]; +export type ShippingZoneBulkDeleteKeySpecifier = ('count' | 'errors' | 'shippingErrors' | ShippingZoneBulkDeleteKeySpecifier)[]; export type ShippingZoneBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + shippingErrors?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ShippingZoneCountableConnectionKeySpecifier)[]; +export type ShippingZoneCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | ShippingZoneCountableConnectionKeySpecifier)[]; export type ShippingZoneCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneCountableEdgeKeySpecifier = ('node' | 'cursor' | ShippingZoneCountableEdgeKeySpecifier)[]; +export type ShippingZoneCountableEdgeKeySpecifier = ('cursor' | 'node' | ShippingZoneCountableEdgeKeySpecifier)[]; export type ShippingZoneCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneCreateKeySpecifier = ('shippingErrors' | 'errors' | 'shippingZone' | ShippingZoneCreateKeySpecifier)[]; +export type ShippingZoneCreateKeySpecifier = ('errors' | 'shippingErrors' | 'shippingZone' | ShippingZoneCreateKeySpecifier)[]; export type ShippingZoneCreateFieldPolicy = { - shippingErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + shippingErrors?: FieldPolicy | FieldReadFunction, shippingZone?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | ShippingZoneCreatedKeySpecifier)[]; +export type ShippingZoneCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | 'version' | ShippingZoneCreatedKeySpecifier)[]; export type ShippingZoneCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction + shippingZone?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneDeleteKeySpecifier = ('shippingErrors' | 'errors' | 'shippingZone' | ShippingZoneDeleteKeySpecifier)[]; +export type ShippingZoneDeleteKeySpecifier = ('errors' | 'shippingErrors' | 'shippingZone' | ShippingZoneDeleteKeySpecifier)[]; export type ShippingZoneDeleteFieldPolicy = { - shippingErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + shippingErrors?: FieldPolicy | FieldReadFunction, shippingZone?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | ShippingZoneDeletedKeySpecifier)[]; +export type ShippingZoneDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | 'version' | ShippingZoneDeletedKeySpecifier)[]; export type ShippingZoneDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction + shippingZone?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | ShippingZoneMetadataUpdatedKeySpecifier)[]; +export type ShippingZoneMetadataUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | 'version' | ShippingZoneMetadataUpdatedKeySpecifier)[]; export type ShippingZoneMetadataUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction + shippingZone?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneUpdateKeySpecifier = ('shippingErrors' | 'errors' | 'shippingZone' | ShippingZoneUpdateKeySpecifier)[]; +export type ShippingZoneUpdateKeySpecifier = ('errors' | 'shippingErrors' | 'shippingZone' | ShippingZoneUpdateKeySpecifier)[]; export type ShippingZoneUpdateFieldPolicy = { - shippingErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + shippingErrors?: FieldPolicy | FieldReadFunction, shippingZone?: FieldPolicy | FieldReadFunction }; -export type ShippingZoneUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | ShippingZoneUpdatedKeySpecifier)[]; +export type ShippingZoneUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | 'version' | ShippingZoneUpdatedKeySpecifier)[]; export type ShippingZoneUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction + shippingZone?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ShopKeySpecifier = ('availablePaymentGateways' | 'availableExternalAuthentications' | 'availableShippingMethods' | 'channelCurrencies' | 'countries' | 'defaultCountry' | 'defaultMailSenderName' | 'defaultMailSenderAddress' | 'description' | 'domain' | 'languages' | 'name' | 'permissions' | 'phonePrefixes' | 'headerText' | 'fulfillmentAutoApprove' | 'fulfillmentAllowUnpaid' | 'trackInventoryByDefault' | 'defaultWeightUnit' | 'translation' | 'automaticFulfillmentDigitalProducts' | 'reserveStockDurationAnonymousUser' | 'reserveStockDurationAuthenticatedUser' | 'limitQuantityPerCheckout' | 'defaultDigitalMaxDownloads' | 'defaultDigitalUrlValidDays' | 'companyAddress' | 'customerSetPasswordUrl' | 'staffNotificationRecipients' | 'limits' | 'version' | 'schemaVersion' | 'includeTaxesInPrices' | 'displayGrossPrices' | 'chargeTaxesOnShipping' | ShopKeySpecifier)[]; +export type ShopKeySpecifier = ('automaticFulfillmentDigitalProducts' | 'availableExternalAuthentications' | 'availablePaymentGateways' | 'availableShippingMethods' | 'channelCurrencies' | 'chargeTaxesOnShipping' | 'companyAddress' | 'countries' | 'customerSetPasswordUrl' | 'defaultCountry' | 'defaultDigitalMaxDownloads' | 'defaultDigitalUrlValidDays' | 'defaultMailSenderAddress' | 'defaultMailSenderName' | 'defaultWeightUnit' | 'description' | 'displayGrossPrices' | 'domain' | 'fulfillmentAllowUnpaid' | 'fulfillmentAutoApprove' | 'headerText' | 'includeTaxesInPrices' | 'languages' | 'limitQuantityPerCheckout' | 'limits' | 'name' | 'permissions' | 'phonePrefixes' | 'reserveStockDurationAnonymousUser' | 'reserveStockDurationAuthenticatedUser' | 'schemaVersion' | 'staffNotificationRecipients' | 'trackInventoryByDefault' | 'translation' | 'version' | ShopKeySpecifier)[]; export type ShopFieldPolicy = { - availablePaymentGateways?: FieldPolicy | FieldReadFunction, + automaticFulfillmentDigitalProducts?: FieldPolicy | FieldReadFunction, availableExternalAuthentications?: FieldPolicy | FieldReadFunction, + availablePaymentGateways?: FieldPolicy | FieldReadFunction, availableShippingMethods?: FieldPolicy | FieldReadFunction, channelCurrencies?: FieldPolicy | FieldReadFunction, + chargeTaxesOnShipping?: FieldPolicy | FieldReadFunction, + companyAddress?: FieldPolicy | FieldReadFunction, countries?: FieldPolicy | FieldReadFunction, + customerSetPasswordUrl?: FieldPolicy | FieldReadFunction, defaultCountry?: FieldPolicy | FieldReadFunction, - defaultMailSenderName?: FieldPolicy | FieldReadFunction, + defaultDigitalMaxDownloads?: FieldPolicy | FieldReadFunction, + defaultDigitalUrlValidDays?: FieldPolicy | FieldReadFunction, defaultMailSenderAddress?: FieldPolicy | FieldReadFunction, + defaultMailSenderName?: FieldPolicy | FieldReadFunction, + defaultWeightUnit?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, + displayGrossPrices?: FieldPolicy | FieldReadFunction, domain?: FieldPolicy | FieldReadFunction, + fulfillmentAllowUnpaid?: FieldPolicy | FieldReadFunction, + fulfillmentAutoApprove?: FieldPolicy | FieldReadFunction, + headerText?: FieldPolicy | FieldReadFunction, + includeTaxesInPrices?: FieldPolicy | FieldReadFunction, languages?: FieldPolicy | FieldReadFunction, + limitQuantityPerCheckout?: FieldPolicy | FieldReadFunction, + limits?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, permissions?: FieldPolicy | FieldReadFunction, phonePrefixes?: FieldPolicy | FieldReadFunction, - headerText?: FieldPolicy | FieldReadFunction, - fulfillmentAutoApprove?: FieldPolicy | FieldReadFunction, - fulfillmentAllowUnpaid?: FieldPolicy | FieldReadFunction, - trackInventoryByDefault?: FieldPolicy | FieldReadFunction, - defaultWeightUnit?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - automaticFulfillmentDigitalProducts?: FieldPolicy | FieldReadFunction, reserveStockDurationAnonymousUser?: FieldPolicy | FieldReadFunction, reserveStockDurationAuthenticatedUser?: FieldPolicy | FieldReadFunction, - limitQuantityPerCheckout?: FieldPolicy | FieldReadFunction, - defaultDigitalMaxDownloads?: FieldPolicy | FieldReadFunction, - defaultDigitalUrlValidDays?: FieldPolicy | FieldReadFunction, - companyAddress?: FieldPolicy | FieldReadFunction, - customerSetPasswordUrl?: FieldPolicy | FieldReadFunction, - staffNotificationRecipients?: FieldPolicy | FieldReadFunction, - limits?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, schemaVersion?: FieldPolicy | FieldReadFunction, - includeTaxesInPrices?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction, - chargeTaxesOnShipping?: FieldPolicy | FieldReadFunction + staffNotificationRecipients?: FieldPolicy | FieldReadFunction, + trackInventoryByDefault?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type ShopAddressUpdateKeySpecifier = ('shop' | 'shopErrors' | 'errors' | ShopAddressUpdateKeySpecifier)[]; +export type ShopAddressUpdateKeySpecifier = ('errors' | 'shop' | 'shopErrors' | ShopAddressUpdateKeySpecifier)[]; export type ShopAddressUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, shop?: FieldPolicy | FieldReadFunction, - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + shopErrors?: FieldPolicy | FieldReadFunction }; -export type ShopDomainUpdateKeySpecifier = ('shop' | 'shopErrors' | 'errors' | ShopDomainUpdateKeySpecifier)[]; +export type ShopDomainUpdateKeySpecifier = ('errors' | 'shop' | 'shopErrors' | ShopDomainUpdateKeySpecifier)[]; export type ShopDomainUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, shop?: FieldPolicy | FieldReadFunction, - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + shopErrors?: FieldPolicy | FieldReadFunction }; -export type ShopErrorKeySpecifier = ('field' | 'message' | 'code' | ShopErrorKeySpecifier)[]; +export type ShopErrorKeySpecifier = ('code' | 'field' | 'message' | ShopErrorKeySpecifier)[]; export type ShopErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; -export type ShopFetchTaxRatesKeySpecifier = ('shop' | 'shopErrors' | 'errors' | ShopFetchTaxRatesKeySpecifier)[]; +export type ShopFetchTaxRatesKeySpecifier = ('errors' | 'shop' | 'shopErrors' | ShopFetchTaxRatesKeySpecifier)[]; export type ShopFetchTaxRatesFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, shop?: FieldPolicy | FieldReadFunction, - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + shopErrors?: FieldPolicy | FieldReadFunction }; -export type ShopSettingsTranslateKeySpecifier = ('shop' | 'translationErrors' | 'errors' | ShopSettingsTranslateKeySpecifier)[]; +export type ShopSettingsTranslateKeySpecifier = ('errors' | 'shop' | 'translationErrors' | ShopSettingsTranslateKeySpecifier)[]; export type ShopSettingsTranslateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, shop?: FieldPolicy | FieldReadFunction, - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + translationErrors?: FieldPolicy | FieldReadFunction }; -export type ShopSettingsUpdateKeySpecifier = ('shop' | 'shopErrors' | 'errors' | ShopSettingsUpdateKeySpecifier)[]; +export type ShopSettingsUpdateKeySpecifier = ('errors' | 'shop' | 'shopErrors' | ShopSettingsUpdateKeySpecifier)[]; export type ShopSettingsUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, shop?: FieldPolicy | FieldReadFunction, - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + shopErrors?: FieldPolicy | FieldReadFunction }; -export type ShopTranslationKeySpecifier = ('id' | 'language' | 'headerText' | 'description' | ShopTranslationKeySpecifier)[]; +export type ShopTranslationKeySpecifier = ('description' | 'headerText' | 'id' | 'language' | ShopTranslationKeySpecifier)[]; export type ShopTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, headerText?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction, + language?: FieldPolicy | FieldReadFunction }; -export type StaffBulkDeleteKeySpecifier = ('count' | 'staffErrors' | 'errors' | StaffBulkDeleteKeySpecifier)[]; +export type StaffBulkDeleteKeySpecifier = ('count' | 'errors' | 'staffErrors' | StaffBulkDeleteKeySpecifier)[]; export type StaffBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - staffErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type StaffCreateKeySpecifier = ('staffErrors' | 'errors' | 'user' | StaffCreateKeySpecifier)[]; -export type StaffCreateFieldPolicy = { - staffErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + staffErrors?: FieldPolicy | FieldReadFunction +}; +export type StaffCreateKeySpecifier = ('errors' | 'staffErrors' | 'user' | StaffCreateKeySpecifier)[]; +export type StaffCreateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + staffErrors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type StaffCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffCreatedKeySpecifier)[]; +export type StaffCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'user' | 'version' | StaffCreatedKeySpecifier)[]; export type StaffCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type StaffDeleteKeySpecifier = ('staffErrors' | 'errors' | 'user' | StaffDeleteKeySpecifier)[]; +export type StaffDeleteKeySpecifier = ('errors' | 'staffErrors' | 'user' | StaffDeleteKeySpecifier)[]; export type StaffDeleteFieldPolicy = { - staffErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + staffErrors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type StaffDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffDeletedKeySpecifier)[]; +export type StaffDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'user' | 'version' | StaffDeletedKeySpecifier)[]; export type StaffDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type StaffErrorKeySpecifier = ('field' | 'message' | 'code' | 'addressType' | 'permissions' | 'groups' | 'users' | StaffErrorKeySpecifier)[]; +export type StaffErrorKeySpecifier = ('addressType' | 'code' | 'field' | 'groups' | 'message' | 'permissions' | 'users' | StaffErrorKeySpecifier)[]; export type StaffErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, addressType?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, groups?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + permissions?: FieldPolicy | FieldReadFunction, users?: FieldPolicy | FieldReadFunction }; -export type StaffNotificationRecipientKeySpecifier = ('id' | 'user' | 'email' | 'active' | StaffNotificationRecipientKeySpecifier)[]; +export type StaffNotificationRecipientKeySpecifier = ('active' | 'email' | 'id' | 'user' | StaffNotificationRecipientKeySpecifier)[]; export type StaffNotificationRecipientFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, + active?: FieldPolicy | FieldReadFunction, email?: FieldPolicy | FieldReadFunction, - active?: FieldPolicy | FieldReadFunction -}; -export type StaffNotificationRecipientCreateKeySpecifier = ('shopErrors' | 'errors' | 'staffNotificationRecipient' | StaffNotificationRecipientCreateKeySpecifier)[]; -export type StaffNotificationRecipientCreateFieldPolicy = { - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - staffNotificationRecipient?: FieldPolicy | FieldReadFunction -}; -export type StaffNotificationRecipientDeleteKeySpecifier = ('shopErrors' | 'errors' | 'staffNotificationRecipient' | StaffNotificationRecipientDeleteKeySpecifier)[]; -export type StaffNotificationRecipientDeleteFieldPolicy = { - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - staffNotificationRecipient?: FieldPolicy | FieldReadFunction -}; -export type StaffNotificationRecipientUpdateKeySpecifier = ('shopErrors' | 'errors' | 'staffNotificationRecipient' | StaffNotificationRecipientUpdateKeySpecifier)[]; -export type StaffNotificationRecipientUpdateFieldPolicy = { - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - staffNotificationRecipient?: FieldPolicy | FieldReadFunction -}; -export type StaffUpdateKeySpecifier = ('staffErrors' | 'errors' | 'user' | StaffUpdateKeySpecifier)[]; -export type StaffUpdateFieldPolicy = { - staffErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; -export type StaffUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffUpdatedKeySpecifier)[]; +export type StaffNotificationRecipientCreateKeySpecifier = ('errors' | 'shopErrors' | 'staffNotificationRecipient' | StaffNotificationRecipientCreateKeySpecifier)[]; +export type StaffNotificationRecipientCreateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + shopErrors?: FieldPolicy | FieldReadFunction, + staffNotificationRecipient?: FieldPolicy | FieldReadFunction +}; +export type StaffNotificationRecipientDeleteKeySpecifier = ('errors' | 'shopErrors' | 'staffNotificationRecipient' | StaffNotificationRecipientDeleteKeySpecifier)[]; +export type StaffNotificationRecipientDeleteFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + shopErrors?: FieldPolicy | FieldReadFunction, + staffNotificationRecipient?: FieldPolicy | FieldReadFunction +}; +export type StaffNotificationRecipientUpdateKeySpecifier = ('errors' | 'shopErrors' | 'staffNotificationRecipient' | StaffNotificationRecipientUpdateKeySpecifier)[]; +export type StaffNotificationRecipientUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + shopErrors?: FieldPolicy | FieldReadFunction, + staffNotificationRecipient?: FieldPolicy | FieldReadFunction +}; +export type StaffUpdateKeySpecifier = ('errors' | 'staffErrors' | 'user' | StaffUpdateKeySpecifier)[]; +export type StaffUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + staffErrors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; +export type StaffUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'user' | 'version' | StaffUpdatedKeySpecifier)[]; export type StaffUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type StockKeySpecifier = ('id' | 'warehouse' | 'productVariant' | 'quantity' | 'quantityAllocated' | 'quantityReserved' | StockKeySpecifier)[]; +export type StockKeySpecifier = ('id' | 'productVariant' | 'quantity' | 'quantityAllocated' | 'quantityReserved' | 'warehouse' | StockKeySpecifier)[]; export type StockFieldPolicy = { id?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction, quantity?: FieldPolicy | FieldReadFunction, quantityAllocated?: FieldPolicy | FieldReadFunction, - quantityReserved?: FieldPolicy | FieldReadFunction + quantityReserved?: FieldPolicy | FieldReadFunction, + warehouse?: FieldPolicy | FieldReadFunction }; -export type StockBulkResultKeySpecifier = ('stock' | 'errors' | StockBulkResultKeySpecifier)[]; +export type StockBulkResultKeySpecifier = ('errors' | 'stock' | StockBulkResultKeySpecifier)[]; export type StockBulkResultFieldPolicy = { - stock?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + stock?: FieldPolicy | FieldReadFunction }; -export type StockBulkUpdateKeySpecifier = ('count' | 'results' | 'errors' | StockBulkUpdateKeySpecifier)[]; +export type StockBulkUpdateKeySpecifier = ('count' | 'errors' | 'results' | StockBulkUpdateKeySpecifier)[]; export type StockBulkUpdateFieldPolicy = { count?: FieldPolicy | FieldReadFunction, - results?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + results?: FieldPolicy | FieldReadFunction }; -export type StockBulkUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | StockBulkUpdateErrorKeySpecifier)[]; +export type StockBulkUpdateErrorKeySpecifier = ('code' | 'field' | 'message' | StockBulkUpdateErrorKeySpecifier)[]; export type StockBulkUpdateErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; -export type StockCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | StockCountableConnectionKeySpecifier)[]; +export type StockCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | StockCountableConnectionKeySpecifier)[]; export type StockCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type StockCountableEdgeKeySpecifier = ('node' | 'cursor' | StockCountableEdgeKeySpecifier)[]; +export type StockCountableEdgeKeySpecifier = ('cursor' | 'node' | StockCountableEdgeKeySpecifier)[]; export type StockCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type StockErrorKeySpecifier = ('field' | 'message' | 'code' | StockErrorKeySpecifier)[]; +export type StockErrorKeySpecifier = ('code' | 'field' | 'message' | StockErrorKeySpecifier)[]; export type StockErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; export type StockSettingsKeySpecifier = ('allocationStrategy' | StockSettingsKeySpecifier)[]; export type StockSettingsFieldPolicy = { @@ -4863,28 +5020,28 @@ export type SubscriptionKeySpecifier = ('event' | SubscriptionKeySpecifier)[]; export type SubscriptionFieldPolicy = { event?: FieldPolicy | FieldReadFunction }; -export type TaxClassKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'countries' | TaxClassKeySpecifier)[]; +export type TaxClassKeySpecifier = ('countries' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | TaxClassKeySpecifier)[]; export type TaxClassFieldPolicy = { + countries?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction }; -export type TaxClassCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | TaxClassCountableConnectionKeySpecifier)[]; +export type TaxClassCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | TaxClassCountableConnectionKeySpecifier)[]; export type TaxClassCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type TaxClassCountableEdgeKeySpecifier = ('node' | 'cursor' | TaxClassCountableEdgeKeySpecifier)[]; +export type TaxClassCountableEdgeKeySpecifier = ('cursor' | 'node' | TaxClassCountableEdgeKeySpecifier)[]; export type TaxClassCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; export type TaxClassCountryRateKeySpecifier = ('country' | 'rate' | 'taxClass' | TaxClassCountryRateKeySpecifier)[]; export type TaxClassCountryRateFieldPolicy = { @@ -4897,152 +5054,152 @@ export type TaxClassCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, taxClass?: FieldPolicy | FieldReadFunction }; -export type TaxClassCreateErrorKeySpecifier = ('field' | 'message' | 'code' | 'countryCodes' | TaxClassCreateErrorKeySpecifier)[]; +export type TaxClassCreateErrorKeySpecifier = ('code' | 'countryCodes' | 'field' | 'message' | TaxClassCreateErrorKeySpecifier)[]; export type TaxClassCreateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction, - countryCodes?: FieldPolicy | FieldReadFunction + countryCodes?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction }; export type TaxClassDeleteKeySpecifier = ('errors' | 'taxClass' | TaxClassDeleteKeySpecifier)[]; export type TaxClassDeleteFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, taxClass?: FieldPolicy | FieldReadFunction }; -export type TaxClassDeleteErrorKeySpecifier = ('field' | 'message' | 'code' | TaxClassDeleteErrorKeySpecifier)[]; +export type TaxClassDeleteErrorKeySpecifier = ('code' | 'field' | 'message' | TaxClassDeleteErrorKeySpecifier)[]; export type TaxClassDeleteErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; export type TaxClassUpdateKeySpecifier = ('errors' | 'taxClass' | TaxClassUpdateKeySpecifier)[]; export type TaxClassUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, taxClass?: FieldPolicy | FieldReadFunction }; -export type TaxClassUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | 'countryCodes' | TaxClassUpdateErrorKeySpecifier)[]; +export type TaxClassUpdateErrorKeySpecifier = ('code' | 'countryCodes' | 'field' | 'message' | TaxClassUpdateErrorKeySpecifier)[]; export type TaxClassUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction, - countryCodes?: FieldPolicy | FieldReadFunction + countryCodes?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction }; -export type TaxConfigurationKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'channel' | 'chargeTaxes' | 'taxCalculationStrategy' | 'displayGrossPrices' | 'pricesEnteredWithTax' | 'countries' | TaxConfigurationKeySpecifier)[]; +export type TaxConfigurationKeySpecifier = ('channel' | 'chargeTaxes' | 'countries' | 'displayGrossPrices' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'pricesEnteredWithTax' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'taxCalculationStrategy' | TaxConfigurationKeySpecifier)[]; export type TaxConfigurationFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, + chargeTaxes?: FieldPolicy | FieldReadFunction, + countries?: FieldPolicy | FieldReadFunction, + displayGrossPrices?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - chargeTaxes?: FieldPolicy | FieldReadFunction, - taxCalculationStrategy?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction, pricesEnteredWithTax?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + taxCalculationStrategy?: FieldPolicy | FieldReadFunction }; -export type TaxConfigurationCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | TaxConfigurationCountableConnectionKeySpecifier)[]; +export type TaxConfigurationCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | TaxConfigurationCountableConnectionKeySpecifier)[]; export type TaxConfigurationCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type TaxConfigurationCountableEdgeKeySpecifier = ('node' | 'cursor' | TaxConfigurationCountableEdgeKeySpecifier)[]; +export type TaxConfigurationCountableEdgeKeySpecifier = ('cursor' | 'node' | TaxConfigurationCountableEdgeKeySpecifier)[]; export type TaxConfigurationCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type TaxConfigurationPerCountryKeySpecifier = ('country' | 'chargeTaxes' | 'taxCalculationStrategy' | 'displayGrossPrices' | TaxConfigurationPerCountryKeySpecifier)[]; +export type TaxConfigurationPerCountryKeySpecifier = ('chargeTaxes' | 'country' | 'displayGrossPrices' | 'taxCalculationStrategy' | TaxConfigurationPerCountryKeySpecifier)[]; export type TaxConfigurationPerCountryFieldPolicy = { - country?: FieldPolicy | FieldReadFunction, chargeTaxes?: FieldPolicy | FieldReadFunction, - taxCalculationStrategy?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction + country?: FieldPolicy | FieldReadFunction, + displayGrossPrices?: FieldPolicy | FieldReadFunction, + taxCalculationStrategy?: FieldPolicy | FieldReadFunction }; export type TaxConfigurationUpdateKeySpecifier = ('errors' | 'taxConfiguration' | TaxConfigurationUpdateKeySpecifier)[]; export type TaxConfigurationUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, taxConfiguration?: FieldPolicy | FieldReadFunction }; -export type TaxConfigurationUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | 'countryCodes' | TaxConfigurationUpdateErrorKeySpecifier)[]; +export type TaxConfigurationUpdateErrorKeySpecifier = ('code' | 'countryCodes' | 'field' | 'message' | TaxConfigurationUpdateErrorKeySpecifier)[]; export type TaxConfigurationUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction, - countryCodes?: FieldPolicy | FieldReadFunction + countryCodes?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction }; export type TaxCountryConfigurationKeySpecifier = ('country' | 'taxClassCountryRates' | TaxCountryConfigurationKeySpecifier)[]; export type TaxCountryConfigurationFieldPolicy = { country?: FieldPolicy | FieldReadFunction, taxClassCountryRates?: FieldPolicy | FieldReadFunction }; -export type TaxCountryConfigurationDeleteKeySpecifier = ('taxCountryConfiguration' | 'errors' | TaxCountryConfigurationDeleteKeySpecifier)[]; +export type TaxCountryConfigurationDeleteKeySpecifier = ('errors' | 'taxCountryConfiguration' | TaxCountryConfigurationDeleteKeySpecifier)[]; export type TaxCountryConfigurationDeleteFieldPolicy = { - taxCountryConfiguration?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + taxCountryConfiguration?: FieldPolicy | FieldReadFunction }; -export type TaxCountryConfigurationDeleteErrorKeySpecifier = ('field' | 'message' | 'code' | TaxCountryConfigurationDeleteErrorKeySpecifier)[]; +export type TaxCountryConfigurationDeleteErrorKeySpecifier = ('code' | 'field' | 'message' | TaxCountryConfigurationDeleteErrorKeySpecifier)[]; export type TaxCountryConfigurationDeleteErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TaxCountryConfigurationUpdateKeySpecifier = ('taxCountryConfiguration' | 'errors' | TaxCountryConfigurationUpdateKeySpecifier)[]; -export type TaxCountryConfigurationUpdateFieldPolicy = { - taxCountryConfiguration?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TaxCountryConfigurationUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | 'taxClassIds' | TaxCountryConfigurationUpdateErrorKeySpecifier)[]; -export type TaxCountryConfigurationUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type TaxCountryConfigurationUpdateKeySpecifier = ('errors' | 'taxCountryConfiguration' | TaxCountryConfigurationUpdateKeySpecifier)[]; +export type TaxCountryConfigurationUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + taxCountryConfiguration?: FieldPolicy | FieldReadFunction +}; +export type TaxCountryConfigurationUpdateErrorKeySpecifier = ('code' | 'field' | 'message' | 'taxClassIds' | TaxCountryConfigurationUpdateErrorKeySpecifier)[]; +export type TaxCountryConfigurationUpdateErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, taxClassIds?: FieldPolicy | FieldReadFunction }; -export type TaxExemptionManageKeySpecifier = ('taxableObject' | 'errors' | TaxExemptionManageKeySpecifier)[]; +export type TaxExemptionManageKeySpecifier = ('errors' | 'taxableObject' | TaxExemptionManageKeySpecifier)[]; export type TaxExemptionManageFieldPolicy = { - taxableObject?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + taxableObject?: FieldPolicy | FieldReadFunction }; -export type TaxExemptionManageErrorKeySpecifier = ('field' | 'message' | 'code' | TaxExemptionManageErrorKeySpecifier)[]; +export type TaxExemptionManageErrorKeySpecifier = ('code' | 'field' | 'message' | TaxExemptionManageErrorKeySpecifier)[]; export type TaxExemptionManageErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; export type TaxTypeKeySpecifier = ('description' | 'taxCode' | TaxTypeKeySpecifier)[]; export type TaxTypeFieldPolicy = { description?: FieldPolicy | FieldReadFunction, taxCode?: FieldPolicy | FieldReadFunction }; -export type TaxableObjectKeySpecifier = ('sourceObject' | 'pricesEnteredWithTax' | 'currency' | 'shippingPrice' | 'address' | 'discounts' | 'lines' | 'channel' | TaxableObjectKeySpecifier)[]; +export type TaxableObjectKeySpecifier = ('address' | 'channel' | 'currency' | 'discounts' | 'lines' | 'pricesEnteredWithTax' | 'shippingPrice' | 'sourceObject' | TaxableObjectKeySpecifier)[]; export type TaxableObjectFieldPolicy = { - sourceObject?: FieldPolicy | FieldReadFunction, - pricesEnteredWithTax?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction, - shippingPrice?: FieldPolicy | FieldReadFunction, address?: FieldPolicy | FieldReadFunction, + channel?: FieldPolicy | FieldReadFunction, + currency?: FieldPolicy | FieldReadFunction, discounts?: FieldPolicy | FieldReadFunction, lines?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction + pricesEnteredWithTax?: FieldPolicy | FieldReadFunction, + shippingPrice?: FieldPolicy | FieldReadFunction, + sourceObject?: FieldPolicy | FieldReadFunction }; -export type TaxableObjectDiscountKeySpecifier = ('name' | 'amount' | TaxableObjectDiscountKeySpecifier)[]; +export type TaxableObjectDiscountKeySpecifier = ('amount' | 'name' | TaxableObjectDiscountKeySpecifier)[]; export type TaxableObjectDiscountFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction + amount?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction }; -export type TaxableObjectLineKeySpecifier = ('sourceLine' | 'quantity' | 'chargeTaxes' | 'productName' | 'variantName' | 'productSku' | 'unitPrice' | 'totalPrice' | TaxableObjectLineKeySpecifier)[]; +export type TaxableObjectLineKeySpecifier = ('chargeTaxes' | 'productName' | 'productSku' | 'quantity' | 'sourceLine' | 'totalPrice' | 'unitPrice' | 'variantName' | TaxableObjectLineKeySpecifier)[]; export type TaxableObjectLineFieldPolicy = { - sourceLine?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, chargeTaxes?: FieldPolicy | FieldReadFunction, productName?: FieldPolicy | FieldReadFunction, - variantName?: FieldPolicy | FieldReadFunction, productSku?: FieldPolicy | FieldReadFunction, + quantity?: FieldPolicy | FieldReadFunction, + sourceLine?: FieldPolicy | FieldReadFunction, + totalPrice?: FieldPolicy | FieldReadFunction, unitPrice?: FieldPolicy | FieldReadFunction, - totalPrice?: FieldPolicy | FieldReadFunction + variantName?: FieldPolicy | FieldReadFunction }; export type TaxedMoneyKeySpecifier = ('currency' | 'gross' | 'net' | 'tax' | TaxedMoneyKeySpecifier)[]; export type TaxedMoneyFieldPolicy = { @@ -5056,234 +5213,346 @@ export type TaxedMoneyRangeFieldPolicy = { start?: FieldPolicy | FieldReadFunction, stop?: FieldPolicy | FieldReadFunction }; -export type ThumbnailCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'id' | 'url' | 'objectId' | 'mediaUrl' | ThumbnailCreatedKeySpecifier)[]; +export type ThumbnailCreatedKeySpecifier = ('id' | 'issuedAt' | 'issuingPrincipal' | 'mediaUrl' | 'objectId' | 'recipient' | 'url' | 'version' | ThumbnailCreatedKeySpecifier)[]; export type ThumbnailCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + mediaUrl?: FieldPolicy | FieldReadFunction, objectId?: FieldPolicy | FieldReadFunction, - mediaUrl?: FieldPolicy | FieldReadFunction + recipient?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; export type TimePeriodKeySpecifier = ('amount' | 'type' | TimePeriodKeySpecifier)[]; export type TimePeriodFieldPolicy = { amount?: FieldPolicy | FieldReadFunction, type?: FieldPolicy | FieldReadFunction }; -export type TransactionKeySpecifier = ('id' | 'created' | 'payment' | 'token' | 'kind' | 'isSuccess' | 'error' | 'gatewayResponse' | 'amount' | TransactionKeySpecifier)[]; +export type TransactionKeySpecifier = ('amount' | 'created' | 'error' | 'gatewayResponse' | 'id' | 'isSuccess' | 'kind' | 'payment' | 'token' | TransactionKeySpecifier)[]; export type TransactionFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, + amount?: FieldPolicy | FieldReadFunction, created?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction, - kind?: FieldPolicy | FieldReadFunction, - isSuccess?: FieldPolicy | FieldReadFunction, error?: FieldPolicy | FieldReadFunction, gatewayResponse?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction, + isSuccess?: FieldPolicy | FieldReadFunction, + kind?: FieldPolicy | FieldReadFunction, + payment?: FieldPolicy | FieldReadFunction, + token?: FieldPolicy | FieldReadFunction }; export type TransactionActionKeySpecifier = ('actionType' | 'amount' | TransactionActionKeySpecifier)[]; export type TransactionActionFieldPolicy = { actionType?: FieldPolicy | FieldReadFunction, amount?: FieldPolicy | FieldReadFunction }; -export type TransactionActionRequestKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'action' | TransactionActionRequestKeySpecifier)[]; +export type TransactionActionRequestKeySpecifier = ('action' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'version' | TransactionActionRequestKeySpecifier)[]; export type TransactionActionRequestFieldPolicy = { + action?: FieldPolicy | FieldReadFunction, issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, transaction?: FieldPolicy | FieldReadFunction, - action?: FieldPolicy | FieldReadFunction + version?: FieldPolicy | FieldReadFunction }; -export type TransactionCreateKeySpecifier = ('transaction' | 'errors' | TransactionCreateKeySpecifier)[]; +export type TransactionCancelationRequestedKeySpecifier = ('action' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'version' | TransactionCancelationRequestedKeySpecifier)[]; +export type TransactionCancelationRequestedFieldPolicy = { + action?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type TransactionChargeRequestedKeySpecifier = ('action' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'version' | TransactionChargeRequestedKeySpecifier)[]; +export type TransactionChargeRequestedFieldPolicy = { + action?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type TransactionCreateKeySpecifier = ('errors' | 'transaction' | TransactionCreateKeySpecifier)[]; export type TransactionCreateFieldPolicy = { - transaction?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TransactionCreateErrorKeySpecifier = ('field' | 'message' | 'code' | TransactionCreateErrorKeySpecifier)[]; -export type TransactionCreateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TransactionEventKeySpecifier = ('id' | 'createdAt' | 'status' | 'reference' | 'name' | TransactionEventKeySpecifier)[]; -export type TransactionEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - reference?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type TransactionItemKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'createdAt' | 'modifiedAt' | 'actions' | 'authorizedAmount' | 'refundedAmount' | 'voidedAmount' | 'chargedAmount' | 'status' | 'type' | 'reference' | 'order' | 'events' | TransactionItemKeySpecifier)[]; -export type TransactionItemFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - modifiedAt?: FieldPolicy | FieldReadFunction, - actions?: FieldPolicy | FieldReadFunction, - authorizedAmount?: FieldPolicy | FieldReadFunction, - refundedAmount?: FieldPolicy | FieldReadFunction, - voidedAmount?: FieldPolicy | FieldReadFunction, - chargedAmount?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - reference?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction -}; -export type TransactionItemMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'transaction' | TransactionItemMetadataUpdatedKeySpecifier)[]; -export type TransactionItemMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, transaction?: FieldPolicy | FieldReadFunction }; -export type TransactionRequestActionKeySpecifier = ('transaction' | 'errors' | TransactionRequestActionKeySpecifier)[]; -export type TransactionRequestActionFieldPolicy = { - transaction?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TransactionRequestActionErrorKeySpecifier = ('field' | 'message' | 'code' | TransactionRequestActionErrorKeySpecifier)[]; -export type TransactionRequestActionErrorFieldPolicy = { +export type TransactionCreateErrorKeySpecifier = ('code' | 'field' | 'message' | TransactionCreateErrorKeySpecifier)[]; +export type TransactionCreateErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; -export type TransactionUpdateKeySpecifier = ('transaction' | 'errors' | TransactionUpdateKeySpecifier)[]; -export type TransactionUpdateFieldPolicy = { - transaction?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TransactionUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | TransactionUpdateErrorKeySpecifier)[]; -export type TransactionUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TranslatableItemConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | TranslatableItemConnectionKeySpecifier)[]; -export type TranslatableItemConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type TranslatableItemEdgeKeySpecifier = ('node' | 'cursor' | TranslatableItemEdgeKeySpecifier)[]; -export type TranslatableItemEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type TranslationCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'translation' | TranslationCreatedKeySpecifier)[]; -export type TranslationCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction -}; -export type TranslationErrorKeySpecifier = ('field' | 'message' | 'code' | TranslationErrorKeySpecifier)[]; -export type TranslationErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TranslationUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'translation' | TranslationUpdatedKeySpecifier)[]; -export type TranslationUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction -}; -export type UpdateMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | UpdateMetadataKeySpecifier)[]; -export type UpdateMetadataFieldPolicy = { - metadataErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - item?: FieldPolicy | FieldReadFunction -}; -export type UpdatePrivateMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | UpdatePrivateMetadataKeySpecifier)[]; -export type UpdatePrivateMetadataFieldPolicy = { - metadataErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - item?: FieldPolicy | FieldReadFunction -}; -export type UploadErrorKeySpecifier = ('field' | 'message' | 'code' | UploadErrorKeySpecifier)[]; -export type UploadErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type UserKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'email' | 'firstName' | 'lastName' | 'isStaff' | 'isActive' | 'addresses' | 'checkout' | 'checkoutTokens' | 'checkoutIds' | 'checkouts' | 'giftCards' | 'note' | 'orders' | 'userPermissions' | 'permissionGroups' | 'editableGroups' | 'avatar' | 'events' | 'storedPaymentSources' | 'languageCode' | 'defaultShippingAddress' | 'defaultBillingAddress' | 'externalReference' | 'lastLogin' | 'dateJoined' | 'updatedAt' | UserKeySpecifier)[]; -export type UserFieldPolicy = { +export type TransactionEventKeySpecifier = ('amount' | 'createdAt' | 'createdBy' | 'externalUrl' | 'id' | 'message' | 'name' | 'pspReference' | 'reference' | 'status' | 'type' | TransactionEventKeySpecifier)[]; +export type TransactionEventFieldPolicy = { + amount?: FieldPolicy | FieldReadFunction, + createdAt?: FieldPolicy | FieldReadFunction, + createdBy?: FieldPolicy | FieldReadFunction, + externalUrl?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + pspReference?: FieldPolicy | FieldReadFunction, + reference?: FieldPolicy | FieldReadFunction, + status?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction +}; +export type TransactionEventReportKeySpecifier = ('alreadyProcessed' | 'errors' | 'transaction' | 'transactionEvent' | TransactionEventReportKeySpecifier)[]; +export type TransactionEventReportFieldPolicy = { + alreadyProcessed?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + transactionEvent?: FieldPolicy | FieldReadFunction +}; +export type TransactionEventReportErrorKeySpecifier = ('code' | 'field' | 'message' | TransactionEventReportErrorKeySpecifier)[]; +export type TransactionEventReportErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type TransactionInitializeKeySpecifier = ('data' | 'errors' | 'transaction' | 'transactionEvent' | TransactionInitializeKeySpecifier)[]; +export type TransactionInitializeFieldPolicy = { + data?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + transactionEvent?: FieldPolicy | FieldReadFunction +}; +export type TransactionInitializeErrorKeySpecifier = ('code' | 'field' | 'message' | TransactionInitializeErrorKeySpecifier)[]; +export type TransactionInitializeErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type TransactionInitializeSessionKeySpecifier = ('action' | 'data' | 'issuedAt' | 'issuingPrincipal' | 'merchantReference' | 'recipient' | 'sourceObject' | 'transaction' | 'version' | TransactionInitializeSessionKeySpecifier)[]; +export type TransactionInitializeSessionFieldPolicy = { + action?: FieldPolicy | FieldReadFunction, + data?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + merchantReference?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + sourceObject?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type TransactionItemKeySpecifier = ('actions' | 'authorizePendingAmount' | 'authorizedAmount' | 'cancelPendingAmount' | 'canceledAmount' | 'chargePendingAmount' | 'chargedAmount' | 'createdAt' | 'createdBy' | 'events' | 'externalUrl' | 'id' | 'message' | 'metadata' | 'metafield' | 'metafields' | 'modifiedAt' | 'name' | 'order' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'pspReference' | 'reference' | 'refundPendingAmount' | 'refundedAmount' | 'status' | 'type' | 'voidedAmount' | TransactionItemKeySpecifier)[]; +export type TransactionItemFieldPolicy = { + actions?: FieldPolicy | FieldReadFunction, + authorizePendingAmount?: FieldPolicy | FieldReadFunction, + authorizedAmount?: FieldPolicy | FieldReadFunction, + cancelPendingAmount?: FieldPolicy | FieldReadFunction, + canceledAmount?: FieldPolicy | FieldReadFunction, + chargePendingAmount?: FieldPolicy | FieldReadFunction, + chargedAmount?: FieldPolicy | FieldReadFunction, + createdAt?: FieldPolicy | FieldReadFunction, + createdBy?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + externalUrl?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - firstName?: FieldPolicy | FieldReadFunction, - lastName?: FieldPolicy | FieldReadFunction, - isStaff?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - addresses?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - checkoutTokens?: FieldPolicy | FieldReadFunction, - checkoutIds?: FieldPolicy | FieldReadFunction, - checkouts?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - note?: FieldPolicy | FieldReadFunction, - orders?: FieldPolicy | FieldReadFunction, - userPermissions?: FieldPolicy | FieldReadFunction, - permissionGroups?: FieldPolicy | FieldReadFunction, - editableGroups?: FieldPolicy | FieldReadFunction, - avatar?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - storedPaymentSources?: FieldPolicy | FieldReadFunction, - languageCode?: FieldPolicy | FieldReadFunction, - defaultShippingAddress?: FieldPolicy | FieldReadFunction, - defaultBillingAddress?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction, - lastLogin?: FieldPolicy | FieldReadFunction, - dateJoined?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction + modifiedAt?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + order?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + pspReference?: FieldPolicy | FieldReadFunction, + reference?: FieldPolicy | FieldReadFunction, + refundPendingAmount?: FieldPolicy | FieldReadFunction, + refundedAmount?: FieldPolicy | FieldReadFunction, + status?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, + voidedAmount?: FieldPolicy | FieldReadFunction }; -export type UserAvatarDeleteKeySpecifier = ('user' | 'accountErrors' | 'errors' | UserAvatarDeleteKeySpecifier)[]; -export type UserAvatarDeleteFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction +export type TransactionItemMetadataUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'version' | TransactionItemMetadataUpdatedKeySpecifier)[]; +export type TransactionItemMetadataUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction }; -export type UserAvatarUpdateKeySpecifier = ('user' | 'accountErrors' | 'errors' | UserAvatarUpdateKeySpecifier)[]; -export type UserAvatarUpdateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction +export type TransactionProcessKeySpecifier = ('data' | 'errors' | 'transaction' | 'transactionEvent' | TransactionProcessKeySpecifier)[]; +export type TransactionProcessFieldPolicy = { + data?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + transactionEvent?: FieldPolicy | FieldReadFunction }; -export type UserBulkSetActiveKeySpecifier = ('count' | 'accountErrors' | 'errors' | UserBulkSetActiveKeySpecifier)[]; -export type UserBulkSetActiveFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction +export type TransactionProcessActionKeySpecifier = ('actionType' | 'amount' | 'currency' | TransactionProcessActionKeySpecifier)[]; +export type TransactionProcessActionFieldPolicy = { + actionType?: FieldPolicy | FieldReadFunction, + amount?: FieldPolicy | FieldReadFunction, + currency?: FieldPolicy | FieldReadFunction }; -export type UserCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | UserCountableConnectionKeySpecifier)[]; -export type UserCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, +export type TransactionProcessErrorKeySpecifier = ('code' | 'field' | 'message' | TransactionProcessErrorKeySpecifier)[]; +export type TransactionProcessErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type TransactionProcessSessionKeySpecifier = ('action' | 'data' | 'issuedAt' | 'issuingPrincipal' | 'merchantReference' | 'recipient' | 'sourceObject' | 'transaction' | 'version' | TransactionProcessSessionKeySpecifier)[]; +export type TransactionProcessSessionFieldPolicy = { + action?: FieldPolicy | FieldReadFunction, + data?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + merchantReference?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + sourceObject?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type TransactionRefundRequestedKeySpecifier = ('action' | 'issuedAt' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'version' | TransactionRefundRequestedKeySpecifier)[]; +export type TransactionRefundRequestedFieldPolicy = { + action?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type TransactionRequestActionKeySpecifier = ('errors' | 'transaction' | TransactionRequestActionKeySpecifier)[]; +export type TransactionRequestActionFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction +}; +export type TransactionRequestActionErrorKeySpecifier = ('code' | 'field' | 'message' | TransactionRequestActionErrorKeySpecifier)[]; +export type TransactionRequestActionErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type TransactionUpdateKeySpecifier = ('errors' | 'transaction' | TransactionUpdateKeySpecifier)[]; +export type TransactionUpdateFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + transaction?: FieldPolicy | FieldReadFunction +}; +export type TransactionUpdateErrorKeySpecifier = ('code' | 'field' | 'message' | TransactionUpdateErrorKeySpecifier)[]; +export type TransactionUpdateErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type TranslatableItemConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | TranslatableItemConnectionKeySpecifier)[]; +export type TranslatableItemConnectionFieldPolicy = { edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type UserCountableEdgeKeySpecifier = ('node' | 'cursor' | UserCountableEdgeKeySpecifier)[]; +export type TranslatableItemEdgeKeySpecifier = ('cursor' | 'node' | TranslatableItemEdgeKeySpecifier)[]; +export type TranslatableItemEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; +export type TranslationCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'translation' | 'version' | TranslationCreatedKeySpecifier)[]; +export type TranslationCreatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type TranslationErrorKeySpecifier = ('code' | 'field' | 'message' | TranslationErrorKeySpecifier)[]; +export type TranslationErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type TranslationUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'translation' | 'version' | TranslationUpdatedKeySpecifier)[]; +export type TranslationUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type UpdateMetadataKeySpecifier = ('errors' | 'item' | 'metadataErrors' | UpdateMetadataKeySpecifier)[]; +export type UpdateMetadataFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + item?: FieldPolicy | FieldReadFunction, + metadataErrors?: FieldPolicy | FieldReadFunction +}; +export type UpdatePrivateMetadataKeySpecifier = ('errors' | 'item' | 'metadataErrors' | UpdatePrivateMetadataKeySpecifier)[]; +export type UpdatePrivateMetadataFieldPolicy = { + errors?: FieldPolicy | FieldReadFunction, + item?: FieldPolicy | FieldReadFunction, + metadataErrors?: FieldPolicy | FieldReadFunction +}; +export type UploadErrorKeySpecifier = ('code' | 'field' | 'message' | UploadErrorKeySpecifier)[]; +export type UploadErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction +}; +export type UserKeySpecifier = ('addresses' | 'avatar' | 'checkout' | 'checkoutIds' | 'checkoutTokens' | 'checkouts' | 'dateJoined' | 'defaultBillingAddress' | 'defaultShippingAddress' | 'editableGroups' | 'email' | 'events' | 'externalReference' | 'firstName' | 'giftCards' | 'id' | 'isActive' | 'isStaff' | 'languageCode' | 'lastLogin' | 'lastName' | 'metadata' | 'metafield' | 'metafields' | 'note' | 'orders' | 'permissionGroups' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'storedPaymentSources' | 'updatedAt' | 'userPermissions' | UserKeySpecifier)[]; +export type UserFieldPolicy = { + addresses?: FieldPolicy | FieldReadFunction, + avatar?: FieldPolicy | FieldReadFunction, + checkout?: FieldPolicy | FieldReadFunction, + checkoutIds?: FieldPolicy | FieldReadFunction, + checkoutTokens?: FieldPolicy | FieldReadFunction, + checkouts?: FieldPolicy | FieldReadFunction, + dateJoined?: FieldPolicy | FieldReadFunction, + defaultBillingAddress?: FieldPolicy | FieldReadFunction, + defaultShippingAddress?: FieldPolicy | FieldReadFunction, + editableGroups?: FieldPolicy | FieldReadFunction, + email?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + externalReference?: FieldPolicy | FieldReadFunction, + firstName?: FieldPolicy | FieldReadFunction, + giftCards?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + isActive?: FieldPolicy | FieldReadFunction, + isStaff?: FieldPolicy | FieldReadFunction, + languageCode?: FieldPolicy | FieldReadFunction, + lastLogin?: FieldPolicy | FieldReadFunction, + lastName?: FieldPolicy | FieldReadFunction, + metadata?: FieldPolicy | FieldReadFunction, + metafield?: FieldPolicy | FieldReadFunction, + metafields?: FieldPolicy | FieldReadFunction, + note?: FieldPolicy | FieldReadFunction, + orders?: FieldPolicy | FieldReadFunction, + permissionGroups?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + storedPaymentSources?: FieldPolicy | FieldReadFunction, + updatedAt?: FieldPolicy | FieldReadFunction, + userPermissions?: FieldPolicy | FieldReadFunction +}; +export type UserAvatarDeleteKeySpecifier = ('accountErrors' | 'errors' | 'user' | UserAvatarDeleteKeySpecifier)[]; +export type UserAvatarDeleteFieldPolicy = { + accountErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; +export type UserAvatarUpdateKeySpecifier = ('accountErrors' | 'errors' | 'user' | UserAvatarUpdateKeySpecifier)[]; +export type UserAvatarUpdateFieldPolicy = { + accountErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; +export type UserBulkSetActiveKeySpecifier = ('accountErrors' | 'count' | 'errors' | UserBulkSetActiveKeySpecifier)[]; +export type UserBulkSetActiveFieldPolicy = { + accountErrors?: FieldPolicy | FieldReadFunction, + count?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type UserCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | UserCountableConnectionKeySpecifier)[]; +export type UserCountableConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type UserCountableEdgeKeySpecifier = ('cursor' | 'node' | UserCountableEdgeKeySpecifier)[]; export type UserCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; export type UserPermissionKeySpecifier = ('code' | 'name' | 'sourcePermissionGroups' | UserPermissionKeySpecifier)[]; export type UserPermissionFieldPolicy = { @@ -5291,80 +5560,80 @@ export type UserPermissionFieldPolicy = { name?: FieldPolicy | FieldReadFunction, sourcePermissionGroups?: FieldPolicy | FieldReadFunction }; -export type VATKeySpecifier = ('countryCode' | 'standardRate' | 'reducedRates' | VATKeySpecifier)[]; +export type VATKeySpecifier = ('countryCode' | 'reducedRates' | 'standardRate' | VATKeySpecifier)[]; export type VATFieldPolicy = { countryCode?: FieldPolicy | FieldReadFunction, - standardRate?: FieldPolicy | FieldReadFunction, - reducedRates?: FieldPolicy | FieldReadFunction + reducedRates?: FieldPolicy | FieldReadFunction, + standardRate?: FieldPolicy | FieldReadFunction }; -export type VariantMediaAssignKeySpecifier = ('productVariant' | 'media' | 'productErrors' | 'errors' | VariantMediaAssignKeySpecifier)[]; +export type VariantMediaAssignKeySpecifier = ('errors' | 'media' | 'productErrors' | 'productVariant' | VariantMediaAssignKeySpecifier)[]; export type VariantMediaAssignFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, media?: FieldPolicy | FieldReadFunction, productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + productVariant?: FieldPolicy | FieldReadFunction }; -export type VariantMediaUnassignKeySpecifier = ('productVariant' | 'media' | 'productErrors' | 'errors' | VariantMediaUnassignKeySpecifier)[]; +export type VariantMediaUnassignKeySpecifier = ('errors' | 'media' | 'productErrors' | 'productVariant' | VariantMediaUnassignKeySpecifier)[]; export type VariantMediaUnassignFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, media?: FieldPolicy | FieldReadFunction, productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + productVariant?: FieldPolicy | FieldReadFunction }; -export type VariantPricingInfoKeySpecifier = ('onSale' | 'discount' | 'discountLocalCurrency' | 'price' | 'priceUndiscounted' | 'priceLocalCurrency' | VariantPricingInfoKeySpecifier)[]; +export type VariantPricingInfoKeySpecifier = ('discount' | 'discountLocalCurrency' | 'onSale' | 'price' | 'priceLocalCurrency' | 'priceUndiscounted' | VariantPricingInfoKeySpecifier)[]; export type VariantPricingInfoFieldPolicy = { - onSale?: FieldPolicy | FieldReadFunction, discount?: FieldPolicy | FieldReadFunction, discountLocalCurrency?: FieldPolicy | FieldReadFunction, + onSale?: FieldPolicy | FieldReadFunction, price?: FieldPolicy | FieldReadFunction, - priceUndiscounted?: FieldPolicy | FieldReadFunction, - priceLocalCurrency?: FieldPolicy | FieldReadFunction + priceLocalCurrency?: FieldPolicy | FieldReadFunction, + priceUndiscounted?: FieldPolicy | FieldReadFunction }; -export type VerifyTokenKeySpecifier = ('user' | 'isValid' | 'payload' | 'accountErrors' | 'errors' | VerifyTokenKeySpecifier)[]; +export type VerifyTokenKeySpecifier = ('accountErrors' | 'errors' | 'isValid' | 'payload' | 'user' | VerifyTokenKeySpecifier)[]; export type VerifyTokenFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, + accountErrors?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction, isValid?: FieldPolicy | FieldReadFunction, payload?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + user?: FieldPolicy | FieldReadFunction }; -export type VoucherKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'code' | 'usageLimit' | 'used' | 'startDate' | 'endDate' | 'applyOncePerOrder' | 'applyOncePerCustomer' | 'onlyForStaff' | 'minCheckoutItemsQuantity' | 'categories' | 'collections' | 'products' | 'variants' | 'countries' | 'translation' | 'discountValueType' | 'discountValue' | 'currency' | 'minSpent' | 'type' | 'channelListings' | VoucherKeySpecifier)[]; +export type VoucherKeySpecifier = ('applyOncePerCustomer' | 'applyOncePerOrder' | 'categories' | 'channelListings' | 'code' | 'collections' | 'countries' | 'currency' | 'discountValue' | 'discountValueType' | 'endDate' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'minCheckoutItemsQuantity' | 'minSpent' | 'name' | 'onlyForStaff' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'products' | 'startDate' | 'translation' | 'type' | 'usageLimit' | 'used' | 'variants' | VoucherKeySpecifier)[]; export type VoucherFieldPolicy = { + applyOncePerCustomer?: FieldPolicy | FieldReadFunction, + applyOncePerOrder?: FieldPolicy | FieldReadFunction, + categories?: FieldPolicy | FieldReadFunction, + channelListings?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, + collections?: FieldPolicy | FieldReadFunction, + countries?: FieldPolicy | FieldReadFunction, + currency?: FieldPolicy | FieldReadFunction, + discountValue?: FieldPolicy | FieldReadFunction, + discountValueType?: FieldPolicy | FieldReadFunction, + endDate?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, + minCheckoutItemsQuantity?: FieldPolicy | FieldReadFunction, + minSpent?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, + onlyForStaff?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, + products?: FieldPolicy | FieldReadFunction, + startDate?: FieldPolicy | FieldReadFunction, + translation?: FieldPolicy | FieldReadFunction, + type?: FieldPolicy | FieldReadFunction, usageLimit?: FieldPolicy | FieldReadFunction, used?: FieldPolicy | FieldReadFunction, - startDate?: FieldPolicy | FieldReadFunction, - endDate?: FieldPolicy | FieldReadFunction, - applyOncePerOrder?: FieldPolicy | FieldReadFunction, - applyOncePerCustomer?: FieldPolicy | FieldReadFunction, - onlyForStaff?: FieldPolicy | FieldReadFunction, - minCheckoutItemsQuantity?: FieldPolicy | FieldReadFunction, - categories?: FieldPolicy | FieldReadFunction, - collections?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - discountValueType?: FieldPolicy | FieldReadFunction, - discountValue?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction, - minSpent?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction + variants?: FieldPolicy | FieldReadFunction }; -export type VoucherAddCataloguesKeySpecifier = ('voucher' | 'discountErrors' | 'errors' | VoucherAddCataloguesKeySpecifier)[]; +export type VoucherAddCataloguesKeySpecifier = ('discountErrors' | 'errors' | 'voucher' | VoucherAddCataloguesKeySpecifier)[]; export type VoucherAddCataloguesFieldPolicy = { - voucher?: FieldPolicy | FieldReadFunction, discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + voucher?: FieldPolicy | FieldReadFunction }; export type VoucherBulkDeleteKeySpecifier = ('count' | 'discountErrors' | 'errors' | VoucherBulkDeleteKeySpecifier)[]; export type VoucherBulkDeleteFieldPolicy = { @@ -5372,30 +5641,30 @@ export type VoucherBulkDeleteFieldPolicy = { discountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type VoucherChannelListingKeySpecifier = ('id' | 'channel' | 'discountValue' | 'currency' | 'minSpent' | VoucherChannelListingKeySpecifier)[]; +export type VoucherChannelListingKeySpecifier = ('channel' | 'currency' | 'discountValue' | 'id' | 'minSpent' | VoucherChannelListingKeySpecifier)[]; export type VoucherChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, channel?: FieldPolicy | FieldReadFunction, - discountValue?: FieldPolicy | FieldReadFunction, currency?: FieldPolicy | FieldReadFunction, + discountValue?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, minSpent?: FieldPolicy | FieldReadFunction }; -export type VoucherChannelListingUpdateKeySpecifier = ('voucher' | 'discountErrors' | 'errors' | VoucherChannelListingUpdateKeySpecifier)[]; +export type VoucherChannelListingUpdateKeySpecifier = ('discountErrors' | 'errors' | 'voucher' | VoucherChannelListingUpdateKeySpecifier)[]; export type VoucherChannelListingUpdateFieldPolicy = { - voucher?: FieldPolicy | FieldReadFunction, discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + voucher?: FieldPolicy | FieldReadFunction }; -export type VoucherCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | VoucherCountableConnectionKeySpecifier)[]; +export type VoucherCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | VoucherCountableConnectionKeySpecifier)[]; export type VoucherCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type VoucherCountableEdgeKeySpecifier = ('node' | 'cursor' | VoucherCountableEdgeKeySpecifier)[]; +export type VoucherCountableEdgeKeySpecifier = ('cursor' | 'node' | VoucherCountableEdgeKeySpecifier)[]; export type VoucherCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; export type VoucherCreateKeySpecifier = ('discountErrors' | 'errors' | 'voucher' | VoucherCreateKeySpecifier)[]; export type VoucherCreateFieldPolicy = { @@ -5403,12 +5672,12 @@ export type VoucherCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; -export type VoucherCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'voucher' | VoucherCreatedKeySpecifier)[]; +export type VoucherCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | 'voucher' | VoucherCreatedKeySpecifier)[]; export type VoucherCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; export type VoucherDeleteKeySpecifier = ('discountErrors' | 'errors' | 'voucher' | VoucherDeleteKeySpecifier)[]; @@ -5417,27 +5686,27 @@ export type VoucherDeleteFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; -export type VoucherDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'voucher' | VoucherDeletedKeySpecifier)[]; +export type VoucherDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | 'voucher' | VoucherDeletedKeySpecifier)[]; export type VoucherDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; -export type VoucherMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'voucher' | VoucherMetadataUpdatedKeySpecifier)[]; +export type VoucherMetadataUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | 'voucher' | VoucherMetadataUpdatedKeySpecifier)[]; export type VoucherMetadataUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; -export type VoucherRemoveCataloguesKeySpecifier = ('voucher' | 'discountErrors' | 'errors' | VoucherRemoveCataloguesKeySpecifier)[]; +export type VoucherRemoveCataloguesKeySpecifier = ('discountErrors' | 'errors' | 'voucher' | VoucherRemoveCataloguesKeySpecifier)[]; export type VoucherRemoveCataloguesFieldPolicy = { - voucher?: FieldPolicy | FieldReadFunction, discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + voucher?: FieldPolicy | FieldReadFunction }; export type VoucherTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'voucher' | VoucherTranslatableContentKeySpecifier)[]; export type VoucherTranslatableContentFieldPolicy = { @@ -5446,10 +5715,10 @@ export type VoucherTranslatableContentFieldPolicy = { translation?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; -export type VoucherTranslateKeySpecifier = ('translationErrors' | 'errors' | 'voucher' | VoucherTranslateKeySpecifier)[]; +export type VoucherTranslateKeySpecifier = ('errors' | 'translationErrors' | 'voucher' | VoucherTranslateKeySpecifier)[]; export type VoucherTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, + translationErrors?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; export type VoucherTranslationKeySpecifier = ('id' | 'language' | 'name' | VoucherTranslationKeySpecifier)[]; @@ -5464,188 +5733,188 @@ export type VoucherUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; -export type VoucherUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'voucher' | VoucherUpdatedKeySpecifier)[]; +export type VoucherUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | 'voucher' | VoucherUpdatedKeySpecifier)[]; export type VoucherUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, voucher?: FieldPolicy | FieldReadFunction }; -export type WarehouseKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'slug' | 'email' | 'isPrivate' | 'address' | 'companyName' | 'clickAndCollectOption' | 'shippingZones' | 'externalReference' | WarehouseKeySpecifier)[]; +export type WarehouseKeySpecifier = ('address' | 'clickAndCollectOption' | 'companyName' | 'email' | 'externalReference' | 'id' | 'isPrivate' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'shippingZones' | 'slug' | WarehouseKeySpecifier)[]; export type WarehouseFieldPolicy = { + address?: FieldPolicy | FieldReadFunction, + clickAndCollectOption?: FieldPolicy | FieldReadFunction, + companyName?: FieldPolicy | FieldReadFunction, + email?: FieldPolicy | FieldReadFunction, + externalReference?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, + isPrivate?: FieldPolicy | FieldReadFunction, metadata?: FieldPolicy | FieldReadFunction, metafield?: FieldPolicy | FieldReadFunction, metafields?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - isPrivate?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction, - companyName?: FieldPolicy | FieldReadFunction, - clickAndCollectOption?: FieldPolicy | FieldReadFunction, + privateMetadata?: FieldPolicy | FieldReadFunction, + privateMetafield?: FieldPolicy | FieldReadFunction, + privateMetafields?: FieldPolicy | FieldReadFunction, shippingZones?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction + slug?: FieldPolicy | FieldReadFunction }; -export type WarehouseCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | WarehouseCountableConnectionKeySpecifier)[]; +export type WarehouseCountableConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | WarehouseCountableConnectionKeySpecifier)[]; export type WarehouseCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, edges?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type WarehouseCountableEdgeKeySpecifier = ('node' | 'cursor' | WarehouseCountableEdgeKeySpecifier)[]; +export type WarehouseCountableEdgeKeySpecifier = ('cursor' | 'node' | WarehouseCountableEdgeKeySpecifier)[]; export type WarehouseCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction }; -export type WarehouseCreateKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseCreateKeySpecifier)[]; +export type WarehouseCreateKeySpecifier = ('errors' | 'warehouse' | 'warehouseErrors' | WarehouseCreateKeySpecifier)[]; export type WarehouseCreateFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction + warehouse?: FieldPolicy | FieldReadFunction, + warehouseErrors?: FieldPolicy | FieldReadFunction }; -export type WarehouseCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'warehouse' | WarehouseCreatedKeySpecifier)[]; +export type WarehouseCreatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | 'warehouse' | WarehouseCreatedKeySpecifier)[]; export type WarehouseCreatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type WarehouseDeleteKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseDeleteKeySpecifier)[]; +export type WarehouseDeleteKeySpecifier = ('errors' | 'warehouse' | 'warehouseErrors' | WarehouseDeleteKeySpecifier)[]; export type WarehouseDeleteFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction + warehouse?: FieldPolicy | FieldReadFunction, + warehouseErrors?: FieldPolicy | FieldReadFunction }; -export type WarehouseDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'warehouse' | WarehouseDeletedKeySpecifier)[]; +export type WarehouseDeletedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | 'warehouse' | WarehouseDeletedKeySpecifier)[]; export type WarehouseDeletedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type WarehouseErrorKeySpecifier = ('field' | 'message' | 'code' | 'shippingZones' | WarehouseErrorKeySpecifier)[]; +export type WarehouseErrorKeySpecifier = ('code' | 'field' | 'message' | 'shippingZones' | WarehouseErrorKeySpecifier)[]; export type WarehouseErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, shippingZones?: FieldPolicy | FieldReadFunction }; -export type WarehouseMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'warehouse' | WarehouseMetadataUpdatedKeySpecifier)[]; +export type WarehouseMetadataUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | 'warehouse' | WarehouseMetadataUpdatedKeySpecifier)[]; export type WarehouseMetadataUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type WarehouseShippingZoneAssignKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseShippingZoneAssignKeySpecifier)[]; +export type WarehouseShippingZoneAssignKeySpecifier = ('errors' | 'warehouse' | 'warehouseErrors' | WarehouseShippingZoneAssignKeySpecifier)[]; export type WarehouseShippingZoneAssignFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction + warehouse?: FieldPolicy | FieldReadFunction, + warehouseErrors?: FieldPolicy | FieldReadFunction }; -export type WarehouseShippingZoneUnassignKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseShippingZoneUnassignKeySpecifier)[]; +export type WarehouseShippingZoneUnassignKeySpecifier = ('errors' | 'warehouse' | 'warehouseErrors' | WarehouseShippingZoneUnassignKeySpecifier)[]; export type WarehouseShippingZoneUnassignFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction + warehouse?: FieldPolicy | FieldReadFunction, + warehouseErrors?: FieldPolicy | FieldReadFunction }; -export type WarehouseUpdateKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseUpdateKeySpecifier)[]; +export type WarehouseUpdateKeySpecifier = ('errors' | 'warehouse' | 'warehouseErrors' | WarehouseUpdateKeySpecifier)[]; export type WarehouseUpdateFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction + warehouse?: FieldPolicy | FieldReadFunction, + warehouseErrors?: FieldPolicy | FieldReadFunction }; -export type WarehouseUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'warehouse' | WarehouseUpdatedKeySpecifier)[]; +export type WarehouseUpdatedKeySpecifier = ('issuedAt' | 'issuingPrincipal' | 'recipient' | 'version' | 'warehouse' | WarehouseUpdatedKeySpecifier)[]; export type WarehouseUpdatedFieldPolicy = { issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, issuingPrincipal?: FieldPolicy | FieldReadFunction, recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type WebhookKeySpecifier = ('id' | 'name' | 'events' | 'syncEvents' | 'asyncEvents' | 'app' | 'eventDeliveries' | 'targetUrl' | 'isActive' | 'secretKey' | 'subscriptionQuery' | 'customHeaders' | WebhookKeySpecifier)[]; +export type WebhookKeySpecifier = ('app' | 'asyncEvents' | 'customHeaders' | 'eventDeliveries' | 'events' | 'id' | 'isActive' | 'name' | 'secretKey' | 'subscriptionQuery' | 'syncEvents' | 'targetUrl' | WebhookKeySpecifier)[]; export type WebhookFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - syncEvents?: FieldPolicy | FieldReadFunction, - asyncEvents?: FieldPolicy | FieldReadFunction, app?: FieldPolicy | FieldReadFunction, + asyncEvents?: FieldPolicy | FieldReadFunction, + customHeaders?: FieldPolicy | FieldReadFunction, eventDeliveries?: FieldPolicy | FieldReadFunction, - targetUrl?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, isActive?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, secretKey?: FieldPolicy | FieldReadFunction, subscriptionQuery?: FieldPolicy | FieldReadFunction, - customHeaders?: FieldPolicy | FieldReadFunction + syncEvents?: FieldPolicy | FieldReadFunction, + targetUrl?: FieldPolicy | FieldReadFunction }; -export type WebhookCreateKeySpecifier = ('webhookErrors' | 'errors' | 'webhook' | WebhookCreateKeySpecifier)[]; +export type WebhookCreateKeySpecifier = ('errors' | 'webhook' | 'webhookErrors' | WebhookCreateKeySpecifier)[]; export type WebhookCreateFieldPolicy = { - webhookErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - webhook?: FieldPolicy | FieldReadFunction + webhook?: FieldPolicy | FieldReadFunction, + webhookErrors?: FieldPolicy | FieldReadFunction }; -export type WebhookDeleteKeySpecifier = ('webhookErrors' | 'errors' | 'webhook' | WebhookDeleteKeySpecifier)[]; +export type WebhookDeleteKeySpecifier = ('errors' | 'webhook' | 'webhookErrors' | WebhookDeleteKeySpecifier)[]; export type WebhookDeleteFieldPolicy = { - webhookErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - webhook?: FieldPolicy | FieldReadFunction + webhook?: FieldPolicy | FieldReadFunction, + webhookErrors?: FieldPolicy | FieldReadFunction }; -export type WebhookDryRunKeySpecifier = ('payload' | 'errors' | WebhookDryRunKeySpecifier)[]; +export type WebhookDryRunKeySpecifier = ('errors' | 'payload' | WebhookDryRunKeySpecifier)[]; export type WebhookDryRunFieldPolicy = { - payload?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction + errors?: FieldPolicy | FieldReadFunction, + payload?: FieldPolicy | FieldReadFunction }; -export type WebhookDryRunErrorKeySpecifier = ('field' | 'message' | 'code' | WebhookDryRunErrorKeySpecifier)[]; +export type WebhookDryRunErrorKeySpecifier = ('code' | 'field' | 'message' | WebhookDryRunErrorKeySpecifier)[]; export type WebhookDryRunErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; -export type WebhookErrorKeySpecifier = ('field' | 'message' | 'code' | WebhookErrorKeySpecifier)[]; +export type WebhookErrorKeySpecifier = ('code' | 'field' | 'message' | WebhookErrorKeySpecifier)[]; export type WebhookErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; -export type WebhookEventKeySpecifier = ('name' | 'eventType' | WebhookEventKeySpecifier)[]; +export type WebhookEventKeySpecifier = ('eventType' | 'name' | WebhookEventKeySpecifier)[]; export type WebhookEventFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - eventType?: FieldPolicy | FieldReadFunction + eventType?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction }; -export type WebhookEventAsyncKeySpecifier = ('name' | 'eventType' | WebhookEventAsyncKeySpecifier)[]; +export type WebhookEventAsyncKeySpecifier = ('eventType' | 'name' | WebhookEventAsyncKeySpecifier)[]; export type WebhookEventAsyncFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - eventType?: FieldPolicy | FieldReadFunction + eventType?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction }; -export type WebhookEventSyncKeySpecifier = ('name' | 'eventType' | WebhookEventSyncKeySpecifier)[]; +export type WebhookEventSyncKeySpecifier = ('eventType' | 'name' | WebhookEventSyncKeySpecifier)[]; export type WebhookEventSyncFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - eventType?: FieldPolicy | FieldReadFunction + eventType?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction }; export type WebhookTriggerKeySpecifier = ('delivery' | 'errors' | WebhookTriggerKeySpecifier)[]; export type WebhookTriggerFieldPolicy = { delivery?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; -export type WebhookTriggerErrorKeySpecifier = ('field' | 'message' | 'code' | WebhookTriggerErrorKeySpecifier)[]; +export type WebhookTriggerErrorKeySpecifier = ('code' | 'field' | 'message' | WebhookTriggerErrorKeySpecifier)[]; export type WebhookTriggerErrorFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction + message?: FieldPolicy | FieldReadFunction }; -export type WebhookUpdateKeySpecifier = ('webhookErrors' | 'errors' | 'webhook' | WebhookUpdateKeySpecifier)[]; +export type WebhookUpdateKeySpecifier = ('errors' | 'webhook' | 'webhookErrors' | WebhookUpdateKeySpecifier)[]; export type WebhookUpdateFieldPolicy = { - webhookErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, - webhook?: FieldPolicy | FieldReadFunction + webhook?: FieldPolicy | FieldReadFunction, + webhookErrors?: FieldPolicy | FieldReadFunction }; export type WeightKeySpecifier = ('unit' | 'value' | WeightKeySpecifier)[]; export type WeightFieldPolicy = { @@ -6133,6 +6402,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CheckoutFilterShippingMethodsKeySpecifier | (() => undefined | CheckoutFilterShippingMethodsKeySpecifier), fields?: CheckoutFilterShippingMethodsFieldPolicy, }, + CheckoutFullyPaid?: Omit & { + keyFields?: false | CheckoutFullyPaidKeySpecifier | (() => undefined | CheckoutFullyPaidKeySpecifier), + fields?: CheckoutFullyPaidFieldPolicy, + }, CheckoutLanguageCodeUpdate?: Omit & { keyFields?: false | CheckoutLanguageCodeUpdateKeySpecifier | (() => undefined | CheckoutLanguageCodeUpdateKeySpecifier), fields?: CheckoutLanguageCodeUpdateFieldPolicy, @@ -6305,6 +6578,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | CustomerBulkDeleteKeySpecifier | (() => undefined | CustomerBulkDeleteKeySpecifier), fields?: CustomerBulkDeleteFieldPolicy, }, + CustomerBulkResult?: Omit & { + keyFields?: false | CustomerBulkResultKeySpecifier | (() => undefined | CustomerBulkResultKeySpecifier), + fields?: CustomerBulkResultFieldPolicy, + }, + CustomerBulkUpdate?: Omit & { + keyFields?: false | CustomerBulkUpdateKeySpecifier | (() => undefined | CustomerBulkUpdateKeySpecifier), + fields?: CustomerBulkUpdateFieldPolicy, + }, + CustomerBulkUpdateError?: Omit & { + keyFields?: false | CustomerBulkUpdateErrorKeySpecifier | (() => undefined | CustomerBulkUpdateErrorKeySpecifier), + fields?: CustomerBulkUpdateErrorFieldPolicy, + }, CustomerCreate?: Omit & { keyFields?: false | CustomerCreateKeySpecifier | (() => undefined | CustomerCreateKeySpecifier), fields?: CustomerCreateFieldPolicy, @@ -6645,6 +6930,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | GiftCardResendKeySpecifier | (() => undefined | GiftCardResendKeySpecifier), fields?: GiftCardResendFieldPolicy, }, + GiftCardSent?: Omit & { + keyFields?: false | GiftCardSentKeySpecifier | (() => undefined | GiftCardSentKeySpecifier), + fields?: GiftCardSentFieldPolicy, + }, GiftCardSettings?: Omit & { keyFields?: false | GiftCardSettingsKeySpecifier | (() => undefined | GiftCardSettingsKeySpecifier), fields?: GiftCardSettingsFieldPolicy, @@ -6985,6 +7274,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrderEventOrderLineObjectKeySpecifier | (() => undefined | OrderEventOrderLineObjectKeySpecifier), fields?: OrderEventOrderLineObjectFieldPolicy, }, + OrderExpired?: Omit & { + keyFields?: false | OrderExpiredKeySpecifier | (() => undefined | OrderExpiredKeySpecifier), + fields?: OrderExpiredFieldPolicy, + }, OrderFilterShippingMethods?: Omit & { keyFields?: false | OrderFilterShippingMethodsKeySpecifier | (() => undefined | OrderFilterShippingMethodsKeySpecifier), fields?: OrderFilterShippingMethodsFieldPolicy, @@ -7001,6 +7294,26 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrderFullyPaidKeySpecifier | (() => undefined | OrderFullyPaidKeySpecifier), fields?: OrderFullyPaidFieldPolicy, }, + OrderGrantRefundCreate?: Omit & { + keyFields?: false | OrderGrantRefundCreateKeySpecifier | (() => undefined | OrderGrantRefundCreateKeySpecifier), + fields?: OrderGrantRefundCreateFieldPolicy, + }, + OrderGrantRefundCreateError?: Omit & { + keyFields?: false | OrderGrantRefundCreateErrorKeySpecifier | (() => undefined | OrderGrantRefundCreateErrorKeySpecifier), + fields?: OrderGrantRefundCreateErrorFieldPolicy, + }, + OrderGrantRefundUpdate?: Omit & { + keyFields?: false | OrderGrantRefundUpdateKeySpecifier | (() => undefined | OrderGrantRefundUpdateKeySpecifier), + fields?: OrderGrantRefundUpdateFieldPolicy, + }, + OrderGrantRefundUpdateError?: Omit & { + keyFields?: false | OrderGrantRefundUpdateErrorKeySpecifier | (() => undefined | OrderGrantRefundUpdateErrorKeySpecifier), + fields?: OrderGrantRefundUpdateErrorFieldPolicy, + }, + OrderGrantedRefund?: Omit & { + keyFields?: false | OrderGrantedRefundKeySpecifier | (() => undefined | OrderGrantedRefundKeySpecifier), + fields?: OrderGrantedRefundFieldPolicy, + }, OrderLine?: Omit & { keyFields?: false | OrderLineKeySpecifier | (() => undefined | OrderLineKeySpecifier), fields?: OrderLineFieldPolicy, @@ -7229,6 +7542,26 @@ export type StrictTypedTypePolicies = { keyFields?: false | PaymentGatewayKeySpecifier | (() => undefined | PaymentGatewayKeySpecifier), fields?: PaymentGatewayFieldPolicy, }, + PaymentGatewayConfig?: Omit & { + keyFields?: false | PaymentGatewayConfigKeySpecifier | (() => undefined | PaymentGatewayConfigKeySpecifier), + fields?: PaymentGatewayConfigFieldPolicy, + }, + PaymentGatewayConfigError?: Omit & { + keyFields?: false | PaymentGatewayConfigErrorKeySpecifier | (() => undefined | PaymentGatewayConfigErrorKeySpecifier), + fields?: PaymentGatewayConfigErrorFieldPolicy, + }, + PaymentGatewayInitialize?: Omit & { + keyFields?: false | PaymentGatewayInitializeKeySpecifier | (() => undefined | PaymentGatewayInitializeKeySpecifier), + fields?: PaymentGatewayInitializeFieldPolicy, + }, + PaymentGatewayInitializeError?: Omit & { + keyFields?: false | PaymentGatewayInitializeErrorKeySpecifier | (() => undefined | PaymentGatewayInitializeErrorKeySpecifier), + fields?: PaymentGatewayInitializeErrorFieldPolicy, + }, + PaymentGatewayInitializeSession?: Omit & { + keyFields?: false | PaymentGatewayInitializeSessionKeySpecifier | (() => undefined | PaymentGatewayInitializeSessionKeySpecifier), + fields?: PaymentGatewayInitializeSessionFieldPolicy, + }, PaymentInitialize?: Omit & { keyFields?: false | PaymentInitializeKeySpecifier | (() => undefined | PaymentInitializeKeySpecifier), fields?: PaymentInitializeFieldPolicy, @@ -7345,10 +7678,22 @@ export type StrictTypedTypePolicies = { keyFields?: false | ProductAttributeUnassignKeySpecifier | (() => undefined | ProductAttributeUnassignKeySpecifier), fields?: ProductAttributeUnassignFieldPolicy, }, + ProductBulkCreate?: Omit & { + keyFields?: false | ProductBulkCreateKeySpecifier | (() => undefined | ProductBulkCreateKeySpecifier), + fields?: ProductBulkCreateFieldPolicy, + }, + ProductBulkCreateError?: Omit & { + keyFields?: false | ProductBulkCreateErrorKeySpecifier | (() => undefined | ProductBulkCreateErrorKeySpecifier), + fields?: ProductBulkCreateErrorFieldPolicy, + }, ProductBulkDelete?: Omit & { keyFields?: false | ProductBulkDeleteKeySpecifier | (() => undefined | ProductBulkDeleteKeySpecifier), fields?: ProductBulkDeleteFieldPolicy, }, + ProductBulkResult?: Omit & { + keyFields?: false | ProductBulkResultKeySpecifier | (() => undefined | ProductBulkResultKeySpecifier), + fields?: ProductBulkResultFieldPolicy, + }, ProductChannelListing?: Omit & { keyFields?: false | ProductChannelListingKeySpecifier | (() => undefined | ProductChannelListingKeySpecifier), fields?: ProductChannelListingFieldPolicy, @@ -8089,6 +8434,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | TransactionActionRequestKeySpecifier | (() => undefined | TransactionActionRequestKeySpecifier), fields?: TransactionActionRequestFieldPolicy, }, + TransactionCancelationRequested?: Omit & { + keyFields?: false | TransactionCancelationRequestedKeySpecifier | (() => undefined | TransactionCancelationRequestedKeySpecifier), + fields?: TransactionCancelationRequestedFieldPolicy, + }, + TransactionChargeRequested?: Omit & { + keyFields?: false | TransactionChargeRequestedKeySpecifier | (() => undefined | TransactionChargeRequestedKeySpecifier), + fields?: TransactionChargeRequestedFieldPolicy, + }, TransactionCreate?: Omit & { keyFields?: false | TransactionCreateKeySpecifier | (() => undefined | TransactionCreateKeySpecifier), fields?: TransactionCreateFieldPolicy, @@ -8101,6 +8454,26 @@ export type StrictTypedTypePolicies = { keyFields?: false | TransactionEventKeySpecifier | (() => undefined | TransactionEventKeySpecifier), fields?: TransactionEventFieldPolicy, }, + TransactionEventReport?: Omit & { + keyFields?: false | TransactionEventReportKeySpecifier | (() => undefined | TransactionEventReportKeySpecifier), + fields?: TransactionEventReportFieldPolicy, + }, + TransactionEventReportError?: Omit & { + keyFields?: false | TransactionEventReportErrorKeySpecifier | (() => undefined | TransactionEventReportErrorKeySpecifier), + fields?: TransactionEventReportErrorFieldPolicy, + }, + TransactionInitialize?: Omit & { + keyFields?: false | TransactionInitializeKeySpecifier | (() => undefined | TransactionInitializeKeySpecifier), + fields?: TransactionInitializeFieldPolicy, + }, + TransactionInitializeError?: Omit & { + keyFields?: false | TransactionInitializeErrorKeySpecifier | (() => undefined | TransactionInitializeErrorKeySpecifier), + fields?: TransactionInitializeErrorFieldPolicy, + }, + TransactionInitializeSession?: Omit & { + keyFields?: false | TransactionInitializeSessionKeySpecifier | (() => undefined | TransactionInitializeSessionKeySpecifier), + fields?: TransactionInitializeSessionFieldPolicy, + }, TransactionItem?: Omit & { keyFields?: false | TransactionItemKeySpecifier | (() => undefined | TransactionItemKeySpecifier), fields?: TransactionItemFieldPolicy, @@ -8109,6 +8482,26 @@ export type StrictTypedTypePolicies = { keyFields?: false | TransactionItemMetadataUpdatedKeySpecifier | (() => undefined | TransactionItemMetadataUpdatedKeySpecifier), fields?: TransactionItemMetadataUpdatedFieldPolicy, }, + TransactionProcess?: Omit & { + keyFields?: false | TransactionProcessKeySpecifier | (() => undefined | TransactionProcessKeySpecifier), + fields?: TransactionProcessFieldPolicy, + }, + TransactionProcessAction?: Omit & { + keyFields?: false | TransactionProcessActionKeySpecifier | (() => undefined | TransactionProcessActionKeySpecifier), + fields?: TransactionProcessActionFieldPolicy, + }, + TransactionProcessError?: Omit & { + keyFields?: false | TransactionProcessErrorKeySpecifier | (() => undefined | TransactionProcessErrorKeySpecifier), + fields?: TransactionProcessErrorFieldPolicy, + }, + TransactionProcessSession?: Omit & { + keyFields?: false | TransactionProcessSessionKeySpecifier | (() => undefined | TransactionProcessSessionKeySpecifier), + fields?: TransactionProcessSessionFieldPolicy, + }, + TransactionRefundRequested?: Omit & { + keyFields?: false | TransactionRefundRequestedKeySpecifier | (() => undefined | TransactionRefundRequestedKeySpecifier), + fields?: TransactionRefundRequestedFieldPolicy, + }, TransactionRequestAction?: Omit & { keyFields?: false | TransactionRequestActionKeySpecifier | (() => undefined | TransactionRequestActionKeySpecifier), fields?: TransactionRequestActionFieldPolicy, diff --git a/src/graphql/typePolicies.transactions.generated.ts b/src/graphql/typePolicies.transactions.generated.ts deleted file mode 100644 index 5f41059ad..000000000 --- a/src/graphql/typePolicies.transactions.generated.ts +++ /dev/null @@ -1,8492 +0,0 @@ -/* eslint-disable */ -import { FieldPolicy, FieldReadFunction, TypePolicies, TypePolicy } from '@apollo/client/cache'; -export type AccountAddressCreateKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AccountAddressCreateKeySpecifier)[]; -export type AccountAddressCreateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AccountAddressDeleteKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AccountAddressDeleteKeySpecifier)[]; -export type AccountAddressDeleteFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AccountAddressUpdateKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AccountAddressUpdateKeySpecifier)[]; -export type AccountAddressUpdateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AccountDeleteKeySpecifier = ('accountErrors' | 'errors' | 'user' | AccountDeleteKeySpecifier)[]; -export type AccountDeleteFieldPolicy = { - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type AccountErrorKeySpecifier = ('field' | 'message' | 'code' | 'addressType' | AccountErrorKeySpecifier)[]; -export type AccountErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - addressType?: FieldPolicy | FieldReadFunction -}; -export type AccountRegisterKeySpecifier = ('requiresConfirmation' | 'accountErrors' | 'errors' | 'user' | AccountRegisterKeySpecifier)[]; -export type AccountRegisterFieldPolicy = { - requiresConfirmation?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type AccountRequestDeletionKeySpecifier = ('accountErrors' | 'errors' | AccountRequestDeletionKeySpecifier)[]; -export type AccountRequestDeletionFieldPolicy = { - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AccountSetDefaultAddressKeySpecifier = ('user' | 'accountErrors' | 'errors' | AccountSetDefaultAddressKeySpecifier)[]; -export type AccountSetDefaultAddressFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AccountUpdateKeySpecifier = ('accountErrors' | 'errors' | 'user' | AccountUpdateKeySpecifier)[]; -export type AccountUpdateFieldPolicy = { - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type AddressKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'firstName' | 'lastName' | 'companyName' | 'streetAddress1' | 'streetAddress2' | 'city' | 'cityArea' | 'postalCode' | 'country' | 'countryArea' | 'phone' | 'isDefaultShippingAddress' | 'isDefaultBillingAddress' | AddressKeySpecifier)[]; -export type AddressFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - firstName?: FieldPolicy | FieldReadFunction, - lastName?: FieldPolicy | FieldReadFunction, - companyName?: FieldPolicy | FieldReadFunction, - streetAddress1?: FieldPolicy | FieldReadFunction, - streetAddress2?: FieldPolicy | FieldReadFunction, - city?: FieldPolicy | FieldReadFunction, - cityArea?: FieldPolicy | FieldReadFunction, - postalCode?: FieldPolicy | FieldReadFunction, - country?: FieldPolicy | FieldReadFunction, - countryArea?: FieldPolicy | FieldReadFunction, - phone?: FieldPolicy | FieldReadFunction, - isDefaultShippingAddress?: FieldPolicy | FieldReadFunction, - isDefaultBillingAddress?: FieldPolicy | FieldReadFunction -}; -export type AddressCreateKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AddressCreateKeySpecifier)[]; -export type AddressCreateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AddressCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'address' | AddressCreatedKeySpecifier)[]; -export type AddressCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AddressDeleteKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AddressDeleteKeySpecifier)[]; -export type AddressDeleteFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AddressDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'address' | AddressDeletedKeySpecifier)[]; -export type AddressDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AddressSetDefaultKeySpecifier = ('user' | 'accountErrors' | 'errors' | AddressSetDefaultKeySpecifier)[]; -export type AddressSetDefaultFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AddressUpdateKeySpecifier = ('user' | 'accountErrors' | 'errors' | 'address' | AddressUpdateKeySpecifier)[]; -export type AddressUpdateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AddressUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'address' | AddressUpdatedKeySpecifier)[]; -export type AddressUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction -}; -export type AddressValidationDataKeySpecifier = ('countryCode' | 'countryName' | 'addressFormat' | 'addressLatinFormat' | 'allowedFields' | 'requiredFields' | 'upperFields' | 'countryAreaType' | 'countryAreaChoices' | 'cityType' | 'cityChoices' | 'cityAreaType' | 'cityAreaChoices' | 'postalCodeType' | 'postalCodeMatchers' | 'postalCodeExamples' | 'postalCodePrefix' | AddressValidationDataKeySpecifier)[]; -export type AddressValidationDataFieldPolicy = { - countryCode?: FieldPolicy | FieldReadFunction, - countryName?: FieldPolicy | FieldReadFunction, - addressFormat?: FieldPolicy | FieldReadFunction, - addressLatinFormat?: FieldPolicy | FieldReadFunction, - allowedFields?: FieldPolicy | FieldReadFunction, - requiredFields?: FieldPolicy | FieldReadFunction, - upperFields?: FieldPolicy | FieldReadFunction, - countryAreaType?: FieldPolicy | FieldReadFunction, - countryAreaChoices?: FieldPolicy | FieldReadFunction, - cityType?: FieldPolicy | FieldReadFunction, - cityChoices?: FieldPolicy | FieldReadFunction, - cityAreaType?: FieldPolicy | FieldReadFunction, - cityAreaChoices?: FieldPolicy | FieldReadFunction, - postalCodeType?: FieldPolicy | FieldReadFunction, - postalCodeMatchers?: FieldPolicy | FieldReadFunction, - postalCodeExamples?: FieldPolicy | FieldReadFunction, - postalCodePrefix?: FieldPolicy | FieldReadFunction -}; -export type AllocationKeySpecifier = ('id' | 'quantity' | 'warehouse' | AllocationKeySpecifier)[]; -export type AllocationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type AppKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'permissions' | 'created' | 'isActive' | 'name' | 'type' | 'tokens' | 'webhooks' | 'aboutApp' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'configurationUrl' | 'appUrl' | 'manifestUrl' | 'version' | 'accessToken' | 'extensions' | AppKeySpecifier)[]; -export type AppFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - tokens?: FieldPolicy | FieldReadFunction, - webhooks?: FieldPolicy | FieldReadFunction, - aboutApp?: FieldPolicy | FieldReadFunction, - dataPrivacy?: FieldPolicy | FieldReadFunction, - dataPrivacyUrl?: FieldPolicy | FieldReadFunction, - homepageUrl?: FieldPolicy | FieldReadFunction, - supportUrl?: FieldPolicy | FieldReadFunction, - configurationUrl?: FieldPolicy | FieldReadFunction, - appUrl?: FieldPolicy | FieldReadFunction, - manifestUrl?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - accessToken?: FieldPolicy | FieldReadFunction, - extensions?: FieldPolicy | FieldReadFunction -}; -export type AppActivateKeySpecifier = ('appErrors' | 'errors' | 'app' | AppActivateKeySpecifier)[]; -export type AppActivateFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | AppCountableConnectionKeySpecifier)[]; -export type AppCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type AppCountableEdgeKeySpecifier = ('node' | 'cursor' | AppCountableEdgeKeySpecifier)[]; -export type AppCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type AppCreateKeySpecifier = ('authToken' | 'appErrors' | 'errors' | 'app' | AppCreateKeySpecifier)[]; -export type AppCreateFieldPolicy = { - authToken?: FieldPolicy | FieldReadFunction, - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppDeactivateKeySpecifier = ('appErrors' | 'errors' | 'app' | AppDeactivateKeySpecifier)[]; -export type AppDeactivateFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppDeleteKeySpecifier = ('appErrors' | 'errors' | 'app' | AppDeleteKeySpecifier)[]; -export type AppDeleteFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppDeleteFailedInstallationKeySpecifier = ('appErrors' | 'errors' | 'appInstallation' | AppDeleteFailedInstallationKeySpecifier)[]; -export type AppDeleteFailedInstallationFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appInstallation?: FieldPolicy | FieldReadFunction -}; -export type AppDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'app' | AppDeletedKeySpecifier)[]; -export type AppDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppErrorKeySpecifier = ('field' | 'message' | 'code' | 'permissions' | AppErrorKeySpecifier)[]; -export type AppErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction -}; -export type AppExtensionKeySpecifier = ('id' | 'permissions' | 'label' | 'url' | 'mount' | 'target' | 'app' | 'accessToken' | AppExtensionKeySpecifier)[]; -export type AppExtensionFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, - label?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - mount?: FieldPolicy | FieldReadFunction, - target?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - accessToken?: FieldPolicy | FieldReadFunction -}; -export type AppExtensionCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | AppExtensionCountableConnectionKeySpecifier)[]; -export type AppExtensionCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type AppExtensionCountableEdgeKeySpecifier = ('node' | 'cursor' | AppExtensionCountableEdgeKeySpecifier)[]; -export type AppExtensionCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type AppFetchManifestKeySpecifier = ('manifest' | 'appErrors' | 'errors' | AppFetchManifestKeySpecifier)[]; -export type AppFetchManifestFieldPolicy = { - manifest?: FieldPolicy | FieldReadFunction, - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AppInstallKeySpecifier = ('appErrors' | 'errors' | 'appInstallation' | AppInstallKeySpecifier)[]; -export type AppInstallFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appInstallation?: FieldPolicy | FieldReadFunction -}; -export type AppInstallationKeySpecifier = ('id' | 'status' | 'createdAt' | 'updatedAt' | 'message' | 'appName' | 'manifestUrl' | AppInstallationKeySpecifier)[]; -export type AppInstallationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - appName?: FieldPolicy | FieldReadFunction, - manifestUrl?: FieldPolicy | FieldReadFunction -}; -export type AppInstalledKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'app' | AppInstalledKeySpecifier)[]; -export type AppInstalledFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppManifestExtensionKeySpecifier = ('permissions' | 'label' | 'url' | 'mount' | 'target' | AppManifestExtensionKeySpecifier)[]; -export type AppManifestExtensionFieldPolicy = { - permissions?: FieldPolicy | FieldReadFunction, - label?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - mount?: FieldPolicy | FieldReadFunction, - target?: FieldPolicy | FieldReadFunction -}; -export type AppManifestWebhookKeySpecifier = ('name' | 'asyncEvents' | 'syncEvents' | 'query' | 'targetUrl' | AppManifestWebhookKeySpecifier)[]; -export type AppManifestWebhookFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - asyncEvents?: FieldPolicy | FieldReadFunction, - syncEvents?: FieldPolicy | FieldReadFunction, - query?: FieldPolicy | FieldReadFunction, - targetUrl?: FieldPolicy | FieldReadFunction -}; -export type AppRetryInstallKeySpecifier = ('appErrors' | 'errors' | 'appInstallation' | AppRetryInstallKeySpecifier)[]; -export type AppRetryInstallFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appInstallation?: FieldPolicy | FieldReadFunction -}; -export type AppStatusChangedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'app' | AppStatusChangedKeySpecifier)[]; -export type AppStatusChangedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppTokenKeySpecifier = ('id' | 'name' | 'authToken' | AppTokenKeySpecifier)[]; -export type AppTokenFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - authToken?: FieldPolicy | FieldReadFunction -}; -export type AppTokenCreateKeySpecifier = ('authToken' | 'appErrors' | 'errors' | 'appToken' | AppTokenCreateKeySpecifier)[]; -export type AppTokenCreateFieldPolicy = { - authToken?: FieldPolicy | FieldReadFunction, - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appToken?: FieldPolicy | FieldReadFunction -}; -export type AppTokenDeleteKeySpecifier = ('appErrors' | 'errors' | 'appToken' | AppTokenDeleteKeySpecifier)[]; -export type AppTokenDeleteFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - appToken?: FieldPolicy | FieldReadFunction -}; -export type AppTokenVerifyKeySpecifier = ('valid' | 'appErrors' | 'errors' | AppTokenVerifyKeySpecifier)[]; -export type AppTokenVerifyFieldPolicy = { - valid?: FieldPolicy | FieldReadFunction, - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AppUpdateKeySpecifier = ('appErrors' | 'errors' | 'app' | AppUpdateKeySpecifier)[]; -export type AppUpdateFieldPolicy = { - appErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AppUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'app' | AppUpdatedKeySpecifier)[]; -export type AppUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type AssignNavigationKeySpecifier = ('menu' | 'menuErrors' | 'errors' | AssignNavigationKeySpecifier)[]; -export type AssignNavigationFieldPolicy = { - menu?: FieldPolicy | FieldReadFunction, - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AssignedVariantAttributeKeySpecifier = ('attribute' | 'variantSelection' | AssignedVariantAttributeKeySpecifier)[]; -export type AssignedVariantAttributeFieldPolicy = { - attribute?: FieldPolicy | FieldReadFunction, - variantSelection?: FieldPolicy | FieldReadFunction -}; -export type AttributeKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'inputType' | 'entityType' | 'name' | 'slug' | 'type' | 'unit' | 'choices' | 'valueRequired' | 'visibleInStorefront' | 'filterableInStorefront' | 'filterableInDashboard' | 'availableInGrid' | 'storefrontSearchPosition' | 'translation' | 'withChoices' | 'productTypes' | 'productVariantTypes' | 'externalReference' | AttributeKeySpecifier)[]; -export type AttributeFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - inputType?: FieldPolicy | FieldReadFunction, - entityType?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - unit?: FieldPolicy | FieldReadFunction, - choices?: FieldPolicy | FieldReadFunction, - valueRequired?: FieldPolicy | FieldReadFunction, - visibleInStorefront?: FieldPolicy | FieldReadFunction, - filterableInStorefront?: FieldPolicy | FieldReadFunction, - filterableInDashboard?: FieldPolicy | FieldReadFunction, - availableInGrid?: FieldPolicy | FieldReadFunction, - storefrontSearchPosition?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - withChoices?: FieldPolicy | FieldReadFunction, - productTypes?: FieldPolicy | FieldReadFunction, - productVariantTypes?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction -}; -export type AttributeBulkDeleteKeySpecifier = ('count' | 'attributeErrors' | 'errors' | AttributeBulkDeleteKeySpecifier)[]; -export type AttributeBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AttributeCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | AttributeCountableConnectionKeySpecifier)[]; -export type AttributeCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type AttributeCountableEdgeKeySpecifier = ('node' | 'cursor' | AttributeCountableEdgeKeySpecifier)[]; -export type AttributeCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type AttributeCreateKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | AttributeCreateKeySpecifier)[]; -export type AttributeCreateFieldPolicy = { - attribute?: FieldPolicy | FieldReadFunction, - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AttributeCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeCreatedKeySpecifier)[]; -export type AttributeCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction -}; -export type AttributeDeleteKeySpecifier = ('attributeErrors' | 'errors' | 'attribute' | AttributeDeleteKeySpecifier)[]; -export type AttributeDeleteFieldPolicy = { - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction -}; -export type AttributeDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeDeletedKeySpecifier)[]; -export type AttributeDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction -}; -export type AttributeErrorKeySpecifier = ('field' | 'message' | 'code' | AttributeErrorKeySpecifier)[]; -export type AttributeErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type AttributeReorderValuesKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | AttributeReorderValuesKeySpecifier)[]; -export type AttributeReorderValuesFieldPolicy = { - attribute?: FieldPolicy | FieldReadFunction, - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AttributeTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'attribute' | AttributeTranslatableContentKeySpecifier)[]; -export type AttributeTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction -}; -export type AttributeTranslateKeySpecifier = ('translationErrors' | 'errors' | 'attribute' | AttributeTranslateKeySpecifier)[]; -export type AttributeTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction -}; -export type AttributeTranslationKeySpecifier = ('id' | 'language' | 'name' | AttributeTranslationKeySpecifier)[]; -export type AttributeTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type AttributeUpdateKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | AttributeUpdateKeySpecifier)[]; -export type AttributeUpdateFieldPolicy = { - attribute?: FieldPolicy | FieldReadFunction, - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AttributeUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeUpdatedKeySpecifier)[]; -export type AttributeUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueKeySpecifier = ('id' | 'name' | 'slug' | 'value' | 'translation' | 'inputType' | 'reference' | 'file' | 'richText' | 'plainText' | 'boolean' | 'date' | 'dateTime' | 'externalReference' | AttributeValueKeySpecifier)[]; -export type AttributeValueFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - inputType?: FieldPolicy | FieldReadFunction, - reference?: FieldPolicy | FieldReadFunction, - file?: FieldPolicy | FieldReadFunction, - richText?: FieldPolicy | FieldReadFunction, - plainText?: FieldPolicy | FieldReadFunction, - boolean?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - dateTime?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueBulkDeleteKeySpecifier = ('count' | 'attributeErrors' | 'errors' | AttributeValueBulkDeleteKeySpecifier)[]; -export type AttributeValueBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | AttributeValueCountableConnectionKeySpecifier)[]; -export type AttributeValueCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueCountableEdgeKeySpecifier = ('node' | 'cursor' | AttributeValueCountableEdgeKeySpecifier)[]; -export type AttributeValueCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueCreateKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | 'attributeValue' | AttributeValueCreateKeySpecifier)[]; -export type AttributeValueCreateFieldPolicy = { - attribute?: FieldPolicy | FieldReadFunction, - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attributeValue' | AttributeValueCreatedKeySpecifier)[]; -export type AttributeValueCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueDeleteKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | 'attributeValue' | AttributeValueDeleteKeySpecifier)[]; -export type AttributeValueDeleteFieldPolicy = { - attribute?: FieldPolicy | FieldReadFunction, - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attributeValue' | AttributeValueDeletedKeySpecifier)[]; -export type AttributeValueDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueTranslatableContentKeySpecifier = ('id' | 'name' | 'richText' | 'plainText' | 'translation' | 'attributeValue' | 'attribute' | AttributeValueTranslatableContentKeySpecifier)[]; -export type AttributeValueTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - richText?: FieldPolicy | FieldReadFunction, - plainText?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueTranslateKeySpecifier = ('translationErrors' | 'errors' | 'attributeValue' | AttributeValueTranslateKeySpecifier)[]; -export type AttributeValueTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueTranslationKeySpecifier = ('id' | 'language' | 'name' | 'richText' | 'plainText' | AttributeValueTranslationKeySpecifier)[]; -export type AttributeValueTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - richText?: FieldPolicy | FieldReadFunction, - plainText?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueUpdateKeySpecifier = ('attribute' | 'attributeErrors' | 'errors' | 'attributeValue' | AttributeValueUpdateKeySpecifier)[]; -export type AttributeValueUpdateFieldPolicy = { - attribute?: FieldPolicy | FieldReadFunction, - attributeErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction -}; -export type AttributeValueUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attributeValue' | AttributeValueUpdatedKeySpecifier)[]; -export type AttributeValueUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - attributeValue?: FieldPolicy | FieldReadFunction -}; -export type BulkProductErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'index' | 'warehouses' | 'channels' | BulkProductErrorKeySpecifier)[]; -export type BulkProductErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction, - index?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction -}; -export type BulkStockErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'index' | BulkStockErrorKeySpecifier)[]; -export type BulkStockErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction, - index?: FieldPolicy | FieldReadFunction -}; -export type CalculateTaxesKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'taxBase' | CalculateTaxesKeySpecifier)[]; -export type CalculateTaxesFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - taxBase?: FieldPolicy | FieldReadFunction -}; -export type CategoryKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'slug' | 'parent' | 'level' | 'descriptionJson' | 'ancestors' | 'products' | 'children' | 'backgroundImage' | 'translation' | CategoryKeySpecifier)[]; -export type CategoryFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - parent?: FieldPolicy | FieldReadFunction, - level?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, - ancestors?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - children?: FieldPolicy | FieldReadFunction, - backgroundImage?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction -}; -export type CategoryBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | CategoryBulkDeleteKeySpecifier)[]; -export type CategoryBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CategoryCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | CategoryCountableConnectionKeySpecifier)[]; -export type CategoryCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type CategoryCountableEdgeKeySpecifier = ('node' | 'cursor' | CategoryCountableEdgeKeySpecifier)[]; -export type CategoryCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type CategoryCreateKeySpecifier = ('productErrors' | 'errors' | 'category' | CategoryCreateKeySpecifier)[]; -export type CategoryCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type CategoryCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'category' | CategoryCreatedKeySpecifier)[]; -export type CategoryCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type CategoryDeleteKeySpecifier = ('productErrors' | 'errors' | 'category' | CategoryDeleteKeySpecifier)[]; -export type CategoryDeleteFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type CategoryDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'category' | CategoryDeletedKeySpecifier)[]; -export type CategoryDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type CategoryTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | 'translation' | 'category' | CategoryTranslatableContentKeySpecifier)[]; -export type CategoryTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type CategoryTranslateKeySpecifier = ('translationErrors' | 'errors' | 'category' | CategoryTranslateKeySpecifier)[]; -export type CategoryTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type CategoryTranslationKeySpecifier = ('id' | 'language' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | CategoryTranslationKeySpecifier)[]; -export type CategoryTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction -}; -export type CategoryUpdateKeySpecifier = ('productErrors' | 'errors' | 'category' | CategoryUpdateKeySpecifier)[]; -export type CategoryUpdateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type CategoryUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'category' | CategoryUpdatedKeySpecifier)[]; -export type CategoryUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type ChannelKeySpecifier = ('id' | 'slug' | 'name' | 'isActive' | 'currencyCode' | 'hasOrders' | 'defaultCountry' | 'warehouses' | 'countries' | 'availableShippingMethodsPerCountry' | 'stockSettings' | 'orderSettings' | ChannelKeySpecifier)[]; -export type ChannelFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - currencyCode?: FieldPolicy | FieldReadFunction, - hasOrders?: FieldPolicy | FieldReadFunction, - defaultCountry?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction, - availableShippingMethodsPerCountry?: FieldPolicy | FieldReadFunction, - stockSettings?: FieldPolicy | FieldReadFunction, - orderSettings?: FieldPolicy | FieldReadFunction -}; -export type ChannelActivateKeySpecifier = ('channel' | 'channelErrors' | 'errors' | ChannelActivateKeySpecifier)[]; -export type ChannelActivateFieldPolicy = { - channel?: FieldPolicy | FieldReadFunction, - channelErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ChannelCreateKeySpecifier = ('channelErrors' | 'errors' | 'channel' | ChannelCreateKeySpecifier)[]; -export type ChannelCreateFieldPolicy = { - channelErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type ChannelCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'channel' | ChannelCreatedKeySpecifier)[]; -export type ChannelCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type ChannelDeactivateKeySpecifier = ('channel' | 'channelErrors' | 'errors' | ChannelDeactivateKeySpecifier)[]; -export type ChannelDeactivateFieldPolicy = { - channel?: FieldPolicy | FieldReadFunction, - channelErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ChannelDeleteKeySpecifier = ('channelErrors' | 'errors' | 'channel' | ChannelDeleteKeySpecifier)[]; -export type ChannelDeleteFieldPolicy = { - channelErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type ChannelDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'channel' | ChannelDeletedKeySpecifier)[]; -export type ChannelDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type ChannelErrorKeySpecifier = ('field' | 'message' | 'code' | 'shippingZones' | 'warehouses' | ChannelErrorKeySpecifier)[]; -export type ChannelErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - shippingZones?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction -}; -export type ChannelReorderWarehousesKeySpecifier = ('channel' | 'errors' | ChannelReorderWarehousesKeySpecifier)[]; -export type ChannelReorderWarehousesFieldPolicy = { - channel?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ChannelStatusChangedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'channel' | ChannelStatusChangedKeySpecifier)[]; -export type ChannelStatusChangedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type ChannelUpdateKeySpecifier = ('channelErrors' | 'errors' | 'channel' | ChannelUpdateKeySpecifier)[]; -export type ChannelUpdateFieldPolicy = { - channelErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type ChannelUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'channel' | ChannelUpdatedKeySpecifier)[]; -export type ChannelUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type CheckoutKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'created' | 'lastChange' | 'user' | 'channel' | 'billingAddress' | 'shippingAddress' | 'note' | 'discount' | 'discountName' | 'translatedDiscountName' | 'voucherCode' | 'availableShippingMethods' | 'shippingMethods' | 'availableCollectionPoints' | 'availablePaymentGateways' | 'email' | 'giftCards' | 'isShippingRequired' | 'quantity' | 'stockReservationExpires' | 'lines' | 'shippingPrice' | 'shippingMethod' | 'deliveryMethod' | 'subtotalPrice' | 'taxExemption' | 'token' | 'totalPrice' | 'languageCode' | 'transactions' | 'displayGrossPrices' | CheckoutKeySpecifier)[]; -export type CheckoutFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - lastChange?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - billingAddress?: FieldPolicy | FieldReadFunction, - shippingAddress?: FieldPolicy | FieldReadFunction, - note?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction, - discountName?: FieldPolicy | FieldReadFunction, - translatedDiscountName?: FieldPolicy | FieldReadFunction, - voucherCode?: FieldPolicy | FieldReadFunction, - availableShippingMethods?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction, - availableCollectionPoints?: FieldPolicy | FieldReadFunction, - availablePaymentGateways?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - isShippingRequired?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - stockReservationExpires?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, - shippingPrice?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, - deliveryMethod?: FieldPolicy | FieldReadFunction, - subtotalPrice?: FieldPolicy | FieldReadFunction, - taxExemption?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction, - totalPrice?: FieldPolicy | FieldReadFunction, - languageCode?: FieldPolicy | FieldReadFunction, - transactions?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction -}; -export type CheckoutAddPromoCodeKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutAddPromoCodeKeySpecifier)[]; -export type CheckoutAddPromoCodeFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutBillingAddressUpdateKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutBillingAddressUpdateKeySpecifier)[]; -export type CheckoutBillingAddressUpdateFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutCompleteKeySpecifier = ('order' | 'confirmationNeeded' | 'confirmationData' | 'checkoutErrors' | 'errors' | CheckoutCompleteKeySpecifier)[]; -export type CheckoutCompleteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - confirmationNeeded?: FieldPolicy | FieldReadFunction, - confirmationData?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | CheckoutCountableConnectionKeySpecifier)[]; -export type CheckoutCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type CheckoutCountableEdgeKeySpecifier = ('node' | 'cursor' | CheckoutCountableEdgeKeySpecifier)[]; -export type CheckoutCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type CheckoutCreateKeySpecifier = ('created' | 'checkoutErrors' | 'errors' | 'checkout' | CheckoutCreateKeySpecifier)[]; -export type CheckoutCreateFieldPolicy = { - created?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction -}; -export type CheckoutCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | CheckoutCreatedKeySpecifier)[]; -export type CheckoutCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction -}; -export type CheckoutCustomerAttachKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutCustomerAttachKeySpecifier)[]; -export type CheckoutCustomerAttachFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutCustomerDetachKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutCustomerDetachKeySpecifier)[]; -export type CheckoutCustomerDetachFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutDeliveryMethodUpdateKeySpecifier = ('checkout' | 'errors' | CheckoutDeliveryMethodUpdateKeySpecifier)[]; -export type CheckoutDeliveryMethodUpdateFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutEmailUpdateKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutEmailUpdateKeySpecifier)[]; -export type CheckoutEmailUpdateFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutErrorKeySpecifier = ('field' | 'message' | 'code' | 'variants' | 'lines' | 'addressType' | CheckoutErrorKeySpecifier)[]; -export type CheckoutErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, - addressType?: FieldPolicy | FieldReadFunction -}; -export type CheckoutFilterShippingMethodsKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | 'shippingMethods' | CheckoutFilterShippingMethodsKeySpecifier)[]; -export type CheckoutFilterShippingMethodsFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction -}; -export type CheckoutLanguageCodeUpdateKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutLanguageCodeUpdateKeySpecifier)[]; -export type CheckoutLanguageCodeUpdateFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutLineKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'variant' | 'quantity' | 'unitPrice' | 'undiscountedUnitPrice' | 'totalPrice' | 'undiscountedTotalPrice' | 'requiresShipping' | CheckoutLineKeySpecifier)[]; -export type CheckoutLineFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - variant?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - unitPrice?: FieldPolicy | FieldReadFunction, - undiscountedUnitPrice?: FieldPolicy | FieldReadFunction, - totalPrice?: FieldPolicy | FieldReadFunction, - undiscountedTotalPrice?: FieldPolicy | FieldReadFunction, - requiresShipping?: FieldPolicy | FieldReadFunction -}; -export type CheckoutLineCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | CheckoutLineCountableConnectionKeySpecifier)[]; -export type CheckoutLineCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type CheckoutLineCountableEdgeKeySpecifier = ('node' | 'cursor' | CheckoutLineCountableEdgeKeySpecifier)[]; -export type CheckoutLineCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type CheckoutLineDeleteKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutLineDeleteKeySpecifier)[]; -export type CheckoutLineDeleteFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutLinesAddKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutLinesAddKeySpecifier)[]; -export type CheckoutLinesAddFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutLinesDeleteKeySpecifier = ('checkout' | 'errors' | CheckoutLinesDeleteKeySpecifier)[]; -export type CheckoutLinesDeleteFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutLinesUpdateKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutLinesUpdateKeySpecifier)[]; -export type CheckoutLinesUpdateFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | CheckoutMetadataUpdatedKeySpecifier)[]; -export type CheckoutMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction -}; -export type CheckoutPaymentCreateKeySpecifier = ('checkout' | 'payment' | 'paymentErrors' | 'errors' | CheckoutPaymentCreateKeySpecifier)[]; -export type CheckoutPaymentCreateFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutRemovePromoCodeKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutRemovePromoCodeKeySpecifier)[]; -export type CheckoutRemovePromoCodeFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutShippingAddressUpdateKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutShippingAddressUpdateKeySpecifier)[]; -export type CheckoutShippingAddressUpdateFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutShippingMethodUpdateKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutShippingMethodUpdateKeySpecifier)[]; -export type CheckoutShippingMethodUpdateFieldPolicy = { - checkout?: FieldPolicy | FieldReadFunction, - checkoutErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CheckoutUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | CheckoutUpdatedKeySpecifier)[]; -export type CheckoutUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction -}; -export type ChoiceValueKeySpecifier = ('raw' | 'verbose' | ChoiceValueKeySpecifier)[]; -export type ChoiceValueFieldPolicy = { - raw?: FieldPolicy | FieldReadFunction, - verbose?: FieldPolicy | FieldReadFunction -}; -export type CollectionKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'slug' | 'channel' | 'descriptionJson' | 'products' | 'backgroundImage' | 'translation' | 'channelListings' | CollectionKeySpecifier)[]; -export type CollectionFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - backgroundImage?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction -}; -export type CollectionAddProductsKeySpecifier = ('collection' | 'collectionErrors' | 'errors' | CollectionAddProductsKeySpecifier)[]; -export type CollectionAddProductsFieldPolicy = { - collection?: FieldPolicy | FieldReadFunction, - collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CollectionBulkDeleteKeySpecifier = ('count' | 'collectionErrors' | 'errors' | CollectionBulkDeleteKeySpecifier)[]; -export type CollectionBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CollectionChannelListingKeySpecifier = ('id' | 'publicationDate' | 'publishedAt' | 'isPublished' | 'channel' | CollectionChannelListingKeySpecifier)[]; -export type CollectionChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - publicationDate?: FieldPolicy | FieldReadFunction, - publishedAt?: FieldPolicy | FieldReadFunction, - isPublished?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type CollectionChannelListingErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'channels' | CollectionChannelListingErrorKeySpecifier)[]; -export type CollectionChannelListingErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction -}; -export type CollectionChannelListingUpdateKeySpecifier = ('collection' | 'collectionChannelListingErrors' | 'errors' | CollectionChannelListingUpdateKeySpecifier)[]; -export type CollectionChannelListingUpdateFieldPolicy = { - collection?: FieldPolicy | FieldReadFunction, - collectionChannelListingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CollectionCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | CollectionCountableConnectionKeySpecifier)[]; -export type CollectionCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type CollectionCountableEdgeKeySpecifier = ('node' | 'cursor' | CollectionCountableEdgeKeySpecifier)[]; -export type CollectionCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type CollectionCreateKeySpecifier = ('collectionErrors' | 'errors' | 'collection' | CollectionCreateKeySpecifier)[]; -export type CollectionCreateFieldPolicy = { - collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type CollectionCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'collection' | CollectionCreatedKeySpecifier)[]; -export type CollectionCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type CollectionDeleteKeySpecifier = ('collectionErrors' | 'errors' | 'collection' | CollectionDeleteKeySpecifier)[]; -export type CollectionDeleteFieldPolicy = { - collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type CollectionDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'collection' | CollectionDeletedKeySpecifier)[]; -export type CollectionDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type CollectionErrorKeySpecifier = ('field' | 'message' | 'products' | 'code' | CollectionErrorKeySpecifier)[]; -export type CollectionErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type CollectionMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'collection' | CollectionMetadataUpdatedKeySpecifier)[]; -export type CollectionMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type CollectionRemoveProductsKeySpecifier = ('collection' | 'collectionErrors' | 'errors' | CollectionRemoveProductsKeySpecifier)[]; -export type CollectionRemoveProductsFieldPolicy = { - collection?: FieldPolicy | FieldReadFunction, - collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CollectionReorderProductsKeySpecifier = ('collection' | 'collectionErrors' | 'errors' | CollectionReorderProductsKeySpecifier)[]; -export type CollectionReorderProductsFieldPolicy = { - collection?: FieldPolicy | FieldReadFunction, - collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CollectionTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | 'translation' | 'collection' | CollectionTranslatableContentKeySpecifier)[]; -export type CollectionTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type CollectionTranslateKeySpecifier = ('translationErrors' | 'errors' | 'collection' | CollectionTranslateKeySpecifier)[]; -export type CollectionTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type CollectionTranslationKeySpecifier = ('id' | 'language' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | CollectionTranslationKeySpecifier)[]; -export type CollectionTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction -}; -export type CollectionUpdateKeySpecifier = ('collectionErrors' | 'errors' | 'collection' | CollectionUpdateKeySpecifier)[]; -export type CollectionUpdateFieldPolicy = { - collectionErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type CollectionUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'collection' | CollectionUpdatedKeySpecifier)[]; -export type CollectionUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction -}; -export type ConfigurationItemKeySpecifier = ('name' | 'value' | 'type' | 'helpText' | 'label' | ConfigurationItemKeySpecifier)[]; -export type ConfigurationItemFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - helpText?: FieldPolicy | FieldReadFunction, - label?: FieldPolicy | FieldReadFunction -}; -export type ConfirmAccountKeySpecifier = ('user' | 'accountErrors' | 'errors' | ConfirmAccountKeySpecifier)[]; -export type ConfirmAccountFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ConfirmEmailChangeKeySpecifier = ('user' | 'accountErrors' | 'errors' | ConfirmEmailChangeKeySpecifier)[]; -export type ConfirmEmailChangeFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CountryDisplayKeySpecifier = ('code' | 'country' | 'vat' | CountryDisplayKeySpecifier)[]; -export type CountryDisplayFieldPolicy = { - code?: FieldPolicy | FieldReadFunction, - country?: FieldPolicy | FieldReadFunction, - vat?: FieldPolicy | FieldReadFunction -}; -export type CreateTokenKeySpecifier = ('token' | 'refreshToken' | 'csrfToken' | 'user' | 'accountErrors' | 'errors' | CreateTokenKeySpecifier)[]; -export type CreateTokenFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - refreshToken?: FieldPolicy | FieldReadFunction, - csrfToken?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CreditCardKeySpecifier = ('brand' | 'firstDigits' | 'lastDigits' | 'expMonth' | 'expYear' | CreditCardKeySpecifier)[]; -export type CreditCardFieldPolicy = { - brand?: FieldPolicy | FieldReadFunction, - firstDigits?: FieldPolicy | FieldReadFunction, - lastDigits?: FieldPolicy | FieldReadFunction, - expMonth?: FieldPolicy | FieldReadFunction, - expYear?: FieldPolicy | FieldReadFunction -}; -export type CustomerBulkDeleteKeySpecifier = ('count' | 'accountErrors' | 'errors' | CustomerBulkDeleteKeySpecifier)[]; -export type CustomerBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type CustomerCreateKeySpecifier = ('accountErrors' | 'errors' | 'user' | CustomerCreateKeySpecifier)[]; -export type CustomerCreateFieldPolicy = { - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type CustomerCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | CustomerCreatedKeySpecifier)[]; -export type CustomerCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type CustomerDeleteKeySpecifier = ('accountErrors' | 'errors' | 'user' | CustomerDeleteKeySpecifier)[]; -export type CustomerDeleteFieldPolicy = { - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type CustomerEventKeySpecifier = ('id' | 'date' | 'type' | 'user' | 'app' | 'message' | 'count' | 'order' | 'orderLine' | CustomerEventKeySpecifier)[]; -export type CustomerEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - count?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction -}; -export type CustomerMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | CustomerMetadataUpdatedKeySpecifier)[]; -export type CustomerMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type CustomerUpdateKeySpecifier = ('accountErrors' | 'errors' | 'user' | CustomerUpdateKeySpecifier)[]; -export type CustomerUpdateFieldPolicy = { - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type CustomerUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | CustomerUpdatedKeySpecifier)[]; -export type CustomerUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type DeactivateAllUserTokensKeySpecifier = ('accountErrors' | 'errors' | DeactivateAllUserTokensKeySpecifier)[]; -export type DeactivateAllUserTokensFieldPolicy = { - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DeleteMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | DeleteMetadataKeySpecifier)[]; -export type DeleteMetadataFieldPolicy = { - metadataErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - item?: FieldPolicy | FieldReadFunction -}; -export type DeletePrivateMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | DeletePrivateMetadataKeySpecifier)[]; -export type DeletePrivateMetadataFieldPolicy = { - metadataErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - item?: FieldPolicy | FieldReadFunction -}; -export type DigitalContentKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'useDefaultSettings' | 'automaticFulfillment' | 'contentFile' | 'maxDownloads' | 'urlValidDays' | 'urls' | 'productVariant' | DigitalContentKeySpecifier)[]; -export type DigitalContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - useDefaultSettings?: FieldPolicy | FieldReadFunction, - automaticFulfillment?: FieldPolicy | FieldReadFunction, - contentFile?: FieldPolicy | FieldReadFunction, - maxDownloads?: FieldPolicy | FieldReadFunction, - urlValidDays?: FieldPolicy | FieldReadFunction, - urls?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type DigitalContentCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | DigitalContentCountableConnectionKeySpecifier)[]; -export type DigitalContentCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type DigitalContentCountableEdgeKeySpecifier = ('node' | 'cursor' | DigitalContentCountableEdgeKeySpecifier)[]; -export type DigitalContentCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type DigitalContentCreateKeySpecifier = ('variant' | 'content' | 'productErrors' | 'errors' | DigitalContentCreateKeySpecifier)[]; -export type DigitalContentCreateFieldPolicy = { - variant?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DigitalContentDeleteKeySpecifier = ('variant' | 'productErrors' | 'errors' | DigitalContentDeleteKeySpecifier)[]; -export type DigitalContentDeleteFieldPolicy = { - variant?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DigitalContentUpdateKeySpecifier = ('variant' | 'content' | 'productErrors' | 'errors' | DigitalContentUpdateKeySpecifier)[]; -export type DigitalContentUpdateFieldPolicy = { - variant?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DigitalContentUrlKeySpecifier = ('id' | 'content' | 'created' | 'downloadNum' | 'url' | 'token' | DigitalContentUrlKeySpecifier)[]; -export type DigitalContentUrlFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - downloadNum?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction -}; -export type DigitalContentUrlCreateKeySpecifier = ('productErrors' | 'errors' | 'digitalContentUrl' | DigitalContentUrlCreateKeySpecifier)[]; -export type DigitalContentUrlCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - digitalContentUrl?: FieldPolicy | FieldReadFunction -}; -export type DiscountErrorKeySpecifier = ('field' | 'message' | 'products' | 'code' | 'channels' | DiscountErrorKeySpecifier)[]; -export type DiscountErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction -}; -export type DomainKeySpecifier = ('host' | 'sslEnabled' | 'url' | DomainKeySpecifier)[]; -export type DomainFieldPolicy = { - host?: FieldPolicy | FieldReadFunction, - sslEnabled?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderBulkDeleteKeySpecifier = ('count' | 'orderErrors' | 'errors' | DraftOrderBulkDeleteKeySpecifier)[]; -export type DraftOrderBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderCompleteKeySpecifier = ('order' | 'orderErrors' | 'errors' | DraftOrderCompleteKeySpecifier)[]; -export type DraftOrderCompleteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderCreateKeySpecifier = ('orderErrors' | 'errors' | 'order' | DraftOrderCreateKeySpecifier)[]; -export type DraftOrderCreateFieldPolicy = { - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | DraftOrderCreatedKeySpecifier)[]; -export type DraftOrderCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderDeleteKeySpecifier = ('orderErrors' | 'errors' | 'order' | DraftOrderDeleteKeySpecifier)[]; -export type DraftOrderDeleteFieldPolicy = { - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | DraftOrderDeletedKeySpecifier)[]; -export type DraftOrderDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderLinesBulkDeleteKeySpecifier = ('count' | 'orderErrors' | 'errors' | DraftOrderLinesBulkDeleteKeySpecifier)[]; -export type DraftOrderLinesBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderUpdateKeySpecifier = ('orderErrors' | 'errors' | 'order' | DraftOrderUpdateKeySpecifier)[]; -export type DraftOrderUpdateFieldPolicy = { - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type DraftOrderUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | DraftOrderUpdatedKeySpecifier)[]; -export type DraftOrderUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type EventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | EventKeySpecifier)[]; -export type EventFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction -}; -export type EventDeliveryKeySpecifier = ('id' | 'createdAt' | 'status' | 'eventType' | 'attempts' | 'payload' | EventDeliveryKeySpecifier)[]; -export type EventDeliveryFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - eventType?: FieldPolicy | FieldReadFunction, - attempts?: FieldPolicy | FieldReadFunction, - payload?: FieldPolicy | FieldReadFunction -}; -export type EventDeliveryAttemptKeySpecifier = ('id' | 'createdAt' | 'taskId' | 'duration' | 'response' | 'responseHeaders' | 'responseStatusCode' | 'requestHeaders' | 'status' | EventDeliveryAttemptKeySpecifier)[]; -export type EventDeliveryAttemptFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - taskId?: FieldPolicy | FieldReadFunction, - duration?: FieldPolicy | FieldReadFunction, - response?: FieldPolicy | FieldReadFunction, - responseHeaders?: FieldPolicy | FieldReadFunction, - responseStatusCode?: FieldPolicy | FieldReadFunction, - requestHeaders?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction -}; -export type EventDeliveryAttemptCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | EventDeliveryAttemptCountableConnectionKeySpecifier)[]; -export type EventDeliveryAttemptCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type EventDeliveryAttemptCountableEdgeKeySpecifier = ('node' | 'cursor' | EventDeliveryAttemptCountableEdgeKeySpecifier)[]; -export type EventDeliveryAttemptCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type EventDeliveryCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | EventDeliveryCountableConnectionKeySpecifier)[]; -export type EventDeliveryCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type EventDeliveryCountableEdgeKeySpecifier = ('node' | 'cursor' | EventDeliveryCountableEdgeKeySpecifier)[]; -export type EventDeliveryCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type EventDeliveryRetryKeySpecifier = ('delivery' | 'errors' | EventDeliveryRetryKeySpecifier)[]; -export type EventDeliveryRetryFieldPolicy = { - delivery?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ExportErrorKeySpecifier = ('field' | 'message' | 'code' | ExportErrorKeySpecifier)[]; -export type ExportErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type ExportEventKeySpecifier = ('id' | 'date' | 'type' | 'user' | 'app' | 'message' | ExportEventKeySpecifier)[]; -export type ExportEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction -}; -export type ExportFileKeySpecifier = ('id' | 'status' | 'createdAt' | 'updatedAt' | 'message' | 'url' | 'events' | 'user' | 'app' | ExportFileKeySpecifier)[]; -export type ExportFileFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type ExportFileCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ExportFileCountableConnectionKeySpecifier)[]; -export type ExportFileCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type ExportFileCountableEdgeKeySpecifier = ('node' | 'cursor' | ExportFileCountableEdgeKeySpecifier)[]; -export type ExportFileCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type ExportGiftCardsKeySpecifier = ('exportFile' | 'errors' | ExportGiftCardsKeySpecifier)[]; -export type ExportGiftCardsFieldPolicy = { - exportFile?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ExportProductsKeySpecifier = ('exportFile' | 'exportErrors' | 'errors' | ExportProductsKeySpecifier)[]; -export type ExportProductsFieldPolicy = { - exportFile?: FieldPolicy | FieldReadFunction, - exportErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ExternalAuthenticationKeySpecifier = ('id' | 'name' | ExternalAuthenticationKeySpecifier)[]; -export type ExternalAuthenticationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type ExternalAuthenticationUrlKeySpecifier = ('authenticationData' | 'accountErrors' | 'errors' | ExternalAuthenticationUrlKeySpecifier)[]; -export type ExternalAuthenticationUrlFieldPolicy = { - authenticationData?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ExternalLogoutKeySpecifier = ('logoutData' | 'accountErrors' | 'errors' | ExternalLogoutKeySpecifier)[]; -export type ExternalLogoutFieldPolicy = { - logoutData?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ExternalNotificationErrorKeySpecifier = ('field' | 'message' | 'code' | ExternalNotificationErrorKeySpecifier)[]; -export type ExternalNotificationErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type ExternalNotificationTriggerKeySpecifier = ('errors' | ExternalNotificationTriggerKeySpecifier)[]; -export type ExternalNotificationTriggerFieldPolicy = { - errors?: FieldPolicy | FieldReadFunction -}; -export type ExternalObtainAccessTokensKeySpecifier = ('token' | 'refreshToken' | 'csrfToken' | 'user' | 'accountErrors' | 'errors' | ExternalObtainAccessTokensKeySpecifier)[]; -export type ExternalObtainAccessTokensFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - refreshToken?: FieldPolicy | FieldReadFunction, - csrfToken?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ExternalRefreshKeySpecifier = ('token' | 'refreshToken' | 'csrfToken' | 'user' | 'accountErrors' | 'errors' | ExternalRefreshKeySpecifier)[]; -export type ExternalRefreshFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - refreshToken?: FieldPolicy | FieldReadFunction, - csrfToken?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ExternalVerifyKeySpecifier = ('user' | 'isValid' | 'verifyData' | 'accountErrors' | 'errors' | ExternalVerifyKeySpecifier)[]; -export type ExternalVerifyFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - isValid?: FieldPolicy | FieldReadFunction, - verifyData?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type FileKeySpecifier = ('url' | 'contentType' | FileKeySpecifier)[]; -export type FileFieldPolicy = { - url?: FieldPolicy | FieldReadFunction, - contentType?: FieldPolicy | FieldReadFunction -}; -export type FileUploadKeySpecifier = ('uploadedFile' | 'uploadErrors' | 'errors' | FileUploadKeySpecifier)[]; -export type FileUploadFieldPolicy = { - uploadedFile?: FieldPolicy | FieldReadFunction, - uploadErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'fulfillmentOrder' | 'status' | 'trackingNumber' | 'created' | 'lines' | 'statusDisplay' | 'warehouse' | FulfillmentKeySpecifier)[]; -export type FulfillmentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - fulfillmentOrder?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - trackingNumber?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, - statusDisplay?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentApproveKeySpecifier = ('fulfillment' | 'order' | 'orderErrors' | 'errors' | FulfillmentApproveKeySpecifier)[]; -export type FulfillmentApproveFieldPolicy = { - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentApprovedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'fulfillment' | 'order' | FulfillmentApprovedKeySpecifier)[]; -export type FulfillmentApprovedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentCancelKeySpecifier = ('fulfillment' | 'order' | 'orderErrors' | 'errors' | FulfillmentCancelKeySpecifier)[]; -export type FulfillmentCancelFieldPolicy = { - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentCanceledKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'fulfillment' | 'order' | FulfillmentCanceledKeySpecifier)[]; -export type FulfillmentCanceledFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'fulfillment' | 'order' | FulfillmentCreatedKeySpecifier)[]; -export type FulfillmentCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentLineKeySpecifier = ('id' | 'quantity' | 'orderLine' | FulfillmentLineKeySpecifier)[]; -export type FulfillmentLineFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'fulfillment' | 'order' | FulfillmentMetadataUpdatedKeySpecifier)[]; -export type FulfillmentMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentRefundProductsKeySpecifier = ('fulfillment' | 'order' | 'orderErrors' | 'errors' | FulfillmentRefundProductsKeySpecifier)[]; -export type FulfillmentRefundProductsFieldPolicy = { - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentReturnProductsKeySpecifier = ('returnFulfillment' | 'replaceFulfillment' | 'order' | 'replaceOrder' | 'orderErrors' | 'errors' | FulfillmentReturnProductsKeySpecifier)[]; -export type FulfillmentReturnProductsFieldPolicy = { - returnFulfillment?: FieldPolicy | FieldReadFunction, - replaceFulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - replaceOrder?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type FulfillmentUpdateTrackingKeySpecifier = ('fulfillment' | 'order' | 'orderErrors' | 'errors' | FulfillmentUpdateTrackingKeySpecifier)[]; -export type FulfillmentUpdateTrackingFieldPolicy = { - fulfillment?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GatewayConfigLineKeySpecifier = ('field' | 'value' | GatewayConfigLineKeySpecifier)[]; -export type GatewayConfigLineFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction -}; -export type GiftCardKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'displayCode' | 'last4CodeChars' | 'code' | 'created' | 'createdBy' | 'usedBy' | 'createdByEmail' | 'usedByEmail' | 'lastUsedOn' | 'expiryDate' | 'app' | 'product' | 'events' | 'tags' | 'boughtInChannel' | 'isActive' | 'initialBalance' | 'currentBalance' | 'user' | 'endDate' | 'startDate' | GiftCardKeySpecifier)[]; -export type GiftCardFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - displayCode?: FieldPolicy | FieldReadFunction, - last4CodeChars?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - createdBy?: FieldPolicy | FieldReadFunction, - usedBy?: FieldPolicy | FieldReadFunction, - createdByEmail?: FieldPolicy | FieldReadFunction, - usedByEmail?: FieldPolicy | FieldReadFunction, - lastUsedOn?: FieldPolicy | FieldReadFunction, - expiryDate?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - tags?: FieldPolicy | FieldReadFunction, - boughtInChannel?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - initialBalance?: FieldPolicy | FieldReadFunction, - currentBalance?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - endDate?: FieldPolicy | FieldReadFunction, - startDate?: FieldPolicy | FieldReadFunction -}; -export type GiftCardActivateKeySpecifier = ('giftCard' | 'giftCardErrors' | 'errors' | GiftCardActivateKeySpecifier)[]; -export type GiftCardActivateFieldPolicy = { - giftCard?: FieldPolicy | FieldReadFunction, - giftCardErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardAddNoteKeySpecifier = ('giftCard' | 'event' | 'errors' | GiftCardAddNoteKeySpecifier)[]; -export type GiftCardAddNoteFieldPolicy = { - giftCard?: FieldPolicy | FieldReadFunction, - event?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardBulkActivateKeySpecifier = ('count' | 'errors' | GiftCardBulkActivateKeySpecifier)[]; -export type GiftCardBulkActivateFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardBulkCreateKeySpecifier = ('count' | 'giftCards' | 'errors' | GiftCardBulkCreateKeySpecifier)[]; -export type GiftCardBulkCreateFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardBulkDeactivateKeySpecifier = ('count' | 'errors' | GiftCardBulkDeactivateKeySpecifier)[]; -export type GiftCardBulkDeactivateFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardBulkDeleteKeySpecifier = ('count' | 'errors' | GiftCardBulkDeleteKeySpecifier)[]; -export type GiftCardBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | GiftCardCountableConnectionKeySpecifier)[]; -export type GiftCardCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type GiftCardCountableEdgeKeySpecifier = ('node' | 'cursor' | GiftCardCountableEdgeKeySpecifier)[]; -export type GiftCardCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type GiftCardCreateKeySpecifier = ('giftCardErrors' | 'errors' | 'giftCard' | GiftCardCreateKeySpecifier)[]; -export type GiftCardCreateFieldPolicy = { - giftCardErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardCreatedKeySpecifier)[]; -export type GiftCardCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardDeactivateKeySpecifier = ('giftCard' | 'giftCardErrors' | 'errors' | GiftCardDeactivateKeySpecifier)[]; -export type GiftCardDeactivateFieldPolicy = { - giftCard?: FieldPolicy | FieldReadFunction, - giftCardErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardDeleteKeySpecifier = ('giftCardErrors' | 'errors' | 'giftCard' | GiftCardDeleteKeySpecifier)[]; -export type GiftCardDeleteFieldPolicy = { - giftCardErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardDeletedKeySpecifier)[]; -export type GiftCardDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardErrorKeySpecifier = ('field' | 'message' | 'code' | 'tags' | GiftCardErrorKeySpecifier)[]; -export type GiftCardErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - tags?: FieldPolicy | FieldReadFunction -}; -export type GiftCardEventKeySpecifier = ('id' | 'date' | 'type' | 'user' | 'app' | 'message' | 'email' | 'orderId' | 'orderNumber' | 'tags' | 'oldTags' | 'balance' | 'expiryDate' | 'oldExpiryDate' | GiftCardEventKeySpecifier)[]; -export type GiftCardEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - orderId?: FieldPolicy | FieldReadFunction, - orderNumber?: FieldPolicy | FieldReadFunction, - tags?: FieldPolicy | FieldReadFunction, - oldTags?: FieldPolicy | FieldReadFunction, - balance?: FieldPolicy | FieldReadFunction, - expiryDate?: FieldPolicy | FieldReadFunction, - oldExpiryDate?: FieldPolicy | FieldReadFunction -}; -export type GiftCardEventBalanceKeySpecifier = ('initialBalance' | 'currentBalance' | 'oldInitialBalance' | 'oldCurrentBalance' | GiftCardEventBalanceKeySpecifier)[]; -export type GiftCardEventBalanceFieldPolicy = { - initialBalance?: FieldPolicy | FieldReadFunction, - currentBalance?: FieldPolicy | FieldReadFunction, - oldInitialBalance?: FieldPolicy | FieldReadFunction, - oldCurrentBalance?: FieldPolicy | FieldReadFunction -}; -export type GiftCardMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardMetadataUpdatedKeySpecifier)[]; -export type GiftCardMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardResendKeySpecifier = ('giftCard' | 'errors' | GiftCardResendKeySpecifier)[]; -export type GiftCardResendFieldPolicy = { - giftCard?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardSettingsKeySpecifier = ('expiryType' | 'expiryPeriod' | GiftCardSettingsKeySpecifier)[]; -export type GiftCardSettingsFieldPolicy = { - expiryType?: FieldPolicy | FieldReadFunction, - expiryPeriod?: FieldPolicy | FieldReadFunction -}; -export type GiftCardSettingsErrorKeySpecifier = ('field' | 'message' | 'code' | GiftCardSettingsErrorKeySpecifier)[]; -export type GiftCardSettingsErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type GiftCardSettingsUpdateKeySpecifier = ('giftCardSettings' | 'errors' | GiftCardSettingsUpdateKeySpecifier)[]; -export type GiftCardSettingsUpdateFieldPolicy = { - giftCardSettings?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type GiftCardStatusChangedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardStatusChangedKeySpecifier)[]; -export type GiftCardStatusChangedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardTagKeySpecifier = ('id' | 'name' | GiftCardTagKeySpecifier)[]; -export type GiftCardTagFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type GiftCardTagCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | GiftCardTagCountableConnectionKeySpecifier)[]; -export type GiftCardTagCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type GiftCardTagCountableEdgeKeySpecifier = ('node' | 'cursor' | GiftCardTagCountableEdgeKeySpecifier)[]; -export type GiftCardTagCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type GiftCardUpdateKeySpecifier = ('giftCardErrors' | 'errors' | 'giftCard' | GiftCardUpdateKeySpecifier)[]; -export type GiftCardUpdateFieldPolicy = { - giftCardErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GiftCardUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'giftCard' | GiftCardUpdatedKeySpecifier)[]; -export type GiftCardUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction -}; -export type GroupKeySpecifier = ('id' | 'name' | 'users' | 'permissions' | 'userCanManage' | GroupKeySpecifier)[]; -export type GroupFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - users?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, - userCanManage?: FieldPolicy | FieldReadFunction -}; -export type GroupCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | GroupCountableConnectionKeySpecifier)[]; -export type GroupCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type GroupCountableEdgeKeySpecifier = ('node' | 'cursor' | GroupCountableEdgeKeySpecifier)[]; -export type GroupCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type ImageKeySpecifier = ('url' | 'alt' | ImageKeySpecifier)[]; -export type ImageFieldPolicy = { - url?: FieldPolicy | FieldReadFunction, - alt?: FieldPolicy | FieldReadFunction -}; -export type InvoiceKeySpecifier = ('privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'status' | 'createdAt' | 'updatedAt' | 'message' | 'id' | 'number' | 'externalUrl' | 'url' | 'order' | InvoiceKeySpecifier)[]; -export type InvoiceFieldPolicy = { - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, - number?: FieldPolicy | FieldReadFunction, - externalUrl?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type InvoiceCreateKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceCreateKeySpecifier)[]; -export type InvoiceCreateFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceDeleteKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceDeleteKeySpecifier)[]; -export type InvoiceDeleteFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'invoice' | 'order' | InvoiceDeletedKeySpecifier)[]; -export type InvoiceDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type InvoiceErrorKeySpecifier = ('field' | 'message' | 'code' | InvoiceErrorKeySpecifier)[]; -export type InvoiceErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type InvoiceRequestKeySpecifier = ('order' | 'invoiceErrors' | 'errors' | 'invoice' | InvoiceRequestKeySpecifier)[]; -export type InvoiceRequestFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceRequestDeleteKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceRequestDeleteKeySpecifier)[]; -export type InvoiceRequestDeleteFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceRequestedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'invoice' | 'order' | InvoiceRequestedKeySpecifier)[]; -export type InvoiceRequestedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type InvoiceSendNotificationKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceSendNotificationKeySpecifier)[]; -export type InvoiceSendNotificationFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type InvoiceSentKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'invoice' | 'order' | InvoiceSentKeySpecifier)[]; -export type InvoiceSentFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type InvoiceUpdateKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceUpdateKeySpecifier)[]; -export type InvoiceUpdateFieldPolicy = { - invoiceErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - invoice?: FieldPolicy | FieldReadFunction -}; -export type JobKeySpecifier = ('status' | 'createdAt' | 'updatedAt' | 'message' | JobKeySpecifier)[]; -export type JobFieldPolicy = { - status?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction -}; -export type LanguageDisplayKeySpecifier = ('code' | 'language' | LanguageDisplayKeySpecifier)[]; -export type LanguageDisplayFieldPolicy = { - code?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction -}; -export type LimitInfoKeySpecifier = ('currentUsage' | 'allowedUsage' | LimitInfoKeySpecifier)[]; -export type LimitInfoFieldPolicy = { - currentUsage?: FieldPolicy | FieldReadFunction, - allowedUsage?: FieldPolicy | FieldReadFunction -}; -export type LimitsKeySpecifier = ('channels' | 'orders' | 'productVariants' | 'staffUsers' | 'warehouses' | LimitsKeySpecifier)[]; -export type LimitsFieldPolicy = { - channels?: FieldPolicy | FieldReadFunction, - orders?: FieldPolicy | FieldReadFunction, - productVariants?: FieldPolicy | FieldReadFunction, - staffUsers?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction -}; -export type ManifestKeySpecifier = ('identifier' | 'version' | 'name' | 'about' | 'permissions' | 'appUrl' | 'configurationUrl' | 'tokenTargetUrl' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'extensions' | 'webhooks' | 'audience' | ManifestKeySpecifier)[]; -export type ManifestFieldPolicy = { - identifier?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - about?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, - appUrl?: FieldPolicy | FieldReadFunction, - configurationUrl?: FieldPolicy | FieldReadFunction, - tokenTargetUrl?: FieldPolicy | FieldReadFunction, - dataPrivacy?: FieldPolicy | FieldReadFunction, - dataPrivacyUrl?: FieldPolicy | FieldReadFunction, - homepageUrl?: FieldPolicy | FieldReadFunction, - supportUrl?: FieldPolicy | FieldReadFunction, - extensions?: FieldPolicy | FieldReadFunction, - webhooks?: FieldPolicy | FieldReadFunction, - audience?: FieldPolicy | FieldReadFunction -}; -export type MarginKeySpecifier = ('start' | 'stop' | MarginKeySpecifier)[]; -export type MarginFieldPolicy = { - start?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction -}; -export type MenuKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'slug' | 'items' | MenuKeySpecifier)[]; -export type MenuFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - items?: FieldPolicy | FieldReadFunction -}; -export type MenuBulkDeleteKeySpecifier = ('count' | 'menuErrors' | 'errors' | MenuBulkDeleteKeySpecifier)[]; -export type MenuBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type MenuCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | MenuCountableConnectionKeySpecifier)[]; -export type MenuCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type MenuCountableEdgeKeySpecifier = ('node' | 'cursor' | MenuCountableEdgeKeySpecifier)[]; -export type MenuCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type MenuCreateKeySpecifier = ('menuErrors' | 'errors' | 'menu' | MenuCreateKeySpecifier)[]; -export type MenuCreateFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction -}; -export type MenuCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menu' | MenuCreatedKeySpecifier)[]; -export type MenuCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction -}; -export type MenuDeleteKeySpecifier = ('menuErrors' | 'errors' | 'menu' | MenuDeleteKeySpecifier)[]; -export type MenuDeleteFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction -}; -export type MenuDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menu' | MenuDeletedKeySpecifier)[]; -export type MenuDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction -}; -export type MenuErrorKeySpecifier = ('field' | 'message' | 'code' | MenuErrorKeySpecifier)[]; -export type MenuErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type MenuItemKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'menu' | 'parent' | 'category' | 'collection' | 'page' | 'level' | 'children' | 'url' | 'translation' | MenuItemKeySpecifier)[]; -export type MenuItemFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction, - parent?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction, - level?: FieldPolicy | FieldReadFunction, - children?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction -}; -export type MenuItemBulkDeleteKeySpecifier = ('count' | 'menuErrors' | 'errors' | MenuItemBulkDeleteKeySpecifier)[]; -export type MenuItemBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type MenuItemCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | MenuItemCountableConnectionKeySpecifier)[]; -export type MenuItemCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type MenuItemCountableEdgeKeySpecifier = ('node' | 'cursor' | MenuItemCountableEdgeKeySpecifier)[]; -export type MenuItemCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type MenuItemCreateKeySpecifier = ('menuErrors' | 'errors' | 'menuItem' | MenuItemCreateKeySpecifier)[]; -export type MenuItemCreateFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction -}; -export type MenuItemCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menuItem' | MenuItemCreatedKeySpecifier)[]; -export type MenuItemCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction -}; -export type MenuItemDeleteKeySpecifier = ('menuErrors' | 'errors' | 'menuItem' | MenuItemDeleteKeySpecifier)[]; -export type MenuItemDeleteFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction -}; -export type MenuItemDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menuItem' | MenuItemDeletedKeySpecifier)[]; -export type MenuItemDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction -}; -export type MenuItemMoveKeySpecifier = ('menu' | 'menuErrors' | 'errors' | MenuItemMoveKeySpecifier)[]; -export type MenuItemMoveFieldPolicy = { - menu?: FieldPolicy | FieldReadFunction, - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type MenuItemTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'menuItem' | MenuItemTranslatableContentKeySpecifier)[]; -export type MenuItemTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction -}; -export type MenuItemTranslateKeySpecifier = ('translationErrors' | 'errors' | 'menuItem' | MenuItemTranslateKeySpecifier)[]; -export type MenuItemTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction -}; -export type MenuItemTranslationKeySpecifier = ('id' | 'language' | 'name' | MenuItemTranslationKeySpecifier)[]; -export type MenuItemTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type MenuItemUpdateKeySpecifier = ('menuErrors' | 'errors' | 'menuItem' | MenuItemUpdateKeySpecifier)[]; -export type MenuItemUpdateFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction -}; -export type MenuItemUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menuItem' | MenuItemUpdatedKeySpecifier)[]; -export type MenuItemUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction -}; -export type MenuUpdateKeySpecifier = ('menuErrors' | 'errors' | 'menu' | MenuUpdateKeySpecifier)[]; -export type MenuUpdateFieldPolicy = { - menuErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction -}; -export type MenuUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'menu' | MenuUpdatedKeySpecifier)[]; -export type MenuUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction -}; -export type MetadataErrorKeySpecifier = ('field' | 'message' | 'code' | MetadataErrorKeySpecifier)[]; -export type MetadataErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type MetadataItemKeySpecifier = ('key' | 'value' | MetadataItemKeySpecifier)[]; -export type MetadataItemFieldPolicy = { - key?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction -}; -export type MoneyKeySpecifier = ('currency' | 'amount' | MoneyKeySpecifier)[]; -export type MoneyFieldPolicy = { - currency?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction -}; -export type MoneyRangeKeySpecifier = ('start' | 'stop' | MoneyRangeKeySpecifier)[]; -export type MoneyRangeFieldPolicy = { - start?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction -}; -export type MutationKeySpecifier = ('webhookCreate' | 'webhookDelete' | 'webhookUpdate' | 'eventDeliveryRetry' | 'webhookDryRun' | 'webhookTrigger' | 'createWarehouse' | 'updateWarehouse' | 'deleteWarehouse' | 'assignWarehouseShippingZone' | 'unassignWarehouseShippingZone' | 'taxClassCreate' | 'taxClassDelete' | 'taxClassUpdate' | 'taxConfigurationUpdate' | 'taxCountryConfigurationUpdate' | 'taxCountryConfigurationDelete' | 'taxExemptionManage' | 'staffNotificationRecipientCreate' | 'staffNotificationRecipientUpdate' | 'staffNotificationRecipientDelete' | 'shopDomainUpdate' | 'shopSettingsUpdate' | 'shopFetchTaxRates' | 'shopSettingsTranslate' | 'shopAddressUpdate' | 'orderSettingsUpdate' | 'giftCardSettingsUpdate' | 'shippingMethodChannelListingUpdate' | 'shippingPriceCreate' | 'shippingPriceDelete' | 'shippingPriceBulkDelete' | 'shippingPriceUpdate' | 'shippingPriceTranslate' | 'shippingPriceExcludeProducts' | 'shippingPriceRemoveProductFromExclude' | 'shippingZoneCreate' | 'shippingZoneDelete' | 'shippingZoneBulkDelete' | 'shippingZoneUpdate' | 'productAttributeAssign' | 'productAttributeAssignmentUpdate' | 'productAttributeUnassign' | 'categoryCreate' | 'categoryDelete' | 'categoryBulkDelete' | 'categoryUpdate' | 'categoryTranslate' | 'collectionAddProducts' | 'collectionCreate' | 'collectionDelete' | 'collectionReorderProducts' | 'collectionBulkDelete' | 'collectionRemoveProducts' | 'collectionUpdate' | 'collectionTranslate' | 'collectionChannelListingUpdate' | 'productCreate' | 'productDelete' | 'productBulkDelete' | 'productUpdate' | 'productTranslate' | 'productChannelListingUpdate' | 'productMediaCreate' | 'productVariantReorder' | 'productMediaDelete' | 'productMediaBulkDelete' | 'productMediaReorder' | 'productMediaUpdate' | 'productTypeCreate' | 'productTypeDelete' | 'productTypeBulkDelete' | 'productTypeUpdate' | 'productTypeReorderAttributes' | 'productReorderAttributeValues' | 'digitalContentCreate' | 'digitalContentDelete' | 'digitalContentUpdate' | 'digitalContentUrlCreate' | 'productVariantCreate' | 'productVariantDelete' | 'productVariantBulkCreate' | 'productVariantBulkUpdate' | 'productVariantBulkDelete' | 'productVariantStocksCreate' | 'productVariantStocksDelete' | 'productVariantStocksUpdate' | 'productVariantUpdate' | 'productVariantSetDefault' | 'productVariantTranslate' | 'productVariantChannelListingUpdate' | 'productVariantReorderAttributeValues' | 'productVariantPreorderDeactivate' | 'variantMediaAssign' | 'variantMediaUnassign' | 'paymentCapture' | 'paymentRefund' | 'paymentVoid' | 'paymentInitialize' | 'paymentCheckBalance' | 'transactionCreate' | 'transactionUpdate' | 'transactionRequestAction' | 'transactionEventReport' | 'pageCreate' | 'pageDelete' | 'pageBulkDelete' | 'pageBulkPublish' | 'pageUpdate' | 'pageTranslate' | 'pageTypeCreate' | 'pageTypeUpdate' | 'pageTypeDelete' | 'pageTypeBulkDelete' | 'pageAttributeAssign' | 'pageAttributeUnassign' | 'pageTypeReorderAttributes' | 'pageReorderAttributeValues' | 'draftOrderComplete' | 'draftOrderCreate' | 'draftOrderDelete' | 'draftOrderBulkDelete' | 'draftOrderLinesBulkDelete' | 'draftOrderUpdate' | 'orderAddNote' | 'orderCancel' | 'orderCapture' | 'orderConfirm' | 'orderFulfill' | 'orderFulfillmentCancel' | 'orderFulfillmentApprove' | 'orderFulfillmentUpdateTracking' | 'orderFulfillmentRefundProducts' | 'orderFulfillmentReturnProducts' | 'orderGrantRefundCreate' | 'orderGrantRefundUpdate' | 'orderLinesCreate' | 'orderLineDelete' | 'orderLineUpdate' | 'orderDiscountAdd' | 'orderDiscountUpdate' | 'orderDiscountDelete' | 'orderLineDiscountUpdate' | 'orderLineDiscountRemove' | 'orderMarkAsPaid' | 'orderRefund' | 'orderUpdate' | 'orderUpdateShipping' | 'orderVoid' | 'orderBulkCancel' | 'deleteMetadata' | 'deletePrivateMetadata' | 'updateMetadata' | 'updatePrivateMetadata' | 'assignNavigation' | 'menuCreate' | 'menuDelete' | 'menuBulkDelete' | 'menuUpdate' | 'menuItemCreate' | 'menuItemDelete' | 'menuItemBulkDelete' | 'menuItemUpdate' | 'menuItemTranslate' | 'menuItemMove' | 'invoiceRequest' | 'invoiceRequestDelete' | 'invoiceCreate' | 'invoiceDelete' | 'invoiceUpdate' | 'invoiceSendNotification' | 'giftCardActivate' | 'giftCardCreate' | 'giftCardDelete' | 'giftCardDeactivate' | 'giftCardUpdate' | 'giftCardResend' | 'giftCardAddNote' | 'giftCardBulkCreate' | 'giftCardBulkDelete' | 'giftCardBulkActivate' | 'giftCardBulkDeactivate' | 'pluginUpdate' | 'externalNotificationTrigger' | 'saleCreate' | 'saleDelete' | 'saleBulkDelete' | 'saleUpdate' | 'saleCataloguesAdd' | 'saleCataloguesRemove' | 'saleTranslate' | 'saleChannelListingUpdate' | 'voucherCreate' | 'voucherDelete' | 'voucherBulkDelete' | 'voucherUpdate' | 'voucherCataloguesAdd' | 'voucherCataloguesRemove' | 'voucherTranslate' | 'voucherChannelListingUpdate' | 'exportProducts' | 'exportGiftCards' | 'fileUpload' | 'checkoutAddPromoCode' | 'checkoutBillingAddressUpdate' | 'checkoutComplete' | 'checkoutCreate' | 'checkoutCustomerAttach' | 'checkoutCustomerDetach' | 'checkoutEmailUpdate' | 'checkoutLineDelete' | 'checkoutLinesDelete' | 'checkoutLinesAdd' | 'checkoutLinesUpdate' | 'checkoutRemovePromoCode' | 'checkoutPaymentCreate' | 'checkoutShippingAddressUpdate' | 'checkoutShippingMethodUpdate' | 'checkoutDeliveryMethodUpdate' | 'checkoutLanguageCodeUpdate' | 'orderCreateFromCheckout' | 'channelCreate' | 'channelUpdate' | 'channelDelete' | 'channelActivate' | 'channelDeactivate' | 'channelReorderWarehouses' | 'attributeCreate' | 'attributeDelete' | 'attributeUpdate' | 'attributeTranslate' | 'attributeBulkDelete' | 'attributeValueBulkDelete' | 'attributeValueCreate' | 'attributeValueDelete' | 'attributeValueUpdate' | 'attributeValueTranslate' | 'attributeReorderValues' | 'appCreate' | 'appUpdate' | 'appDelete' | 'appTokenCreate' | 'appTokenDelete' | 'appTokenVerify' | 'appInstall' | 'appRetryInstall' | 'appDeleteFailedInstallation' | 'appFetchManifest' | 'appActivate' | 'appDeactivate' | 'tokenCreate' | 'tokenRefresh' | 'tokenVerify' | 'tokensDeactivateAll' | 'externalAuthenticationUrl' | 'externalObtainAccessTokens' | 'externalRefresh' | 'externalLogout' | 'externalVerify' | 'requestPasswordReset' | 'confirmAccount' | 'setPassword' | 'passwordChange' | 'requestEmailChange' | 'confirmEmailChange' | 'accountAddressCreate' | 'accountAddressUpdate' | 'accountAddressDelete' | 'accountSetDefaultAddress' | 'accountRegister' | 'accountUpdate' | 'accountRequestDeletion' | 'accountDelete' | 'addressCreate' | 'addressUpdate' | 'addressDelete' | 'addressSetDefault' | 'customerCreate' | 'customerUpdate' | 'customerDelete' | 'customerBulkDelete' | 'staffCreate' | 'staffUpdate' | 'staffDelete' | 'staffBulkDelete' | 'userAvatarUpdate' | 'userAvatarDelete' | 'userBulkSetActive' | 'permissionGroupCreate' | 'permissionGroupUpdate' | 'permissionGroupDelete' | MutationKeySpecifier)[]; -export type MutationFieldPolicy = { - webhookCreate?: FieldPolicy | FieldReadFunction, - webhookDelete?: FieldPolicy | FieldReadFunction, - webhookUpdate?: FieldPolicy | FieldReadFunction, - eventDeliveryRetry?: FieldPolicy | FieldReadFunction, - webhookDryRun?: FieldPolicy | FieldReadFunction, - webhookTrigger?: FieldPolicy | FieldReadFunction, - createWarehouse?: FieldPolicy | FieldReadFunction, - updateWarehouse?: FieldPolicy | FieldReadFunction, - deleteWarehouse?: FieldPolicy | FieldReadFunction, - assignWarehouseShippingZone?: FieldPolicy | FieldReadFunction, - unassignWarehouseShippingZone?: FieldPolicy | FieldReadFunction, - taxClassCreate?: FieldPolicy | FieldReadFunction, - taxClassDelete?: FieldPolicy | FieldReadFunction, - taxClassUpdate?: FieldPolicy | FieldReadFunction, - taxConfigurationUpdate?: FieldPolicy | FieldReadFunction, - taxCountryConfigurationUpdate?: FieldPolicy | FieldReadFunction, - taxCountryConfigurationDelete?: FieldPolicy | FieldReadFunction, - taxExemptionManage?: FieldPolicy | FieldReadFunction, - staffNotificationRecipientCreate?: FieldPolicy | FieldReadFunction, - staffNotificationRecipientUpdate?: FieldPolicy | FieldReadFunction, - staffNotificationRecipientDelete?: FieldPolicy | FieldReadFunction, - shopDomainUpdate?: FieldPolicy | FieldReadFunction, - shopSettingsUpdate?: FieldPolicy | FieldReadFunction, - shopFetchTaxRates?: FieldPolicy | FieldReadFunction, - shopSettingsTranslate?: FieldPolicy | FieldReadFunction, - shopAddressUpdate?: FieldPolicy | FieldReadFunction, - orderSettingsUpdate?: FieldPolicy | FieldReadFunction, - giftCardSettingsUpdate?: FieldPolicy | FieldReadFunction, - shippingMethodChannelListingUpdate?: FieldPolicy | FieldReadFunction, - shippingPriceCreate?: FieldPolicy | FieldReadFunction, - shippingPriceDelete?: FieldPolicy | FieldReadFunction, - shippingPriceBulkDelete?: FieldPolicy | FieldReadFunction, - shippingPriceUpdate?: FieldPolicy | FieldReadFunction, - shippingPriceTranslate?: FieldPolicy | FieldReadFunction, - shippingPriceExcludeProducts?: FieldPolicy | FieldReadFunction, - shippingPriceRemoveProductFromExclude?: FieldPolicy | FieldReadFunction, - shippingZoneCreate?: FieldPolicy | FieldReadFunction, - shippingZoneDelete?: FieldPolicy | FieldReadFunction, - shippingZoneBulkDelete?: FieldPolicy | FieldReadFunction, - shippingZoneUpdate?: FieldPolicy | FieldReadFunction, - productAttributeAssign?: FieldPolicy | FieldReadFunction, - productAttributeAssignmentUpdate?: FieldPolicy | FieldReadFunction, - productAttributeUnassign?: FieldPolicy | FieldReadFunction, - categoryCreate?: FieldPolicy | FieldReadFunction, - categoryDelete?: FieldPolicy | FieldReadFunction, - categoryBulkDelete?: FieldPolicy | FieldReadFunction, - categoryUpdate?: FieldPolicy | FieldReadFunction, - categoryTranslate?: FieldPolicy | FieldReadFunction, - collectionAddProducts?: FieldPolicy | FieldReadFunction, - collectionCreate?: FieldPolicy | FieldReadFunction, - collectionDelete?: FieldPolicy | FieldReadFunction, - collectionReorderProducts?: FieldPolicy | FieldReadFunction, - collectionBulkDelete?: FieldPolicy | FieldReadFunction, - collectionRemoveProducts?: FieldPolicy | FieldReadFunction, - collectionUpdate?: FieldPolicy | FieldReadFunction, - collectionTranslate?: FieldPolicy | FieldReadFunction, - collectionChannelListingUpdate?: FieldPolicy | FieldReadFunction, - productCreate?: FieldPolicy | FieldReadFunction, - productDelete?: FieldPolicy | FieldReadFunction, - productBulkDelete?: FieldPolicy | FieldReadFunction, - productUpdate?: FieldPolicy | FieldReadFunction, - productTranslate?: FieldPolicy | FieldReadFunction, - productChannelListingUpdate?: FieldPolicy | FieldReadFunction, - productMediaCreate?: FieldPolicy | FieldReadFunction, - productVariantReorder?: FieldPolicy | FieldReadFunction, - productMediaDelete?: FieldPolicy | FieldReadFunction, - productMediaBulkDelete?: FieldPolicy | FieldReadFunction, - productMediaReorder?: FieldPolicy | FieldReadFunction, - productMediaUpdate?: FieldPolicy | FieldReadFunction, - productTypeCreate?: FieldPolicy | FieldReadFunction, - productTypeDelete?: FieldPolicy | FieldReadFunction, - productTypeBulkDelete?: FieldPolicy | FieldReadFunction, - productTypeUpdate?: FieldPolicy | FieldReadFunction, - productTypeReorderAttributes?: FieldPolicy | FieldReadFunction, - productReorderAttributeValues?: FieldPolicy | FieldReadFunction, - digitalContentCreate?: FieldPolicy | FieldReadFunction, - digitalContentDelete?: FieldPolicy | FieldReadFunction, - digitalContentUpdate?: FieldPolicy | FieldReadFunction, - digitalContentUrlCreate?: FieldPolicy | FieldReadFunction, - productVariantCreate?: FieldPolicy | FieldReadFunction, - productVariantDelete?: FieldPolicy | FieldReadFunction, - productVariantBulkCreate?: FieldPolicy | FieldReadFunction, - productVariantBulkUpdate?: FieldPolicy | FieldReadFunction, - productVariantBulkDelete?: FieldPolicy | FieldReadFunction, - productVariantStocksCreate?: FieldPolicy | FieldReadFunction, - productVariantStocksDelete?: FieldPolicy | FieldReadFunction, - productVariantStocksUpdate?: FieldPolicy | FieldReadFunction, - productVariantUpdate?: FieldPolicy | FieldReadFunction, - productVariantSetDefault?: FieldPolicy | FieldReadFunction, - productVariantTranslate?: FieldPolicy | FieldReadFunction, - productVariantChannelListingUpdate?: FieldPolicy | FieldReadFunction, - productVariantReorderAttributeValues?: FieldPolicy | FieldReadFunction, - productVariantPreorderDeactivate?: FieldPolicy | FieldReadFunction, - variantMediaAssign?: FieldPolicy | FieldReadFunction, - variantMediaUnassign?: FieldPolicy | FieldReadFunction, - paymentCapture?: FieldPolicy | FieldReadFunction, - paymentRefund?: FieldPolicy | FieldReadFunction, - paymentVoid?: FieldPolicy | FieldReadFunction, - paymentInitialize?: FieldPolicy | FieldReadFunction, - paymentCheckBalance?: FieldPolicy | FieldReadFunction, - transactionCreate?: FieldPolicy | FieldReadFunction, - transactionUpdate?: FieldPolicy | FieldReadFunction, - transactionRequestAction?: FieldPolicy | FieldReadFunction, - transactionEventReport?: FieldPolicy | FieldReadFunction, - pageCreate?: FieldPolicy | FieldReadFunction, - pageDelete?: FieldPolicy | FieldReadFunction, - pageBulkDelete?: FieldPolicy | FieldReadFunction, - pageBulkPublish?: FieldPolicy | FieldReadFunction, - pageUpdate?: FieldPolicy | FieldReadFunction, - pageTranslate?: FieldPolicy | FieldReadFunction, - pageTypeCreate?: FieldPolicy | FieldReadFunction, - pageTypeUpdate?: FieldPolicy | FieldReadFunction, - pageTypeDelete?: FieldPolicy | FieldReadFunction, - pageTypeBulkDelete?: FieldPolicy | FieldReadFunction, - pageAttributeAssign?: FieldPolicy | FieldReadFunction, - pageAttributeUnassign?: FieldPolicy | FieldReadFunction, - pageTypeReorderAttributes?: FieldPolicy | FieldReadFunction, - pageReorderAttributeValues?: FieldPolicy | FieldReadFunction, - draftOrderComplete?: FieldPolicy | FieldReadFunction, - draftOrderCreate?: FieldPolicy | FieldReadFunction, - draftOrderDelete?: FieldPolicy | FieldReadFunction, - draftOrderBulkDelete?: FieldPolicy | FieldReadFunction, - draftOrderLinesBulkDelete?: FieldPolicy | FieldReadFunction, - draftOrderUpdate?: FieldPolicy | FieldReadFunction, - orderAddNote?: FieldPolicy | FieldReadFunction, - orderCancel?: FieldPolicy | FieldReadFunction, - orderCapture?: FieldPolicy | FieldReadFunction, - orderConfirm?: FieldPolicy | FieldReadFunction, - orderFulfill?: FieldPolicy | FieldReadFunction, - orderFulfillmentCancel?: FieldPolicy | FieldReadFunction, - orderFulfillmentApprove?: FieldPolicy | FieldReadFunction, - orderFulfillmentUpdateTracking?: FieldPolicy | FieldReadFunction, - orderFulfillmentRefundProducts?: FieldPolicy | FieldReadFunction, - orderFulfillmentReturnProducts?: FieldPolicy | FieldReadFunction, - orderGrantRefundCreate?: FieldPolicy | FieldReadFunction, - orderGrantRefundUpdate?: FieldPolicy | FieldReadFunction, - orderLinesCreate?: FieldPolicy | FieldReadFunction, - orderLineDelete?: FieldPolicy | FieldReadFunction, - orderLineUpdate?: FieldPolicy | FieldReadFunction, - orderDiscountAdd?: FieldPolicy | FieldReadFunction, - orderDiscountUpdate?: FieldPolicy | FieldReadFunction, - orderDiscountDelete?: FieldPolicy | FieldReadFunction, - orderLineDiscountUpdate?: FieldPolicy | FieldReadFunction, - orderLineDiscountRemove?: FieldPolicy | FieldReadFunction, - orderMarkAsPaid?: FieldPolicy | FieldReadFunction, - orderRefund?: FieldPolicy | FieldReadFunction, - orderUpdate?: FieldPolicy | FieldReadFunction, - orderUpdateShipping?: FieldPolicy | FieldReadFunction, - orderVoid?: FieldPolicy | FieldReadFunction, - orderBulkCancel?: FieldPolicy | FieldReadFunction, - deleteMetadata?: FieldPolicy | FieldReadFunction, - deletePrivateMetadata?: FieldPolicy | FieldReadFunction, - updateMetadata?: FieldPolicy | FieldReadFunction, - updatePrivateMetadata?: FieldPolicy | FieldReadFunction, - assignNavigation?: FieldPolicy | FieldReadFunction, - menuCreate?: FieldPolicy | FieldReadFunction, - menuDelete?: FieldPolicy | FieldReadFunction, - menuBulkDelete?: FieldPolicy | FieldReadFunction, - menuUpdate?: FieldPolicy | FieldReadFunction, - menuItemCreate?: FieldPolicy | FieldReadFunction, - menuItemDelete?: FieldPolicy | FieldReadFunction, - menuItemBulkDelete?: FieldPolicy | FieldReadFunction, - menuItemUpdate?: FieldPolicy | FieldReadFunction, - menuItemTranslate?: FieldPolicy | FieldReadFunction, - menuItemMove?: FieldPolicy | FieldReadFunction, - invoiceRequest?: FieldPolicy | FieldReadFunction, - invoiceRequestDelete?: FieldPolicy | FieldReadFunction, - invoiceCreate?: FieldPolicy | FieldReadFunction, - invoiceDelete?: FieldPolicy | FieldReadFunction, - invoiceUpdate?: FieldPolicy | FieldReadFunction, - invoiceSendNotification?: FieldPolicy | FieldReadFunction, - giftCardActivate?: FieldPolicy | FieldReadFunction, - giftCardCreate?: FieldPolicy | FieldReadFunction, - giftCardDelete?: FieldPolicy | FieldReadFunction, - giftCardDeactivate?: FieldPolicy | FieldReadFunction, - giftCardUpdate?: FieldPolicy | FieldReadFunction, - giftCardResend?: FieldPolicy | FieldReadFunction, - giftCardAddNote?: FieldPolicy | FieldReadFunction, - giftCardBulkCreate?: FieldPolicy | FieldReadFunction, - giftCardBulkDelete?: FieldPolicy | FieldReadFunction, - giftCardBulkActivate?: FieldPolicy | FieldReadFunction, - giftCardBulkDeactivate?: FieldPolicy | FieldReadFunction, - pluginUpdate?: FieldPolicy | FieldReadFunction, - externalNotificationTrigger?: FieldPolicy | FieldReadFunction, - saleCreate?: FieldPolicy | FieldReadFunction, - saleDelete?: FieldPolicy | FieldReadFunction, - saleBulkDelete?: FieldPolicy | FieldReadFunction, - saleUpdate?: FieldPolicy | FieldReadFunction, - saleCataloguesAdd?: FieldPolicy | FieldReadFunction, - saleCataloguesRemove?: FieldPolicy | FieldReadFunction, - saleTranslate?: FieldPolicy | FieldReadFunction, - saleChannelListingUpdate?: FieldPolicy | FieldReadFunction, - voucherCreate?: FieldPolicy | FieldReadFunction, - voucherDelete?: FieldPolicy | FieldReadFunction, - voucherBulkDelete?: FieldPolicy | FieldReadFunction, - voucherUpdate?: FieldPolicy | FieldReadFunction, - voucherCataloguesAdd?: FieldPolicy | FieldReadFunction, - voucherCataloguesRemove?: FieldPolicy | FieldReadFunction, - voucherTranslate?: FieldPolicy | FieldReadFunction, - voucherChannelListingUpdate?: FieldPolicy | FieldReadFunction, - exportProducts?: FieldPolicy | FieldReadFunction, - exportGiftCards?: FieldPolicy | FieldReadFunction, - fileUpload?: FieldPolicy | FieldReadFunction, - checkoutAddPromoCode?: FieldPolicy | FieldReadFunction, - checkoutBillingAddressUpdate?: FieldPolicy | FieldReadFunction, - checkoutComplete?: FieldPolicy | FieldReadFunction, - checkoutCreate?: FieldPolicy | FieldReadFunction, - checkoutCustomerAttach?: FieldPolicy | FieldReadFunction, - checkoutCustomerDetach?: FieldPolicy | FieldReadFunction, - checkoutEmailUpdate?: FieldPolicy | FieldReadFunction, - checkoutLineDelete?: FieldPolicy | FieldReadFunction, - checkoutLinesDelete?: FieldPolicy | FieldReadFunction, - checkoutLinesAdd?: FieldPolicy | FieldReadFunction, - checkoutLinesUpdate?: FieldPolicy | FieldReadFunction, - checkoutRemovePromoCode?: FieldPolicy | FieldReadFunction, - checkoutPaymentCreate?: FieldPolicy | FieldReadFunction, - checkoutShippingAddressUpdate?: FieldPolicy | FieldReadFunction, - checkoutShippingMethodUpdate?: FieldPolicy | FieldReadFunction, - checkoutDeliveryMethodUpdate?: FieldPolicy | FieldReadFunction, - checkoutLanguageCodeUpdate?: FieldPolicy | FieldReadFunction, - orderCreateFromCheckout?: FieldPolicy | FieldReadFunction, - channelCreate?: FieldPolicy | FieldReadFunction, - channelUpdate?: FieldPolicy | FieldReadFunction, - channelDelete?: FieldPolicy | FieldReadFunction, - channelActivate?: FieldPolicy | FieldReadFunction, - channelDeactivate?: FieldPolicy | FieldReadFunction, - channelReorderWarehouses?: FieldPolicy | FieldReadFunction, - attributeCreate?: FieldPolicy | FieldReadFunction, - attributeDelete?: FieldPolicy | FieldReadFunction, - attributeUpdate?: FieldPolicy | FieldReadFunction, - attributeTranslate?: FieldPolicy | FieldReadFunction, - attributeBulkDelete?: FieldPolicy | FieldReadFunction, - attributeValueBulkDelete?: FieldPolicy | FieldReadFunction, - attributeValueCreate?: FieldPolicy | FieldReadFunction, - attributeValueDelete?: FieldPolicy | FieldReadFunction, - attributeValueUpdate?: FieldPolicy | FieldReadFunction, - attributeValueTranslate?: FieldPolicy | FieldReadFunction, - attributeReorderValues?: FieldPolicy | FieldReadFunction, - appCreate?: FieldPolicy | FieldReadFunction, - appUpdate?: FieldPolicy | FieldReadFunction, - appDelete?: FieldPolicy | FieldReadFunction, - appTokenCreate?: FieldPolicy | FieldReadFunction, - appTokenDelete?: FieldPolicy | FieldReadFunction, - appTokenVerify?: FieldPolicy | FieldReadFunction, - appInstall?: FieldPolicy | FieldReadFunction, - appRetryInstall?: FieldPolicy | FieldReadFunction, - appDeleteFailedInstallation?: FieldPolicy | FieldReadFunction, - appFetchManifest?: FieldPolicy | FieldReadFunction, - appActivate?: FieldPolicy | FieldReadFunction, - appDeactivate?: FieldPolicy | FieldReadFunction, - tokenCreate?: FieldPolicy | FieldReadFunction, - tokenRefresh?: FieldPolicy | FieldReadFunction, - tokenVerify?: FieldPolicy | FieldReadFunction, - tokensDeactivateAll?: FieldPolicy | FieldReadFunction, - externalAuthenticationUrl?: FieldPolicy | FieldReadFunction, - externalObtainAccessTokens?: FieldPolicy | FieldReadFunction, - externalRefresh?: FieldPolicy | FieldReadFunction, - externalLogout?: FieldPolicy | FieldReadFunction, - externalVerify?: FieldPolicy | FieldReadFunction, - requestPasswordReset?: FieldPolicy | FieldReadFunction, - confirmAccount?: FieldPolicy | FieldReadFunction, - setPassword?: FieldPolicy | FieldReadFunction, - passwordChange?: FieldPolicy | FieldReadFunction, - requestEmailChange?: FieldPolicy | FieldReadFunction, - confirmEmailChange?: FieldPolicy | FieldReadFunction, - accountAddressCreate?: FieldPolicy | FieldReadFunction, - accountAddressUpdate?: FieldPolicy | FieldReadFunction, - accountAddressDelete?: FieldPolicy | FieldReadFunction, - accountSetDefaultAddress?: FieldPolicy | FieldReadFunction, - accountRegister?: FieldPolicy | FieldReadFunction, - accountUpdate?: FieldPolicy | FieldReadFunction, - accountRequestDeletion?: FieldPolicy | FieldReadFunction, - accountDelete?: FieldPolicy | FieldReadFunction, - addressCreate?: FieldPolicy | FieldReadFunction, - addressUpdate?: FieldPolicy | FieldReadFunction, - addressDelete?: FieldPolicy | FieldReadFunction, - addressSetDefault?: FieldPolicy | FieldReadFunction, - customerCreate?: FieldPolicy | FieldReadFunction, - customerUpdate?: FieldPolicy | FieldReadFunction, - customerDelete?: FieldPolicy | FieldReadFunction, - customerBulkDelete?: FieldPolicy | FieldReadFunction, - staffCreate?: FieldPolicy | FieldReadFunction, - staffUpdate?: FieldPolicy | FieldReadFunction, - staffDelete?: FieldPolicy | FieldReadFunction, - staffBulkDelete?: FieldPolicy | FieldReadFunction, - userAvatarUpdate?: FieldPolicy | FieldReadFunction, - userAvatarDelete?: FieldPolicy | FieldReadFunction, - userBulkSetActive?: FieldPolicy | FieldReadFunction, - permissionGroupCreate?: FieldPolicy | FieldReadFunction, - permissionGroupUpdate?: FieldPolicy | FieldReadFunction, - permissionGroupDelete?: FieldPolicy | FieldReadFunction -}; -export type NodeKeySpecifier = ('id' | NodeKeySpecifier)[]; -export type NodeFieldPolicy = { - id?: FieldPolicy | FieldReadFunction -}; -export type ObjectWithMetadataKeySpecifier = ('privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | ObjectWithMetadataKeySpecifier)[]; -export type ObjectWithMetadataFieldPolicy = { - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction -}; -export type OrderKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'created' | 'updatedAt' | 'status' | 'user' | 'trackingClientId' | 'billingAddress' | 'shippingAddress' | 'shippingMethodName' | 'collectionPointName' | 'channel' | 'fulfillments' | 'lines' | 'actions' | 'availableShippingMethods' | 'shippingMethods' | 'availableCollectionPoints' | 'invoices' | 'number' | 'original' | 'origin' | 'isPaid' | 'paymentStatus' | 'paymentStatusDisplay' | 'authorizeStatus' | 'chargeStatus' | 'taxExemption' | 'transactions' | 'payments' | 'total' | 'undiscountedTotal' | 'shippingMethod' | 'shippingPrice' | 'shippingTaxRate' | 'shippingTaxClass' | 'shippingTaxClassName' | 'shippingTaxClassMetadata' | 'shippingTaxClassPrivateMetadata' | 'token' | 'voucher' | 'giftCards' | 'customerNote' | 'weight' | 'redirectUrl' | 'subtotal' | 'statusDisplay' | 'canFinalize' | 'totalAuthorized' | 'totalCaptured' | 'totalCharged' | 'totalCanceled' | 'events' | 'totalBalance' | 'userEmail' | 'isShippingRequired' | 'deliveryMethod' | 'languageCode' | 'languageCodeEnum' | 'discount' | 'discountName' | 'translatedDiscountName' | 'discounts' | 'errors' | 'displayGrossPrices' | 'externalReference' | 'checkoutId' | 'grantedRefunds' | 'totalGrantedRefund' | 'totalRefunded' | 'totalRefundPending' | 'totalAuthorizePending' | 'totalChargePending' | 'totalCancelPending' | 'totalRemainingGrant' | OrderKeySpecifier)[]; -export type OrderFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - trackingClientId?: FieldPolicy | FieldReadFunction, - billingAddress?: FieldPolicy | FieldReadFunction, - shippingAddress?: FieldPolicy | FieldReadFunction, - shippingMethodName?: FieldPolicy | FieldReadFunction, - collectionPointName?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - fulfillments?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, - actions?: FieldPolicy | FieldReadFunction, - availableShippingMethods?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction, - availableCollectionPoints?: FieldPolicy | FieldReadFunction, - invoices?: FieldPolicy | FieldReadFunction, - number?: FieldPolicy | FieldReadFunction, - original?: FieldPolicy | FieldReadFunction, - origin?: FieldPolicy | FieldReadFunction, - isPaid?: FieldPolicy | FieldReadFunction, - paymentStatus?: FieldPolicy | FieldReadFunction, - paymentStatusDisplay?: FieldPolicy | FieldReadFunction, - authorizeStatus?: FieldPolicy | FieldReadFunction, - chargeStatus?: FieldPolicy | FieldReadFunction, - taxExemption?: FieldPolicy | FieldReadFunction, - transactions?: FieldPolicy | FieldReadFunction, - payments?: FieldPolicy | FieldReadFunction, - total?: FieldPolicy | FieldReadFunction, - undiscountedTotal?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingPrice?: FieldPolicy | FieldReadFunction, - shippingTaxRate?: FieldPolicy | FieldReadFunction, - shippingTaxClass?: FieldPolicy | FieldReadFunction, - shippingTaxClassName?: FieldPolicy | FieldReadFunction, - shippingTaxClassMetadata?: FieldPolicy | FieldReadFunction, - shippingTaxClassPrivateMetadata?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - customerNote?: FieldPolicy | FieldReadFunction, - weight?: FieldPolicy | FieldReadFunction, - redirectUrl?: FieldPolicy | FieldReadFunction, - subtotal?: FieldPolicy | FieldReadFunction, - statusDisplay?: FieldPolicy | FieldReadFunction, - canFinalize?: FieldPolicy | FieldReadFunction, - totalAuthorized?: FieldPolicy | FieldReadFunction, - totalCaptured?: FieldPolicy | FieldReadFunction, - totalCharged?: FieldPolicy | FieldReadFunction, - totalCanceled?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - totalBalance?: FieldPolicy | FieldReadFunction, - userEmail?: FieldPolicy | FieldReadFunction, - isShippingRequired?: FieldPolicy | FieldReadFunction, - deliveryMethod?: FieldPolicy | FieldReadFunction, - languageCode?: FieldPolicy | FieldReadFunction, - languageCodeEnum?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction, - discountName?: FieldPolicy | FieldReadFunction, - translatedDiscountName?: FieldPolicy | FieldReadFunction, - discounts?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction, - checkoutId?: FieldPolicy | FieldReadFunction, - grantedRefunds?: FieldPolicy | FieldReadFunction, - totalGrantedRefund?: FieldPolicy | FieldReadFunction, - totalRefunded?: FieldPolicy | FieldReadFunction, - totalRefundPending?: FieldPolicy | FieldReadFunction, - totalAuthorizePending?: FieldPolicy | FieldReadFunction, - totalChargePending?: FieldPolicy | FieldReadFunction, - totalCancelPending?: FieldPolicy | FieldReadFunction, - totalRemainingGrant?: FieldPolicy | FieldReadFunction -}; -export type OrderAddNoteKeySpecifier = ('order' | 'event' | 'orderErrors' | 'errors' | OrderAddNoteKeySpecifier)[]; -export type OrderAddNoteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - event?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderBulkCancelKeySpecifier = ('count' | 'orderErrors' | 'errors' | OrderBulkCancelKeySpecifier)[]; -export type OrderBulkCancelFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderCancelKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderCancelKeySpecifier)[]; -export type OrderCancelFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderCancelledKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderCancelledKeySpecifier)[]; -export type OrderCancelledFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderCaptureKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderCaptureKeySpecifier)[]; -export type OrderCaptureFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderConfirmKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderConfirmKeySpecifier)[]; -export type OrderConfirmFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderConfirmedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderConfirmedKeySpecifier)[]; -export type OrderConfirmedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | OrderCountableConnectionKeySpecifier)[]; -export type OrderCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type OrderCountableEdgeKeySpecifier = ('node' | 'cursor' | OrderCountableEdgeKeySpecifier)[]; -export type OrderCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type OrderCreateFromCheckoutKeySpecifier = ('order' | 'errors' | OrderCreateFromCheckoutKeySpecifier)[]; -export type OrderCreateFromCheckoutFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderCreateFromCheckoutErrorKeySpecifier = ('field' | 'message' | 'code' | 'variants' | 'lines' | OrderCreateFromCheckoutErrorKeySpecifier)[]; -export type OrderCreateFromCheckoutErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction -}; -export type OrderCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderCreatedKeySpecifier)[]; -export type OrderCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderDiscountKeySpecifier = ('id' | 'type' | 'name' | 'translatedName' | 'valueType' | 'value' | 'reason' | 'amount' | OrderDiscountKeySpecifier)[]; -export type OrderDiscountFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - translatedName?: FieldPolicy | FieldReadFunction, - valueType?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction, - reason?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction -}; -export type OrderDiscountAddKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderDiscountAddKeySpecifier)[]; -export type OrderDiscountAddFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderDiscountDeleteKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderDiscountDeleteKeySpecifier)[]; -export type OrderDiscountDeleteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderDiscountUpdateKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderDiscountUpdateKeySpecifier)[]; -export type OrderDiscountUpdateFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderErrorKeySpecifier = ('field' | 'message' | 'code' | 'warehouse' | 'orderLines' | 'variants' | 'addressType' | OrderErrorKeySpecifier)[]; -export type OrderErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction, - orderLines?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - addressType?: FieldPolicy | FieldReadFunction -}; -export type OrderEventKeySpecifier = ('id' | 'date' | 'type' | 'user' | 'app' | 'message' | 'email' | 'emailType' | 'amount' | 'paymentId' | 'paymentGateway' | 'quantity' | 'composedId' | 'orderNumber' | 'invoiceNumber' | 'oversoldItems' | 'lines' | 'fulfilledItems' | 'warehouse' | 'transactionReference' | 'shippingCostsIncluded' | 'relatedOrder' | 'discount' | 'status' | 'reference' | OrderEventKeySpecifier)[]; -export type OrderEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - date?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - emailType?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction, - paymentId?: FieldPolicy | FieldReadFunction, - paymentGateway?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - composedId?: FieldPolicy | FieldReadFunction, - orderNumber?: FieldPolicy | FieldReadFunction, - invoiceNumber?: FieldPolicy | FieldReadFunction, - oversoldItems?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, - fulfilledItems?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction, - transactionReference?: FieldPolicy | FieldReadFunction, - shippingCostsIncluded?: FieldPolicy | FieldReadFunction, - relatedOrder?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - reference?: FieldPolicy | FieldReadFunction -}; -export type OrderEventCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | OrderEventCountableConnectionKeySpecifier)[]; -export type OrderEventCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type OrderEventCountableEdgeKeySpecifier = ('node' | 'cursor' | OrderEventCountableEdgeKeySpecifier)[]; -export type OrderEventCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type OrderEventDiscountObjectKeySpecifier = ('valueType' | 'value' | 'reason' | 'amount' | 'oldValueType' | 'oldValue' | 'oldAmount' | OrderEventDiscountObjectKeySpecifier)[]; -export type OrderEventDiscountObjectFieldPolicy = { - valueType?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction, - reason?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction, - oldValueType?: FieldPolicy | FieldReadFunction, - oldValue?: FieldPolicy | FieldReadFunction, - oldAmount?: FieldPolicy | FieldReadFunction -}; -export type OrderEventOrderLineObjectKeySpecifier = ('quantity' | 'orderLine' | 'itemName' | 'discount' | OrderEventOrderLineObjectKeySpecifier)[]; -export type OrderEventOrderLineObjectFieldPolicy = { - quantity?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction, - itemName?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction -}; -export type OrderFilterShippingMethodsKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | 'shippingMethods' | OrderFilterShippingMethodsKeySpecifier)[]; -export type OrderFilterShippingMethodsFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction -}; -export type OrderFulfillKeySpecifier = ('fulfillments' | 'order' | 'orderErrors' | 'errors' | OrderFulfillKeySpecifier)[]; -export type OrderFulfillFieldPolicy = { - fulfillments?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderFulfilledKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderFulfilledKeySpecifier)[]; -export type OrderFulfilledFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderFullyPaidKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderFullyPaidKeySpecifier)[]; -export type OrderFullyPaidFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderGrantRefundCreateKeySpecifier = ('order' | 'grantedRefund' | 'errors' | OrderGrantRefundCreateKeySpecifier)[]; -export type OrderGrantRefundCreateFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - grantedRefund?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderGrantRefundCreateErrorKeySpecifier = ('field' | 'message' | 'code' | OrderGrantRefundCreateErrorKeySpecifier)[]; -export type OrderGrantRefundCreateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type OrderGrantRefundUpdateKeySpecifier = ('order' | 'grantedRefund' | 'errors' | 'orderGrantedRefund' | OrderGrantRefundUpdateKeySpecifier)[]; -export type OrderGrantRefundUpdateFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - grantedRefund?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - orderGrantedRefund?: FieldPolicy | FieldReadFunction -}; -export type OrderGrantRefundUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | OrderGrantRefundUpdateErrorKeySpecifier)[]; -export type OrderGrantRefundUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type OrderGrantedRefundKeySpecifier = ('id' | 'createdAt' | 'updatedAt' | 'amount' | 'reason' | 'user' | 'app' | OrderGrantedRefundKeySpecifier)[]; -export type OrderGrantedRefundFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction, - reason?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction -}; -export type OrderLineKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'productName' | 'variantName' | 'productSku' | 'productVariantId' | 'isShippingRequired' | 'quantity' | 'quantityFulfilled' | 'unitDiscountReason' | 'taxRate' | 'digitalContentUrl' | 'thumbnail' | 'unitPrice' | 'undiscountedUnitPrice' | 'unitDiscount' | 'unitDiscountValue' | 'totalPrice' | 'variant' | 'translatedProductName' | 'translatedVariantName' | 'allocations' | 'quantityToFulfill' | 'unitDiscountType' | 'taxClass' | 'taxClassName' | 'taxClassMetadata' | 'taxClassPrivateMetadata' | OrderLineKeySpecifier)[]; -export type OrderLineFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - productName?: FieldPolicy | FieldReadFunction, - variantName?: FieldPolicy | FieldReadFunction, - productSku?: FieldPolicy | FieldReadFunction, - productVariantId?: FieldPolicy | FieldReadFunction, - isShippingRequired?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - quantityFulfilled?: FieldPolicy | FieldReadFunction, - unitDiscountReason?: FieldPolicy | FieldReadFunction, - taxRate?: FieldPolicy | FieldReadFunction, - digitalContentUrl?: FieldPolicy | FieldReadFunction, - thumbnail?: FieldPolicy | FieldReadFunction, - unitPrice?: FieldPolicy | FieldReadFunction, - undiscountedUnitPrice?: FieldPolicy | FieldReadFunction, - unitDiscount?: FieldPolicy | FieldReadFunction, - unitDiscountValue?: FieldPolicy | FieldReadFunction, - totalPrice?: FieldPolicy | FieldReadFunction, - variant?: FieldPolicy | FieldReadFunction, - translatedProductName?: FieldPolicy | FieldReadFunction, - translatedVariantName?: FieldPolicy | FieldReadFunction, - allocations?: FieldPolicy | FieldReadFunction, - quantityToFulfill?: FieldPolicy | FieldReadFunction, - unitDiscountType?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction, - taxClassName?: FieldPolicy | FieldReadFunction, - taxClassMetadata?: FieldPolicy | FieldReadFunction, - taxClassPrivateMetadata?: FieldPolicy | FieldReadFunction -}; -export type OrderLineDeleteKeySpecifier = ('order' | 'orderLine' | 'orderErrors' | 'errors' | OrderLineDeleteKeySpecifier)[]; -export type OrderLineDeleteFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderLineDiscountRemoveKeySpecifier = ('orderLine' | 'order' | 'orderErrors' | 'errors' | OrderLineDiscountRemoveKeySpecifier)[]; -export type OrderLineDiscountRemoveFieldPolicy = { - orderLine?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderLineDiscountUpdateKeySpecifier = ('orderLine' | 'order' | 'orderErrors' | 'errors' | OrderLineDiscountUpdateKeySpecifier)[]; -export type OrderLineDiscountUpdateFieldPolicy = { - orderLine?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderLineUpdateKeySpecifier = ('order' | 'orderErrors' | 'errors' | 'orderLine' | OrderLineUpdateKeySpecifier)[]; -export type OrderLineUpdateFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - orderLine?: FieldPolicy | FieldReadFunction -}; -export type OrderLinesCreateKeySpecifier = ('order' | 'orderLines' | 'orderErrors' | 'errors' | OrderLinesCreateKeySpecifier)[]; -export type OrderLinesCreateFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderLines?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderMarkAsPaidKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderMarkAsPaidKeySpecifier)[]; -export type OrderMarkAsPaidFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderMetadataUpdatedKeySpecifier)[]; -export type OrderMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderRefundKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderRefundKeySpecifier)[]; -export type OrderRefundFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderSettingsKeySpecifier = ('automaticallyConfirmAllNewOrders' | 'automaticallyFulfillNonShippableGiftCard' | 'markAsPaidStrategy' | OrderSettingsKeySpecifier)[]; -export type OrderSettingsFieldPolicy = { - automaticallyConfirmAllNewOrders?: FieldPolicy | FieldReadFunction, - automaticallyFulfillNonShippableGiftCard?: FieldPolicy | FieldReadFunction, - markAsPaidStrategy?: FieldPolicy | FieldReadFunction -}; -export type OrderSettingsErrorKeySpecifier = ('field' | 'message' | 'code' | OrderSettingsErrorKeySpecifier)[]; -export type OrderSettingsErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type OrderSettingsUpdateKeySpecifier = ('orderSettings' | 'orderSettingsErrors' | 'errors' | OrderSettingsUpdateKeySpecifier)[]; -export type OrderSettingsUpdateFieldPolicy = { - orderSettings?: FieldPolicy | FieldReadFunction, - orderSettingsErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderUpdateKeySpecifier = ('orderErrors' | 'errors' | 'order' | OrderUpdateKeySpecifier)[]; -export type OrderUpdateFieldPolicy = { - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderUpdateShippingKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderUpdateShippingKeySpecifier)[]; -export type OrderUpdateShippingFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type OrderUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'order' | OrderUpdatedKeySpecifier)[]; -export type OrderUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction -}; -export type OrderVoidKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderVoidKeySpecifier)[]; -export type OrderVoidFieldPolicy = { - order?: FieldPolicy | FieldReadFunction, - orderErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'seoTitle' | 'seoDescription' | 'title' | 'content' | 'publicationDate' | 'publishedAt' | 'isPublished' | 'slug' | 'pageType' | 'created' | 'contentJson' | 'translation' | 'attributes' | PageKeySpecifier)[]; -export type PageFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - title?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - publicationDate?: FieldPolicy | FieldReadFunction, - publishedAt?: FieldPolicy | FieldReadFunction, - isPublished?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - contentJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction -}; -export type PageAttributeAssignKeySpecifier = ('pageType' | 'pageErrors' | 'errors' | PageAttributeAssignKeySpecifier)[]; -export type PageAttributeAssignFieldPolicy = { - pageType?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageAttributeUnassignKeySpecifier = ('pageType' | 'pageErrors' | 'errors' | PageAttributeUnassignKeySpecifier)[]; -export type PageAttributeUnassignFieldPolicy = { - pageType?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageBulkDeleteKeySpecifier = ('count' | 'pageErrors' | 'errors' | PageBulkDeleteKeySpecifier)[]; -export type PageBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageBulkPublishKeySpecifier = ('count' | 'pageErrors' | 'errors' | PageBulkPublishKeySpecifier)[]; -export type PageBulkPublishFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PageCountableConnectionKeySpecifier)[]; -export type PageCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type PageCountableEdgeKeySpecifier = ('node' | 'cursor' | PageCountableEdgeKeySpecifier)[]; -export type PageCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type PageCreateKeySpecifier = ('pageErrors' | 'errors' | 'page' | PageCreateKeySpecifier)[]; -export type PageCreateFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'page' | PageCreatedKeySpecifier)[]; -export type PageCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageDeleteKeySpecifier = ('pageErrors' | 'errors' | 'page' | PageDeleteKeySpecifier)[]; -export type PageDeleteFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'page' | PageDeletedKeySpecifier)[]; -export type PageDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | PageErrorKeySpecifier)[]; -export type PageErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction -}; -export type PageInfoKeySpecifier = ('hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor' | PageInfoKeySpecifier)[]; -export type PageInfoFieldPolicy = { - hasNextPage?: FieldPolicy | FieldReadFunction, - hasPreviousPage?: FieldPolicy | FieldReadFunction, - startCursor?: FieldPolicy | FieldReadFunction, - endCursor?: FieldPolicy | FieldReadFunction -}; -export type PageReorderAttributeValuesKeySpecifier = ('page' | 'pageErrors' | 'errors' | PageReorderAttributeValuesKeySpecifier)[]; -export type PageReorderAttributeValuesFieldPolicy = { - page?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'title' | 'content' | 'contentJson' | 'translation' | 'page' | 'attributeValues' | PageTranslatableContentKeySpecifier)[]; -export type PageTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - title?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - contentJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction, - attributeValues?: FieldPolicy | FieldReadFunction -}; -export type PageTranslateKeySpecifier = ('translationErrors' | 'errors' | 'page' | PageTranslateKeySpecifier)[]; -export type PageTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageTranslationKeySpecifier = ('id' | 'language' | 'seoTitle' | 'seoDescription' | 'title' | 'content' | 'contentJson' | PageTranslationKeySpecifier)[]; -export type PageTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - title?: FieldPolicy | FieldReadFunction, - content?: FieldPolicy | FieldReadFunction, - contentJson?: FieldPolicy | FieldReadFunction -}; -export type PageTypeKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'slug' | 'attributes' | 'availableAttributes' | 'hasPages' | PageTypeKeySpecifier)[]; -export type PageTypeFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - availableAttributes?: FieldPolicy | FieldReadFunction, - hasPages?: FieldPolicy | FieldReadFunction -}; -export type PageTypeBulkDeleteKeySpecifier = ('count' | 'pageErrors' | 'errors' | PageTypeBulkDeleteKeySpecifier)[]; -export type PageTypeBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageTypeCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PageTypeCountableConnectionKeySpecifier)[]; -export type PageTypeCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type PageTypeCountableEdgeKeySpecifier = ('node' | 'cursor' | PageTypeCountableEdgeKeySpecifier)[]; -export type PageTypeCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type PageTypeCreateKeySpecifier = ('pageErrors' | 'errors' | 'pageType' | PageTypeCreateKeySpecifier)[]; -export type PageTypeCreateFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'pageType' | PageTypeCreatedKeySpecifier)[]; -export type PageTypeCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeDeleteKeySpecifier = ('pageErrors' | 'errors' | 'pageType' | PageTypeDeleteKeySpecifier)[]; -export type PageTypeDeleteFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'pageType' | PageTypeDeletedKeySpecifier)[]; -export type PageTypeDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeReorderAttributesKeySpecifier = ('pageType' | 'pageErrors' | 'errors' | PageTypeReorderAttributesKeySpecifier)[]; -export type PageTypeReorderAttributesFieldPolicy = { - pageType?: FieldPolicy | FieldReadFunction, - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PageTypeUpdateKeySpecifier = ('pageErrors' | 'errors' | 'pageType' | PageTypeUpdateKeySpecifier)[]; -export type PageTypeUpdateFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageTypeUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'pageType' | PageTypeUpdatedKeySpecifier)[]; -export type PageTypeUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction -}; -export type PageUpdateKeySpecifier = ('pageErrors' | 'errors' | 'page' | PageUpdateKeySpecifier)[]; -export type PageUpdateFieldPolicy = { - pageErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PageUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'page' | PageUpdatedKeySpecifier)[]; -export type PageUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction -}; -export type PasswordChangeKeySpecifier = ('user' | 'accountErrors' | 'errors' | PasswordChangeKeySpecifier)[]; -export type PasswordChangeFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'gateway' | 'isActive' | 'created' | 'modified' | 'token' | 'checkout' | 'order' | 'paymentMethodType' | 'customerIpAddress' | 'chargeStatus' | 'actions' | 'total' | 'capturedAmount' | 'transactions' | 'availableCaptureAmount' | 'availableRefundAmount' | 'creditCard' | PaymentKeySpecifier)[]; -export type PaymentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - gateway?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - modified?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - paymentMethodType?: FieldPolicy | FieldReadFunction, - customerIpAddress?: FieldPolicy | FieldReadFunction, - chargeStatus?: FieldPolicy | FieldReadFunction, - actions?: FieldPolicy | FieldReadFunction, - total?: FieldPolicy | FieldReadFunction, - capturedAmount?: FieldPolicy | FieldReadFunction, - transactions?: FieldPolicy | FieldReadFunction, - availableCaptureAmount?: FieldPolicy | FieldReadFunction, - availableRefundAmount?: FieldPolicy | FieldReadFunction, - creditCard?: FieldPolicy | FieldReadFunction -}; -export type PaymentAuthorizeKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentAuthorizeKeySpecifier)[]; -export type PaymentAuthorizeFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentCaptureKeySpecifier = ('payment' | 'paymentErrors' | 'errors' | PaymentCaptureKeySpecifier)[]; -export type PaymentCaptureFieldPolicy = { - payment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentCaptureEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentCaptureEventKeySpecifier)[]; -export type PaymentCaptureEventFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentCheckBalanceKeySpecifier = ('data' | 'paymentErrors' | 'errors' | PaymentCheckBalanceKeySpecifier)[]; -export type PaymentCheckBalanceFieldPolicy = { - data?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentConfirmEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentConfirmEventKeySpecifier)[]; -export type PaymentConfirmEventFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PaymentCountableConnectionKeySpecifier)[]; -export type PaymentCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type PaymentCountableEdgeKeySpecifier = ('node' | 'cursor' | PaymentCountableEdgeKeySpecifier)[]; -export type PaymentCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type PaymentErrorKeySpecifier = ('field' | 'message' | 'code' | 'variants' | PaymentErrorKeySpecifier)[]; -export type PaymentErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction -}; -export type PaymentGatewayKeySpecifier = ('name' | 'id' | 'config' | 'currencies' | PaymentGatewayKeySpecifier)[]; -export type PaymentGatewayFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, - config?: FieldPolicy | FieldReadFunction, - currencies?: FieldPolicy | FieldReadFunction -}; -export type PaymentInitializeKeySpecifier = ('initializedPayment' | 'paymentErrors' | 'errors' | PaymentInitializeKeySpecifier)[]; -export type PaymentInitializeFieldPolicy = { - initializedPayment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentInitializedKeySpecifier = ('gateway' | 'name' | 'data' | PaymentInitializedKeySpecifier)[]; -export type PaymentInitializedFieldPolicy = { - gateway?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - data?: FieldPolicy | FieldReadFunction -}; -export type PaymentListGatewaysKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | PaymentListGatewaysKeySpecifier)[]; -export type PaymentListGatewaysFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction -}; -export type PaymentProcessEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentProcessEventKeySpecifier)[]; -export type PaymentProcessEventFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentRefundKeySpecifier = ('payment' | 'paymentErrors' | 'errors' | PaymentRefundKeySpecifier)[]; -export type PaymentRefundFieldPolicy = { - payment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentRefundEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentRefundEventKeySpecifier)[]; -export type PaymentRefundEventFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PaymentSourceKeySpecifier = ('gateway' | 'paymentMethodId' | 'creditCardInfo' | 'metadata' | PaymentSourceKeySpecifier)[]; -export type PaymentSourceFieldPolicy = { - gateway?: FieldPolicy | FieldReadFunction, - paymentMethodId?: FieldPolicy | FieldReadFunction, - creditCardInfo?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction -}; -export type PaymentVoidKeySpecifier = ('payment' | 'paymentErrors' | 'errors' | PaymentVoidKeySpecifier)[]; -export type PaymentVoidFieldPolicy = { - payment?: FieldPolicy | FieldReadFunction, - paymentErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PaymentVoidEventKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'payment' | PaymentVoidEventKeySpecifier)[]; -export type PaymentVoidEventFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction -}; -export type PermissionKeySpecifier = ('code' | 'name' | PermissionKeySpecifier)[]; -export type PermissionFieldPolicy = { - code?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type PermissionGroupCreateKeySpecifier = ('permissionGroupErrors' | 'errors' | 'group' | PermissionGroupCreateKeySpecifier)[]; -export type PermissionGroupCreateFieldPolicy = { - permissionGroupErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - group?: FieldPolicy | FieldReadFunction -}; -export type PermissionGroupCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'permissionGroup' | PermissionGroupCreatedKeySpecifier)[]; -export type PermissionGroupCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - permissionGroup?: FieldPolicy | FieldReadFunction -}; -export type PermissionGroupDeleteKeySpecifier = ('permissionGroupErrors' | 'errors' | 'group' | PermissionGroupDeleteKeySpecifier)[]; -export type PermissionGroupDeleteFieldPolicy = { - permissionGroupErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - group?: FieldPolicy | FieldReadFunction -}; -export type PermissionGroupDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'permissionGroup' | PermissionGroupDeletedKeySpecifier)[]; -export type PermissionGroupDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - permissionGroup?: FieldPolicy | FieldReadFunction -}; -export type PermissionGroupErrorKeySpecifier = ('field' | 'message' | 'code' | 'permissions' | 'users' | PermissionGroupErrorKeySpecifier)[]; -export type PermissionGroupErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, - users?: FieldPolicy | FieldReadFunction -}; -export type PermissionGroupUpdateKeySpecifier = ('permissionGroupErrors' | 'errors' | 'group' | PermissionGroupUpdateKeySpecifier)[]; -export type PermissionGroupUpdateFieldPolicy = { - permissionGroupErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - group?: FieldPolicy | FieldReadFunction -}; -export type PermissionGroupUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'permissionGroup' | PermissionGroupUpdatedKeySpecifier)[]; -export type PermissionGroupUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - permissionGroup?: FieldPolicy | FieldReadFunction -}; -export type PluginKeySpecifier = ('id' | 'name' | 'description' | 'globalConfiguration' | 'channelConfigurations' | PluginKeySpecifier)[]; -export type PluginFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - globalConfiguration?: FieldPolicy | FieldReadFunction, - channelConfigurations?: FieldPolicy | FieldReadFunction -}; -export type PluginConfigurationKeySpecifier = ('active' | 'channel' | 'configuration' | PluginConfigurationKeySpecifier)[]; -export type PluginConfigurationFieldPolicy = { - active?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - configuration?: FieldPolicy | FieldReadFunction -}; -export type PluginCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | PluginCountableConnectionKeySpecifier)[]; -export type PluginCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type PluginCountableEdgeKeySpecifier = ('node' | 'cursor' | PluginCountableEdgeKeySpecifier)[]; -export type PluginCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type PluginErrorKeySpecifier = ('field' | 'message' | 'code' | PluginErrorKeySpecifier)[]; -export type PluginErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type PluginUpdateKeySpecifier = ('plugin' | 'pluginsErrors' | 'errors' | PluginUpdateKeySpecifier)[]; -export type PluginUpdateFieldPolicy = { - plugin?: FieldPolicy | FieldReadFunction, - pluginsErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type PreorderDataKeySpecifier = ('globalThreshold' | 'globalSoldUnits' | 'endDate' | PreorderDataKeySpecifier)[]; -export type PreorderDataFieldPolicy = { - globalThreshold?: FieldPolicy | FieldReadFunction, - globalSoldUnits?: FieldPolicy | FieldReadFunction, - endDate?: FieldPolicy | FieldReadFunction -}; -export type PreorderThresholdKeySpecifier = ('quantity' | 'soldUnits' | PreorderThresholdKeySpecifier)[]; -export type PreorderThresholdFieldPolicy = { - quantity?: FieldPolicy | FieldReadFunction, - soldUnits?: FieldPolicy | FieldReadFunction -}; -export type ProductKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'productType' | 'slug' | 'category' | 'created' | 'updatedAt' | 'chargeTaxes' | 'weight' | 'defaultVariant' | 'rating' | 'channel' | 'descriptionJson' | 'thumbnail' | 'pricing' | 'isAvailable' | 'taxType' | 'attribute' | 'attributes' | 'channelListings' | 'mediaById' | 'imageById' | 'variant' | 'variants' | 'media' | 'images' | 'collections' | 'translation' | 'availableForPurchase' | 'availableForPurchaseAt' | 'isAvailableForPurchase' | 'taxClass' | 'externalReference' | ProductKeySpecifier)[]; -export type ProductFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - productType?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - chargeTaxes?: FieldPolicy | FieldReadFunction, - weight?: FieldPolicy | FieldReadFunction, - defaultVariant?: FieldPolicy | FieldReadFunction, - rating?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, - thumbnail?: FieldPolicy | FieldReadFunction, - pricing?: FieldPolicy | FieldReadFunction, - isAvailable?: FieldPolicy | FieldReadFunction, - taxType?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction, - mediaById?: FieldPolicy | FieldReadFunction, - imageById?: FieldPolicy | FieldReadFunction, - variant?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - images?: FieldPolicy | FieldReadFunction, - collections?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - availableForPurchase?: FieldPolicy | FieldReadFunction, - availableForPurchaseAt?: FieldPolicy | FieldReadFunction, - isAvailableForPurchase?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction -}; -export type ProductAttributeAssignKeySpecifier = ('productType' | 'productErrors' | 'errors' | ProductAttributeAssignKeySpecifier)[]; -export type ProductAttributeAssignFieldPolicy = { - productType?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductAttributeAssignmentUpdateKeySpecifier = ('productType' | 'productErrors' | 'errors' | ProductAttributeAssignmentUpdateKeySpecifier)[]; -export type ProductAttributeAssignmentUpdateFieldPolicy = { - productType?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductAttributeUnassignKeySpecifier = ('productType' | 'productErrors' | 'errors' | ProductAttributeUnassignKeySpecifier)[]; -export type ProductAttributeUnassignFieldPolicy = { - productType?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | ProductBulkDeleteKeySpecifier)[]; -export type ProductBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductChannelListingKeySpecifier = ('id' | 'publicationDate' | 'publishedAt' | 'isPublished' | 'channel' | 'visibleInListings' | 'availableForPurchase' | 'availableForPurchaseAt' | 'discountedPrice' | 'purchaseCost' | 'margin' | 'isAvailableForPurchase' | 'pricing' | ProductChannelListingKeySpecifier)[]; -export type ProductChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - publicationDate?: FieldPolicy | FieldReadFunction, - publishedAt?: FieldPolicy | FieldReadFunction, - isPublished?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - visibleInListings?: FieldPolicy | FieldReadFunction, - availableForPurchase?: FieldPolicy | FieldReadFunction, - availableForPurchaseAt?: FieldPolicy | FieldReadFunction, - discountedPrice?: FieldPolicy | FieldReadFunction, - purchaseCost?: FieldPolicy | FieldReadFunction, - margin?: FieldPolicy | FieldReadFunction, - isAvailableForPurchase?: FieldPolicy | FieldReadFunction, - pricing?: FieldPolicy | FieldReadFunction -}; -export type ProductChannelListingErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'channels' | 'variants' | ProductChannelListingErrorKeySpecifier)[]; -export type ProductChannelListingErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction -}; -export type ProductChannelListingUpdateKeySpecifier = ('product' | 'productChannelListingErrors' | 'errors' | ProductChannelListingUpdateKeySpecifier)[]; -export type ProductChannelListingUpdateFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - productChannelListingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ProductCountableConnectionKeySpecifier)[]; -export type ProductCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type ProductCountableEdgeKeySpecifier = ('node' | 'cursor' | ProductCountableEdgeKeySpecifier)[]; -export type ProductCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type ProductCreateKeySpecifier = ('productErrors' | 'errors' | 'product' | ProductCreateKeySpecifier)[]; -export type ProductCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction -}; -export type ProductCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'product' | 'category' | ProductCreatedKeySpecifier)[]; -export type ProductCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type ProductDeleteKeySpecifier = ('productErrors' | 'errors' | 'product' | ProductDeleteKeySpecifier)[]; -export type ProductDeleteFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction -}; -export type ProductDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'product' | 'category' | ProductDeletedKeySpecifier)[]; -export type ProductDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type ProductErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | ProductErrorKeySpecifier)[]; -export type ProductErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction -}; -export type ProductImageKeySpecifier = ('id' | 'alt' | 'sortOrder' | 'url' | ProductImageKeySpecifier)[]; -export type ProductImageFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - alt?: FieldPolicy | FieldReadFunction, - sortOrder?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'sortOrder' | 'alt' | 'type' | 'oembedData' | 'url' | 'productId' | ProductMediaKeySpecifier)[]; -export type ProductMediaFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - sortOrder?: FieldPolicy | FieldReadFunction, - alt?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - oembedData?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - productId?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | ProductMediaBulkDeleteKeySpecifier)[]; -export type ProductMediaBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaCreateKeySpecifier = ('product' | 'media' | 'productErrors' | 'errors' | ProductMediaCreateKeySpecifier)[]; -export type ProductMediaCreateFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productMedia' | ProductMediaCreatedKeySpecifier)[]; -export type ProductMediaCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productMedia?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaDeleteKeySpecifier = ('product' | 'media' | 'productErrors' | 'errors' | ProductMediaDeleteKeySpecifier)[]; -export type ProductMediaDeleteFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productMedia' | ProductMediaDeletedKeySpecifier)[]; -export type ProductMediaDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productMedia?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaReorderKeySpecifier = ('product' | 'media' | 'productErrors' | 'errors' | ProductMediaReorderKeySpecifier)[]; -export type ProductMediaReorderFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaUpdateKeySpecifier = ('product' | 'media' | 'productErrors' | 'errors' | ProductMediaUpdateKeySpecifier)[]; -export type ProductMediaUpdateFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductMediaUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productMedia' | ProductMediaUpdatedKeySpecifier)[]; -export type ProductMediaUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productMedia?: FieldPolicy | FieldReadFunction -}; -export type ProductMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'product' | 'category' | ProductMetadataUpdatedKeySpecifier)[]; -export type ProductMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type ProductPricingInfoKeySpecifier = ('onSale' | 'discount' | 'discountLocalCurrency' | 'priceRange' | 'priceRangeUndiscounted' | 'priceRangeLocalCurrency' | 'displayGrossPrices' | ProductPricingInfoKeySpecifier)[]; -export type ProductPricingInfoFieldPolicy = { - onSale?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction, - discountLocalCurrency?: FieldPolicy | FieldReadFunction, - priceRange?: FieldPolicy | FieldReadFunction, - priceRangeUndiscounted?: FieldPolicy | FieldReadFunction, - priceRangeLocalCurrency?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction -}; -export type ProductReorderAttributeValuesKeySpecifier = ('product' | 'productErrors' | 'errors' | ProductReorderAttributeValuesKeySpecifier)[]; -export type ProductReorderAttributeValuesFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | 'translation' | 'product' | 'attributeValues' | ProductTranslatableContentKeySpecifier)[]; -export type ProductTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - attributeValues?: FieldPolicy | FieldReadFunction -}; -export type ProductTranslateKeySpecifier = ('translationErrors' | 'errors' | 'product' | ProductTranslateKeySpecifier)[]; -export type ProductTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction -}; -export type ProductTranslationKeySpecifier = ('id' | 'language' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | ProductTranslationKeySpecifier)[]; -export type ProductTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - seoTitle?: FieldPolicy | FieldReadFunction, - seoDescription?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - descriptionJson?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'slug' | 'hasVariants' | 'isShippingRequired' | 'isDigital' | 'weight' | 'kind' | 'products' | 'taxType' | 'taxClass' | 'variantAttributes' | 'assignedVariantAttributes' | 'productAttributes' | 'availableAttributes' | ProductTypeKeySpecifier)[]; -export type ProductTypeFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - hasVariants?: FieldPolicy | FieldReadFunction, - isShippingRequired?: FieldPolicy | FieldReadFunction, - isDigital?: FieldPolicy | FieldReadFunction, - weight?: FieldPolicy | FieldReadFunction, - kind?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - taxType?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction, - variantAttributes?: FieldPolicy | FieldReadFunction, - assignedVariantAttributes?: FieldPolicy | FieldReadFunction, - productAttributes?: FieldPolicy | FieldReadFunction, - availableAttributes?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | ProductTypeBulkDeleteKeySpecifier)[]; -export type ProductTypeBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ProductTypeCountableConnectionKeySpecifier)[]; -export type ProductTypeCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeCountableEdgeKeySpecifier = ('node' | 'cursor' | ProductTypeCountableEdgeKeySpecifier)[]; -export type ProductTypeCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeCreateKeySpecifier = ('productErrors' | 'errors' | 'productType' | ProductTypeCreateKeySpecifier)[]; -export type ProductTypeCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - productType?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeDeleteKeySpecifier = ('productErrors' | 'errors' | 'productType' | ProductTypeDeleteKeySpecifier)[]; -export type ProductTypeDeleteFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - productType?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeReorderAttributesKeySpecifier = ('productType' | 'productErrors' | 'errors' | ProductTypeReorderAttributesKeySpecifier)[]; -export type ProductTypeReorderAttributesFieldPolicy = { - productType?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductTypeUpdateKeySpecifier = ('productErrors' | 'errors' | 'productType' | ProductTypeUpdateKeySpecifier)[]; -export type ProductTypeUpdateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - productType?: FieldPolicy | FieldReadFunction -}; -export type ProductUpdateKeySpecifier = ('productErrors' | 'errors' | 'product' | ProductUpdateKeySpecifier)[]; -export type ProductUpdateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction -}; -export type ProductUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'product' | 'category' | ProductUpdatedKeySpecifier)[]; -export type ProductUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'sku' | 'product' | 'trackInventory' | 'quantityLimitPerCustomer' | 'weight' | 'channel' | 'channelListings' | 'pricing' | 'attributes' | 'margin' | 'quantityOrdered' | 'revenue' | 'images' | 'media' | 'translation' | 'digitalContent' | 'stocks' | 'quantityAvailable' | 'preorder' | 'created' | 'updatedAt' | 'externalReference' | ProductVariantKeySpecifier)[]; -export type ProductVariantFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - sku?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - trackInventory?: FieldPolicy | FieldReadFunction, - quantityLimitPerCustomer?: FieldPolicy | FieldReadFunction, - weight?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction, - pricing?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - margin?: FieldPolicy | FieldReadFunction, - quantityOrdered?: FieldPolicy | FieldReadFunction, - revenue?: FieldPolicy | FieldReadFunction, - images?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - digitalContent?: FieldPolicy | FieldReadFunction, - stocks?: FieldPolicy | FieldReadFunction, - quantityAvailable?: FieldPolicy | FieldReadFunction, - preorder?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantBackInStockKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | 'warehouse' | ProductVariantBackInStockKeySpecifier)[]; -export type ProductVariantBackInStockFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantBulkCreateKeySpecifier = ('count' | 'productVariants' | 'results' | 'bulkProductErrors' | 'errors' | ProductVariantBulkCreateKeySpecifier)[]; -export type ProductVariantBulkCreateFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - productVariants?: FieldPolicy | FieldReadFunction, - results?: FieldPolicy | FieldReadFunction, - bulkProductErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantBulkDeleteKeySpecifier = ('count' | 'productErrors' | 'errors' | ProductVariantBulkDeleteKeySpecifier)[]; -export type ProductVariantBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantBulkErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | 'warehouses' | 'stocks' | 'channels' | 'channelListings' | ProductVariantBulkErrorKeySpecifier)[]; -export type ProductVariantBulkErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - stocks?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantBulkResultKeySpecifier = ('productVariant' | 'errors' | ProductVariantBulkResultKeySpecifier)[]; -export type ProductVariantBulkResultFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantBulkUpdateKeySpecifier = ('count' | 'results' | 'errors' | ProductVariantBulkUpdateKeySpecifier)[]; -export type ProductVariantBulkUpdateFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - results?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantChannelListingKeySpecifier = ('id' | 'channel' | 'price' | 'costPrice' | 'margin' | 'preorderThreshold' | ProductVariantChannelListingKeySpecifier)[]; -export type ProductVariantChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - price?: FieldPolicy | FieldReadFunction, - costPrice?: FieldPolicy | FieldReadFunction, - margin?: FieldPolicy | FieldReadFunction, - preorderThreshold?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantChannelListingUpdateKeySpecifier = ('variant' | 'productChannelListingErrors' | 'errors' | ProductVariantChannelListingUpdateKeySpecifier)[]; -export type ProductVariantChannelListingUpdateFieldPolicy = { - variant?: FieldPolicy | FieldReadFunction, - productChannelListingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ProductVariantCountableConnectionKeySpecifier)[]; -export type ProductVariantCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantCountableEdgeKeySpecifier = ('node' | 'cursor' | ProductVariantCountableEdgeKeySpecifier)[]; -export type ProductVariantCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantCreateKeySpecifier = ('productErrors' | 'errors' | 'productVariant' | ProductVariantCreateKeySpecifier)[]; -export type ProductVariantCreateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | ProductVariantCreatedKeySpecifier)[]; -export type ProductVariantCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantDeleteKeySpecifier = ('productErrors' | 'errors' | 'productVariant' | ProductVariantDeleteKeySpecifier)[]; -export type ProductVariantDeleteFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | ProductVariantDeletedKeySpecifier)[]; -export type ProductVariantDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | ProductVariantMetadataUpdatedKeySpecifier)[]; -export type ProductVariantMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantOutOfStockKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | 'warehouse' | ProductVariantOutOfStockKeySpecifier)[]; -export type ProductVariantOutOfStockFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantPreorderDeactivateKeySpecifier = ('productVariant' | 'errors' | ProductVariantPreorderDeactivateKeySpecifier)[]; -export type ProductVariantPreorderDeactivateFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantReorderKeySpecifier = ('product' | 'productErrors' | 'errors' | ProductVariantReorderKeySpecifier)[]; -export type ProductVariantReorderFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantReorderAttributeValuesKeySpecifier = ('productVariant' | 'productErrors' | 'errors' | ProductVariantReorderAttributeValuesKeySpecifier)[]; -export type ProductVariantReorderAttributeValuesFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantSetDefaultKeySpecifier = ('product' | 'productErrors' | 'errors' | ProductVariantSetDefaultKeySpecifier)[]; -export type ProductVariantSetDefaultFieldPolicy = { - product?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantStockUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | 'warehouse' | ProductVariantStockUpdatedKeySpecifier)[]; -export type ProductVariantStockUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantStocksCreateKeySpecifier = ('productVariant' | 'bulkStockErrors' | 'errors' | ProductVariantStocksCreateKeySpecifier)[]; -export type ProductVariantStocksCreateFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - bulkStockErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantStocksDeleteKeySpecifier = ('productVariant' | 'stockErrors' | 'errors' | ProductVariantStocksDeleteKeySpecifier)[]; -export type ProductVariantStocksDeleteFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - stockErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantStocksUpdateKeySpecifier = ('productVariant' | 'bulkStockErrors' | 'errors' | ProductVariantStocksUpdateKeySpecifier)[]; -export type ProductVariantStocksUpdateFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - bulkStockErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'productVariant' | 'attributeValues' | ProductVariantTranslatableContentKeySpecifier)[]; -export type ProductVariantTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction, - attributeValues?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantTranslateKeySpecifier = ('translationErrors' | 'errors' | 'productVariant' | ProductVariantTranslateKeySpecifier)[]; -export type ProductVariantTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantTranslationKeySpecifier = ('id' | 'language' | 'name' | ProductVariantTranslationKeySpecifier)[]; -export type ProductVariantTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantUpdateKeySpecifier = ('productErrors' | 'errors' | 'productVariant' | ProductVariantUpdateKeySpecifier)[]; -export type ProductVariantUpdateFieldPolicy = { - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type ProductVariantUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'productVariant' | ProductVariantUpdatedKeySpecifier)[]; -export type ProductVariantUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction -}; -export type QueryKeySpecifier = ('webhook' | 'webhookEvents' | 'webhookSamplePayload' | 'warehouse' | 'warehouses' | 'translations' | 'translation' | 'taxConfiguration' | 'taxConfigurations' | 'taxClass' | 'taxClasses' | 'taxCountryConfiguration' | 'taxCountryConfigurations' | 'stock' | 'stocks' | 'shop' | 'orderSettings' | 'giftCardSettings' | 'shippingZone' | 'shippingZones' | 'digitalContent' | 'digitalContents' | 'categories' | 'category' | 'collection' | 'collections' | 'product' | 'products' | 'productType' | 'productTypes' | 'productVariant' | 'productVariants' | 'reportProductSales' | 'payment' | 'payments' | 'transaction' | 'page' | 'pages' | 'pageType' | 'pageTypes' | 'homepageEvents' | 'order' | 'orders' | 'draftOrders' | 'ordersTotal' | 'orderByToken' | 'menu' | 'menus' | 'menuItem' | 'menuItems' | 'giftCard' | 'giftCards' | 'giftCardCurrencies' | 'giftCardTags' | 'plugin' | 'plugins' | 'sale' | 'sales' | 'voucher' | 'vouchers' | 'exportFile' | 'exportFiles' | 'taxTypes' | 'checkout' | 'checkouts' | 'checkoutLines' | 'channel' | 'channels' | 'attributes' | 'attribute' | 'appsInstallations' | 'apps' | 'app' | 'appExtensions' | 'appExtension' | 'addressValidationRules' | 'address' | 'customers' | 'permissionGroups' | 'permissionGroup' | 'me' | 'staffUsers' | 'user' | '_entities' | '_service' | QueryKeySpecifier)[]; -export type QueryFieldPolicy = { - webhook?: FieldPolicy | FieldReadFunction, - webhookEvents?: FieldPolicy | FieldReadFunction, - webhookSamplePayload?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - translations?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - taxConfiguration?: FieldPolicy | FieldReadFunction, - taxConfigurations?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction, - taxClasses?: FieldPolicy | FieldReadFunction, - taxCountryConfiguration?: FieldPolicy | FieldReadFunction, - taxCountryConfigurations?: FieldPolicy | FieldReadFunction, - stock?: FieldPolicy | FieldReadFunction, - stocks?: FieldPolicy | FieldReadFunction, - shop?: FieldPolicy | FieldReadFunction, - orderSettings?: FieldPolicy | FieldReadFunction, - giftCardSettings?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction, - shippingZones?: FieldPolicy | FieldReadFunction, - digitalContent?: FieldPolicy | FieldReadFunction, - digitalContents?: FieldPolicy | FieldReadFunction, - categories?: FieldPolicy | FieldReadFunction, - category?: FieldPolicy | FieldReadFunction, - collection?: FieldPolicy | FieldReadFunction, - collections?: FieldPolicy | FieldReadFunction, - product?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - productType?: FieldPolicy | FieldReadFunction, - productTypes?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction, - productVariants?: FieldPolicy | FieldReadFunction, - reportProductSales?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction, - payments?: FieldPolicy | FieldReadFunction, - transaction?: FieldPolicy | FieldReadFunction, - page?: FieldPolicy | FieldReadFunction, - pages?: FieldPolicy | FieldReadFunction, - pageType?: FieldPolicy | FieldReadFunction, - pageTypes?: FieldPolicy | FieldReadFunction, - homepageEvents?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - orders?: FieldPolicy | FieldReadFunction, - draftOrders?: FieldPolicy | FieldReadFunction, - ordersTotal?: FieldPolicy | FieldReadFunction, - orderByToken?: FieldPolicy | FieldReadFunction, - menu?: FieldPolicy | FieldReadFunction, - menus?: FieldPolicy | FieldReadFunction, - menuItem?: FieldPolicy | FieldReadFunction, - menuItems?: FieldPolicy | FieldReadFunction, - giftCard?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - giftCardCurrencies?: FieldPolicy | FieldReadFunction, - giftCardTags?: FieldPolicy | FieldReadFunction, - plugin?: FieldPolicy | FieldReadFunction, - plugins?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction, - sales?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction, - vouchers?: FieldPolicy | FieldReadFunction, - exportFile?: FieldPolicy | FieldReadFunction, - exportFiles?: FieldPolicy | FieldReadFunction, - taxTypes?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - checkouts?: FieldPolicy | FieldReadFunction, - checkoutLines?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction, - attributes?: FieldPolicy | FieldReadFunction, - attribute?: FieldPolicy | FieldReadFunction, - appsInstallations?: FieldPolicy | FieldReadFunction, - apps?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - appExtensions?: FieldPolicy | FieldReadFunction, - appExtension?: FieldPolicy | FieldReadFunction, - addressValidationRules?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction, - customers?: FieldPolicy | FieldReadFunction, - permissionGroups?: FieldPolicy | FieldReadFunction, - permissionGroup?: FieldPolicy | FieldReadFunction, - me?: FieldPolicy | FieldReadFunction, - staffUsers?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - _entities?: FieldPolicy | FieldReadFunction, - _service?: FieldPolicy | FieldReadFunction -}; -export type ReducedRateKeySpecifier = ('rate' | 'rateType' | ReducedRateKeySpecifier)[]; -export type ReducedRateFieldPolicy = { - rate?: FieldPolicy | FieldReadFunction, - rateType?: FieldPolicy | FieldReadFunction -}; -export type RefreshTokenKeySpecifier = ('token' | 'user' | 'accountErrors' | 'errors' | RefreshTokenKeySpecifier)[]; -export type RefreshTokenFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type RequestEmailChangeKeySpecifier = ('user' | 'accountErrors' | 'errors' | RequestEmailChangeKeySpecifier)[]; -export type RequestEmailChangeFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type RequestPasswordResetKeySpecifier = ('accountErrors' | 'errors' | RequestPasswordResetKeySpecifier)[]; -export type RequestPasswordResetFieldPolicy = { - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type SaleKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'type' | 'startDate' | 'endDate' | 'created' | 'updatedAt' | 'categories' | 'collections' | 'products' | 'variants' | 'translation' | 'channelListings' | 'discountValue' | 'currency' | SaleKeySpecifier)[]; -export type SaleFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - startDate?: FieldPolicy | FieldReadFunction, - endDate?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, - categories?: FieldPolicy | FieldReadFunction, - collections?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction, - discountValue?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction -}; -export type SaleAddCataloguesKeySpecifier = ('sale' | 'discountErrors' | 'errors' | SaleAddCataloguesKeySpecifier)[]; -export type SaleAddCataloguesFieldPolicy = { - sale?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type SaleBulkDeleteKeySpecifier = ('count' | 'discountErrors' | 'errors' | SaleBulkDeleteKeySpecifier)[]; -export type SaleBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type SaleChannelListingKeySpecifier = ('id' | 'channel' | 'discountValue' | 'currency' | SaleChannelListingKeySpecifier)[]; -export type SaleChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - discountValue?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction -}; -export type SaleChannelListingUpdateKeySpecifier = ('sale' | 'discountErrors' | 'errors' | SaleChannelListingUpdateKeySpecifier)[]; -export type SaleChannelListingUpdateFieldPolicy = { - sale?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type SaleCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | SaleCountableConnectionKeySpecifier)[]; -export type SaleCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type SaleCountableEdgeKeySpecifier = ('node' | 'cursor' | SaleCountableEdgeKeySpecifier)[]; -export type SaleCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type SaleCreateKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleCreateKeySpecifier)[]; -export type SaleCreateFieldPolicy = { - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SaleCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'sale' | SaleCreatedKeySpecifier)[]; -export type SaleCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SaleDeleteKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleDeleteKeySpecifier)[]; -export type SaleDeleteFieldPolicy = { - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SaleDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'sale' | SaleDeletedKeySpecifier)[]; -export type SaleDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SaleRemoveCataloguesKeySpecifier = ('sale' | 'discountErrors' | 'errors' | SaleRemoveCataloguesKeySpecifier)[]; -export type SaleRemoveCataloguesFieldPolicy = { - sale?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type SaleToggleKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'sale' | SaleToggleKeySpecifier)[]; -export type SaleToggleFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SaleTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'sale' | SaleTranslatableContentKeySpecifier)[]; -export type SaleTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SaleTranslateKeySpecifier = ('translationErrors' | 'errors' | 'sale' | SaleTranslateKeySpecifier)[]; -export type SaleTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SaleTranslationKeySpecifier = ('id' | 'language' | 'name' | SaleTranslationKeySpecifier)[]; -export type SaleTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type SaleUpdateKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleUpdateKeySpecifier)[]; -export type SaleUpdateFieldPolicy = { - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SaleUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'sale' | SaleUpdatedKeySpecifier)[]; -export type SaleUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - sale?: FieldPolicy | FieldReadFunction -}; -export type SelectedAttributeKeySpecifier = ('attribute' | 'values' | SelectedAttributeKeySpecifier)[]; -export type SelectedAttributeFieldPolicy = { - attribute?: FieldPolicy | FieldReadFunction, - values?: FieldPolicy | FieldReadFunction -}; -export type SetPasswordKeySpecifier = ('token' | 'refreshToken' | 'csrfToken' | 'user' | 'accountErrors' | 'errors' | SetPasswordKeySpecifier)[]; -export type SetPasswordFieldPolicy = { - token?: FieldPolicy | FieldReadFunction, - refreshToken?: FieldPolicy | FieldReadFunction, - csrfToken?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingErrorKeySpecifier = ('field' | 'message' | 'code' | 'warehouses' | 'channels' | ShippingErrorKeySpecifier)[]; -export type ShippingErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction -}; -export type ShippingListMethodsForCheckoutKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'checkout' | 'shippingMethods' | ShippingListMethodsForCheckoutKeySpecifier)[]; -export type ShippingListMethodsForCheckoutFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'type' | 'name' | 'description' | 'maximumDeliveryDays' | 'minimumDeliveryDays' | 'maximumOrderWeight' | 'minimumOrderWeight' | 'translation' | 'price' | 'maximumOrderPrice' | 'minimumOrderPrice' | 'active' | 'message' | ShippingMethodKeySpecifier)[]; -export type ShippingMethodFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - maximumDeliveryDays?: FieldPolicy | FieldReadFunction, - minimumDeliveryDays?: FieldPolicy | FieldReadFunction, - maximumOrderWeight?: FieldPolicy | FieldReadFunction, - minimumOrderWeight?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - price?: FieldPolicy | FieldReadFunction, - maximumOrderPrice?: FieldPolicy | FieldReadFunction, - minimumOrderPrice?: FieldPolicy | FieldReadFunction, - active?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodChannelListingKeySpecifier = ('id' | 'channel' | 'maximumOrderPrice' | 'minimumOrderPrice' | 'price' | ShippingMethodChannelListingKeySpecifier)[]; -export type ShippingMethodChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - maximumOrderPrice?: FieldPolicy | FieldReadFunction, - minimumOrderPrice?: FieldPolicy | FieldReadFunction, - price?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodChannelListingUpdateKeySpecifier = ('shippingMethod' | 'shippingErrors' | 'errors' | ShippingMethodChannelListingUpdateKeySpecifier)[]; -export type ShippingMethodChannelListingUpdateFieldPolicy = { - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodPostalCodeRuleKeySpecifier = ('id' | 'start' | 'end' | 'inclusionType' | ShippingMethodPostalCodeRuleKeySpecifier)[]; -export type ShippingMethodPostalCodeRuleFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - start?: FieldPolicy | FieldReadFunction, - end?: FieldPolicy | FieldReadFunction, - inclusionType?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodTranslatableContentKeySpecifier = ('id' | 'name' | 'description' | 'translation' | 'shippingMethod' | ShippingMethodTranslatableContentKeySpecifier)[]; -export type ShippingMethodTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodTranslationKeySpecifier = ('id' | 'language' | 'name' | 'description' | ShippingMethodTranslationKeySpecifier)[]; -export type ShippingMethodTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodTypeKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'description' | 'type' | 'translation' | 'channelListings' | 'maximumOrderPrice' | 'minimumOrderPrice' | 'postalCodeRules' | 'excludedProducts' | 'minimumOrderWeight' | 'maximumOrderWeight' | 'maximumDeliveryDays' | 'minimumDeliveryDays' | 'taxClass' | ShippingMethodTypeKeySpecifier)[]; -export type ShippingMethodTypeFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction, - maximumOrderPrice?: FieldPolicy | FieldReadFunction, - minimumOrderPrice?: FieldPolicy | FieldReadFunction, - postalCodeRules?: FieldPolicy | FieldReadFunction, - excludedProducts?: FieldPolicy | FieldReadFunction, - minimumOrderWeight?: FieldPolicy | FieldReadFunction, - maximumOrderWeight?: FieldPolicy | FieldReadFunction, - maximumDeliveryDays?: FieldPolicy | FieldReadFunction, - minimumDeliveryDays?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction -}; -export type ShippingMethodsPerCountryKeySpecifier = ('countryCode' | 'shippingMethods' | ShippingMethodsPerCountryKeySpecifier)[]; -export type ShippingMethodsPerCountryFieldPolicy = { - countryCode?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceBulkDeleteKeySpecifier = ('count' | 'shippingErrors' | 'errors' | ShippingPriceBulkDeleteKeySpecifier)[]; -export type ShippingPriceBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceCreateKeySpecifier = ('shippingZone' | 'shippingMethod' | 'shippingErrors' | 'errors' | ShippingPriceCreateKeySpecifier)[]; -export type ShippingPriceCreateFieldPolicy = { - shippingZone?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | ShippingPriceCreatedKeySpecifier)[]; -export type ShippingPriceCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceDeleteKeySpecifier = ('shippingMethod' | 'shippingZone' | 'shippingErrors' | 'errors' | ShippingPriceDeleteKeySpecifier)[]; -export type ShippingPriceDeleteFieldPolicy = { - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | ShippingPriceDeletedKeySpecifier)[]; -export type ShippingPriceDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceExcludeProductsKeySpecifier = ('shippingMethod' | 'shippingErrors' | 'errors' | ShippingPriceExcludeProductsKeySpecifier)[]; -export type ShippingPriceExcludeProductsFieldPolicy = { - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceRemoveProductFromExcludeKeySpecifier = ('shippingMethod' | 'shippingErrors' | 'errors' | ShippingPriceRemoveProductFromExcludeKeySpecifier)[]; -export type ShippingPriceRemoveProductFromExcludeFieldPolicy = { - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceTranslateKeySpecifier = ('translationErrors' | 'errors' | 'shippingMethod' | ShippingPriceTranslateKeySpecifier)[]; -export type ShippingPriceTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceUpdateKeySpecifier = ('shippingZone' | 'shippingMethod' | 'shippingErrors' | 'errors' | ShippingPriceUpdateKeySpecifier)[]; -export type ShippingPriceUpdateFieldPolicy = { - shippingZone?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingPriceUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingMethod' | 'shippingZone' | ShippingPriceUpdatedKeySpecifier)[]; -export type ShippingPriceUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - shippingMethod?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'default' | 'priceRange' | 'countries' | 'shippingMethods' | 'warehouses' | 'channels' | 'description' | ShippingZoneKeySpecifier)[]; -export type ShippingZoneFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - default?: FieldPolicy | FieldReadFunction, - priceRange?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction, - shippingMethods?: FieldPolicy | FieldReadFunction, - warehouses?: FieldPolicy | FieldReadFunction, - channels?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneBulkDeleteKeySpecifier = ('count' | 'shippingErrors' | 'errors' | ShippingZoneBulkDeleteKeySpecifier)[]; -export type ShippingZoneBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | ShippingZoneCountableConnectionKeySpecifier)[]; -export type ShippingZoneCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneCountableEdgeKeySpecifier = ('node' | 'cursor' | ShippingZoneCountableEdgeKeySpecifier)[]; -export type ShippingZoneCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneCreateKeySpecifier = ('shippingErrors' | 'errors' | 'shippingZone' | ShippingZoneCreateKeySpecifier)[]; -export type ShippingZoneCreateFieldPolicy = { - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | ShippingZoneCreatedKeySpecifier)[]; -export type ShippingZoneCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneDeleteKeySpecifier = ('shippingErrors' | 'errors' | 'shippingZone' | ShippingZoneDeleteKeySpecifier)[]; -export type ShippingZoneDeleteFieldPolicy = { - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | ShippingZoneDeletedKeySpecifier)[]; -export type ShippingZoneDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | ShippingZoneMetadataUpdatedKeySpecifier)[]; -export type ShippingZoneMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneUpdateKeySpecifier = ('shippingErrors' | 'errors' | 'shippingZone' | ShippingZoneUpdateKeySpecifier)[]; -export type ShippingZoneUpdateFieldPolicy = { - shippingErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShippingZoneUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'shippingZone' | ShippingZoneUpdatedKeySpecifier)[]; -export type ShippingZoneUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - shippingZone?: FieldPolicy | FieldReadFunction -}; -export type ShopKeySpecifier = ('availablePaymentGateways' | 'availableExternalAuthentications' | 'availableShippingMethods' | 'channelCurrencies' | 'countries' | 'defaultCountry' | 'defaultMailSenderName' | 'defaultMailSenderAddress' | 'description' | 'domain' | 'languages' | 'name' | 'permissions' | 'phonePrefixes' | 'headerText' | 'fulfillmentAutoApprove' | 'fulfillmentAllowUnpaid' | 'trackInventoryByDefault' | 'defaultWeightUnit' | 'translation' | 'automaticFulfillmentDigitalProducts' | 'reserveStockDurationAnonymousUser' | 'reserveStockDurationAuthenticatedUser' | 'limitQuantityPerCheckout' | 'defaultDigitalMaxDownloads' | 'defaultDigitalUrlValidDays' | 'companyAddress' | 'customerSetPasswordUrl' | 'staffNotificationRecipients' | 'limits' | 'version' | 'schemaVersion' | 'includeTaxesInPrices' | 'displayGrossPrices' | 'chargeTaxesOnShipping' | ShopKeySpecifier)[]; -export type ShopFieldPolicy = { - availablePaymentGateways?: FieldPolicy | FieldReadFunction, - availableExternalAuthentications?: FieldPolicy | FieldReadFunction, - availableShippingMethods?: FieldPolicy | FieldReadFunction, - channelCurrencies?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction, - defaultCountry?: FieldPolicy | FieldReadFunction, - defaultMailSenderName?: FieldPolicy | FieldReadFunction, - defaultMailSenderAddress?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction, - domain?: FieldPolicy | FieldReadFunction, - languages?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, - phonePrefixes?: FieldPolicy | FieldReadFunction, - headerText?: FieldPolicy | FieldReadFunction, - fulfillmentAutoApprove?: FieldPolicy | FieldReadFunction, - fulfillmentAllowUnpaid?: FieldPolicy | FieldReadFunction, - trackInventoryByDefault?: FieldPolicy | FieldReadFunction, - defaultWeightUnit?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - automaticFulfillmentDigitalProducts?: FieldPolicy | FieldReadFunction, - reserveStockDurationAnonymousUser?: FieldPolicy | FieldReadFunction, - reserveStockDurationAuthenticatedUser?: FieldPolicy | FieldReadFunction, - limitQuantityPerCheckout?: FieldPolicy | FieldReadFunction, - defaultDigitalMaxDownloads?: FieldPolicy | FieldReadFunction, - defaultDigitalUrlValidDays?: FieldPolicy | FieldReadFunction, - companyAddress?: FieldPolicy | FieldReadFunction, - customerSetPasswordUrl?: FieldPolicy | FieldReadFunction, - staffNotificationRecipients?: FieldPolicy | FieldReadFunction, - limits?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - schemaVersion?: FieldPolicy | FieldReadFunction, - includeTaxesInPrices?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction, - chargeTaxesOnShipping?: FieldPolicy | FieldReadFunction -}; -export type ShopAddressUpdateKeySpecifier = ('shop' | 'shopErrors' | 'errors' | ShopAddressUpdateKeySpecifier)[]; -export type ShopAddressUpdateFieldPolicy = { - shop?: FieldPolicy | FieldReadFunction, - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShopDomainUpdateKeySpecifier = ('shop' | 'shopErrors' | 'errors' | ShopDomainUpdateKeySpecifier)[]; -export type ShopDomainUpdateFieldPolicy = { - shop?: FieldPolicy | FieldReadFunction, - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShopErrorKeySpecifier = ('field' | 'message' | 'code' | ShopErrorKeySpecifier)[]; -export type ShopErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type ShopFetchTaxRatesKeySpecifier = ('shop' | 'shopErrors' | 'errors' | ShopFetchTaxRatesKeySpecifier)[]; -export type ShopFetchTaxRatesFieldPolicy = { - shop?: FieldPolicy | FieldReadFunction, - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShopSettingsTranslateKeySpecifier = ('shop' | 'translationErrors' | 'errors' | ShopSettingsTranslateKeySpecifier)[]; -export type ShopSettingsTranslateFieldPolicy = { - shop?: FieldPolicy | FieldReadFunction, - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShopSettingsUpdateKeySpecifier = ('shop' | 'shopErrors' | 'errors' | ShopSettingsUpdateKeySpecifier)[]; -export type ShopSettingsUpdateFieldPolicy = { - shop?: FieldPolicy | FieldReadFunction, - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type ShopTranslationKeySpecifier = ('id' | 'language' | 'headerText' | 'description' | ShopTranslationKeySpecifier)[]; -export type ShopTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - headerText?: FieldPolicy | FieldReadFunction, - description?: FieldPolicy | FieldReadFunction -}; -export type StaffBulkDeleteKeySpecifier = ('count' | 'staffErrors' | 'errors' | StaffBulkDeleteKeySpecifier)[]; -export type StaffBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - staffErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type StaffCreateKeySpecifier = ('staffErrors' | 'errors' | 'user' | StaffCreateKeySpecifier)[]; -export type StaffCreateFieldPolicy = { - staffErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type StaffCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffCreatedKeySpecifier)[]; -export type StaffCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type StaffDeleteKeySpecifier = ('staffErrors' | 'errors' | 'user' | StaffDeleteKeySpecifier)[]; -export type StaffDeleteFieldPolicy = { - staffErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type StaffDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffDeletedKeySpecifier)[]; -export type StaffDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type StaffErrorKeySpecifier = ('field' | 'message' | 'code' | 'addressType' | 'permissions' | 'groups' | 'users' | StaffErrorKeySpecifier)[]; -export type StaffErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - addressType?: FieldPolicy | FieldReadFunction, - permissions?: FieldPolicy | FieldReadFunction, - groups?: FieldPolicy | FieldReadFunction, - users?: FieldPolicy | FieldReadFunction -}; -export type StaffNotificationRecipientKeySpecifier = ('id' | 'user' | 'email' | 'active' | StaffNotificationRecipientKeySpecifier)[]; -export type StaffNotificationRecipientFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - active?: FieldPolicy | FieldReadFunction -}; -export type StaffNotificationRecipientCreateKeySpecifier = ('shopErrors' | 'errors' | 'staffNotificationRecipient' | StaffNotificationRecipientCreateKeySpecifier)[]; -export type StaffNotificationRecipientCreateFieldPolicy = { - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - staffNotificationRecipient?: FieldPolicy | FieldReadFunction -}; -export type StaffNotificationRecipientDeleteKeySpecifier = ('shopErrors' | 'errors' | 'staffNotificationRecipient' | StaffNotificationRecipientDeleteKeySpecifier)[]; -export type StaffNotificationRecipientDeleteFieldPolicy = { - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - staffNotificationRecipient?: FieldPolicy | FieldReadFunction -}; -export type StaffNotificationRecipientUpdateKeySpecifier = ('shopErrors' | 'errors' | 'staffNotificationRecipient' | StaffNotificationRecipientUpdateKeySpecifier)[]; -export type StaffNotificationRecipientUpdateFieldPolicy = { - shopErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - staffNotificationRecipient?: FieldPolicy | FieldReadFunction -}; -export type StaffUpdateKeySpecifier = ('staffErrors' | 'errors' | 'user' | StaffUpdateKeySpecifier)[]; -export type StaffUpdateFieldPolicy = { - staffErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type StaffUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffUpdatedKeySpecifier)[]; -export type StaffUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - user?: FieldPolicy | FieldReadFunction -}; -export type StockKeySpecifier = ('id' | 'warehouse' | 'productVariant' | 'quantity' | 'quantityAllocated' | 'quantityReserved' | StockKeySpecifier)[]; -export type StockFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction, - productVariant?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - quantityAllocated?: FieldPolicy | FieldReadFunction, - quantityReserved?: FieldPolicy | FieldReadFunction -}; -export type StockCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | StockCountableConnectionKeySpecifier)[]; -export type StockCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type StockCountableEdgeKeySpecifier = ('node' | 'cursor' | StockCountableEdgeKeySpecifier)[]; -export type StockCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type StockErrorKeySpecifier = ('field' | 'message' | 'code' | StockErrorKeySpecifier)[]; -export type StockErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type StockSettingsKeySpecifier = ('allocationStrategy' | StockSettingsKeySpecifier)[]; -export type StockSettingsFieldPolicy = { - allocationStrategy?: FieldPolicy | FieldReadFunction -}; -export type SubscriptionKeySpecifier = ('event' | SubscriptionKeySpecifier)[]; -export type SubscriptionFieldPolicy = { - event?: FieldPolicy | FieldReadFunction -}; -export type TaxClassKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'countries' | TaxClassKeySpecifier)[]; -export type TaxClassFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction -}; -export type TaxClassCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | TaxClassCountableConnectionKeySpecifier)[]; -export type TaxClassCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type TaxClassCountableEdgeKeySpecifier = ('node' | 'cursor' | TaxClassCountableEdgeKeySpecifier)[]; -export type TaxClassCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type TaxClassCountryRateKeySpecifier = ('country' | 'rate' | 'taxClass' | TaxClassCountryRateKeySpecifier)[]; -export type TaxClassCountryRateFieldPolicy = { - country?: FieldPolicy | FieldReadFunction, - rate?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction -}; -export type TaxClassCreateKeySpecifier = ('errors' | 'taxClass' | TaxClassCreateKeySpecifier)[]; -export type TaxClassCreateFieldPolicy = { - errors?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction -}; -export type TaxClassCreateErrorKeySpecifier = ('field' | 'message' | 'code' | 'countryCodes' | TaxClassCreateErrorKeySpecifier)[]; -export type TaxClassCreateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - countryCodes?: FieldPolicy | FieldReadFunction -}; -export type TaxClassDeleteKeySpecifier = ('errors' | 'taxClass' | TaxClassDeleteKeySpecifier)[]; -export type TaxClassDeleteFieldPolicy = { - errors?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction -}; -export type TaxClassDeleteErrorKeySpecifier = ('field' | 'message' | 'code' | TaxClassDeleteErrorKeySpecifier)[]; -export type TaxClassDeleteErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TaxClassUpdateKeySpecifier = ('errors' | 'taxClass' | TaxClassUpdateKeySpecifier)[]; -export type TaxClassUpdateFieldPolicy = { - errors?: FieldPolicy | FieldReadFunction, - taxClass?: FieldPolicy | FieldReadFunction -}; -export type TaxClassUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | 'countryCodes' | TaxClassUpdateErrorKeySpecifier)[]; -export type TaxClassUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - countryCodes?: FieldPolicy | FieldReadFunction -}; -export type TaxConfigurationKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'channel' | 'chargeTaxes' | 'taxCalculationStrategy' | 'displayGrossPrices' | 'pricesEnteredWithTax' | 'countries' | TaxConfigurationKeySpecifier)[]; -export type TaxConfigurationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - chargeTaxes?: FieldPolicy | FieldReadFunction, - taxCalculationStrategy?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction, - pricesEnteredWithTax?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction -}; -export type TaxConfigurationCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | TaxConfigurationCountableConnectionKeySpecifier)[]; -export type TaxConfigurationCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type TaxConfigurationCountableEdgeKeySpecifier = ('node' | 'cursor' | TaxConfigurationCountableEdgeKeySpecifier)[]; -export type TaxConfigurationCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type TaxConfigurationPerCountryKeySpecifier = ('country' | 'chargeTaxes' | 'taxCalculationStrategy' | 'displayGrossPrices' | TaxConfigurationPerCountryKeySpecifier)[]; -export type TaxConfigurationPerCountryFieldPolicy = { - country?: FieldPolicy | FieldReadFunction, - chargeTaxes?: FieldPolicy | FieldReadFunction, - taxCalculationStrategy?: FieldPolicy | FieldReadFunction, - displayGrossPrices?: FieldPolicy | FieldReadFunction -}; -export type TaxConfigurationUpdateKeySpecifier = ('errors' | 'taxConfiguration' | TaxConfigurationUpdateKeySpecifier)[]; -export type TaxConfigurationUpdateFieldPolicy = { - errors?: FieldPolicy | FieldReadFunction, - taxConfiguration?: FieldPolicy | FieldReadFunction -}; -export type TaxConfigurationUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | 'countryCodes' | TaxConfigurationUpdateErrorKeySpecifier)[]; -export type TaxConfigurationUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - countryCodes?: FieldPolicy | FieldReadFunction -}; -export type TaxCountryConfigurationKeySpecifier = ('country' | 'taxClassCountryRates' | TaxCountryConfigurationKeySpecifier)[]; -export type TaxCountryConfigurationFieldPolicy = { - country?: FieldPolicy | FieldReadFunction, - taxClassCountryRates?: FieldPolicy | FieldReadFunction -}; -export type TaxCountryConfigurationDeleteKeySpecifier = ('taxCountryConfiguration' | 'errors' | TaxCountryConfigurationDeleteKeySpecifier)[]; -export type TaxCountryConfigurationDeleteFieldPolicy = { - taxCountryConfiguration?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TaxCountryConfigurationDeleteErrorKeySpecifier = ('field' | 'message' | 'code' | TaxCountryConfigurationDeleteErrorKeySpecifier)[]; -export type TaxCountryConfigurationDeleteErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TaxCountryConfigurationUpdateKeySpecifier = ('taxCountryConfiguration' | 'errors' | TaxCountryConfigurationUpdateKeySpecifier)[]; -export type TaxCountryConfigurationUpdateFieldPolicy = { - taxCountryConfiguration?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TaxCountryConfigurationUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | 'taxClassIds' | TaxCountryConfigurationUpdateErrorKeySpecifier)[]; -export type TaxCountryConfigurationUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - taxClassIds?: FieldPolicy | FieldReadFunction -}; -export type TaxExemptionManageKeySpecifier = ('taxableObject' | 'errors' | TaxExemptionManageKeySpecifier)[]; -export type TaxExemptionManageFieldPolicy = { - taxableObject?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TaxExemptionManageErrorKeySpecifier = ('field' | 'message' | 'code' | TaxExemptionManageErrorKeySpecifier)[]; -export type TaxExemptionManageErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TaxTypeKeySpecifier = ('description' | 'taxCode' | TaxTypeKeySpecifier)[]; -export type TaxTypeFieldPolicy = { - description?: FieldPolicy | FieldReadFunction, - taxCode?: FieldPolicy | FieldReadFunction -}; -export type TaxableObjectKeySpecifier = ('sourceObject' | 'pricesEnteredWithTax' | 'currency' | 'shippingPrice' | 'address' | 'discounts' | 'lines' | 'channel' | TaxableObjectKeySpecifier)[]; -export type TaxableObjectFieldPolicy = { - sourceObject?: FieldPolicy | FieldReadFunction, - pricesEnteredWithTax?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction, - shippingPrice?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction, - discounts?: FieldPolicy | FieldReadFunction, - lines?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction -}; -export type TaxableObjectDiscountKeySpecifier = ('name' | 'amount' | TaxableObjectDiscountKeySpecifier)[]; -export type TaxableObjectDiscountFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction -}; -export type TaxableObjectLineKeySpecifier = ('sourceLine' | 'quantity' | 'chargeTaxes' | 'productName' | 'variantName' | 'productSku' | 'unitPrice' | 'totalPrice' | TaxableObjectLineKeySpecifier)[]; -export type TaxableObjectLineFieldPolicy = { - sourceLine?: FieldPolicy | FieldReadFunction, - quantity?: FieldPolicy | FieldReadFunction, - chargeTaxes?: FieldPolicy | FieldReadFunction, - productName?: FieldPolicy | FieldReadFunction, - variantName?: FieldPolicy | FieldReadFunction, - productSku?: FieldPolicy | FieldReadFunction, - unitPrice?: FieldPolicy | FieldReadFunction, - totalPrice?: FieldPolicy | FieldReadFunction -}; -export type TaxedMoneyKeySpecifier = ('currency' | 'gross' | 'net' | 'tax' | TaxedMoneyKeySpecifier)[]; -export type TaxedMoneyFieldPolicy = { - currency?: FieldPolicy | FieldReadFunction, - gross?: FieldPolicy | FieldReadFunction, - net?: FieldPolicy | FieldReadFunction, - tax?: FieldPolicy | FieldReadFunction -}; -export type TaxedMoneyRangeKeySpecifier = ('start' | 'stop' | TaxedMoneyRangeKeySpecifier)[]; -export type TaxedMoneyRangeFieldPolicy = { - start?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction -}; -export type ThumbnailCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'id' | 'url' | 'objectId' | 'mediaUrl' | ThumbnailCreatedKeySpecifier)[]; -export type ThumbnailCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, - url?: FieldPolicy | FieldReadFunction, - objectId?: FieldPolicy | FieldReadFunction, - mediaUrl?: FieldPolicy | FieldReadFunction -}; -export type TimePeriodKeySpecifier = ('amount' | 'type' | TimePeriodKeySpecifier)[]; -export type TimePeriodFieldPolicy = { - amount?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction -}; -export type TransactionKeySpecifier = ('id' | 'created' | 'payment' | 'token' | 'kind' | 'isSuccess' | 'error' | 'gatewayResponse' | 'amount' | TransactionKeySpecifier)[]; -export type TransactionFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - created?: FieldPolicy | FieldReadFunction, - payment?: FieldPolicy | FieldReadFunction, - token?: FieldPolicy | FieldReadFunction, - kind?: FieldPolicy | FieldReadFunction, - isSuccess?: FieldPolicy | FieldReadFunction, - error?: FieldPolicy | FieldReadFunction, - gatewayResponse?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction -}; -export type TransactionActionKeySpecifier = ('actionType' | 'amount' | TransactionActionKeySpecifier)[]; -export type TransactionActionFieldPolicy = { - actionType?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction -}; -export type TransactionActionRequestKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'action' | TransactionActionRequestKeySpecifier)[]; -export type TransactionActionRequestFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - transaction?: FieldPolicy | FieldReadFunction, - action?: FieldPolicy | FieldReadFunction -}; -export type TransactionCancelationRequestedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'action' | TransactionCancelationRequestedKeySpecifier)[]; -export type TransactionCancelationRequestedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - transaction?: FieldPolicy | FieldReadFunction, - action?: FieldPolicy | FieldReadFunction -}; -export type TransactionChargeRequestedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'action' | TransactionChargeRequestedKeySpecifier)[]; -export type TransactionChargeRequestedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - transaction?: FieldPolicy | FieldReadFunction, - action?: FieldPolicy | FieldReadFunction -}; -export type TransactionCreateKeySpecifier = ('transaction' | 'errors' | TransactionCreateKeySpecifier)[]; -export type TransactionCreateFieldPolicy = { - transaction?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TransactionCreateErrorKeySpecifier = ('field' | 'message' | 'code' | TransactionCreateErrorKeySpecifier)[]; -export type TransactionCreateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TransactionEventKeySpecifier = ('id' | 'createdAt' | 'status' | 'reference' | 'pspReference' | 'name' | 'message' | 'externalUrl' | 'amount' | 'type' | 'createdBy' | TransactionEventKeySpecifier)[]; -export type TransactionEventFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - reference?: FieldPolicy | FieldReadFunction, - pspReference?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - externalUrl?: FieldPolicy | FieldReadFunction, - amount?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - createdBy?: FieldPolicy | FieldReadFunction -}; -export type TransactionEventReportKeySpecifier = ('alreadyProcessed' | 'transaction' | 'transactionEvent' | 'errors' | TransactionEventReportKeySpecifier)[]; -export type TransactionEventReportFieldPolicy = { - alreadyProcessed?: FieldPolicy | FieldReadFunction, - transaction?: FieldPolicy | FieldReadFunction, - transactionEvent?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TransactionEventReportErrorKeySpecifier = ('field' | 'message' | 'code' | TransactionEventReportErrorKeySpecifier)[]; -export type TransactionEventReportErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TransactionItemKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'createdAt' | 'modifiedAt' | 'actions' | 'authorizedAmount' | 'authorizePendingAmount' | 'refundedAmount' | 'refundPendingAmount' | 'voidedAmount' | 'canceledAmount' | 'cancelPendingAmount' | 'chargedAmount' | 'chargePendingAmount' | 'status' | 'type' | 'name' | 'message' | 'reference' | 'pspReference' | 'order' | 'events' | 'createdBy' | 'externalUrl' | TransactionItemKeySpecifier)[]; -export type TransactionItemFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - modifiedAt?: FieldPolicy | FieldReadFunction, - actions?: FieldPolicy | FieldReadFunction, - authorizedAmount?: FieldPolicy | FieldReadFunction, - authorizePendingAmount?: FieldPolicy | FieldReadFunction, - refundedAmount?: FieldPolicy | FieldReadFunction, - refundPendingAmount?: FieldPolicy | FieldReadFunction, - voidedAmount?: FieldPolicy | FieldReadFunction, - canceledAmount?: FieldPolicy | FieldReadFunction, - cancelPendingAmount?: FieldPolicy | FieldReadFunction, - chargedAmount?: FieldPolicy | FieldReadFunction, - chargePendingAmount?: FieldPolicy | FieldReadFunction, - status?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - reference?: FieldPolicy | FieldReadFunction, - pspReference?: FieldPolicy | FieldReadFunction, - order?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - createdBy?: FieldPolicy | FieldReadFunction, - externalUrl?: FieldPolicy | FieldReadFunction -}; -export type TransactionItemMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'transaction' | TransactionItemMetadataUpdatedKeySpecifier)[]; -export type TransactionItemMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - transaction?: FieldPolicy | FieldReadFunction -}; -export type TransactionRefundRequestedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'transaction' | 'action' | TransactionRefundRequestedKeySpecifier)[]; -export type TransactionRefundRequestedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - transaction?: FieldPolicy | FieldReadFunction, - action?: FieldPolicy | FieldReadFunction -}; -export type TransactionRequestActionKeySpecifier = ('transaction' | 'errors' | TransactionRequestActionKeySpecifier)[]; -export type TransactionRequestActionFieldPolicy = { - transaction?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TransactionRequestActionErrorKeySpecifier = ('field' | 'message' | 'code' | TransactionRequestActionErrorKeySpecifier)[]; -export type TransactionRequestActionErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TransactionUpdateKeySpecifier = ('transaction' | 'errors' | TransactionUpdateKeySpecifier)[]; -export type TransactionUpdateFieldPolicy = { - transaction?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type TransactionUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | TransactionUpdateErrorKeySpecifier)[]; -export type TransactionUpdateErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TranslatableItemConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | TranslatableItemConnectionKeySpecifier)[]; -export type TranslatableItemConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type TranslatableItemEdgeKeySpecifier = ('node' | 'cursor' | TranslatableItemEdgeKeySpecifier)[]; -export type TranslatableItemEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type TranslationCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'translation' | TranslationCreatedKeySpecifier)[]; -export type TranslationCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction -}; -export type TranslationErrorKeySpecifier = ('field' | 'message' | 'code' | TranslationErrorKeySpecifier)[]; -export type TranslationErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type TranslationUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'translation' | TranslationUpdatedKeySpecifier)[]; -export type TranslationUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction -}; -export type UpdateMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | UpdateMetadataKeySpecifier)[]; -export type UpdateMetadataFieldPolicy = { - metadataErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - item?: FieldPolicy | FieldReadFunction -}; -export type UpdatePrivateMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | UpdatePrivateMetadataKeySpecifier)[]; -export type UpdatePrivateMetadataFieldPolicy = { - metadataErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - item?: FieldPolicy | FieldReadFunction -}; -export type UploadErrorKeySpecifier = ('field' | 'message' | 'code' | UploadErrorKeySpecifier)[]; -export type UploadErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type UserKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'email' | 'firstName' | 'lastName' | 'isStaff' | 'isActive' | 'addresses' | 'checkout' | 'checkoutTokens' | 'checkoutIds' | 'checkouts' | 'giftCards' | 'note' | 'orders' | 'userPermissions' | 'permissionGroups' | 'editableGroups' | 'avatar' | 'events' | 'storedPaymentSources' | 'languageCode' | 'defaultShippingAddress' | 'defaultBillingAddress' | 'externalReference' | 'lastLogin' | 'dateJoined' | 'updatedAt' | UserKeySpecifier)[]; -export type UserFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - firstName?: FieldPolicy | FieldReadFunction, - lastName?: FieldPolicy | FieldReadFunction, - isStaff?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - addresses?: FieldPolicy | FieldReadFunction, - checkout?: FieldPolicy | FieldReadFunction, - checkoutTokens?: FieldPolicy | FieldReadFunction, - checkoutIds?: FieldPolicy | FieldReadFunction, - checkouts?: FieldPolicy | FieldReadFunction, - giftCards?: FieldPolicy | FieldReadFunction, - note?: FieldPolicy | FieldReadFunction, - orders?: FieldPolicy | FieldReadFunction, - userPermissions?: FieldPolicy | FieldReadFunction, - permissionGroups?: FieldPolicy | FieldReadFunction, - editableGroups?: FieldPolicy | FieldReadFunction, - avatar?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - storedPaymentSources?: FieldPolicy | FieldReadFunction, - languageCode?: FieldPolicy | FieldReadFunction, - defaultShippingAddress?: FieldPolicy | FieldReadFunction, - defaultBillingAddress?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction, - lastLogin?: FieldPolicy | FieldReadFunction, - dateJoined?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction -}; -export type UserAvatarDeleteKeySpecifier = ('user' | 'accountErrors' | 'errors' | UserAvatarDeleteKeySpecifier)[]; -export type UserAvatarDeleteFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type UserAvatarUpdateKeySpecifier = ('user' | 'accountErrors' | 'errors' | UserAvatarUpdateKeySpecifier)[]; -export type UserAvatarUpdateFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type UserBulkSetActiveKeySpecifier = ('count' | 'accountErrors' | 'errors' | UserBulkSetActiveKeySpecifier)[]; -export type UserBulkSetActiveFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type UserCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | UserCountableConnectionKeySpecifier)[]; -export type UserCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type UserCountableEdgeKeySpecifier = ('node' | 'cursor' | UserCountableEdgeKeySpecifier)[]; -export type UserCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type UserPermissionKeySpecifier = ('code' | 'name' | 'sourcePermissionGroups' | UserPermissionKeySpecifier)[]; -export type UserPermissionFieldPolicy = { - code?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - sourcePermissionGroups?: FieldPolicy | FieldReadFunction -}; -export type VATKeySpecifier = ('countryCode' | 'standardRate' | 'reducedRates' | VATKeySpecifier)[]; -export type VATFieldPolicy = { - countryCode?: FieldPolicy | FieldReadFunction, - standardRate?: FieldPolicy | FieldReadFunction, - reducedRates?: FieldPolicy | FieldReadFunction -}; -export type VariantMediaAssignKeySpecifier = ('productVariant' | 'media' | 'productErrors' | 'errors' | VariantMediaAssignKeySpecifier)[]; -export type VariantMediaAssignFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type VariantMediaUnassignKeySpecifier = ('productVariant' | 'media' | 'productErrors' | 'errors' | VariantMediaUnassignKeySpecifier)[]; -export type VariantMediaUnassignFieldPolicy = { - productVariant?: FieldPolicy | FieldReadFunction, - media?: FieldPolicy | FieldReadFunction, - productErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type VariantPricingInfoKeySpecifier = ('onSale' | 'discount' | 'discountLocalCurrency' | 'price' | 'priceUndiscounted' | 'priceLocalCurrency' | VariantPricingInfoKeySpecifier)[]; -export type VariantPricingInfoFieldPolicy = { - onSale?: FieldPolicy | FieldReadFunction, - discount?: FieldPolicy | FieldReadFunction, - discountLocalCurrency?: FieldPolicy | FieldReadFunction, - price?: FieldPolicy | FieldReadFunction, - priceUndiscounted?: FieldPolicy | FieldReadFunction, - priceLocalCurrency?: FieldPolicy | FieldReadFunction -}; -export type VerifyTokenKeySpecifier = ('user' | 'isValid' | 'payload' | 'accountErrors' | 'errors' | VerifyTokenKeySpecifier)[]; -export type VerifyTokenFieldPolicy = { - user?: FieldPolicy | FieldReadFunction, - isValid?: FieldPolicy | FieldReadFunction, - payload?: FieldPolicy | FieldReadFunction, - accountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type VoucherKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'code' | 'usageLimit' | 'used' | 'startDate' | 'endDate' | 'applyOncePerOrder' | 'applyOncePerCustomer' | 'onlyForStaff' | 'minCheckoutItemsQuantity' | 'categories' | 'collections' | 'products' | 'variants' | 'countries' | 'translation' | 'discountValueType' | 'discountValue' | 'currency' | 'minSpent' | 'type' | 'channelListings' | VoucherKeySpecifier)[]; -export type VoucherFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - usageLimit?: FieldPolicy | FieldReadFunction, - used?: FieldPolicy | FieldReadFunction, - startDate?: FieldPolicy | FieldReadFunction, - endDate?: FieldPolicy | FieldReadFunction, - applyOncePerOrder?: FieldPolicy | FieldReadFunction, - applyOncePerCustomer?: FieldPolicy | FieldReadFunction, - onlyForStaff?: FieldPolicy | FieldReadFunction, - minCheckoutItemsQuantity?: FieldPolicy | FieldReadFunction, - categories?: FieldPolicy | FieldReadFunction, - collections?: FieldPolicy | FieldReadFunction, - products?: FieldPolicy | FieldReadFunction, - variants?: FieldPolicy | FieldReadFunction, - countries?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - discountValueType?: FieldPolicy | FieldReadFunction, - discountValue?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction, - minSpent?: FieldPolicy | FieldReadFunction, - type?: FieldPolicy | FieldReadFunction, - channelListings?: FieldPolicy | FieldReadFunction -}; -export type VoucherAddCataloguesKeySpecifier = ('voucher' | 'discountErrors' | 'errors' | VoucherAddCataloguesKeySpecifier)[]; -export type VoucherAddCataloguesFieldPolicy = { - voucher?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type VoucherBulkDeleteKeySpecifier = ('count' | 'discountErrors' | 'errors' | VoucherBulkDeleteKeySpecifier)[]; -export type VoucherBulkDeleteFieldPolicy = { - count?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type VoucherChannelListingKeySpecifier = ('id' | 'channel' | 'discountValue' | 'currency' | 'minSpent' | VoucherChannelListingKeySpecifier)[]; -export type VoucherChannelListingFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - channel?: FieldPolicy | FieldReadFunction, - discountValue?: FieldPolicy | FieldReadFunction, - currency?: FieldPolicy | FieldReadFunction, - minSpent?: FieldPolicy | FieldReadFunction -}; -export type VoucherChannelListingUpdateKeySpecifier = ('voucher' | 'discountErrors' | 'errors' | VoucherChannelListingUpdateKeySpecifier)[]; -export type VoucherChannelListingUpdateFieldPolicy = { - voucher?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type VoucherCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | VoucherCountableConnectionKeySpecifier)[]; -export type VoucherCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type VoucherCountableEdgeKeySpecifier = ('node' | 'cursor' | VoucherCountableEdgeKeySpecifier)[]; -export type VoucherCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type VoucherCreateKeySpecifier = ('discountErrors' | 'errors' | 'voucher' | VoucherCreateKeySpecifier)[]; -export type VoucherCreateFieldPolicy = { - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type VoucherCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'voucher' | VoucherCreatedKeySpecifier)[]; -export type VoucherCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type VoucherDeleteKeySpecifier = ('discountErrors' | 'errors' | 'voucher' | VoucherDeleteKeySpecifier)[]; -export type VoucherDeleteFieldPolicy = { - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type VoucherDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'voucher' | VoucherDeletedKeySpecifier)[]; -export type VoucherDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type VoucherMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'voucher' | VoucherMetadataUpdatedKeySpecifier)[]; -export type VoucherMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type VoucherRemoveCataloguesKeySpecifier = ('voucher' | 'discountErrors' | 'errors' | VoucherRemoveCataloguesKeySpecifier)[]; -export type VoucherRemoveCataloguesFieldPolicy = { - voucher?: FieldPolicy | FieldReadFunction, - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type VoucherTranslatableContentKeySpecifier = ('id' | 'name' | 'translation' | 'voucher' | VoucherTranslatableContentKeySpecifier)[]; -export type VoucherTranslatableContentFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - translation?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type VoucherTranslateKeySpecifier = ('translationErrors' | 'errors' | 'voucher' | VoucherTranslateKeySpecifier)[]; -export type VoucherTranslateFieldPolicy = { - translationErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type VoucherTranslationKeySpecifier = ('id' | 'language' | 'name' | VoucherTranslationKeySpecifier)[]; -export type VoucherTranslationFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - language?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction -}; -export type VoucherUpdateKeySpecifier = ('discountErrors' | 'errors' | 'voucher' | VoucherUpdateKeySpecifier)[]; -export type VoucherUpdateFieldPolicy = { - discountErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type VoucherUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'voucher' | VoucherUpdatedKeySpecifier)[]; -export type VoucherUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - voucher?: FieldPolicy | FieldReadFunction -}; -export type WarehouseKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'slug' | 'email' | 'isPrivate' | 'address' | 'companyName' | 'clickAndCollectOption' | 'shippingZones' | 'externalReference' | WarehouseKeySpecifier)[]; -export type WarehouseFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - privateMetadata?: FieldPolicy | FieldReadFunction, - privateMetafield?: FieldPolicy | FieldReadFunction, - privateMetafields?: FieldPolicy | FieldReadFunction, - metadata?: FieldPolicy | FieldReadFunction, - metafield?: FieldPolicy | FieldReadFunction, - metafields?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - slug?: FieldPolicy | FieldReadFunction, - email?: FieldPolicy | FieldReadFunction, - isPrivate?: FieldPolicy | FieldReadFunction, - address?: FieldPolicy | FieldReadFunction, - companyName?: FieldPolicy | FieldReadFunction, - clickAndCollectOption?: FieldPolicy | FieldReadFunction, - shippingZones?: FieldPolicy | FieldReadFunction, - externalReference?: FieldPolicy | FieldReadFunction -}; -export type WarehouseCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | WarehouseCountableConnectionKeySpecifier)[]; -export type WarehouseCountableConnectionFieldPolicy = { - pageInfo?: FieldPolicy | FieldReadFunction, - edges?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; -export type WarehouseCountableEdgeKeySpecifier = ('node' | 'cursor' | WarehouseCountableEdgeKeySpecifier)[]; -export type WarehouseCountableEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction, - cursor?: FieldPolicy | FieldReadFunction -}; -export type WarehouseCreateKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseCreateKeySpecifier)[]; -export type WarehouseCreateFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WarehouseCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'warehouse' | WarehouseCreatedKeySpecifier)[]; -export type WarehouseCreatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WarehouseDeleteKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseDeleteKeySpecifier)[]; -export type WarehouseDeleteFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WarehouseDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'warehouse' | WarehouseDeletedKeySpecifier)[]; -export type WarehouseDeletedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WarehouseErrorKeySpecifier = ('field' | 'message' | 'code' | 'shippingZones' | WarehouseErrorKeySpecifier)[]; -export type WarehouseErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction, - shippingZones?: FieldPolicy | FieldReadFunction -}; -export type WarehouseMetadataUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'warehouse' | WarehouseMetadataUpdatedKeySpecifier)[]; -export type WarehouseMetadataUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WarehouseShippingZoneAssignKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseShippingZoneAssignKeySpecifier)[]; -export type WarehouseShippingZoneAssignFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WarehouseShippingZoneUnassignKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseShippingZoneUnassignKeySpecifier)[]; -export type WarehouseShippingZoneUnassignFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WarehouseUpdateKeySpecifier = ('warehouseErrors' | 'errors' | 'warehouse' | WarehouseUpdateKeySpecifier)[]; -export type WarehouseUpdateFieldPolicy = { - warehouseErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WarehouseUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'warehouse' | WarehouseUpdatedKeySpecifier)[]; -export type WarehouseUpdatedFieldPolicy = { - issuedAt?: FieldPolicy | FieldReadFunction, - version?: FieldPolicy | FieldReadFunction, - issuingPrincipal?: FieldPolicy | FieldReadFunction, - recipient?: FieldPolicy | FieldReadFunction, - warehouse?: FieldPolicy | FieldReadFunction -}; -export type WebhookKeySpecifier = ('id' | 'name' | 'events' | 'syncEvents' | 'asyncEvents' | 'app' | 'eventDeliveries' | 'targetUrl' | 'isActive' | 'secretKey' | 'subscriptionQuery' | 'customHeaders' | WebhookKeySpecifier)[]; -export type WebhookFieldPolicy = { - id?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - events?: FieldPolicy | FieldReadFunction, - syncEvents?: FieldPolicy | FieldReadFunction, - asyncEvents?: FieldPolicy | FieldReadFunction, - app?: FieldPolicy | FieldReadFunction, - eventDeliveries?: FieldPolicy | FieldReadFunction, - targetUrl?: FieldPolicy | FieldReadFunction, - isActive?: FieldPolicy | FieldReadFunction, - secretKey?: FieldPolicy | FieldReadFunction, - subscriptionQuery?: FieldPolicy | FieldReadFunction, - customHeaders?: FieldPolicy | FieldReadFunction -}; -export type WebhookCreateKeySpecifier = ('webhookErrors' | 'errors' | 'webhook' | WebhookCreateKeySpecifier)[]; -export type WebhookCreateFieldPolicy = { - webhookErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - webhook?: FieldPolicy | FieldReadFunction -}; -export type WebhookDeleteKeySpecifier = ('webhookErrors' | 'errors' | 'webhook' | WebhookDeleteKeySpecifier)[]; -export type WebhookDeleteFieldPolicy = { - webhookErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - webhook?: FieldPolicy | FieldReadFunction -}; -export type WebhookDryRunKeySpecifier = ('payload' | 'errors' | WebhookDryRunKeySpecifier)[]; -export type WebhookDryRunFieldPolicy = { - payload?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type WebhookDryRunErrorKeySpecifier = ('field' | 'message' | 'code' | WebhookDryRunErrorKeySpecifier)[]; -export type WebhookDryRunErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type WebhookErrorKeySpecifier = ('field' | 'message' | 'code' | WebhookErrorKeySpecifier)[]; -export type WebhookErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type WebhookEventKeySpecifier = ('name' | 'eventType' | WebhookEventKeySpecifier)[]; -export type WebhookEventFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - eventType?: FieldPolicy | FieldReadFunction -}; -export type WebhookEventAsyncKeySpecifier = ('name' | 'eventType' | WebhookEventAsyncKeySpecifier)[]; -export type WebhookEventAsyncFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - eventType?: FieldPolicy | FieldReadFunction -}; -export type WebhookEventSyncKeySpecifier = ('name' | 'eventType' | WebhookEventSyncKeySpecifier)[]; -export type WebhookEventSyncFieldPolicy = { - name?: FieldPolicy | FieldReadFunction, - eventType?: FieldPolicy | FieldReadFunction -}; -export type WebhookTriggerKeySpecifier = ('delivery' | 'errors' | WebhookTriggerKeySpecifier)[]; -export type WebhookTriggerFieldPolicy = { - delivery?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction -}; -export type WebhookTriggerErrorKeySpecifier = ('field' | 'message' | 'code' | WebhookTriggerErrorKeySpecifier)[]; -export type WebhookTriggerErrorFieldPolicy = { - field?: FieldPolicy | FieldReadFunction, - message?: FieldPolicy | FieldReadFunction, - code?: FieldPolicy | FieldReadFunction -}; -export type WebhookUpdateKeySpecifier = ('webhookErrors' | 'errors' | 'webhook' | WebhookUpdateKeySpecifier)[]; -export type WebhookUpdateFieldPolicy = { - webhookErrors?: FieldPolicy | FieldReadFunction, - errors?: FieldPolicy | FieldReadFunction, - webhook?: FieldPolicy | FieldReadFunction -}; -export type WeightKeySpecifier = ('unit' | 'value' | WeightKeySpecifier)[]; -export type WeightFieldPolicy = { - unit?: FieldPolicy | FieldReadFunction, - value?: FieldPolicy | FieldReadFunction -}; -export type _ServiceKeySpecifier = ('sdl' | _ServiceKeySpecifier)[]; -export type _ServiceFieldPolicy = { - sdl?: FieldPolicy | FieldReadFunction -}; -export type StrictTypedTypePolicies = { - AccountAddressCreate?: Omit & { - keyFields?: false | AccountAddressCreateKeySpecifier | (() => undefined | AccountAddressCreateKeySpecifier), - fields?: AccountAddressCreateFieldPolicy, - }, - AccountAddressDelete?: Omit & { - keyFields?: false | AccountAddressDeleteKeySpecifier | (() => undefined | AccountAddressDeleteKeySpecifier), - fields?: AccountAddressDeleteFieldPolicy, - }, - AccountAddressUpdate?: Omit & { - keyFields?: false | AccountAddressUpdateKeySpecifier | (() => undefined | AccountAddressUpdateKeySpecifier), - fields?: AccountAddressUpdateFieldPolicy, - }, - AccountDelete?: Omit & { - keyFields?: false | AccountDeleteKeySpecifier | (() => undefined | AccountDeleteKeySpecifier), - fields?: AccountDeleteFieldPolicy, - }, - AccountError?: Omit & { - keyFields?: false | AccountErrorKeySpecifier | (() => undefined | AccountErrorKeySpecifier), - fields?: AccountErrorFieldPolicy, - }, - AccountRegister?: Omit & { - keyFields?: false | AccountRegisterKeySpecifier | (() => undefined | AccountRegisterKeySpecifier), - fields?: AccountRegisterFieldPolicy, - }, - AccountRequestDeletion?: Omit & { - keyFields?: false | AccountRequestDeletionKeySpecifier | (() => undefined | AccountRequestDeletionKeySpecifier), - fields?: AccountRequestDeletionFieldPolicy, - }, - AccountSetDefaultAddress?: Omit & { - keyFields?: false | AccountSetDefaultAddressKeySpecifier | (() => undefined | AccountSetDefaultAddressKeySpecifier), - fields?: AccountSetDefaultAddressFieldPolicy, - }, - AccountUpdate?: Omit & { - keyFields?: false | AccountUpdateKeySpecifier | (() => undefined | AccountUpdateKeySpecifier), - fields?: AccountUpdateFieldPolicy, - }, - Address?: Omit & { - keyFields?: false | AddressKeySpecifier | (() => undefined | AddressKeySpecifier), - fields?: AddressFieldPolicy, - }, - AddressCreate?: Omit & { - keyFields?: false | AddressCreateKeySpecifier | (() => undefined | AddressCreateKeySpecifier), - fields?: AddressCreateFieldPolicy, - }, - AddressCreated?: Omit & { - keyFields?: false | AddressCreatedKeySpecifier | (() => undefined | AddressCreatedKeySpecifier), - fields?: AddressCreatedFieldPolicy, - }, - AddressDelete?: Omit & { - keyFields?: false | AddressDeleteKeySpecifier | (() => undefined | AddressDeleteKeySpecifier), - fields?: AddressDeleteFieldPolicy, - }, - AddressDeleted?: Omit & { - keyFields?: false | AddressDeletedKeySpecifier | (() => undefined | AddressDeletedKeySpecifier), - fields?: AddressDeletedFieldPolicy, - }, - AddressSetDefault?: Omit & { - keyFields?: false | AddressSetDefaultKeySpecifier | (() => undefined | AddressSetDefaultKeySpecifier), - fields?: AddressSetDefaultFieldPolicy, - }, - AddressUpdate?: Omit & { - keyFields?: false | AddressUpdateKeySpecifier | (() => undefined | AddressUpdateKeySpecifier), - fields?: AddressUpdateFieldPolicy, - }, - AddressUpdated?: Omit & { - keyFields?: false | AddressUpdatedKeySpecifier | (() => undefined | AddressUpdatedKeySpecifier), - fields?: AddressUpdatedFieldPolicy, - }, - AddressValidationData?: Omit & { - keyFields?: false | AddressValidationDataKeySpecifier | (() => undefined | AddressValidationDataKeySpecifier), - fields?: AddressValidationDataFieldPolicy, - }, - Allocation?: Omit & { - keyFields?: false | AllocationKeySpecifier | (() => undefined | AllocationKeySpecifier), - fields?: AllocationFieldPolicy, - }, - App?: Omit & { - keyFields?: false | AppKeySpecifier | (() => undefined | AppKeySpecifier), - fields?: AppFieldPolicy, - }, - AppActivate?: Omit & { - keyFields?: false | AppActivateKeySpecifier | (() => undefined | AppActivateKeySpecifier), - fields?: AppActivateFieldPolicy, - }, - AppCountableConnection?: Omit & { - keyFields?: false | AppCountableConnectionKeySpecifier | (() => undefined | AppCountableConnectionKeySpecifier), - fields?: AppCountableConnectionFieldPolicy, - }, - AppCountableEdge?: Omit & { - keyFields?: false | AppCountableEdgeKeySpecifier | (() => undefined | AppCountableEdgeKeySpecifier), - fields?: AppCountableEdgeFieldPolicy, - }, - AppCreate?: Omit & { - keyFields?: false | AppCreateKeySpecifier | (() => undefined | AppCreateKeySpecifier), - fields?: AppCreateFieldPolicy, - }, - AppDeactivate?: Omit & { - keyFields?: false | AppDeactivateKeySpecifier | (() => undefined | AppDeactivateKeySpecifier), - fields?: AppDeactivateFieldPolicy, - }, - AppDelete?: Omit & { - keyFields?: false | AppDeleteKeySpecifier | (() => undefined | AppDeleteKeySpecifier), - fields?: AppDeleteFieldPolicy, - }, - AppDeleteFailedInstallation?: Omit & { - keyFields?: false | AppDeleteFailedInstallationKeySpecifier | (() => undefined | AppDeleteFailedInstallationKeySpecifier), - fields?: AppDeleteFailedInstallationFieldPolicy, - }, - AppDeleted?: Omit & { - keyFields?: false | AppDeletedKeySpecifier | (() => undefined | AppDeletedKeySpecifier), - fields?: AppDeletedFieldPolicy, - }, - AppError?: Omit & { - keyFields?: false | AppErrorKeySpecifier | (() => undefined | AppErrorKeySpecifier), - fields?: AppErrorFieldPolicy, - }, - AppExtension?: Omit & { - keyFields?: false | AppExtensionKeySpecifier | (() => undefined | AppExtensionKeySpecifier), - fields?: AppExtensionFieldPolicy, - }, - AppExtensionCountableConnection?: Omit & { - keyFields?: false | AppExtensionCountableConnectionKeySpecifier | (() => undefined | AppExtensionCountableConnectionKeySpecifier), - fields?: AppExtensionCountableConnectionFieldPolicy, - }, - AppExtensionCountableEdge?: Omit & { - keyFields?: false | AppExtensionCountableEdgeKeySpecifier | (() => undefined | AppExtensionCountableEdgeKeySpecifier), - fields?: AppExtensionCountableEdgeFieldPolicy, - }, - AppFetchManifest?: Omit & { - keyFields?: false | AppFetchManifestKeySpecifier | (() => undefined | AppFetchManifestKeySpecifier), - fields?: AppFetchManifestFieldPolicy, - }, - AppInstall?: Omit & { - keyFields?: false | AppInstallKeySpecifier | (() => undefined | AppInstallKeySpecifier), - fields?: AppInstallFieldPolicy, - }, - AppInstallation?: Omit & { - keyFields?: false | AppInstallationKeySpecifier | (() => undefined | AppInstallationKeySpecifier), - fields?: AppInstallationFieldPolicy, - }, - AppInstalled?: Omit & { - keyFields?: false | AppInstalledKeySpecifier | (() => undefined | AppInstalledKeySpecifier), - fields?: AppInstalledFieldPolicy, - }, - AppManifestExtension?: Omit & { - keyFields?: false | AppManifestExtensionKeySpecifier | (() => undefined | AppManifestExtensionKeySpecifier), - fields?: AppManifestExtensionFieldPolicy, - }, - AppManifestWebhook?: Omit & { - keyFields?: false | AppManifestWebhookKeySpecifier | (() => undefined | AppManifestWebhookKeySpecifier), - fields?: AppManifestWebhookFieldPolicy, - }, - AppRetryInstall?: Omit & { - keyFields?: false | AppRetryInstallKeySpecifier | (() => undefined | AppRetryInstallKeySpecifier), - fields?: AppRetryInstallFieldPolicy, - }, - AppStatusChanged?: Omit & { - keyFields?: false | AppStatusChangedKeySpecifier | (() => undefined | AppStatusChangedKeySpecifier), - fields?: AppStatusChangedFieldPolicy, - }, - AppToken?: Omit & { - keyFields?: false | AppTokenKeySpecifier | (() => undefined | AppTokenKeySpecifier), - fields?: AppTokenFieldPolicy, - }, - AppTokenCreate?: Omit & { - keyFields?: false | AppTokenCreateKeySpecifier | (() => undefined | AppTokenCreateKeySpecifier), - fields?: AppTokenCreateFieldPolicy, - }, - AppTokenDelete?: Omit & { - keyFields?: false | AppTokenDeleteKeySpecifier | (() => undefined | AppTokenDeleteKeySpecifier), - fields?: AppTokenDeleteFieldPolicy, - }, - AppTokenVerify?: Omit & { - keyFields?: false | AppTokenVerifyKeySpecifier | (() => undefined | AppTokenVerifyKeySpecifier), - fields?: AppTokenVerifyFieldPolicy, - }, - AppUpdate?: Omit & { - keyFields?: false | AppUpdateKeySpecifier | (() => undefined | AppUpdateKeySpecifier), - fields?: AppUpdateFieldPolicy, - }, - AppUpdated?: Omit & { - keyFields?: false | AppUpdatedKeySpecifier | (() => undefined | AppUpdatedKeySpecifier), - fields?: AppUpdatedFieldPolicy, - }, - AssignNavigation?: Omit & { - keyFields?: false | AssignNavigationKeySpecifier | (() => undefined | AssignNavigationKeySpecifier), - fields?: AssignNavigationFieldPolicy, - }, - AssignedVariantAttribute?: Omit & { - keyFields?: false | AssignedVariantAttributeKeySpecifier | (() => undefined | AssignedVariantAttributeKeySpecifier), - fields?: AssignedVariantAttributeFieldPolicy, - }, - Attribute?: Omit & { - keyFields?: false | AttributeKeySpecifier | (() => undefined | AttributeKeySpecifier), - fields?: AttributeFieldPolicy, - }, - AttributeBulkDelete?: Omit & { - keyFields?: false | AttributeBulkDeleteKeySpecifier | (() => undefined | AttributeBulkDeleteKeySpecifier), - fields?: AttributeBulkDeleteFieldPolicy, - }, - AttributeCountableConnection?: Omit & { - keyFields?: false | AttributeCountableConnectionKeySpecifier | (() => undefined | AttributeCountableConnectionKeySpecifier), - fields?: AttributeCountableConnectionFieldPolicy, - }, - AttributeCountableEdge?: Omit & { - keyFields?: false | AttributeCountableEdgeKeySpecifier | (() => undefined | AttributeCountableEdgeKeySpecifier), - fields?: AttributeCountableEdgeFieldPolicy, - }, - AttributeCreate?: Omit & { - keyFields?: false | AttributeCreateKeySpecifier | (() => undefined | AttributeCreateKeySpecifier), - fields?: AttributeCreateFieldPolicy, - }, - AttributeCreated?: Omit & { - keyFields?: false | AttributeCreatedKeySpecifier | (() => undefined | AttributeCreatedKeySpecifier), - fields?: AttributeCreatedFieldPolicy, - }, - AttributeDelete?: Omit & { - keyFields?: false | AttributeDeleteKeySpecifier | (() => undefined | AttributeDeleteKeySpecifier), - fields?: AttributeDeleteFieldPolicy, - }, - AttributeDeleted?: Omit & { - keyFields?: false | AttributeDeletedKeySpecifier | (() => undefined | AttributeDeletedKeySpecifier), - fields?: AttributeDeletedFieldPolicy, - }, - AttributeError?: Omit & { - keyFields?: false | AttributeErrorKeySpecifier | (() => undefined | AttributeErrorKeySpecifier), - fields?: AttributeErrorFieldPolicy, - }, - AttributeReorderValues?: Omit & { - keyFields?: false | AttributeReorderValuesKeySpecifier | (() => undefined | AttributeReorderValuesKeySpecifier), - fields?: AttributeReorderValuesFieldPolicy, - }, - AttributeTranslatableContent?: Omit & { - keyFields?: false | AttributeTranslatableContentKeySpecifier | (() => undefined | AttributeTranslatableContentKeySpecifier), - fields?: AttributeTranslatableContentFieldPolicy, - }, - AttributeTranslate?: Omit & { - keyFields?: false | AttributeTranslateKeySpecifier | (() => undefined | AttributeTranslateKeySpecifier), - fields?: AttributeTranslateFieldPolicy, - }, - AttributeTranslation?: Omit & { - keyFields?: false | AttributeTranslationKeySpecifier | (() => undefined | AttributeTranslationKeySpecifier), - fields?: AttributeTranslationFieldPolicy, - }, - AttributeUpdate?: Omit & { - keyFields?: false | AttributeUpdateKeySpecifier | (() => undefined | AttributeUpdateKeySpecifier), - fields?: AttributeUpdateFieldPolicy, - }, - AttributeUpdated?: Omit & { - keyFields?: false | AttributeUpdatedKeySpecifier | (() => undefined | AttributeUpdatedKeySpecifier), - fields?: AttributeUpdatedFieldPolicy, - }, - AttributeValue?: Omit & { - keyFields?: false | AttributeValueKeySpecifier | (() => undefined | AttributeValueKeySpecifier), - fields?: AttributeValueFieldPolicy, - }, - AttributeValueBulkDelete?: Omit & { - keyFields?: false | AttributeValueBulkDeleteKeySpecifier | (() => undefined | AttributeValueBulkDeleteKeySpecifier), - fields?: AttributeValueBulkDeleteFieldPolicy, - }, - AttributeValueCountableConnection?: Omit & { - keyFields?: false | AttributeValueCountableConnectionKeySpecifier | (() => undefined | AttributeValueCountableConnectionKeySpecifier), - fields?: AttributeValueCountableConnectionFieldPolicy, - }, - AttributeValueCountableEdge?: Omit & { - keyFields?: false | AttributeValueCountableEdgeKeySpecifier | (() => undefined | AttributeValueCountableEdgeKeySpecifier), - fields?: AttributeValueCountableEdgeFieldPolicy, - }, - AttributeValueCreate?: Omit & { - keyFields?: false | AttributeValueCreateKeySpecifier | (() => undefined | AttributeValueCreateKeySpecifier), - fields?: AttributeValueCreateFieldPolicy, - }, - AttributeValueCreated?: Omit & { - keyFields?: false | AttributeValueCreatedKeySpecifier | (() => undefined | AttributeValueCreatedKeySpecifier), - fields?: AttributeValueCreatedFieldPolicy, - }, - AttributeValueDelete?: Omit & { - keyFields?: false | AttributeValueDeleteKeySpecifier | (() => undefined | AttributeValueDeleteKeySpecifier), - fields?: AttributeValueDeleteFieldPolicy, - }, - AttributeValueDeleted?: Omit & { - keyFields?: false | AttributeValueDeletedKeySpecifier | (() => undefined | AttributeValueDeletedKeySpecifier), - fields?: AttributeValueDeletedFieldPolicy, - }, - AttributeValueTranslatableContent?: Omit & { - keyFields?: false | AttributeValueTranslatableContentKeySpecifier | (() => undefined | AttributeValueTranslatableContentKeySpecifier), - fields?: AttributeValueTranslatableContentFieldPolicy, - }, - AttributeValueTranslate?: Omit & { - keyFields?: false | AttributeValueTranslateKeySpecifier | (() => undefined | AttributeValueTranslateKeySpecifier), - fields?: AttributeValueTranslateFieldPolicy, - }, - AttributeValueTranslation?: Omit & { - keyFields?: false | AttributeValueTranslationKeySpecifier | (() => undefined | AttributeValueTranslationKeySpecifier), - fields?: AttributeValueTranslationFieldPolicy, - }, - AttributeValueUpdate?: Omit & { - keyFields?: false | AttributeValueUpdateKeySpecifier | (() => undefined | AttributeValueUpdateKeySpecifier), - fields?: AttributeValueUpdateFieldPolicy, - }, - AttributeValueUpdated?: Omit & { - keyFields?: false | AttributeValueUpdatedKeySpecifier | (() => undefined | AttributeValueUpdatedKeySpecifier), - fields?: AttributeValueUpdatedFieldPolicy, - }, - BulkProductError?: Omit & { - keyFields?: false | BulkProductErrorKeySpecifier | (() => undefined | BulkProductErrorKeySpecifier), - fields?: BulkProductErrorFieldPolicy, - }, - BulkStockError?: Omit & { - keyFields?: false | BulkStockErrorKeySpecifier | (() => undefined | BulkStockErrorKeySpecifier), - fields?: BulkStockErrorFieldPolicy, - }, - CalculateTaxes?: Omit & { - keyFields?: false | CalculateTaxesKeySpecifier | (() => undefined | CalculateTaxesKeySpecifier), - fields?: CalculateTaxesFieldPolicy, - }, - Category?: Omit & { - keyFields?: false | CategoryKeySpecifier | (() => undefined | CategoryKeySpecifier), - fields?: CategoryFieldPolicy, - }, - CategoryBulkDelete?: Omit & { - keyFields?: false | CategoryBulkDeleteKeySpecifier | (() => undefined | CategoryBulkDeleteKeySpecifier), - fields?: CategoryBulkDeleteFieldPolicy, - }, - CategoryCountableConnection?: Omit & { - keyFields?: false | CategoryCountableConnectionKeySpecifier | (() => undefined | CategoryCountableConnectionKeySpecifier), - fields?: CategoryCountableConnectionFieldPolicy, - }, - CategoryCountableEdge?: Omit & { - keyFields?: false | CategoryCountableEdgeKeySpecifier | (() => undefined | CategoryCountableEdgeKeySpecifier), - fields?: CategoryCountableEdgeFieldPolicy, - }, - CategoryCreate?: Omit & { - keyFields?: false | CategoryCreateKeySpecifier | (() => undefined | CategoryCreateKeySpecifier), - fields?: CategoryCreateFieldPolicy, - }, - CategoryCreated?: Omit & { - keyFields?: false | CategoryCreatedKeySpecifier | (() => undefined | CategoryCreatedKeySpecifier), - fields?: CategoryCreatedFieldPolicy, - }, - CategoryDelete?: Omit & { - keyFields?: false | CategoryDeleteKeySpecifier | (() => undefined | CategoryDeleteKeySpecifier), - fields?: CategoryDeleteFieldPolicy, - }, - CategoryDeleted?: Omit & { - keyFields?: false | CategoryDeletedKeySpecifier | (() => undefined | CategoryDeletedKeySpecifier), - fields?: CategoryDeletedFieldPolicy, - }, - CategoryTranslatableContent?: Omit & { - keyFields?: false | CategoryTranslatableContentKeySpecifier | (() => undefined | CategoryTranslatableContentKeySpecifier), - fields?: CategoryTranslatableContentFieldPolicy, - }, - CategoryTranslate?: Omit & { - keyFields?: false | CategoryTranslateKeySpecifier | (() => undefined | CategoryTranslateKeySpecifier), - fields?: CategoryTranslateFieldPolicy, - }, - CategoryTranslation?: Omit & { - keyFields?: false | CategoryTranslationKeySpecifier | (() => undefined | CategoryTranslationKeySpecifier), - fields?: CategoryTranslationFieldPolicy, - }, - CategoryUpdate?: Omit & { - keyFields?: false | CategoryUpdateKeySpecifier | (() => undefined | CategoryUpdateKeySpecifier), - fields?: CategoryUpdateFieldPolicy, - }, - CategoryUpdated?: Omit & { - keyFields?: false | CategoryUpdatedKeySpecifier | (() => undefined | CategoryUpdatedKeySpecifier), - fields?: CategoryUpdatedFieldPolicy, - }, - Channel?: Omit & { - keyFields?: false | ChannelKeySpecifier | (() => undefined | ChannelKeySpecifier), - fields?: ChannelFieldPolicy, - }, - ChannelActivate?: Omit & { - keyFields?: false | ChannelActivateKeySpecifier | (() => undefined | ChannelActivateKeySpecifier), - fields?: ChannelActivateFieldPolicy, - }, - ChannelCreate?: Omit & { - keyFields?: false | ChannelCreateKeySpecifier | (() => undefined | ChannelCreateKeySpecifier), - fields?: ChannelCreateFieldPolicy, - }, - ChannelCreated?: Omit & { - keyFields?: false | ChannelCreatedKeySpecifier | (() => undefined | ChannelCreatedKeySpecifier), - fields?: ChannelCreatedFieldPolicy, - }, - ChannelDeactivate?: Omit & { - keyFields?: false | ChannelDeactivateKeySpecifier | (() => undefined | ChannelDeactivateKeySpecifier), - fields?: ChannelDeactivateFieldPolicy, - }, - ChannelDelete?: Omit & { - keyFields?: false | ChannelDeleteKeySpecifier | (() => undefined | ChannelDeleteKeySpecifier), - fields?: ChannelDeleteFieldPolicy, - }, - ChannelDeleted?: Omit & { - keyFields?: false | ChannelDeletedKeySpecifier | (() => undefined | ChannelDeletedKeySpecifier), - fields?: ChannelDeletedFieldPolicy, - }, - ChannelError?: Omit & { - keyFields?: false | ChannelErrorKeySpecifier | (() => undefined | ChannelErrorKeySpecifier), - fields?: ChannelErrorFieldPolicy, - }, - ChannelReorderWarehouses?: Omit & { - keyFields?: false | ChannelReorderWarehousesKeySpecifier | (() => undefined | ChannelReorderWarehousesKeySpecifier), - fields?: ChannelReorderWarehousesFieldPolicy, - }, - ChannelStatusChanged?: Omit & { - keyFields?: false | ChannelStatusChangedKeySpecifier | (() => undefined | ChannelStatusChangedKeySpecifier), - fields?: ChannelStatusChangedFieldPolicy, - }, - ChannelUpdate?: Omit & { - keyFields?: false | ChannelUpdateKeySpecifier | (() => undefined | ChannelUpdateKeySpecifier), - fields?: ChannelUpdateFieldPolicy, - }, - ChannelUpdated?: Omit & { - keyFields?: false | ChannelUpdatedKeySpecifier | (() => undefined | ChannelUpdatedKeySpecifier), - fields?: ChannelUpdatedFieldPolicy, - }, - Checkout?: Omit & { - keyFields?: false | CheckoutKeySpecifier | (() => undefined | CheckoutKeySpecifier), - fields?: CheckoutFieldPolicy, - }, - CheckoutAddPromoCode?: Omit & { - keyFields?: false | CheckoutAddPromoCodeKeySpecifier | (() => undefined | CheckoutAddPromoCodeKeySpecifier), - fields?: CheckoutAddPromoCodeFieldPolicy, - }, - CheckoutBillingAddressUpdate?: Omit & { - keyFields?: false | CheckoutBillingAddressUpdateKeySpecifier | (() => undefined | CheckoutBillingAddressUpdateKeySpecifier), - fields?: CheckoutBillingAddressUpdateFieldPolicy, - }, - CheckoutComplete?: Omit & { - keyFields?: false | CheckoutCompleteKeySpecifier | (() => undefined | CheckoutCompleteKeySpecifier), - fields?: CheckoutCompleteFieldPolicy, - }, - CheckoutCountableConnection?: Omit & { - keyFields?: false | CheckoutCountableConnectionKeySpecifier | (() => undefined | CheckoutCountableConnectionKeySpecifier), - fields?: CheckoutCountableConnectionFieldPolicy, - }, - CheckoutCountableEdge?: Omit & { - keyFields?: false | CheckoutCountableEdgeKeySpecifier | (() => undefined | CheckoutCountableEdgeKeySpecifier), - fields?: CheckoutCountableEdgeFieldPolicy, - }, - CheckoutCreate?: Omit & { - keyFields?: false | CheckoutCreateKeySpecifier | (() => undefined | CheckoutCreateKeySpecifier), - fields?: CheckoutCreateFieldPolicy, - }, - CheckoutCreated?: Omit & { - keyFields?: false | CheckoutCreatedKeySpecifier | (() => undefined | CheckoutCreatedKeySpecifier), - fields?: CheckoutCreatedFieldPolicy, - }, - CheckoutCustomerAttach?: Omit & { - keyFields?: false | CheckoutCustomerAttachKeySpecifier | (() => undefined | CheckoutCustomerAttachKeySpecifier), - fields?: CheckoutCustomerAttachFieldPolicy, - }, - CheckoutCustomerDetach?: Omit & { - keyFields?: false | CheckoutCustomerDetachKeySpecifier | (() => undefined | CheckoutCustomerDetachKeySpecifier), - fields?: CheckoutCustomerDetachFieldPolicy, - }, - CheckoutDeliveryMethodUpdate?: Omit & { - keyFields?: false | CheckoutDeliveryMethodUpdateKeySpecifier | (() => undefined | CheckoutDeliveryMethodUpdateKeySpecifier), - fields?: CheckoutDeliveryMethodUpdateFieldPolicy, - }, - CheckoutEmailUpdate?: Omit & { - keyFields?: false | CheckoutEmailUpdateKeySpecifier | (() => undefined | CheckoutEmailUpdateKeySpecifier), - fields?: CheckoutEmailUpdateFieldPolicy, - }, - CheckoutError?: Omit & { - keyFields?: false | CheckoutErrorKeySpecifier | (() => undefined | CheckoutErrorKeySpecifier), - fields?: CheckoutErrorFieldPolicy, - }, - CheckoutFilterShippingMethods?: Omit & { - keyFields?: false | CheckoutFilterShippingMethodsKeySpecifier | (() => undefined | CheckoutFilterShippingMethodsKeySpecifier), - fields?: CheckoutFilterShippingMethodsFieldPolicy, - }, - CheckoutLanguageCodeUpdate?: Omit & { - keyFields?: false | CheckoutLanguageCodeUpdateKeySpecifier | (() => undefined | CheckoutLanguageCodeUpdateKeySpecifier), - fields?: CheckoutLanguageCodeUpdateFieldPolicy, - }, - CheckoutLine?: Omit & { - keyFields?: false | CheckoutLineKeySpecifier | (() => undefined | CheckoutLineKeySpecifier), - fields?: CheckoutLineFieldPolicy, - }, - CheckoutLineCountableConnection?: Omit & { - keyFields?: false | CheckoutLineCountableConnectionKeySpecifier | (() => undefined | CheckoutLineCountableConnectionKeySpecifier), - fields?: CheckoutLineCountableConnectionFieldPolicy, - }, - CheckoutLineCountableEdge?: Omit & { - keyFields?: false | CheckoutLineCountableEdgeKeySpecifier | (() => undefined | CheckoutLineCountableEdgeKeySpecifier), - fields?: CheckoutLineCountableEdgeFieldPolicy, - }, - CheckoutLineDelete?: Omit & { - keyFields?: false | CheckoutLineDeleteKeySpecifier | (() => undefined | CheckoutLineDeleteKeySpecifier), - fields?: CheckoutLineDeleteFieldPolicy, - }, - CheckoutLinesAdd?: Omit & { - keyFields?: false | CheckoutLinesAddKeySpecifier | (() => undefined | CheckoutLinesAddKeySpecifier), - fields?: CheckoutLinesAddFieldPolicy, - }, - CheckoutLinesDelete?: Omit & { - keyFields?: false | CheckoutLinesDeleteKeySpecifier | (() => undefined | CheckoutLinesDeleteKeySpecifier), - fields?: CheckoutLinesDeleteFieldPolicy, - }, - CheckoutLinesUpdate?: Omit & { - keyFields?: false | CheckoutLinesUpdateKeySpecifier | (() => undefined | CheckoutLinesUpdateKeySpecifier), - fields?: CheckoutLinesUpdateFieldPolicy, - }, - CheckoutMetadataUpdated?: Omit & { - keyFields?: false | CheckoutMetadataUpdatedKeySpecifier | (() => undefined | CheckoutMetadataUpdatedKeySpecifier), - fields?: CheckoutMetadataUpdatedFieldPolicy, - }, - CheckoutPaymentCreate?: Omit & { - keyFields?: false | CheckoutPaymentCreateKeySpecifier | (() => undefined | CheckoutPaymentCreateKeySpecifier), - fields?: CheckoutPaymentCreateFieldPolicy, - }, - CheckoutRemovePromoCode?: Omit & { - keyFields?: false | CheckoutRemovePromoCodeKeySpecifier | (() => undefined | CheckoutRemovePromoCodeKeySpecifier), - fields?: CheckoutRemovePromoCodeFieldPolicy, - }, - CheckoutShippingAddressUpdate?: Omit & { - keyFields?: false | CheckoutShippingAddressUpdateKeySpecifier | (() => undefined | CheckoutShippingAddressUpdateKeySpecifier), - fields?: CheckoutShippingAddressUpdateFieldPolicy, - }, - CheckoutShippingMethodUpdate?: Omit & { - keyFields?: false | CheckoutShippingMethodUpdateKeySpecifier | (() => undefined | CheckoutShippingMethodUpdateKeySpecifier), - fields?: CheckoutShippingMethodUpdateFieldPolicy, - }, - CheckoutUpdated?: Omit & { - keyFields?: false | CheckoutUpdatedKeySpecifier | (() => undefined | CheckoutUpdatedKeySpecifier), - fields?: CheckoutUpdatedFieldPolicy, - }, - ChoiceValue?: Omit & { - keyFields?: false | ChoiceValueKeySpecifier | (() => undefined | ChoiceValueKeySpecifier), - fields?: ChoiceValueFieldPolicy, - }, - Collection?: Omit & { - keyFields?: false | CollectionKeySpecifier | (() => undefined | CollectionKeySpecifier), - fields?: CollectionFieldPolicy, - }, - CollectionAddProducts?: Omit & { - keyFields?: false | CollectionAddProductsKeySpecifier | (() => undefined | CollectionAddProductsKeySpecifier), - fields?: CollectionAddProductsFieldPolicy, - }, - CollectionBulkDelete?: Omit & { - keyFields?: false | CollectionBulkDeleteKeySpecifier | (() => undefined | CollectionBulkDeleteKeySpecifier), - fields?: CollectionBulkDeleteFieldPolicy, - }, - CollectionChannelListing?: Omit & { - keyFields?: false | CollectionChannelListingKeySpecifier | (() => undefined | CollectionChannelListingKeySpecifier), - fields?: CollectionChannelListingFieldPolicy, - }, - CollectionChannelListingError?: Omit & { - keyFields?: false | CollectionChannelListingErrorKeySpecifier | (() => undefined | CollectionChannelListingErrorKeySpecifier), - fields?: CollectionChannelListingErrorFieldPolicy, - }, - CollectionChannelListingUpdate?: Omit & { - keyFields?: false | CollectionChannelListingUpdateKeySpecifier | (() => undefined | CollectionChannelListingUpdateKeySpecifier), - fields?: CollectionChannelListingUpdateFieldPolicy, - }, - CollectionCountableConnection?: Omit & { - keyFields?: false | CollectionCountableConnectionKeySpecifier | (() => undefined | CollectionCountableConnectionKeySpecifier), - fields?: CollectionCountableConnectionFieldPolicy, - }, - CollectionCountableEdge?: Omit & { - keyFields?: false | CollectionCountableEdgeKeySpecifier | (() => undefined | CollectionCountableEdgeKeySpecifier), - fields?: CollectionCountableEdgeFieldPolicy, - }, - CollectionCreate?: Omit & { - keyFields?: false | CollectionCreateKeySpecifier | (() => undefined | CollectionCreateKeySpecifier), - fields?: CollectionCreateFieldPolicy, - }, - CollectionCreated?: Omit & { - keyFields?: false | CollectionCreatedKeySpecifier | (() => undefined | CollectionCreatedKeySpecifier), - fields?: CollectionCreatedFieldPolicy, - }, - CollectionDelete?: Omit & { - keyFields?: false | CollectionDeleteKeySpecifier | (() => undefined | CollectionDeleteKeySpecifier), - fields?: CollectionDeleteFieldPolicy, - }, - CollectionDeleted?: Omit & { - keyFields?: false | CollectionDeletedKeySpecifier | (() => undefined | CollectionDeletedKeySpecifier), - fields?: CollectionDeletedFieldPolicy, - }, - CollectionError?: Omit & { - keyFields?: false | CollectionErrorKeySpecifier | (() => undefined | CollectionErrorKeySpecifier), - fields?: CollectionErrorFieldPolicy, - }, - CollectionMetadataUpdated?: Omit & { - keyFields?: false | CollectionMetadataUpdatedKeySpecifier | (() => undefined | CollectionMetadataUpdatedKeySpecifier), - fields?: CollectionMetadataUpdatedFieldPolicy, - }, - CollectionRemoveProducts?: Omit & { - keyFields?: false | CollectionRemoveProductsKeySpecifier | (() => undefined | CollectionRemoveProductsKeySpecifier), - fields?: CollectionRemoveProductsFieldPolicy, - }, - CollectionReorderProducts?: Omit & { - keyFields?: false | CollectionReorderProductsKeySpecifier | (() => undefined | CollectionReorderProductsKeySpecifier), - fields?: CollectionReorderProductsFieldPolicy, - }, - CollectionTranslatableContent?: Omit & { - keyFields?: false | CollectionTranslatableContentKeySpecifier | (() => undefined | CollectionTranslatableContentKeySpecifier), - fields?: CollectionTranslatableContentFieldPolicy, - }, - CollectionTranslate?: Omit & { - keyFields?: false | CollectionTranslateKeySpecifier | (() => undefined | CollectionTranslateKeySpecifier), - fields?: CollectionTranslateFieldPolicy, - }, - CollectionTranslation?: Omit & { - keyFields?: false | CollectionTranslationKeySpecifier | (() => undefined | CollectionTranslationKeySpecifier), - fields?: CollectionTranslationFieldPolicy, - }, - CollectionUpdate?: Omit & { - keyFields?: false | CollectionUpdateKeySpecifier | (() => undefined | CollectionUpdateKeySpecifier), - fields?: CollectionUpdateFieldPolicy, - }, - CollectionUpdated?: Omit & { - keyFields?: false | CollectionUpdatedKeySpecifier | (() => undefined | CollectionUpdatedKeySpecifier), - fields?: CollectionUpdatedFieldPolicy, - }, - ConfigurationItem?: Omit & { - keyFields?: false | ConfigurationItemKeySpecifier | (() => undefined | ConfigurationItemKeySpecifier), - fields?: ConfigurationItemFieldPolicy, - }, - ConfirmAccount?: Omit & { - keyFields?: false | ConfirmAccountKeySpecifier | (() => undefined | ConfirmAccountKeySpecifier), - fields?: ConfirmAccountFieldPolicy, - }, - ConfirmEmailChange?: Omit & { - keyFields?: false | ConfirmEmailChangeKeySpecifier | (() => undefined | ConfirmEmailChangeKeySpecifier), - fields?: ConfirmEmailChangeFieldPolicy, - }, - CountryDisplay?: Omit & { - keyFields?: false | CountryDisplayKeySpecifier | (() => undefined | CountryDisplayKeySpecifier), - fields?: CountryDisplayFieldPolicy, - }, - CreateToken?: Omit & { - keyFields?: false | CreateTokenKeySpecifier | (() => undefined | CreateTokenKeySpecifier), - fields?: CreateTokenFieldPolicy, - }, - CreditCard?: Omit & { - keyFields?: false | CreditCardKeySpecifier | (() => undefined | CreditCardKeySpecifier), - fields?: CreditCardFieldPolicy, - }, - CustomerBulkDelete?: Omit & { - keyFields?: false | CustomerBulkDeleteKeySpecifier | (() => undefined | CustomerBulkDeleteKeySpecifier), - fields?: CustomerBulkDeleteFieldPolicy, - }, - CustomerCreate?: Omit & { - keyFields?: false | CustomerCreateKeySpecifier | (() => undefined | CustomerCreateKeySpecifier), - fields?: CustomerCreateFieldPolicy, - }, - CustomerCreated?: Omit & { - keyFields?: false | CustomerCreatedKeySpecifier | (() => undefined | CustomerCreatedKeySpecifier), - fields?: CustomerCreatedFieldPolicy, - }, - CustomerDelete?: Omit & { - keyFields?: false | CustomerDeleteKeySpecifier | (() => undefined | CustomerDeleteKeySpecifier), - fields?: CustomerDeleteFieldPolicy, - }, - CustomerEvent?: Omit & { - keyFields?: false | CustomerEventKeySpecifier | (() => undefined | CustomerEventKeySpecifier), - fields?: CustomerEventFieldPolicy, - }, - CustomerMetadataUpdated?: Omit & { - keyFields?: false | CustomerMetadataUpdatedKeySpecifier | (() => undefined | CustomerMetadataUpdatedKeySpecifier), - fields?: CustomerMetadataUpdatedFieldPolicy, - }, - CustomerUpdate?: Omit & { - keyFields?: false | CustomerUpdateKeySpecifier | (() => undefined | CustomerUpdateKeySpecifier), - fields?: CustomerUpdateFieldPolicy, - }, - CustomerUpdated?: Omit & { - keyFields?: false | CustomerUpdatedKeySpecifier | (() => undefined | CustomerUpdatedKeySpecifier), - fields?: CustomerUpdatedFieldPolicy, - }, - DeactivateAllUserTokens?: Omit & { - keyFields?: false | DeactivateAllUserTokensKeySpecifier | (() => undefined | DeactivateAllUserTokensKeySpecifier), - fields?: DeactivateAllUserTokensFieldPolicy, - }, - DeleteMetadata?: Omit & { - keyFields?: false | DeleteMetadataKeySpecifier | (() => undefined | DeleteMetadataKeySpecifier), - fields?: DeleteMetadataFieldPolicy, - }, - DeletePrivateMetadata?: Omit & { - keyFields?: false | DeletePrivateMetadataKeySpecifier | (() => undefined | DeletePrivateMetadataKeySpecifier), - fields?: DeletePrivateMetadataFieldPolicy, - }, - DigitalContent?: Omit & { - keyFields?: false | DigitalContentKeySpecifier | (() => undefined | DigitalContentKeySpecifier), - fields?: DigitalContentFieldPolicy, - }, - DigitalContentCountableConnection?: Omit & { - keyFields?: false | DigitalContentCountableConnectionKeySpecifier | (() => undefined | DigitalContentCountableConnectionKeySpecifier), - fields?: DigitalContentCountableConnectionFieldPolicy, - }, - DigitalContentCountableEdge?: Omit & { - keyFields?: false | DigitalContentCountableEdgeKeySpecifier | (() => undefined | DigitalContentCountableEdgeKeySpecifier), - fields?: DigitalContentCountableEdgeFieldPolicy, - }, - DigitalContentCreate?: Omit & { - keyFields?: false | DigitalContentCreateKeySpecifier | (() => undefined | DigitalContentCreateKeySpecifier), - fields?: DigitalContentCreateFieldPolicy, - }, - DigitalContentDelete?: Omit & { - keyFields?: false | DigitalContentDeleteKeySpecifier | (() => undefined | DigitalContentDeleteKeySpecifier), - fields?: DigitalContentDeleteFieldPolicy, - }, - DigitalContentUpdate?: Omit & { - keyFields?: false | DigitalContentUpdateKeySpecifier | (() => undefined | DigitalContentUpdateKeySpecifier), - fields?: DigitalContentUpdateFieldPolicy, - }, - DigitalContentUrl?: Omit & { - keyFields?: false | DigitalContentUrlKeySpecifier | (() => undefined | DigitalContentUrlKeySpecifier), - fields?: DigitalContentUrlFieldPolicy, - }, - DigitalContentUrlCreate?: Omit & { - keyFields?: false | DigitalContentUrlCreateKeySpecifier | (() => undefined | DigitalContentUrlCreateKeySpecifier), - fields?: DigitalContentUrlCreateFieldPolicy, - }, - DiscountError?: Omit & { - keyFields?: false | DiscountErrorKeySpecifier | (() => undefined | DiscountErrorKeySpecifier), - fields?: DiscountErrorFieldPolicy, - }, - Domain?: Omit & { - keyFields?: false | DomainKeySpecifier | (() => undefined | DomainKeySpecifier), - fields?: DomainFieldPolicy, - }, - DraftOrderBulkDelete?: Omit & { - keyFields?: false | DraftOrderBulkDeleteKeySpecifier | (() => undefined | DraftOrderBulkDeleteKeySpecifier), - fields?: DraftOrderBulkDeleteFieldPolicy, - }, - DraftOrderComplete?: Omit & { - keyFields?: false | DraftOrderCompleteKeySpecifier | (() => undefined | DraftOrderCompleteKeySpecifier), - fields?: DraftOrderCompleteFieldPolicy, - }, - DraftOrderCreate?: Omit & { - keyFields?: false | DraftOrderCreateKeySpecifier | (() => undefined | DraftOrderCreateKeySpecifier), - fields?: DraftOrderCreateFieldPolicy, - }, - DraftOrderCreated?: Omit & { - keyFields?: false | DraftOrderCreatedKeySpecifier | (() => undefined | DraftOrderCreatedKeySpecifier), - fields?: DraftOrderCreatedFieldPolicy, - }, - DraftOrderDelete?: Omit & { - keyFields?: false | DraftOrderDeleteKeySpecifier | (() => undefined | DraftOrderDeleteKeySpecifier), - fields?: DraftOrderDeleteFieldPolicy, - }, - DraftOrderDeleted?: Omit & { - keyFields?: false | DraftOrderDeletedKeySpecifier | (() => undefined | DraftOrderDeletedKeySpecifier), - fields?: DraftOrderDeletedFieldPolicy, - }, - DraftOrderLinesBulkDelete?: Omit & { - keyFields?: false | DraftOrderLinesBulkDeleteKeySpecifier | (() => undefined | DraftOrderLinesBulkDeleteKeySpecifier), - fields?: DraftOrderLinesBulkDeleteFieldPolicy, - }, - DraftOrderUpdate?: Omit & { - keyFields?: false | DraftOrderUpdateKeySpecifier | (() => undefined | DraftOrderUpdateKeySpecifier), - fields?: DraftOrderUpdateFieldPolicy, - }, - DraftOrderUpdated?: Omit & { - keyFields?: false | DraftOrderUpdatedKeySpecifier | (() => undefined | DraftOrderUpdatedKeySpecifier), - fields?: DraftOrderUpdatedFieldPolicy, - }, - Event?: Omit & { - keyFields?: false | EventKeySpecifier | (() => undefined | EventKeySpecifier), - fields?: EventFieldPolicy, - }, - EventDelivery?: Omit & { - keyFields?: false | EventDeliveryKeySpecifier | (() => undefined | EventDeliveryKeySpecifier), - fields?: EventDeliveryFieldPolicy, - }, - EventDeliveryAttempt?: Omit & { - keyFields?: false | EventDeliveryAttemptKeySpecifier | (() => undefined | EventDeliveryAttemptKeySpecifier), - fields?: EventDeliveryAttemptFieldPolicy, - }, - EventDeliveryAttemptCountableConnection?: Omit & { - keyFields?: false | EventDeliveryAttemptCountableConnectionKeySpecifier | (() => undefined | EventDeliveryAttemptCountableConnectionKeySpecifier), - fields?: EventDeliveryAttemptCountableConnectionFieldPolicy, - }, - EventDeliveryAttemptCountableEdge?: Omit & { - keyFields?: false | EventDeliveryAttemptCountableEdgeKeySpecifier | (() => undefined | EventDeliveryAttemptCountableEdgeKeySpecifier), - fields?: EventDeliveryAttemptCountableEdgeFieldPolicy, - }, - EventDeliveryCountableConnection?: Omit & { - keyFields?: false | EventDeliveryCountableConnectionKeySpecifier | (() => undefined | EventDeliveryCountableConnectionKeySpecifier), - fields?: EventDeliveryCountableConnectionFieldPolicy, - }, - EventDeliveryCountableEdge?: Omit & { - keyFields?: false | EventDeliveryCountableEdgeKeySpecifier | (() => undefined | EventDeliveryCountableEdgeKeySpecifier), - fields?: EventDeliveryCountableEdgeFieldPolicy, - }, - EventDeliveryRetry?: Omit & { - keyFields?: false | EventDeliveryRetryKeySpecifier | (() => undefined | EventDeliveryRetryKeySpecifier), - fields?: EventDeliveryRetryFieldPolicy, - }, - ExportError?: Omit & { - keyFields?: false | ExportErrorKeySpecifier | (() => undefined | ExportErrorKeySpecifier), - fields?: ExportErrorFieldPolicy, - }, - ExportEvent?: Omit & { - keyFields?: false | ExportEventKeySpecifier | (() => undefined | ExportEventKeySpecifier), - fields?: ExportEventFieldPolicy, - }, - ExportFile?: Omit & { - keyFields?: false | ExportFileKeySpecifier | (() => undefined | ExportFileKeySpecifier), - fields?: ExportFileFieldPolicy, - }, - ExportFileCountableConnection?: Omit & { - keyFields?: false | ExportFileCountableConnectionKeySpecifier | (() => undefined | ExportFileCountableConnectionKeySpecifier), - fields?: ExportFileCountableConnectionFieldPolicy, - }, - ExportFileCountableEdge?: Omit & { - keyFields?: false | ExportFileCountableEdgeKeySpecifier | (() => undefined | ExportFileCountableEdgeKeySpecifier), - fields?: ExportFileCountableEdgeFieldPolicy, - }, - ExportGiftCards?: Omit & { - keyFields?: false | ExportGiftCardsKeySpecifier | (() => undefined | ExportGiftCardsKeySpecifier), - fields?: ExportGiftCardsFieldPolicy, - }, - ExportProducts?: Omit & { - keyFields?: false | ExportProductsKeySpecifier | (() => undefined | ExportProductsKeySpecifier), - fields?: ExportProductsFieldPolicy, - }, - ExternalAuthentication?: Omit & { - keyFields?: false | ExternalAuthenticationKeySpecifier | (() => undefined | ExternalAuthenticationKeySpecifier), - fields?: ExternalAuthenticationFieldPolicy, - }, - ExternalAuthenticationUrl?: Omit & { - keyFields?: false | ExternalAuthenticationUrlKeySpecifier | (() => undefined | ExternalAuthenticationUrlKeySpecifier), - fields?: ExternalAuthenticationUrlFieldPolicy, - }, - ExternalLogout?: Omit & { - keyFields?: false | ExternalLogoutKeySpecifier | (() => undefined | ExternalLogoutKeySpecifier), - fields?: ExternalLogoutFieldPolicy, - }, - ExternalNotificationError?: Omit & { - keyFields?: false | ExternalNotificationErrorKeySpecifier | (() => undefined | ExternalNotificationErrorKeySpecifier), - fields?: ExternalNotificationErrorFieldPolicy, - }, - ExternalNotificationTrigger?: Omit & { - keyFields?: false | ExternalNotificationTriggerKeySpecifier | (() => undefined | ExternalNotificationTriggerKeySpecifier), - fields?: ExternalNotificationTriggerFieldPolicy, - }, - ExternalObtainAccessTokens?: Omit & { - keyFields?: false | ExternalObtainAccessTokensKeySpecifier | (() => undefined | ExternalObtainAccessTokensKeySpecifier), - fields?: ExternalObtainAccessTokensFieldPolicy, - }, - ExternalRefresh?: Omit & { - keyFields?: false | ExternalRefreshKeySpecifier | (() => undefined | ExternalRefreshKeySpecifier), - fields?: ExternalRefreshFieldPolicy, - }, - ExternalVerify?: Omit & { - keyFields?: false | ExternalVerifyKeySpecifier | (() => undefined | ExternalVerifyKeySpecifier), - fields?: ExternalVerifyFieldPolicy, - }, - File?: Omit & { - keyFields?: false | FileKeySpecifier | (() => undefined | FileKeySpecifier), - fields?: FileFieldPolicy, - }, - FileUpload?: Omit & { - keyFields?: false | FileUploadKeySpecifier | (() => undefined | FileUploadKeySpecifier), - fields?: FileUploadFieldPolicy, - }, - Fulfillment?: Omit & { - keyFields?: false | FulfillmentKeySpecifier | (() => undefined | FulfillmentKeySpecifier), - fields?: FulfillmentFieldPolicy, - }, - FulfillmentApprove?: Omit & { - keyFields?: false | FulfillmentApproveKeySpecifier | (() => undefined | FulfillmentApproveKeySpecifier), - fields?: FulfillmentApproveFieldPolicy, - }, - FulfillmentApproved?: Omit & { - keyFields?: false | FulfillmentApprovedKeySpecifier | (() => undefined | FulfillmentApprovedKeySpecifier), - fields?: FulfillmentApprovedFieldPolicy, - }, - FulfillmentCancel?: Omit & { - keyFields?: false | FulfillmentCancelKeySpecifier | (() => undefined | FulfillmentCancelKeySpecifier), - fields?: FulfillmentCancelFieldPolicy, - }, - FulfillmentCanceled?: Omit & { - keyFields?: false | FulfillmentCanceledKeySpecifier | (() => undefined | FulfillmentCanceledKeySpecifier), - fields?: FulfillmentCanceledFieldPolicy, - }, - FulfillmentCreated?: Omit & { - keyFields?: false | FulfillmentCreatedKeySpecifier | (() => undefined | FulfillmentCreatedKeySpecifier), - fields?: FulfillmentCreatedFieldPolicy, - }, - FulfillmentLine?: Omit & { - keyFields?: false | FulfillmentLineKeySpecifier | (() => undefined | FulfillmentLineKeySpecifier), - fields?: FulfillmentLineFieldPolicy, - }, - FulfillmentMetadataUpdated?: Omit & { - keyFields?: false | FulfillmentMetadataUpdatedKeySpecifier | (() => undefined | FulfillmentMetadataUpdatedKeySpecifier), - fields?: FulfillmentMetadataUpdatedFieldPolicy, - }, - FulfillmentRefundProducts?: Omit & { - keyFields?: false | FulfillmentRefundProductsKeySpecifier | (() => undefined | FulfillmentRefundProductsKeySpecifier), - fields?: FulfillmentRefundProductsFieldPolicy, - }, - FulfillmentReturnProducts?: Omit & { - keyFields?: false | FulfillmentReturnProductsKeySpecifier | (() => undefined | FulfillmentReturnProductsKeySpecifier), - fields?: FulfillmentReturnProductsFieldPolicy, - }, - FulfillmentUpdateTracking?: Omit & { - keyFields?: false | FulfillmentUpdateTrackingKeySpecifier | (() => undefined | FulfillmentUpdateTrackingKeySpecifier), - fields?: FulfillmentUpdateTrackingFieldPolicy, - }, - GatewayConfigLine?: Omit & { - keyFields?: false | GatewayConfigLineKeySpecifier | (() => undefined | GatewayConfigLineKeySpecifier), - fields?: GatewayConfigLineFieldPolicy, - }, - GiftCard?: Omit & { - keyFields?: false | GiftCardKeySpecifier | (() => undefined | GiftCardKeySpecifier), - fields?: GiftCardFieldPolicy, - }, - GiftCardActivate?: Omit & { - keyFields?: false | GiftCardActivateKeySpecifier | (() => undefined | GiftCardActivateKeySpecifier), - fields?: GiftCardActivateFieldPolicy, - }, - GiftCardAddNote?: Omit & { - keyFields?: false | GiftCardAddNoteKeySpecifier | (() => undefined | GiftCardAddNoteKeySpecifier), - fields?: GiftCardAddNoteFieldPolicy, - }, - GiftCardBulkActivate?: Omit & { - keyFields?: false | GiftCardBulkActivateKeySpecifier | (() => undefined | GiftCardBulkActivateKeySpecifier), - fields?: GiftCardBulkActivateFieldPolicy, - }, - GiftCardBulkCreate?: Omit & { - keyFields?: false | GiftCardBulkCreateKeySpecifier | (() => undefined | GiftCardBulkCreateKeySpecifier), - fields?: GiftCardBulkCreateFieldPolicy, - }, - GiftCardBulkDeactivate?: Omit & { - keyFields?: false | GiftCardBulkDeactivateKeySpecifier | (() => undefined | GiftCardBulkDeactivateKeySpecifier), - fields?: GiftCardBulkDeactivateFieldPolicy, - }, - GiftCardBulkDelete?: Omit & { - keyFields?: false | GiftCardBulkDeleteKeySpecifier | (() => undefined | GiftCardBulkDeleteKeySpecifier), - fields?: GiftCardBulkDeleteFieldPolicy, - }, - GiftCardCountableConnection?: Omit & { - keyFields?: false | GiftCardCountableConnectionKeySpecifier | (() => undefined | GiftCardCountableConnectionKeySpecifier), - fields?: GiftCardCountableConnectionFieldPolicy, - }, - GiftCardCountableEdge?: Omit & { - keyFields?: false | GiftCardCountableEdgeKeySpecifier | (() => undefined | GiftCardCountableEdgeKeySpecifier), - fields?: GiftCardCountableEdgeFieldPolicy, - }, - GiftCardCreate?: Omit & { - keyFields?: false | GiftCardCreateKeySpecifier | (() => undefined | GiftCardCreateKeySpecifier), - fields?: GiftCardCreateFieldPolicy, - }, - GiftCardCreated?: Omit & { - keyFields?: false | GiftCardCreatedKeySpecifier | (() => undefined | GiftCardCreatedKeySpecifier), - fields?: GiftCardCreatedFieldPolicy, - }, - GiftCardDeactivate?: Omit & { - keyFields?: false | GiftCardDeactivateKeySpecifier | (() => undefined | GiftCardDeactivateKeySpecifier), - fields?: GiftCardDeactivateFieldPolicy, - }, - GiftCardDelete?: Omit & { - keyFields?: false | GiftCardDeleteKeySpecifier | (() => undefined | GiftCardDeleteKeySpecifier), - fields?: GiftCardDeleteFieldPolicy, - }, - GiftCardDeleted?: Omit & { - keyFields?: false | GiftCardDeletedKeySpecifier | (() => undefined | GiftCardDeletedKeySpecifier), - fields?: GiftCardDeletedFieldPolicy, - }, - GiftCardError?: Omit & { - keyFields?: false | GiftCardErrorKeySpecifier | (() => undefined | GiftCardErrorKeySpecifier), - fields?: GiftCardErrorFieldPolicy, - }, - GiftCardEvent?: Omit & { - keyFields?: false | GiftCardEventKeySpecifier | (() => undefined | GiftCardEventKeySpecifier), - fields?: GiftCardEventFieldPolicy, - }, - GiftCardEventBalance?: Omit & { - keyFields?: false | GiftCardEventBalanceKeySpecifier | (() => undefined | GiftCardEventBalanceKeySpecifier), - fields?: GiftCardEventBalanceFieldPolicy, - }, - GiftCardMetadataUpdated?: Omit & { - keyFields?: false | GiftCardMetadataUpdatedKeySpecifier | (() => undefined | GiftCardMetadataUpdatedKeySpecifier), - fields?: GiftCardMetadataUpdatedFieldPolicy, - }, - GiftCardResend?: Omit & { - keyFields?: false | GiftCardResendKeySpecifier | (() => undefined | GiftCardResendKeySpecifier), - fields?: GiftCardResendFieldPolicy, - }, - GiftCardSettings?: Omit & { - keyFields?: false | GiftCardSettingsKeySpecifier | (() => undefined | GiftCardSettingsKeySpecifier), - fields?: GiftCardSettingsFieldPolicy, - }, - GiftCardSettingsError?: Omit & { - keyFields?: false | GiftCardSettingsErrorKeySpecifier | (() => undefined | GiftCardSettingsErrorKeySpecifier), - fields?: GiftCardSettingsErrorFieldPolicy, - }, - GiftCardSettingsUpdate?: Omit & { - keyFields?: false | GiftCardSettingsUpdateKeySpecifier | (() => undefined | GiftCardSettingsUpdateKeySpecifier), - fields?: GiftCardSettingsUpdateFieldPolicy, - }, - GiftCardStatusChanged?: Omit & { - keyFields?: false | GiftCardStatusChangedKeySpecifier | (() => undefined | GiftCardStatusChangedKeySpecifier), - fields?: GiftCardStatusChangedFieldPolicy, - }, - GiftCardTag?: Omit & { - keyFields?: false | GiftCardTagKeySpecifier | (() => undefined | GiftCardTagKeySpecifier), - fields?: GiftCardTagFieldPolicy, - }, - GiftCardTagCountableConnection?: Omit & { - keyFields?: false | GiftCardTagCountableConnectionKeySpecifier | (() => undefined | GiftCardTagCountableConnectionKeySpecifier), - fields?: GiftCardTagCountableConnectionFieldPolicy, - }, - GiftCardTagCountableEdge?: Omit & { - keyFields?: false | GiftCardTagCountableEdgeKeySpecifier | (() => undefined | GiftCardTagCountableEdgeKeySpecifier), - fields?: GiftCardTagCountableEdgeFieldPolicy, - }, - GiftCardUpdate?: Omit & { - keyFields?: false | GiftCardUpdateKeySpecifier | (() => undefined | GiftCardUpdateKeySpecifier), - fields?: GiftCardUpdateFieldPolicy, - }, - GiftCardUpdated?: Omit & { - keyFields?: false | GiftCardUpdatedKeySpecifier | (() => undefined | GiftCardUpdatedKeySpecifier), - fields?: GiftCardUpdatedFieldPolicy, - }, - Group?: Omit & { - keyFields?: false | GroupKeySpecifier | (() => undefined | GroupKeySpecifier), - fields?: GroupFieldPolicy, - }, - GroupCountableConnection?: Omit & { - keyFields?: false | GroupCountableConnectionKeySpecifier | (() => undefined | GroupCountableConnectionKeySpecifier), - fields?: GroupCountableConnectionFieldPolicy, - }, - GroupCountableEdge?: Omit & { - keyFields?: false | GroupCountableEdgeKeySpecifier | (() => undefined | GroupCountableEdgeKeySpecifier), - fields?: GroupCountableEdgeFieldPolicy, - }, - Image?: Omit & { - keyFields?: false | ImageKeySpecifier | (() => undefined | ImageKeySpecifier), - fields?: ImageFieldPolicy, - }, - Invoice?: Omit & { - keyFields?: false | InvoiceKeySpecifier | (() => undefined | InvoiceKeySpecifier), - fields?: InvoiceFieldPolicy, - }, - InvoiceCreate?: Omit & { - keyFields?: false | InvoiceCreateKeySpecifier | (() => undefined | InvoiceCreateKeySpecifier), - fields?: InvoiceCreateFieldPolicy, - }, - InvoiceDelete?: Omit & { - keyFields?: false | InvoiceDeleteKeySpecifier | (() => undefined | InvoiceDeleteKeySpecifier), - fields?: InvoiceDeleteFieldPolicy, - }, - InvoiceDeleted?: Omit & { - keyFields?: false | InvoiceDeletedKeySpecifier | (() => undefined | InvoiceDeletedKeySpecifier), - fields?: InvoiceDeletedFieldPolicy, - }, - InvoiceError?: Omit & { - keyFields?: false | InvoiceErrorKeySpecifier | (() => undefined | InvoiceErrorKeySpecifier), - fields?: InvoiceErrorFieldPolicy, - }, - InvoiceRequest?: Omit & { - keyFields?: false | InvoiceRequestKeySpecifier | (() => undefined | InvoiceRequestKeySpecifier), - fields?: InvoiceRequestFieldPolicy, - }, - InvoiceRequestDelete?: Omit & { - keyFields?: false | InvoiceRequestDeleteKeySpecifier | (() => undefined | InvoiceRequestDeleteKeySpecifier), - fields?: InvoiceRequestDeleteFieldPolicy, - }, - InvoiceRequested?: Omit & { - keyFields?: false | InvoiceRequestedKeySpecifier | (() => undefined | InvoiceRequestedKeySpecifier), - fields?: InvoiceRequestedFieldPolicy, - }, - InvoiceSendNotification?: Omit & { - keyFields?: false | InvoiceSendNotificationKeySpecifier | (() => undefined | InvoiceSendNotificationKeySpecifier), - fields?: InvoiceSendNotificationFieldPolicy, - }, - InvoiceSent?: Omit & { - keyFields?: false | InvoiceSentKeySpecifier | (() => undefined | InvoiceSentKeySpecifier), - fields?: InvoiceSentFieldPolicy, - }, - InvoiceUpdate?: Omit & { - keyFields?: false | InvoiceUpdateKeySpecifier | (() => undefined | InvoiceUpdateKeySpecifier), - fields?: InvoiceUpdateFieldPolicy, - }, - Job?: Omit & { - keyFields?: false | JobKeySpecifier | (() => undefined | JobKeySpecifier), - fields?: JobFieldPolicy, - }, - LanguageDisplay?: Omit & { - keyFields?: false | LanguageDisplayKeySpecifier | (() => undefined | LanguageDisplayKeySpecifier), - fields?: LanguageDisplayFieldPolicy, - }, - LimitInfo?: Omit & { - keyFields?: false | LimitInfoKeySpecifier | (() => undefined | LimitInfoKeySpecifier), - fields?: LimitInfoFieldPolicy, - }, - Limits?: Omit & { - keyFields?: false | LimitsKeySpecifier | (() => undefined | LimitsKeySpecifier), - fields?: LimitsFieldPolicy, - }, - Manifest?: Omit & { - keyFields?: false | ManifestKeySpecifier | (() => undefined | ManifestKeySpecifier), - fields?: ManifestFieldPolicy, - }, - Margin?: Omit & { - keyFields?: false | MarginKeySpecifier | (() => undefined | MarginKeySpecifier), - fields?: MarginFieldPolicy, - }, - Menu?: Omit & { - keyFields?: false | MenuKeySpecifier | (() => undefined | MenuKeySpecifier), - fields?: MenuFieldPolicy, - }, - MenuBulkDelete?: Omit & { - keyFields?: false | MenuBulkDeleteKeySpecifier | (() => undefined | MenuBulkDeleteKeySpecifier), - fields?: MenuBulkDeleteFieldPolicy, - }, - MenuCountableConnection?: Omit & { - keyFields?: false | MenuCountableConnectionKeySpecifier | (() => undefined | MenuCountableConnectionKeySpecifier), - fields?: MenuCountableConnectionFieldPolicy, - }, - MenuCountableEdge?: Omit & { - keyFields?: false | MenuCountableEdgeKeySpecifier | (() => undefined | MenuCountableEdgeKeySpecifier), - fields?: MenuCountableEdgeFieldPolicy, - }, - MenuCreate?: Omit & { - keyFields?: false | MenuCreateKeySpecifier | (() => undefined | MenuCreateKeySpecifier), - fields?: MenuCreateFieldPolicy, - }, - MenuCreated?: Omit & { - keyFields?: false | MenuCreatedKeySpecifier | (() => undefined | MenuCreatedKeySpecifier), - fields?: MenuCreatedFieldPolicy, - }, - MenuDelete?: Omit & { - keyFields?: false | MenuDeleteKeySpecifier | (() => undefined | MenuDeleteKeySpecifier), - fields?: MenuDeleteFieldPolicy, - }, - MenuDeleted?: Omit & { - keyFields?: false | MenuDeletedKeySpecifier | (() => undefined | MenuDeletedKeySpecifier), - fields?: MenuDeletedFieldPolicy, - }, - MenuError?: Omit & { - keyFields?: false | MenuErrorKeySpecifier | (() => undefined | MenuErrorKeySpecifier), - fields?: MenuErrorFieldPolicy, - }, - MenuItem?: Omit & { - keyFields?: false | MenuItemKeySpecifier | (() => undefined | MenuItemKeySpecifier), - fields?: MenuItemFieldPolicy, - }, - MenuItemBulkDelete?: Omit & { - keyFields?: false | MenuItemBulkDeleteKeySpecifier | (() => undefined | MenuItemBulkDeleteKeySpecifier), - fields?: MenuItemBulkDeleteFieldPolicy, - }, - MenuItemCountableConnection?: Omit & { - keyFields?: false | MenuItemCountableConnectionKeySpecifier | (() => undefined | MenuItemCountableConnectionKeySpecifier), - fields?: MenuItemCountableConnectionFieldPolicy, - }, - MenuItemCountableEdge?: Omit & { - keyFields?: false | MenuItemCountableEdgeKeySpecifier | (() => undefined | MenuItemCountableEdgeKeySpecifier), - fields?: MenuItemCountableEdgeFieldPolicy, - }, - MenuItemCreate?: Omit & { - keyFields?: false | MenuItemCreateKeySpecifier | (() => undefined | MenuItemCreateKeySpecifier), - fields?: MenuItemCreateFieldPolicy, - }, - MenuItemCreated?: Omit & { - keyFields?: false | MenuItemCreatedKeySpecifier | (() => undefined | MenuItemCreatedKeySpecifier), - fields?: MenuItemCreatedFieldPolicy, - }, - MenuItemDelete?: Omit & { - keyFields?: false | MenuItemDeleteKeySpecifier | (() => undefined | MenuItemDeleteKeySpecifier), - fields?: MenuItemDeleteFieldPolicy, - }, - MenuItemDeleted?: Omit & { - keyFields?: false | MenuItemDeletedKeySpecifier | (() => undefined | MenuItemDeletedKeySpecifier), - fields?: MenuItemDeletedFieldPolicy, - }, - MenuItemMove?: Omit & { - keyFields?: false | MenuItemMoveKeySpecifier | (() => undefined | MenuItemMoveKeySpecifier), - fields?: MenuItemMoveFieldPolicy, - }, - MenuItemTranslatableContent?: Omit & { - keyFields?: false | MenuItemTranslatableContentKeySpecifier | (() => undefined | MenuItemTranslatableContentKeySpecifier), - fields?: MenuItemTranslatableContentFieldPolicy, - }, - MenuItemTranslate?: Omit & { - keyFields?: false | MenuItemTranslateKeySpecifier | (() => undefined | MenuItemTranslateKeySpecifier), - fields?: MenuItemTranslateFieldPolicy, - }, - MenuItemTranslation?: Omit & { - keyFields?: false | MenuItemTranslationKeySpecifier | (() => undefined | MenuItemTranslationKeySpecifier), - fields?: MenuItemTranslationFieldPolicy, - }, - MenuItemUpdate?: Omit & { - keyFields?: false | MenuItemUpdateKeySpecifier | (() => undefined | MenuItemUpdateKeySpecifier), - fields?: MenuItemUpdateFieldPolicy, - }, - MenuItemUpdated?: Omit & { - keyFields?: false | MenuItemUpdatedKeySpecifier | (() => undefined | MenuItemUpdatedKeySpecifier), - fields?: MenuItemUpdatedFieldPolicy, - }, - MenuUpdate?: Omit & { - keyFields?: false | MenuUpdateKeySpecifier | (() => undefined | MenuUpdateKeySpecifier), - fields?: MenuUpdateFieldPolicy, - }, - MenuUpdated?: Omit & { - keyFields?: false | MenuUpdatedKeySpecifier | (() => undefined | MenuUpdatedKeySpecifier), - fields?: MenuUpdatedFieldPolicy, - }, - MetadataError?: Omit & { - keyFields?: false | MetadataErrorKeySpecifier | (() => undefined | MetadataErrorKeySpecifier), - fields?: MetadataErrorFieldPolicy, - }, - MetadataItem?: Omit & { - keyFields?: false | MetadataItemKeySpecifier | (() => undefined | MetadataItemKeySpecifier), - fields?: MetadataItemFieldPolicy, - }, - Money?: Omit & { - keyFields?: false | MoneyKeySpecifier | (() => undefined | MoneyKeySpecifier), - fields?: MoneyFieldPolicy, - }, - MoneyRange?: Omit & { - keyFields?: false | MoneyRangeKeySpecifier | (() => undefined | MoneyRangeKeySpecifier), - fields?: MoneyRangeFieldPolicy, - }, - Mutation?: Omit & { - keyFields?: false | MutationKeySpecifier | (() => undefined | MutationKeySpecifier), - fields?: MutationFieldPolicy, - }, - Node?: Omit & { - keyFields?: false | NodeKeySpecifier | (() => undefined | NodeKeySpecifier), - fields?: NodeFieldPolicy, - }, - ObjectWithMetadata?: Omit & { - keyFields?: false | ObjectWithMetadataKeySpecifier | (() => undefined | ObjectWithMetadataKeySpecifier), - fields?: ObjectWithMetadataFieldPolicy, - }, - Order?: Omit & { - keyFields?: false | OrderKeySpecifier | (() => undefined | OrderKeySpecifier), - fields?: OrderFieldPolicy, - }, - OrderAddNote?: Omit & { - keyFields?: false | OrderAddNoteKeySpecifier | (() => undefined | OrderAddNoteKeySpecifier), - fields?: OrderAddNoteFieldPolicy, - }, - OrderBulkCancel?: Omit & { - keyFields?: false | OrderBulkCancelKeySpecifier | (() => undefined | OrderBulkCancelKeySpecifier), - fields?: OrderBulkCancelFieldPolicy, - }, - OrderCancel?: Omit & { - keyFields?: false | OrderCancelKeySpecifier | (() => undefined | OrderCancelKeySpecifier), - fields?: OrderCancelFieldPolicy, - }, - OrderCancelled?: Omit & { - keyFields?: false | OrderCancelledKeySpecifier | (() => undefined | OrderCancelledKeySpecifier), - fields?: OrderCancelledFieldPolicy, - }, - OrderCapture?: Omit & { - keyFields?: false | OrderCaptureKeySpecifier | (() => undefined | OrderCaptureKeySpecifier), - fields?: OrderCaptureFieldPolicy, - }, - OrderConfirm?: Omit & { - keyFields?: false | OrderConfirmKeySpecifier | (() => undefined | OrderConfirmKeySpecifier), - fields?: OrderConfirmFieldPolicy, - }, - OrderConfirmed?: Omit & { - keyFields?: false | OrderConfirmedKeySpecifier | (() => undefined | OrderConfirmedKeySpecifier), - fields?: OrderConfirmedFieldPolicy, - }, - OrderCountableConnection?: Omit & { - keyFields?: false | OrderCountableConnectionKeySpecifier | (() => undefined | OrderCountableConnectionKeySpecifier), - fields?: OrderCountableConnectionFieldPolicy, - }, - OrderCountableEdge?: Omit & { - keyFields?: false | OrderCountableEdgeKeySpecifier | (() => undefined | OrderCountableEdgeKeySpecifier), - fields?: OrderCountableEdgeFieldPolicy, - }, - OrderCreateFromCheckout?: Omit & { - keyFields?: false | OrderCreateFromCheckoutKeySpecifier | (() => undefined | OrderCreateFromCheckoutKeySpecifier), - fields?: OrderCreateFromCheckoutFieldPolicy, - }, - OrderCreateFromCheckoutError?: Omit & { - keyFields?: false | OrderCreateFromCheckoutErrorKeySpecifier | (() => undefined | OrderCreateFromCheckoutErrorKeySpecifier), - fields?: OrderCreateFromCheckoutErrorFieldPolicy, - }, - OrderCreated?: Omit & { - keyFields?: false | OrderCreatedKeySpecifier | (() => undefined | OrderCreatedKeySpecifier), - fields?: OrderCreatedFieldPolicy, - }, - OrderDiscount?: Omit & { - keyFields?: false | OrderDiscountKeySpecifier | (() => undefined | OrderDiscountKeySpecifier), - fields?: OrderDiscountFieldPolicy, - }, - OrderDiscountAdd?: Omit & { - keyFields?: false | OrderDiscountAddKeySpecifier | (() => undefined | OrderDiscountAddKeySpecifier), - fields?: OrderDiscountAddFieldPolicy, - }, - OrderDiscountDelete?: Omit & { - keyFields?: false | OrderDiscountDeleteKeySpecifier | (() => undefined | OrderDiscountDeleteKeySpecifier), - fields?: OrderDiscountDeleteFieldPolicy, - }, - OrderDiscountUpdate?: Omit & { - keyFields?: false | OrderDiscountUpdateKeySpecifier | (() => undefined | OrderDiscountUpdateKeySpecifier), - fields?: OrderDiscountUpdateFieldPolicy, - }, - OrderError?: Omit & { - keyFields?: false | OrderErrorKeySpecifier | (() => undefined | OrderErrorKeySpecifier), - fields?: OrderErrorFieldPolicy, - }, - OrderEvent?: Omit & { - keyFields?: false | OrderEventKeySpecifier | (() => undefined | OrderEventKeySpecifier), - fields?: OrderEventFieldPolicy, - }, - OrderEventCountableConnection?: Omit & { - keyFields?: false | OrderEventCountableConnectionKeySpecifier | (() => undefined | OrderEventCountableConnectionKeySpecifier), - fields?: OrderEventCountableConnectionFieldPolicy, - }, - OrderEventCountableEdge?: Omit & { - keyFields?: false | OrderEventCountableEdgeKeySpecifier | (() => undefined | OrderEventCountableEdgeKeySpecifier), - fields?: OrderEventCountableEdgeFieldPolicy, - }, - OrderEventDiscountObject?: Omit & { - keyFields?: false | OrderEventDiscountObjectKeySpecifier | (() => undefined | OrderEventDiscountObjectKeySpecifier), - fields?: OrderEventDiscountObjectFieldPolicy, - }, - OrderEventOrderLineObject?: Omit & { - keyFields?: false | OrderEventOrderLineObjectKeySpecifier | (() => undefined | OrderEventOrderLineObjectKeySpecifier), - fields?: OrderEventOrderLineObjectFieldPolicy, - }, - OrderFilterShippingMethods?: Omit & { - keyFields?: false | OrderFilterShippingMethodsKeySpecifier | (() => undefined | OrderFilterShippingMethodsKeySpecifier), - fields?: OrderFilterShippingMethodsFieldPolicy, - }, - OrderFulfill?: Omit & { - keyFields?: false | OrderFulfillKeySpecifier | (() => undefined | OrderFulfillKeySpecifier), - fields?: OrderFulfillFieldPolicy, - }, - OrderFulfilled?: Omit & { - keyFields?: false | OrderFulfilledKeySpecifier | (() => undefined | OrderFulfilledKeySpecifier), - fields?: OrderFulfilledFieldPolicy, - }, - OrderFullyPaid?: Omit & { - keyFields?: false | OrderFullyPaidKeySpecifier | (() => undefined | OrderFullyPaidKeySpecifier), - fields?: OrderFullyPaidFieldPolicy, - }, - OrderGrantRefundCreate?: Omit & { - keyFields?: false | OrderGrantRefundCreateKeySpecifier | (() => undefined | OrderGrantRefundCreateKeySpecifier), - fields?: OrderGrantRefundCreateFieldPolicy, - }, - OrderGrantRefundCreateError?: Omit & { - keyFields?: false | OrderGrantRefundCreateErrorKeySpecifier | (() => undefined | OrderGrantRefundCreateErrorKeySpecifier), - fields?: OrderGrantRefundCreateErrorFieldPolicy, - }, - OrderGrantRefundUpdate?: Omit & { - keyFields?: false | OrderGrantRefundUpdateKeySpecifier | (() => undefined | OrderGrantRefundUpdateKeySpecifier), - fields?: OrderGrantRefundUpdateFieldPolicy, - }, - OrderGrantRefundUpdateError?: Omit & { - keyFields?: false | OrderGrantRefundUpdateErrorKeySpecifier | (() => undefined | OrderGrantRefundUpdateErrorKeySpecifier), - fields?: OrderGrantRefundUpdateErrorFieldPolicy, - }, - OrderGrantedRefund?: Omit & { - keyFields?: false | OrderGrantedRefundKeySpecifier | (() => undefined | OrderGrantedRefundKeySpecifier), - fields?: OrderGrantedRefundFieldPolicy, - }, - OrderLine?: Omit & { - keyFields?: false | OrderLineKeySpecifier | (() => undefined | OrderLineKeySpecifier), - fields?: OrderLineFieldPolicy, - }, - OrderLineDelete?: Omit & { - keyFields?: false | OrderLineDeleteKeySpecifier | (() => undefined | OrderLineDeleteKeySpecifier), - fields?: OrderLineDeleteFieldPolicy, - }, - OrderLineDiscountRemove?: Omit & { - keyFields?: false | OrderLineDiscountRemoveKeySpecifier | (() => undefined | OrderLineDiscountRemoveKeySpecifier), - fields?: OrderLineDiscountRemoveFieldPolicy, - }, - OrderLineDiscountUpdate?: Omit & { - keyFields?: false | OrderLineDiscountUpdateKeySpecifier | (() => undefined | OrderLineDiscountUpdateKeySpecifier), - fields?: OrderLineDiscountUpdateFieldPolicy, - }, - OrderLineUpdate?: Omit & { - keyFields?: false | OrderLineUpdateKeySpecifier | (() => undefined | OrderLineUpdateKeySpecifier), - fields?: OrderLineUpdateFieldPolicy, - }, - OrderLinesCreate?: Omit & { - keyFields?: false | OrderLinesCreateKeySpecifier | (() => undefined | OrderLinesCreateKeySpecifier), - fields?: OrderLinesCreateFieldPolicy, - }, - OrderMarkAsPaid?: Omit & { - keyFields?: false | OrderMarkAsPaidKeySpecifier | (() => undefined | OrderMarkAsPaidKeySpecifier), - fields?: OrderMarkAsPaidFieldPolicy, - }, - OrderMetadataUpdated?: Omit & { - keyFields?: false | OrderMetadataUpdatedKeySpecifier | (() => undefined | OrderMetadataUpdatedKeySpecifier), - fields?: OrderMetadataUpdatedFieldPolicy, - }, - OrderRefund?: Omit & { - keyFields?: false | OrderRefundKeySpecifier | (() => undefined | OrderRefundKeySpecifier), - fields?: OrderRefundFieldPolicy, - }, - OrderSettings?: Omit & { - keyFields?: false | OrderSettingsKeySpecifier | (() => undefined | OrderSettingsKeySpecifier), - fields?: OrderSettingsFieldPolicy, - }, - OrderSettingsError?: Omit & { - keyFields?: false | OrderSettingsErrorKeySpecifier | (() => undefined | OrderSettingsErrorKeySpecifier), - fields?: OrderSettingsErrorFieldPolicy, - }, - OrderSettingsUpdate?: Omit & { - keyFields?: false | OrderSettingsUpdateKeySpecifier | (() => undefined | OrderSettingsUpdateKeySpecifier), - fields?: OrderSettingsUpdateFieldPolicy, - }, - OrderUpdate?: Omit & { - keyFields?: false | OrderUpdateKeySpecifier | (() => undefined | OrderUpdateKeySpecifier), - fields?: OrderUpdateFieldPolicy, - }, - OrderUpdateShipping?: Omit & { - keyFields?: false | OrderUpdateShippingKeySpecifier | (() => undefined | OrderUpdateShippingKeySpecifier), - fields?: OrderUpdateShippingFieldPolicy, - }, - OrderUpdated?: Omit & { - keyFields?: false | OrderUpdatedKeySpecifier | (() => undefined | OrderUpdatedKeySpecifier), - fields?: OrderUpdatedFieldPolicy, - }, - OrderVoid?: Omit & { - keyFields?: false | OrderVoidKeySpecifier | (() => undefined | OrderVoidKeySpecifier), - fields?: OrderVoidFieldPolicy, - }, - Page?: Omit & { - keyFields?: false | PageKeySpecifier | (() => undefined | PageKeySpecifier), - fields?: PageFieldPolicy, - }, - PageAttributeAssign?: Omit & { - keyFields?: false | PageAttributeAssignKeySpecifier | (() => undefined | PageAttributeAssignKeySpecifier), - fields?: PageAttributeAssignFieldPolicy, - }, - PageAttributeUnassign?: Omit & { - keyFields?: false | PageAttributeUnassignKeySpecifier | (() => undefined | PageAttributeUnassignKeySpecifier), - fields?: PageAttributeUnassignFieldPolicy, - }, - PageBulkDelete?: Omit & { - keyFields?: false | PageBulkDeleteKeySpecifier | (() => undefined | PageBulkDeleteKeySpecifier), - fields?: PageBulkDeleteFieldPolicy, - }, - PageBulkPublish?: Omit & { - keyFields?: false | PageBulkPublishKeySpecifier | (() => undefined | PageBulkPublishKeySpecifier), - fields?: PageBulkPublishFieldPolicy, - }, - PageCountableConnection?: Omit & { - keyFields?: false | PageCountableConnectionKeySpecifier | (() => undefined | PageCountableConnectionKeySpecifier), - fields?: PageCountableConnectionFieldPolicy, - }, - PageCountableEdge?: Omit & { - keyFields?: false | PageCountableEdgeKeySpecifier | (() => undefined | PageCountableEdgeKeySpecifier), - fields?: PageCountableEdgeFieldPolicy, - }, - PageCreate?: Omit & { - keyFields?: false | PageCreateKeySpecifier | (() => undefined | PageCreateKeySpecifier), - fields?: PageCreateFieldPolicy, - }, - PageCreated?: Omit & { - keyFields?: false | PageCreatedKeySpecifier | (() => undefined | PageCreatedKeySpecifier), - fields?: PageCreatedFieldPolicy, - }, - PageDelete?: Omit & { - keyFields?: false | PageDeleteKeySpecifier | (() => undefined | PageDeleteKeySpecifier), - fields?: PageDeleteFieldPolicy, - }, - PageDeleted?: Omit & { - keyFields?: false | PageDeletedKeySpecifier | (() => undefined | PageDeletedKeySpecifier), - fields?: PageDeletedFieldPolicy, - }, - PageError?: Omit & { - keyFields?: false | PageErrorKeySpecifier | (() => undefined | PageErrorKeySpecifier), - fields?: PageErrorFieldPolicy, - }, - PageInfo?: Omit & { - keyFields?: false | PageInfoKeySpecifier | (() => undefined | PageInfoKeySpecifier), - fields?: PageInfoFieldPolicy, - }, - PageReorderAttributeValues?: Omit & { - keyFields?: false | PageReorderAttributeValuesKeySpecifier | (() => undefined | PageReorderAttributeValuesKeySpecifier), - fields?: PageReorderAttributeValuesFieldPolicy, - }, - PageTranslatableContent?: Omit & { - keyFields?: false | PageTranslatableContentKeySpecifier | (() => undefined | PageTranslatableContentKeySpecifier), - fields?: PageTranslatableContentFieldPolicy, - }, - PageTranslate?: Omit & { - keyFields?: false | PageTranslateKeySpecifier | (() => undefined | PageTranslateKeySpecifier), - fields?: PageTranslateFieldPolicy, - }, - PageTranslation?: Omit & { - keyFields?: false | PageTranslationKeySpecifier | (() => undefined | PageTranslationKeySpecifier), - fields?: PageTranslationFieldPolicy, - }, - PageType?: Omit & { - keyFields?: false | PageTypeKeySpecifier | (() => undefined | PageTypeKeySpecifier), - fields?: PageTypeFieldPolicy, - }, - PageTypeBulkDelete?: Omit & { - keyFields?: false | PageTypeBulkDeleteKeySpecifier | (() => undefined | PageTypeBulkDeleteKeySpecifier), - fields?: PageTypeBulkDeleteFieldPolicy, - }, - PageTypeCountableConnection?: Omit & { - keyFields?: false | PageTypeCountableConnectionKeySpecifier | (() => undefined | PageTypeCountableConnectionKeySpecifier), - fields?: PageTypeCountableConnectionFieldPolicy, - }, - PageTypeCountableEdge?: Omit & { - keyFields?: false | PageTypeCountableEdgeKeySpecifier | (() => undefined | PageTypeCountableEdgeKeySpecifier), - fields?: PageTypeCountableEdgeFieldPolicy, - }, - PageTypeCreate?: Omit & { - keyFields?: false | PageTypeCreateKeySpecifier | (() => undefined | PageTypeCreateKeySpecifier), - fields?: PageTypeCreateFieldPolicy, - }, - PageTypeCreated?: Omit & { - keyFields?: false | PageTypeCreatedKeySpecifier | (() => undefined | PageTypeCreatedKeySpecifier), - fields?: PageTypeCreatedFieldPolicy, - }, - PageTypeDelete?: Omit & { - keyFields?: false | PageTypeDeleteKeySpecifier | (() => undefined | PageTypeDeleteKeySpecifier), - fields?: PageTypeDeleteFieldPolicy, - }, - PageTypeDeleted?: Omit & { - keyFields?: false | PageTypeDeletedKeySpecifier | (() => undefined | PageTypeDeletedKeySpecifier), - fields?: PageTypeDeletedFieldPolicy, - }, - PageTypeReorderAttributes?: Omit & { - keyFields?: false | PageTypeReorderAttributesKeySpecifier | (() => undefined | PageTypeReorderAttributesKeySpecifier), - fields?: PageTypeReorderAttributesFieldPolicy, - }, - PageTypeUpdate?: Omit & { - keyFields?: false | PageTypeUpdateKeySpecifier | (() => undefined | PageTypeUpdateKeySpecifier), - fields?: PageTypeUpdateFieldPolicy, - }, - PageTypeUpdated?: Omit & { - keyFields?: false | PageTypeUpdatedKeySpecifier | (() => undefined | PageTypeUpdatedKeySpecifier), - fields?: PageTypeUpdatedFieldPolicy, - }, - PageUpdate?: Omit & { - keyFields?: false | PageUpdateKeySpecifier | (() => undefined | PageUpdateKeySpecifier), - fields?: PageUpdateFieldPolicy, - }, - PageUpdated?: Omit & { - keyFields?: false | PageUpdatedKeySpecifier | (() => undefined | PageUpdatedKeySpecifier), - fields?: PageUpdatedFieldPolicy, - }, - PasswordChange?: Omit & { - keyFields?: false | PasswordChangeKeySpecifier | (() => undefined | PasswordChangeKeySpecifier), - fields?: PasswordChangeFieldPolicy, - }, - Payment?: Omit & { - keyFields?: false | PaymentKeySpecifier | (() => undefined | PaymentKeySpecifier), - fields?: PaymentFieldPolicy, - }, - PaymentAuthorize?: Omit & { - keyFields?: false | PaymentAuthorizeKeySpecifier | (() => undefined | PaymentAuthorizeKeySpecifier), - fields?: PaymentAuthorizeFieldPolicy, - }, - PaymentCapture?: Omit & { - keyFields?: false | PaymentCaptureKeySpecifier | (() => undefined | PaymentCaptureKeySpecifier), - fields?: PaymentCaptureFieldPolicy, - }, - PaymentCaptureEvent?: Omit & { - keyFields?: false | PaymentCaptureEventKeySpecifier | (() => undefined | PaymentCaptureEventKeySpecifier), - fields?: PaymentCaptureEventFieldPolicy, - }, - PaymentCheckBalance?: Omit & { - keyFields?: false | PaymentCheckBalanceKeySpecifier | (() => undefined | PaymentCheckBalanceKeySpecifier), - fields?: PaymentCheckBalanceFieldPolicy, - }, - PaymentConfirmEvent?: Omit & { - keyFields?: false | PaymentConfirmEventKeySpecifier | (() => undefined | PaymentConfirmEventKeySpecifier), - fields?: PaymentConfirmEventFieldPolicy, - }, - PaymentCountableConnection?: Omit & { - keyFields?: false | PaymentCountableConnectionKeySpecifier | (() => undefined | PaymentCountableConnectionKeySpecifier), - fields?: PaymentCountableConnectionFieldPolicy, - }, - PaymentCountableEdge?: Omit & { - keyFields?: false | PaymentCountableEdgeKeySpecifier | (() => undefined | PaymentCountableEdgeKeySpecifier), - fields?: PaymentCountableEdgeFieldPolicy, - }, - PaymentError?: Omit & { - keyFields?: false | PaymentErrorKeySpecifier | (() => undefined | PaymentErrorKeySpecifier), - fields?: PaymentErrorFieldPolicy, - }, - PaymentGateway?: Omit & { - keyFields?: false | PaymentGatewayKeySpecifier | (() => undefined | PaymentGatewayKeySpecifier), - fields?: PaymentGatewayFieldPolicy, - }, - PaymentInitialize?: Omit & { - keyFields?: false | PaymentInitializeKeySpecifier | (() => undefined | PaymentInitializeKeySpecifier), - fields?: PaymentInitializeFieldPolicy, - }, - PaymentInitialized?: Omit & { - keyFields?: false | PaymentInitializedKeySpecifier | (() => undefined | PaymentInitializedKeySpecifier), - fields?: PaymentInitializedFieldPolicy, - }, - PaymentListGateways?: Omit & { - keyFields?: false | PaymentListGatewaysKeySpecifier | (() => undefined | PaymentListGatewaysKeySpecifier), - fields?: PaymentListGatewaysFieldPolicy, - }, - PaymentProcessEvent?: Omit & { - keyFields?: false | PaymentProcessEventKeySpecifier | (() => undefined | PaymentProcessEventKeySpecifier), - fields?: PaymentProcessEventFieldPolicy, - }, - PaymentRefund?: Omit & { - keyFields?: false | PaymentRefundKeySpecifier | (() => undefined | PaymentRefundKeySpecifier), - fields?: PaymentRefundFieldPolicy, - }, - PaymentRefundEvent?: Omit & { - keyFields?: false | PaymentRefundEventKeySpecifier | (() => undefined | PaymentRefundEventKeySpecifier), - fields?: PaymentRefundEventFieldPolicy, - }, - PaymentSource?: Omit & { - keyFields?: false | PaymentSourceKeySpecifier | (() => undefined | PaymentSourceKeySpecifier), - fields?: PaymentSourceFieldPolicy, - }, - PaymentVoid?: Omit & { - keyFields?: false | PaymentVoidKeySpecifier | (() => undefined | PaymentVoidKeySpecifier), - fields?: PaymentVoidFieldPolicy, - }, - PaymentVoidEvent?: Omit & { - keyFields?: false | PaymentVoidEventKeySpecifier | (() => undefined | PaymentVoidEventKeySpecifier), - fields?: PaymentVoidEventFieldPolicy, - }, - Permission?: Omit & { - keyFields?: false | PermissionKeySpecifier | (() => undefined | PermissionKeySpecifier), - fields?: PermissionFieldPolicy, - }, - PermissionGroupCreate?: Omit & { - keyFields?: false | PermissionGroupCreateKeySpecifier | (() => undefined | PermissionGroupCreateKeySpecifier), - fields?: PermissionGroupCreateFieldPolicy, - }, - PermissionGroupCreated?: Omit & { - keyFields?: false | PermissionGroupCreatedKeySpecifier | (() => undefined | PermissionGroupCreatedKeySpecifier), - fields?: PermissionGroupCreatedFieldPolicy, - }, - PermissionGroupDelete?: Omit & { - keyFields?: false | PermissionGroupDeleteKeySpecifier | (() => undefined | PermissionGroupDeleteKeySpecifier), - fields?: PermissionGroupDeleteFieldPolicy, - }, - PermissionGroupDeleted?: Omit & { - keyFields?: false | PermissionGroupDeletedKeySpecifier | (() => undefined | PermissionGroupDeletedKeySpecifier), - fields?: PermissionGroupDeletedFieldPolicy, - }, - PermissionGroupError?: Omit & { - keyFields?: false | PermissionGroupErrorKeySpecifier | (() => undefined | PermissionGroupErrorKeySpecifier), - fields?: PermissionGroupErrorFieldPolicy, - }, - PermissionGroupUpdate?: Omit & { - keyFields?: false | PermissionGroupUpdateKeySpecifier | (() => undefined | PermissionGroupUpdateKeySpecifier), - fields?: PermissionGroupUpdateFieldPolicy, - }, - PermissionGroupUpdated?: Omit & { - keyFields?: false | PermissionGroupUpdatedKeySpecifier | (() => undefined | PermissionGroupUpdatedKeySpecifier), - fields?: PermissionGroupUpdatedFieldPolicy, - }, - Plugin?: Omit & { - keyFields?: false | PluginKeySpecifier | (() => undefined | PluginKeySpecifier), - fields?: PluginFieldPolicy, - }, - PluginConfiguration?: Omit & { - keyFields?: false | PluginConfigurationKeySpecifier | (() => undefined | PluginConfigurationKeySpecifier), - fields?: PluginConfigurationFieldPolicy, - }, - PluginCountableConnection?: Omit & { - keyFields?: false | PluginCountableConnectionKeySpecifier | (() => undefined | PluginCountableConnectionKeySpecifier), - fields?: PluginCountableConnectionFieldPolicy, - }, - PluginCountableEdge?: Omit & { - keyFields?: false | PluginCountableEdgeKeySpecifier | (() => undefined | PluginCountableEdgeKeySpecifier), - fields?: PluginCountableEdgeFieldPolicy, - }, - PluginError?: Omit & { - keyFields?: false | PluginErrorKeySpecifier | (() => undefined | PluginErrorKeySpecifier), - fields?: PluginErrorFieldPolicy, - }, - PluginUpdate?: Omit & { - keyFields?: false | PluginUpdateKeySpecifier | (() => undefined | PluginUpdateKeySpecifier), - fields?: PluginUpdateFieldPolicy, - }, - PreorderData?: Omit & { - keyFields?: false | PreorderDataKeySpecifier | (() => undefined | PreorderDataKeySpecifier), - fields?: PreorderDataFieldPolicy, - }, - PreorderThreshold?: Omit & { - keyFields?: false | PreorderThresholdKeySpecifier | (() => undefined | PreorderThresholdKeySpecifier), - fields?: PreorderThresholdFieldPolicy, - }, - Product?: Omit & { - keyFields?: false | ProductKeySpecifier | (() => undefined | ProductKeySpecifier), - fields?: ProductFieldPolicy, - }, - ProductAttributeAssign?: Omit & { - keyFields?: false | ProductAttributeAssignKeySpecifier | (() => undefined | ProductAttributeAssignKeySpecifier), - fields?: ProductAttributeAssignFieldPolicy, - }, - ProductAttributeAssignmentUpdate?: Omit & { - keyFields?: false | ProductAttributeAssignmentUpdateKeySpecifier | (() => undefined | ProductAttributeAssignmentUpdateKeySpecifier), - fields?: ProductAttributeAssignmentUpdateFieldPolicy, - }, - ProductAttributeUnassign?: Omit & { - keyFields?: false | ProductAttributeUnassignKeySpecifier | (() => undefined | ProductAttributeUnassignKeySpecifier), - fields?: ProductAttributeUnassignFieldPolicy, - }, - ProductBulkDelete?: Omit & { - keyFields?: false | ProductBulkDeleteKeySpecifier | (() => undefined | ProductBulkDeleteKeySpecifier), - fields?: ProductBulkDeleteFieldPolicy, - }, - ProductChannelListing?: Omit & { - keyFields?: false | ProductChannelListingKeySpecifier | (() => undefined | ProductChannelListingKeySpecifier), - fields?: ProductChannelListingFieldPolicy, - }, - ProductChannelListingError?: Omit & { - keyFields?: false | ProductChannelListingErrorKeySpecifier | (() => undefined | ProductChannelListingErrorKeySpecifier), - fields?: ProductChannelListingErrorFieldPolicy, - }, - ProductChannelListingUpdate?: Omit & { - keyFields?: false | ProductChannelListingUpdateKeySpecifier | (() => undefined | ProductChannelListingUpdateKeySpecifier), - fields?: ProductChannelListingUpdateFieldPolicy, - }, - ProductCountableConnection?: Omit & { - keyFields?: false | ProductCountableConnectionKeySpecifier | (() => undefined | ProductCountableConnectionKeySpecifier), - fields?: ProductCountableConnectionFieldPolicy, - }, - ProductCountableEdge?: Omit & { - keyFields?: false | ProductCountableEdgeKeySpecifier | (() => undefined | ProductCountableEdgeKeySpecifier), - fields?: ProductCountableEdgeFieldPolicy, - }, - ProductCreate?: Omit & { - keyFields?: false | ProductCreateKeySpecifier | (() => undefined | ProductCreateKeySpecifier), - fields?: ProductCreateFieldPolicy, - }, - ProductCreated?: Omit & { - keyFields?: false | ProductCreatedKeySpecifier | (() => undefined | ProductCreatedKeySpecifier), - fields?: ProductCreatedFieldPolicy, - }, - ProductDelete?: Omit & { - keyFields?: false | ProductDeleteKeySpecifier | (() => undefined | ProductDeleteKeySpecifier), - fields?: ProductDeleteFieldPolicy, - }, - ProductDeleted?: Omit & { - keyFields?: false | ProductDeletedKeySpecifier | (() => undefined | ProductDeletedKeySpecifier), - fields?: ProductDeletedFieldPolicy, - }, - ProductError?: Omit & { - keyFields?: false | ProductErrorKeySpecifier | (() => undefined | ProductErrorKeySpecifier), - fields?: ProductErrorFieldPolicy, - }, - ProductImage?: Omit & { - keyFields?: false | ProductImageKeySpecifier | (() => undefined | ProductImageKeySpecifier), - fields?: ProductImageFieldPolicy, - }, - ProductMedia?: Omit & { - keyFields?: false | ProductMediaKeySpecifier | (() => undefined | ProductMediaKeySpecifier), - fields?: ProductMediaFieldPolicy, - }, - ProductMediaBulkDelete?: Omit & { - keyFields?: false | ProductMediaBulkDeleteKeySpecifier | (() => undefined | ProductMediaBulkDeleteKeySpecifier), - fields?: ProductMediaBulkDeleteFieldPolicy, - }, - ProductMediaCreate?: Omit & { - keyFields?: false | ProductMediaCreateKeySpecifier | (() => undefined | ProductMediaCreateKeySpecifier), - fields?: ProductMediaCreateFieldPolicy, - }, - ProductMediaCreated?: Omit & { - keyFields?: false | ProductMediaCreatedKeySpecifier | (() => undefined | ProductMediaCreatedKeySpecifier), - fields?: ProductMediaCreatedFieldPolicy, - }, - ProductMediaDelete?: Omit & { - keyFields?: false | ProductMediaDeleteKeySpecifier | (() => undefined | ProductMediaDeleteKeySpecifier), - fields?: ProductMediaDeleteFieldPolicy, - }, - ProductMediaDeleted?: Omit & { - keyFields?: false | ProductMediaDeletedKeySpecifier | (() => undefined | ProductMediaDeletedKeySpecifier), - fields?: ProductMediaDeletedFieldPolicy, - }, - ProductMediaReorder?: Omit & { - keyFields?: false | ProductMediaReorderKeySpecifier | (() => undefined | ProductMediaReorderKeySpecifier), - fields?: ProductMediaReorderFieldPolicy, - }, - ProductMediaUpdate?: Omit & { - keyFields?: false | ProductMediaUpdateKeySpecifier | (() => undefined | ProductMediaUpdateKeySpecifier), - fields?: ProductMediaUpdateFieldPolicy, - }, - ProductMediaUpdated?: Omit & { - keyFields?: false | ProductMediaUpdatedKeySpecifier | (() => undefined | ProductMediaUpdatedKeySpecifier), - fields?: ProductMediaUpdatedFieldPolicy, - }, - ProductMetadataUpdated?: Omit & { - keyFields?: false | ProductMetadataUpdatedKeySpecifier | (() => undefined | ProductMetadataUpdatedKeySpecifier), - fields?: ProductMetadataUpdatedFieldPolicy, - }, - ProductPricingInfo?: Omit & { - keyFields?: false | ProductPricingInfoKeySpecifier | (() => undefined | ProductPricingInfoKeySpecifier), - fields?: ProductPricingInfoFieldPolicy, - }, - ProductReorderAttributeValues?: Omit & { - keyFields?: false | ProductReorderAttributeValuesKeySpecifier | (() => undefined | ProductReorderAttributeValuesKeySpecifier), - fields?: ProductReorderAttributeValuesFieldPolicy, - }, - ProductTranslatableContent?: Omit & { - keyFields?: false | ProductTranslatableContentKeySpecifier | (() => undefined | ProductTranslatableContentKeySpecifier), - fields?: ProductTranslatableContentFieldPolicy, - }, - ProductTranslate?: Omit & { - keyFields?: false | ProductTranslateKeySpecifier | (() => undefined | ProductTranslateKeySpecifier), - fields?: ProductTranslateFieldPolicy, - }, - ProductTranslation?: Omit & { - keyFields?: false | ProductTranslationKeySpecifier | (() => undefined | ProductTranslationKeySpecifier), - fields?: ProductTranslationFieldPolicy, - }, - ProductType?: Omit & { - keyFields?: false | ProductTypeKeySpecifier | (() => undefined | ProductTypeKeySpecifier), - fields?: ProductTypeFieldPolicy, - }, - ProductTypeBulkDelete?: Omit & { - keyFields?: false | ProductTypeBulkDeleteKeySpecifier | (() => undefined | ProductTypeBulkDeleteKeySpecifier), - fields?: ProductTypeBulkDeleteFieldPolicy, - }, - ProductTypeCountableConnection?: Omit & { - keyFields?: false | ProductTypeCountableConnectionKeySpecifier | (() => undefined | ProductTypeCountableConnectionKeySpecifier), - fields?: ProductTypeCountableConnectionFieldPolicy, - }, - ProductTypeCountableEdge?: Omit & { - keyFields?: false | ProductTypeCountableEdgeKeySpecifier | (() => undefined | ProductTypeCountableEdgeKeySpecifier), - fields?: ProductTypeCountableEdgeFieldPolicy, - }, - ProductTypeCreate?: Omit & { - keyFields?: false | ProductTypeCreateKeySpecifier | (() => undefined | ProductTypeCreateKeySpecifier), - fields?: ProductTypeCreateFieldPolicy, - }, - ProductTypeDelete?: Omit & { - keyFields?: false | ProductTypeDeleteKeySpecifier | (() => undefined | ProductTypeDeleteKeySpecifier), - fields?: ProductTypeDeleteFieldPolicy, - }, - ProductTypeReorderAttributes?: Omit & { - keyFields?: false | ProductTypeReorderAttributesKeySpecifier | (() => undefined | ProductTypeReorderAttributesKeySpecifier), - fields?: ProductTypeReorderAttributesFieldPolicy, - }, - ProductTypeUpdate?: Omit & { - keyFields?: false | ProductTypeUpdateKeySpecifier | (() => undefined | ProductTypeUpdateKeySpecifier), - fields?: ProductTypeUpdateFieldPolicy, - }, - ProductUpdate?: Omit & { - keyFields?: false | ProductUpdateKeySpecifier | (() => undefined | ProductUpdateKeySpecifier), - fields?: ProductUpdateFieldPolicy, - }, - ProductUpdated?: Omit & { - keyFields?: false | ProductUpdatedKeySpecifier | (() => undefined | ProductUpdatedKeySpecifier), - fields?: ProductUpdatedFieldPolicy, - }, - ProductVariant?: Omit & { - keyFields?: false | ProductVariantKeySpecifier | (() => undefined | ProductVariantKeySpecifier), - fields?: ProductVariantFieldPolicy, - }, - ProductVariantBackInStock?: Omit & { - keyFields?: false | ProductVariantBackInStockKeySpecifier | (() => undefined | ProductVariantBackInStockKeySpecifier), - fields?: ProductVariantBackInStockFieldPolicy, - }, - ProductVariantBulkCreate?: Omit & { - keyFields?: false | ProductVariantBulkCreateKeySpecifier | (() => undefined | ProductVariantBulkCreateKeySpecifier), - fields?: ProductVariantBulkCreateFieldPolicy, - }, - ProductVariantBulkDelete?: Omit & { - keyFields?: false | ProductVariantBulkDeleteKeySpecifier | (() => undefined | ProductVariantBulkDeleteKeySpecifier), - fields?: ProductVariantBulkDeleteFieldPolicy, - }, - ProductVariantBulkError?: Omit & { - keyFields?: false | ProductVariantBulkErrorKeySpecifier | (() => undefined | ProductVariantBulkErrorKeySpecifier), - fields?: ProductVariantBulkErrorFieldPolicy, - }, - ProductVariantBulkResult?: Omit & { - keyFields?: false | ProductVariantBulkResultKeySpecifier | (() => undefined | ProductVariantBulkResultKeySpecifier), - fields?: ProductVariantBulkResultFieldPolicy, - }, - ProductVariantBulkUpdate?: Omit & { - keyFields?: false | ProductVariantBulkUpdateKeySpecifier | (() => undefined | ProductVariantBulkUpdateKeySpecifier), - fields?: ProductVariantBulkUpdateFieldPolicy, - }, - ProductVariantChannelListing?: Omit & { - keyFields?: false | ProductVariantChannelListingKeySpecifier | (() => undefined | ProductVariantChannelListingKeySpecifier), - fields?: ProductVariantChannelListingFieldPolicy, - }, - ProductVariantChannelListingUpdate?: Omit & { - keyFields?: false | ProductVariantChannelListingUpdateKeySpecifier | (() => undefined | ProductVariantChannelListingUpdateKeySpecifier), - fields?: ProductVariantChannelListingUpdateFieldPolicy, - }, - ProductVariantCountableConnection?: Omit & { - keyFields?: false | ProductVariantCountableConnectionKeySpecifier | (() => undefined | ProductVariantCountableConnectionKeySpecifier), - fields?: ProductVariantCountableConnectionFieldPolicy, - }, - ProductVariantCountableEdge?: Omit & { - keyFields?: false | ProductVariantCountableEdgeKeySpecifier | (() => undefined | ProductVariantCountableEdgeKeySpecifier), - fields?: ProductVariantCountableEdgeFieldPolicy, - }, - ProductVariantCreate?: Omit & { - keyFields?: false | ProductVariantCreateKeySpecifier | (() => undefined | ProductVariantCreateKeySpecifier), - fields?: ProductVariantCreateFieldPolicy, - }, - ProductVariantCreated?: Omit & { - keyFields?: false | ProductVariantCreatedKeySpecifier | (() => undefined | ProductVariantCreatedKeySpecifier), - fields?: ProductVariantCreatedFieldPolicy, - }, - ProductVariantDelete?: Omit & { - keyFields?: false | ProductVariantDeleteKeySpecifier | (() => undefined | ProductVariantDeleteKeySpecifier), - fields?: ProductVariantDeleteFieldPolicy, - }, - ProductVariantDeleted?: Omit & { - keyFields?: false | ProductVariantDeletedKeySpecifier | (() => undefined | ProductVariantDeletedKeySpecifier), - fields?: ProductVariantDeletedFieldPolicy, - }, - ProductVariantMetadataUpdated?: Omit & { - keyFields?: false | ProductVariantMetadataUpdatedKeySpecifier | (() => undefined | ProductVariantMetadataUpdatedKeySpecifier), - fields?: ProductVariantMetadataUpdatedFieldPolicy, - }, - ProductVariantOutOfStock?: Omit & { - keyFields?: false | ProductVariantOutOfStockKeySpecifier | (() => undefined | ProductVariantOutOfStockKeySpecifier), - fields?: ProductVariantOutOfStockFieldPolicy, - }, - ProductVariantPreorderDeactivate?: Omit & { - keyFields?: false | ProductVariantPreorderDeactivateKeySpecifier | (() => undefined | ProductVariantPreorderDeactivateKeySpecifier), - fields?: ProductVariantPreorderDeactivateFieldPolicy, - }, - ProductVariantReorder?: Omit & { - keyFields?: false | ProductVariantReorderKeySpecifier | (() => undefined | ProductVariantReorderKeySpecifier), - fields?: ProductVariantReorderFieldPolicy, - }, - ProductVariantReorderAttributeValues?: Omit & { - keyFields?: false | ProductVariantReorderAttributeValuesKeySpecifier | (() => undefined | ProductVariantReorderAttributeValuesKeySpecifier), - fields?: ProductVariantReorderAttributeValuesFieldPolicy, - }, - ProductVariantSetDefault?: Omit & { - keyFields?: false | ProductVariantSetDefaultKeySpecifier | (() => undefined | ProductVariantSetDefaultKeySpecifier), - fields?: ProductVariantSetDefaultFieldPolicy, - }, - ProductVariantStockUpdated?: Omit & { - keyFields?: false | ProductVariantStockUpdatedKeySpecifier | (() => undefined | ProductVariantStockUpdatedKeySpecifier), - fields?: ProductVariantStockUpdatedFieldPolicy, - }, - ProductVariantStocksCreate?: Omit & { - keyFields?: false | ProductVariantStocksCreateKeySpecifier | (() => undefined | ProductVariantStocksCreateKeySpecifier), - fields?: ProductVariantStocksCreateFieldPolicy, - }, - ProductVariantStocksDelete?: Omit & { - keyFields?: false | ProductVariantStocksDeleteKeySpecifier | (() => undefined | ProductVariantStocksDeleteKeySpecifier), - fields?: ProductVariantStocksDeleteFieldPolicy, - }, - ProductVariantStocksUpdate?: Omit & { - keyFields?: false | ProductVariantStocksUpdateKeySpecifier | (() => undefined | ProductVariantStocksUpdateKeySpecifier), - fields?: ProductVariantStocksUpdateFieldPolicy, - }, - ProductVariantTranslatableContent?: Omit & { - keyFields?: false | ProductVariantTranslatableContentKeySpecifier | (() => undefined | ProductVariantTranslatableContentKeySpecifier), - fields?: ProductVariantTranslatableContentFieldPolicy, - }, - ProductVariantTranslate?: Omit & { - keyFields?: false | ProductVariantTranslateKeySpecifier | (() => undefined | ProductVariantTranslateKeySpecifier), - fields?: ProductVariantTranslateFieldPolicy, - }, - ProductVariantTranslation?: Omit & { - keyFields?: false | ProductVariantTranslationKeySpecifier | (() => undefined | ProductVariantTranslationKeySpecifier), - fields?: ProductVariantTranslationFieldPolicy, - }, - ProductVariantUpdate?: Omit & { - keyFields?: false | ProductVariantUpdateKeySpecifier | (() => undefined | ProductVariantUpdateKeySpecifier), - fields?: ProductVariantUpdateFieldPolicy, - }, - ProductVariantUpdated?: Omit & { - keyFields?: false | ProductVariantUpdatedKeySpecifier | (() => undefined | ProductVariantUpdatedKeySpecifier), - fields?: ProductVariantUpdatedFieldPolicy, - }, - Query?: Omit & { - keyFields?: false | QueryKeySpecifier | (() => undefined | QueryKeySpecifier), - fields?: QueryFieldPolicy, - }, - ReducedRate?: Omit & { - keyFields?: false | ReducedRateKeySpecifier | (() => undefined | ReducedRateKeySpecifier), - fields?: ReducedRateFieldPolicy, - }, - RefreshToken?: Omit & { - keyFields?: false | RefreshTokenKeySpecifier | (() => undefined | RefreshTokenKeySpecifier), - fields?: RefreshTokenFieldPolicy, - }, - RequestEmailChange?: Omit & { - keyFields?: false | RequestEmailChangeKeySpecifier | (() => undefined | RequestEmailChangeKeySpecifier), - fields?: RequestEmailChangeFieldPolicy, - }, - RequestPasswordReset?: Omit & { - keyFields?: false | RequestPasswordResetKeySpecifier | (() => undefined | RequestPasswordResetKeySpecifier), - fields?: RequestPasswordResetFieldPolicy, - }, - Sale?: Omit & { - keyFields?: false | SaleKeySpecifier | (() => undefined | SaleKeySpecifier), - fields?: SaleFieldPolicy, - }, - SaleAddCatalogues?: Omit & { - keyFields?: false | SaleAddCataloguesKeySpecifier | (() => undefined | SaleAddCataloguesKeySpecifier), - fields?: SaleAddCataloguesFieldPolicy, - }, - SaleBulkDelete?: Omit & { - keyFields?: false | SaleBulkDeleteKeySpecifier | (() => undefined | SaleBulkDeleteKeySpecifier), - fields?: SaleBulkDeleteFieldPolicy, - }, - SaleChannelListing?: Omit & { - keyFields?: false | SaleChannelListingKeySpecifier | (() => undefined | SaleChannelListingKeySpecifier), - fields?: SaleChannelListingFieldPolicy, - }, - SaleChannelListingUpdate?: Omit & { - keyFields?: false | SaleChannelListingUpdateKeySpecifier | (() => undefined | SaleChannelListingUpdateKeySpecifier), - fields?: SaleChannelListingUpdateFieldPolicy, - }, - SaleCountableConnection?: Omit & { - keyFields?: false | SaleCountableConnectionKeySpecifier | (() => undefined | SaleCountableConnectionKeySpecifier), - fields?: SaleCountableConnectionFieldPolicy, - }, - SaleCountableEdge?: Omit & { - keyFields?: false | SaleCountableEdgeKeySpecifier | (() => undefined | SaleCountableEdgeKeySpecifier), - fields?: SaleCountableEdgeFieldPolicy, - }, - SaleCreate?: Omit & { - keyFields?: false | SaleCreateKeySpecifier | (() => undefined | SaleCreateKeySpecifier), - fields?: SaleCreateFieldPolicy, - }, - SaleCreated?: Omit & { - keyFields?: false | SaleCreatedKeySpecifier | (() => undefined | SaleCreatedKeySpecifier), - fields?: SaleCreatedFieldPolicy, - }, - SaleDelete?: Omit & { - keyFields?: false | SaleDeleteKeySpecifier | (() => undefined | SaleDeleteKeySpecifier), - fields?: SaleDeleteFieldPolicy, - }, - SaleDeleted?: Omit & { - keyFields?: false | SaleDeletedKeySpecifier | (() => undefined | SaleDeletedKeySpecifier), - fields?: SaleDeletedFieldPolicy, - }, - SaleRemoveCatalogues?: Omit & { - keyFields?: false | SaleRemoveCataloguesKeySpecifier | (() => undefined | SaleRemoveCataloguesKeySpecifier), - fields?: SaleRemoveCataloguesFieldPolicy, - }, - SaleToggle?: Omit & { - keyFields?: false | SaleToggleKeySpecifier | (() => undefined | SaleToggleKeySpecifier), - fields?: SaleToggleFieldPolicy, - }, - SaleTranslatableContent?: Omit & { - keyFields?: false | SaleTranslatableContentKeySpecifier | (() => undefined | SaleTranslatableContentKeySpecifier), - fields?: SaleTranslatableContentFieldPolicy, - }, - SaleTranslate?: Omit & { - keyFields?: false | SaleTranslateKeySpecifier | (() => undefined | SaleTranslateKeySpecifier), - fields?: SaleTranslateFieldPolicy, - }, - SaleTranslation?: Omit & { - keyFields?: false | SaleTranslationKeySpecifier | (() => undefined | SaleTranslationKeySpecifier), - fields?: SaleTranslationFieldPolicy, - }, - SaleUpdate?: Omit & { - keyFields?: false | SaleUpdateKeySpecifier | (() => undefined | SaleUpdateKeySpecifier), - fields?: SaleUpdateFieldPolicy, - }, - SaleUpdated?: Omit & { - keyFields?: false | SaleUpdatedKeySpecifier | (() => undefined | SaleUpdatedKeySpecifier), - fields?: SaleUpdatedFieldPolicy, - }, - SelectedAttribute?: Omit & { - keyFields?: false | SelectedAttributeKeySpecifier | (() => undefined | SelectedAttributeKeySpecifier), - fields?: SelectedAttributeFieldPolicy, - }, - SetPassword?: Omit & { - keyFields?: false | SetPasswordKeySpecifier | (() => undefined | SetPasswordKeySpecifier), - fields?: SetPasswordFieldPolicy, - }, - ShippingError?: Omit & { - keyFields?: false | ShippingErrorKeySpecifier | (() => undefined | ShippingErrorKeySpecifier), - fields?: ShippingErrorFieldPolicy, - }, - ShippingListMethodsForCheckout?: Omit & { - keyFields?: false | ShippingListMethodsForCheckoutKeySpecifier | (() => undefined | ShippingListMethodsForCheckoutKeySpecifier), - fields?: ShippingListMethodsForCheckoutFieldPolicy, - }, - ShippingMethod?: Omit & { - keyFields?: false | ShippingMethodKeySpecifier | (() => undefined | ShippingMethodKeySpecifier), - fields?: ShippingMethodFieldPolicy, - }, - ShippingMethodChannelListing?: Omit & { - keyFields?: false | ShippingMethodChannelListingKeySpecifier | (() => undefined | ShippingMethodChannelListingKeySpecifier), - fields?: ShippingMethodChannelListingFieldPolicy, - }, - ShippingMethodChannelListingUpdate?: Omit & { - keyFields?: false | ShippingMethodChannelListingUpdateKeySpecifier | (() => undefined | ShippingMethodChannelListingUpdateKeySpecifier), - fields?: ShippingMethodChannelListingUpdateFieldPolicy, - }, - ShippingMethodPostalCodeRule?: Omit & { - keyFields?: false | ShippingMethodPostalCodeRuleKeySpecifier | (() => undefined | ShippingMethodPostalCodeRuleKeySpecifier), - fields?: ShippingMethodPostalCodeRuleFieldPolicy, - }, - ShippingMethodTranslatableContent?: Omit & { - keyFields?: false | ShippingMethodTranslatableContentKeySpecifier | (() => undefined | ShippingMethodTranslatableContentKeySpecifier), - fields?: ShippingMethodTranslatableContentFieldPolicy, - }, - ShippingMethodTranslation?: Omit & { - keyFields?: false | ShippingMethodTranslationKeySpecifier | (() => undefined | ShippingMethodTranslationKeySpecifier), - fields?: ShippingMethodTranslationFieldPolicy, - }, - ShippingMethodType?: Omit & { - keyFields?: false | ShippingMethodTypeKeySpecifier | (() => undefined | ShippingMethodTypeKeySpecifier), - fields?: ShippingMethodTypeFieldPolicy, - }, - ShippingMethodsPerCountry?: Omit & { - keyFields?: false | ShippingMethodsPerCountryKeySpecifier | (() => undefined | ShippingMethodsPerCountryKeySpecifier), - fields?: ShippingMethodsPerCountryFieldPolicy, - }, - ShippingPriceBulkDelete?: Omit & { - keyFields?: false | ShippingPriceBulkDeleteKeySpecifier | (() => undefined | ShippingPriceBulkDeleteKeySpecifier), - fields?: ShippingPriceBulkDeleteFieldPolicy, - }, - ShippingPriceCreate?: Omit & { - keyFields?: false | ShippingPriceCreateKeySpecifier | (() => undefined | ShippingPriceCreateKeySpecifier), - fields?: ShippingPriceCreateFieldPolicy, - }, - ShippingPriceCreated?: Omit & { - keyFields?: false | ShippingPriceCreatedKeySpecifier | (() => undefined | ShippingPriceCreatedKeySpecifier), - fields?: ShippingPriceCreatedFieldPolicy, - }, - ShippingPriceDelete?: Omit & { - keyFields?: false | ShippingPriceDeleteKeySpecifier | (() => undefined | ShippingPriceDeleteKeySpecifier), - fields?: ShippingPriceDeleteFieldPolicy, - }, - ShippingPriceDeleted?: Omit & { - keyFields?: false | ShippingPriceDeletedKeySpecifier | (() => undefined | ShippingPriceDeletedKeySpecifier), - fields?: ShippingPriceDeletedFieldPolicy, - }, - ShippingPriceExcludeProducts?: Omit & { - keyFields?: false | ShippingPriceExcludeProductsKeySpecifier | (() => undefined | ShippingPriceExcludeProductsKeySpecifier), - fields?: ShippingPriceExcludeProductsFieldPolicy, - }, - ShippingPriceRemoveProductFromExclude?: Omit & { - keyFields?: false | ShippingPriceRemoveProductFromExcludeKeySpecifier | (() => undefined | ShippingPriceRemoveProductFromExcludeKeySpecifier), - fields?: ShippingPriceRemoveProductFromExcludeFieldPolicy, - }, - ShippingPriceTranslate?: Omit & { - keyFields?: false | ShippingPriceTranslateKeySpecifier | (() => undefined | ShippingPriceTranslateKeySpecifier), - fields?: ShippingPriceTranslateFieldPolicy, - }, - ShippingPriceUpdate?: Omit & { - keyFields?: false | ShippingPriceUpdateKeySpecifier | (() => undefined | ShippingPriceUpdateKeySpecifier), - fields?: ShippingPriceUpdateFieldPolicy, - }, - ShippingPriceUpdated?: Omit & { - keyFields?: false | ShippingPriceUpdatedKeySpecifier | (() => undefined | ShippingPriceUpdatedKeySpecifier), - fields?: ShippingPriceUpdatedFieldPolicy, - }, - ShippingZone?: Omit & { - keyFields?: false | ShippingZoneKeySpecifier | (() => undefined | ShippingZoneKeySpecifier), - fields?: ShippingZoneFieldPolicy, - }, - ShippingZoneBulkDelete?: Omit & { - keyFields?: false | ShippingZoneBulkDeleteKeySpecifier | (() => undefined | ShippingZoneBulkDeleteKeySpecifier), - fields?: ShippingZoneBulkDeleteFieldPolicy, - }, - ShippingZoneCountableConnection?: Omit & { - keyFields?: false | ShippingZoneCountableConnectionKeySpecifier | (() => undefined | ShippingZoneCountableConnectionKeySpecifier), - fields?: ShippingZoneCountableConnectionFieldPolicy, - }, - ShippingZoneCountableEdge?: Omit & { - keyFields?: false | ShippingZoneCountableEdgeKeySpecifier | (() => undefined | ShippingZoneCountableEdgeKeySpecifier), - fields?: ShippingZoneCountableEdgeFieldPolicy, - }, - ShippingZoneCreate?: Omit & { - keyFields?: false | ShippingZoneCreateKeySpecifier | (() => undefined | ShippingZoneCreateKeySpecifier), - fields?: ShippingZoneCreateFieldPolicy, - }, - ShippingZoneCreated?: Omit & { - keyFields?: false | ShippingZoneCreatedKeySpecifier | (() => undefined | ShippingZoneCreatedKeySpecifier), - fields?: ShippingZoneCreatedFieldPolicy, - }, - ShippingZoneDelete?: Omit & { - keyFields?: false | ShippingZoneDeleteKeySpecifier | (() => undefined | ShippingZoneDeleteKeySpecifier), - fields?: ShippingZoneDeleteFieldPolicy, - }, - ShippingZoneDeleted?: Omit & { - keyFields?: false | ShippingZoneDeletedKeySpecifier | (() => undefined | ShippingZoneDeletedKeySpecifier), - fields?: ShippingZoneDeletedFieldPolicy, - }, - ShippingZoneMetadataUpdated?: Omit & { - keyFields?: false | ShippingZoneMetadataUpdatedKeySpecifier | (() => undefined | ShippingZoneMetadataUpdatedKeySpecifier), - fields?: ShippingZoneMetadataUpdatedFieldPolicy, - }, - ShippingZoneUpdate?: Omit & { - keyFields?: false | ShippingZoneUpdateKeySpecifier | (() => undefined | ShippingZoneUpdateKeySpecifier), - fields?: ShippingZoneUpdateFieldPolicy, - }, - ShippingZoneUpdated?: Omit & { - keyFields?: false | ShippingZoneUpdatedKeySpecifier | (() => undefined | ShippingZoneUpdatedKeySpecifier), - fields?: ShippingZoneUpdatedFieldPolicy, - }, - Shop?: Omit & { - keyFields?: false | ShopKeySpecifier | (() => undefined | ShopKeySpecifier), - fields?: ShopFieldPolicy, - }, - ShopAddressUpdate?: Omit & { - keyFields?: false | ShopAddressUpdateKeySpecifier | (() => undefined | ShopAddressUpdateKeySpecifier), - fields?: ShopAddressUpdateFieldPolicy, - }, - ShopDomainUpdate?: Omit & { - keyFields?: false | ShopDomainUpdateKeySpecifier | (() => undefined | ShopDomainUpdateKeySpecifier), - fields?: ShopDomainUpdateFieldPolicy, - }, - ShopError?: Omit & { - keyFields?: false | ShopErrorKeySpecifier | (() => undefined | ShopErrorKeySpecifier), - fields?: ShopErrorFieldPolicy, - }, - ShopFetchTaxRates?: Omit & { - keyFields?: false | ShopFetchTaxRatesKeySpecifier | (() => undefined | ShopFetchTaxRatesKeySpecifier), - fields?: ShopFetchTaxRatesFieldPolicy, - }, - ShopSettingsTranslate?: Omit & { - keyFields?: false | ShopSettingsTranslateKeySpecifier | (() => undefined | ShopSettingsTranslateKeySpecifier), - fields?: ShopSettingsTranslateFieldPolicy, - }, - ShopSettingsUpdate?: Omit & { - keyFields?: false | ShopSettingsUpdateKeySpecifier | (() => undefined | ShopSettingsUpdateKeySpecifier), - fields?: ShopSettingsUpdateFieldPolicy, - }, - ShopTranslation?: Omit & { - keyFields?: false | ShopTranslationKeySpecifier | (() => undefined | ShopTranslationKeySpecifier), - fields?: ShopTranslationFieldPolicy, - }, - StaffBulkDelete?: Omit & { - keyFields?: false | StaffBulkDeleteKeySpecifier | (() => undefined | StaffBulkDeleteKeySpecifier), - fields?: StaffBulkDeleteFieldPolicy, - }, - StaffCreate?: Omit & { - keyFields?: false | StaffCreateKeySpecifier | (() => undefined | StaffCreateKeySpecifier), - fields?: StaffCreateFieldPolicy, - }, - StaffCreated?: Omit & { - keyFields?: false | StaffCreatedKeySpecifier | (() => undefined | StaffCreatedKeySpecifier), - fields?: StaffCreatedFieldPolicy, - }, - StaffDelete?: Omit & { - keyFields?: false | StaffDeleteKeySpecifier | (() => undefined | StaffDeleteKeySpecifier), - fields?: StaffDeleteFieldPolicy, - }, - StaffDeleted?: Omit & { - keyFields?: false | StaffDeletedKeySpecifier | (() => undefined | StaffDeletedKeySpecifier), - fields?: StaffDeletedFieldPolicy, - }, - StaffError?: Omit & { - keyFields?: false | StaffErrorKeySpecifier | (() => undefined | StaffErrorKeySpecifier), - fields?: StaffErrorFieldPolicy, - }, - StaffNotificationRecipient?: Omit & { - keyFields?: false | StaffNotificationRecipientKeySpecifier | (() => undefined | StaffNotificationRecipientKeySpecifier), - fields?: StaffNotificationRecipientFieldPolicy, - }, - StaffNotificationRecipientCreate?: Omit & { - keyFields?: false | StaffNotificationRecipientCreateKeySpecifier | (() => undefined | StaffNotificationRecipientCreateKeySpecifier), - fields?: StaffNotificationRecipientCreateFieldPolicy, - }, - StaffNotificationRecipientDelete?: Omit & { - keyFields?: false | StaffNotificationRecipientDeleteKeySpecifier | (() => undefined | StaffNotificationRecipientDeleteKeySpecifier), - fields?: StaffNotificationRecipientDeleteFieldPolicy, - }, - StaffNotificationRecipientUpdate?: Omit & { - keyFields?: false | StaffNotificationRecipientUpdateKeySpecifier | (() => undefined | StaffNotificationRecipientUpdateKeySpecifier), - fields?: StaffNotificationRecipientUpdateFieldPolicy, - }, - StaffUpdate?: Omit & { - keyFields?: false | StaffUpdateKeySpecifier | (() => undefined | StaffUpdateKeySpecifier), - fields?: StaffUpdateFieldPolicy, - }, - StaffUpdated?: Omit & { - keyFields?: false | StaffUpdatedKeySpecifier | (() => undefined | StaffUpdatedKeySpecifier), - fields?: StaffUpdatedFieldPolicy, - }, - Stock?: Omit & { - keyFields?: false | StockKeySpecifier | (() => undefined | StockKeySpecifier), - fields?: StockFieldPolicy, - }, - StockCountableConnection?: Omit & { - keyFields?: false | StockCountableConnectionKeySpecifier | (() => undefined | StockCountableConnectionKeySpecifier), - fields?: StockCountableConnectionFieldPolicy, - }, - StockCountableEdge?: Omit & { - keyFields?: false | StockCountableEdgeKeySpecifier | (() => undefined | StockCountableEdgeKeySpecifier), - fields?: StockCountableEdgeFieldPolicy, - }, - StockError?: Omit & { - keyFields?: false | StockErrorKeySpecifier | (() => undefined | StockErrorKeySpecifier), - fields?: StockErrorFieldPolicy, - }, - StockSettings?: Omit & { - keyFields?: false | StockSettingsKeySpecifier | (() => undefined | StockSettingsKeySpecifier), - fields?: StockSettingsFieldPolicy, - }, - Subscription?: Omit & { - keyFields?: false | SubscriptionKeySpecifier | (() => undefined | SubscriptionKeySpecifier), - fields?: SubscriptionFieldPolicy, - }, - TaxClass?: Omit & { - keyFields?: false | TaxClassKeySpecifier | (() => undefined | TaxClassKeySpecifier), - fields?: TaxClassFieldPolicy, - }, - TaxClassCountableConnection?: Omit & { - keyFields?: false | TaxClassCountableConnectionKeySpecifier | (() => undefined | TaxClassCountableConnectionKeySpecifier), - fields?: TaxClassCountableConnectionFieldPolicy, - }, - TaxClassCountableEdge?: Omit & { - keyFields?: false | TaxClassCountableEdgeKeySpecifier | (() => undefined | TaxClassCountableEdgeKeySpecifier), - fields?: TaxClassCountableEdgeFieldPolicy, - }, - TaxClassCountryRate?: Omit & { - keyFields?: false | TaxClassCountryRateKeySpecifier | (() => undefined | TaxClassCountryRateKeySpecifier), - fields?: TaxClassCountryRateFieldPolicy, - }, - TaxClassCreate?: Omit & { - keyFields?: false | TaxClassCreateKeySpecifier | (() => undefined | TaxClassCreateKeySpecifier), - fields?: TaxClassCreateFieldPolicy, - }, - TaxClassCreateError?: Omit & { - keyFields?: false | TaxClassCreateErrorKeySpecifier | (() => undefined | TaxClassCreateErrorKeySpecifier), - fields?: TaxClassCreateErrorFieldPolicy, - }, - TaxClassDelete?: Omit & { - keyFields?: false | TaxClassDeleteKeySpecifier | (() => undefined | TaxClassDeleteKeySpecifier), - fields?: TaxClassDeleteFieldPolicy, - }, - TaxClassDeleteError?: Omit & { - keyFields?: false | TaxClassDeleteErrorKeySpecifier | (() => undefined | TaxClassDeleteErrorKeySpecifier), - fields?: TaxClassDeleteErrorFieldPolicy, - }, - TaxClassUpdate?: Omit & { - keyFields?: false | TaxClassUpdateKeySpecifier | (() => undefined | TaxClassUpdateKeySpecifier), - fields?: TaxClassUpdateFieldPolicy, - }, - TaxClassUpdateError?: Omit & { - keyFields?: false | TaxClassUpdateErrorKeySpecifier | (() => undefined | TaxClassUpdateErrorKeySpecifier), - fields?: TaxClassUpdateErrorFieldPolicy, - }, - TaxConfiguration?: Omit & { - keyFields?: false | TaxConfigurationKeySpecifier | (() => undefined | TaxConfigurationKeySpecifier), - fields?: TaxConfigurationFieldPolicy, - }, - TaxConfigurationCountableConnection?: Omit & { - keyFields?: false | TaxConfigurationCountableConnectionKeySpecifier | (() => undefined | TaxConfigurationCountableConnectionKeySpecifier), - fields?: TaxConfigurationCountableConnectionFieldPolicy, - }, - TaxConfigurationCountableEdge?: Omit & { - keyFields?: false | TaxConfigurationCountableEdgeKeySpecifier | (() => undefined | TaxConfigurationCountableEdgeKeySpecifier), - fields?: TaxConfigurationCountableEdgeFieldPolicy, - }, - TaxConfigurationPerCountry?: Omit & { - keyFields?: false | TaxConfigurationPerCountryKeySpecifier | (() => undefined | TaxConfigurationPerCountryKeySpecifier), - fields?: TaxConfigurationPerCountryFieldPolicy, - }, - TaxConfigurationUpdate?: Omit & { - keyFields?: false | TaxConfigurationUpdateKeySpecifier | (() => undefined | TaxConfigurationUpdateKeySpecifier), - fields?: TaxConfigurationUpdateFieldPolicy, - }, - TaxConfigurationUpdateError?: Omit & { - keyFields?: false | TaxConfigurationUpdateErrorKeySpecifier | (() => undefined | TaxConfigurationUpdateErrorKeySpecifier), - fields?: TaxConfigurationUpdateErrorFieldPolicy, - }, - TaxCountryConfiguration?: Omit & { - keyFields?: false | TaxCountryConfigurationKeySpecifier | (() => undefined | TaxCountryConfigurationKeySpecifier), - fields?: TaxCountryConfigurationFieldPolicy, - }, - TaxCountryConfigurationDelete?: Omit & { - keyFields?: false | TaxCountryConfigurationDeleteKeySpecifier | (() => undefined | TaxCountryConfigurationDeleteKeySpecifier), - fields?: TaxCountryConfigurationDeleteFieldPolicy, - }, - TaxCountryConfigurationDeleteError?: Omit & { - keyFields?: false | TaxCountryConfigurationDeleteErrorKeySpecifier | (() => undefined | TaxCountryConfigurationDeleteErrorKeySpecifier), - fields?: TaxCountryConfigurationDeleteErrorFieldPolicy, - }, - TaxCountryConfigurationUpdate?: Omit & { - keyFields?: false | TaxCountryConfigurationUpdateKeySpecifier | (() => undefined | TaxCountryConfigurationUpdateKeySpecifier), - fields?: TaxCountryConfigurationUpdateFieldPolicy, - }, - TaxCountryConfigurationUpdateError?: Omit & { - keyFields?: false | TaxCountryConfigurationUpdateErrorKeySpecifier | (() => undefined | TaxCountryConfigurationUpdateErrorKeySpecifier), - fields?: TaxCountryConfigurationUpdateErrorFieldPolicy, - }, - TaxExemptionManage?: Omit & { - keyFields?: false | TaxExemptionManageKeySpecifier | (() => undefined | TaxExemptionManageKeySpecifier), - fields?: TaxExemptionManageFieldPolicy, - }, - TaxExemptionManageError?: Omit & { - keyFields?: false | TaxExemptionManageErrorKeySpecifier | (() => undefined | TaxExemptionManageErrorKeySpecifier), - fields?: TaxExemptionManageErrorFieldPolicy, - }, - TaxType?: Omit & { - keyFields?: false | TaxTypeKeySpecifier | (() => undefined | TaxTypeKeySpecifier), - fields?: TaxTypeFieldPolicy, - }, - TaxableObject?: Omit & { - keyFields?: false | TaxableObjectKeySpecifier | (() => undefined | TaxableObjectKeySpecifier), - fields?: TaxableObjectFieldPolicy, - }, - TaxableObjectDiscount?: Omit & { - keyFields?: false | TaxableObjectDiscountKeySpecifier | (() => undefined | TaxableObjectDiscountKeySpecifier), - fields?: TaxableObjectDiscountFieldPolicy, - }, - TaxableObjectLine?: Omit & { - keyFields?: false | TaxableObjectLineKeySpecifier | (() => undefined | TaxableObjectLineKeySpecifier), - fields?: TaxableObjectLineFieldPolicy, - }, - TaxedMoney?: Omit & { - keyFields?: false | TaxedMoneyKeySpecifier | (() => undefined | TaxedMoneyKeySpecifier), - fields?: TaxedMoneyFieldPolicy, - }, - TaxedMoneyRange?: Omit & { - keyFields?: false | TaxedMoneyRangeKeySpecifier | (() => undefined | TaxedMoneyRangeKeySpecifier), - fields?: TaxedMoneyRangeFieldPolicy, - }, - ThumbnailCreated?: Omit & { - keyFields?: false | ThumbnailCreatedKeySpecifier | (() => undefined | ThumbnailCreatedKeySpecifier), - fields?: ThumbnailCreatedFieldPolicy, - }, - TimePeriod?: Omit & { - keyFields?: false | TimePeriodKeySpecifier | (() => undefined | TimePeriodKeySpecifier), - fields?: TimePeriodFieldPolicy, - }, - Transaction?: Omit & { - keyFields?: false | TransactionKeySpecifier | (() => undefined | TransactionKeySpecifier), - fields?: TransactionFieldPolicy, - }, - TransactionAction?: Omit & { - keyFields?: false | TransactionActionKeySpecifier | (() => undefined | TransactionActionKeySpecifier), - fields?: TransactionActionFieldPolicy, - }, - TransactionActionRequest?: Omit & { - keyFields?: false | TransactionActionRequestKeySpecifier | (() => undefined | TransactionActionRequestKeySpecifier), - fields?: TransactionActionRequestFieldPolicy, - }, - TransactionCancelationRequested?: Omit & { - keyFields?: false | TransactionCancelationRequestedKeySpecifier | (() => undefined | TransactionCancelationRequestedKeySpecifier), - fields?: TransactionCancelationRequestedFieldPolicy, - }, - TransactionChargeRequested?: Omit & { - keyFields?: false | TransactionChargeRequestedKeySpecifier | (() => undefined | TransactionChargeRequestedKeySpecifier), - fields?: TransactionChargeRequestedFieldPolicy, - }, - TransactionCreate?: Omit & { - keyFields?: false | TransactionCreateKeySpecifier | (() => undefined | TransactionCreateKeySpecifier), - fields?: TransactionCreateFieldPolicy, - }, - TransactionCreateError?: Omit & { - keyFields?: false | TransactionCreateErrorKeySpecifier | (() => undefined | TransactionCreateErrorKeySpecifier), - fields?: TransactionCreateErrorFieldPolicy, - }, - TransactionEvent?: Omit & { - keyFields?: false | TransactionEventKeySpecifier | (() => undefined | TransactionEventKeySpecifier), - fields?: TransactionEventFieldPolicy, - }, - TransactionEventReport?: Omit & { - keyFields?: false | TransactionEventReportKeySpecifier | (() => undefined | TransactionEventReportKeySpecifier), - fields?: TransactionEventReportFieldPolicy, - }, - TransactionEventReportError?: Omit & { - keyFields?: false | TransactionEventReportErrorKeySpecifier | (() => undefined | TransactionEventReportErrorKeySpecifier), - fields?: TransactionEventReportErrorFieldPolicy, - }, - TransactionItem?: Omit & { - keyFields?: false | TransactionItemKeySpecifier | (() => undefined | TransactionItemKeySpecifier), - fields?: TransactionItemFieldPolicy, - }, - TransactionItemMetadataUpdated?: Omit & { - keyFields?: false | TransactionItemMetadataUpdatedKeySpecifier | (() => undefined | TransactionItemMetadataUpdatedKeySpecifier), - fields?: TransactionItemMetadataUpdatedFieldPolicy, - }, - TransactionRefundRequested?: Omit & { - keyFields?: false | TransactionRefundRequestedKeySpecifier | (() => undefined | TransactionRefundRequestedKeySpecifier), - fields?: TransactionRefundRequestedFieldPolicy, - }, - TransactionRequestAction?: Omit & { - keyFields?: false | TransactionRequestActionKeySpecifier | (() => undefined | TransactionRequestActionKeySpecifier), - fields?: TransactionRequestActionFieldPolicy, - }, - TransactionRequestActionError?: Omit & { - keyFields?: false | TransactionRequestActionErrorKeySpecifier | (() => undefined | TransactionRequestActionErrorKeySpecifier), - fields?: TransactionRequestActionErrorFieldPolicy, - }, - TransactionUpdate?: Omit & { - keyFields?: false | TransactionUpdateKeySpecifier | (() => undefined | TransactionUpdateKeySpecifier), - fields?: TransactionUpdateFieldPolicy, - }, - TransactionUpdateError?: Omit & { - keyFields?: false | TransactionUpdateErrorKeySpecifier | (() => undefined | TransactionUpdateErrorKeySpecifier), - fields?: TransactionUpdateErrorFieldPolicy, - }, - TranslatableItemConnection?: Omit & { - keyFields?: false | TranslatableItemConnectionKeySpecifier | (() => undefined | TranslatableItemConnectionKeySpecifier), - fields?: TranslatableItemConnectionFieldPolicy, - }, - TranslatableItemEdge?: Omit & { - keyFields?: false | TranslatableItemEdgeKeySpecifier | (() => undefined | TranslatableItemEdgeKeySpecifier), - fields?: TranslatableItemEdgeFieldPolicy, - }, - TranslationCreated?: Omit & { - keyFields?: false | TranslationCreatedKeySpecifier | (() => undefined | TranslationCreatedKeySpecifier), - fields?: TranslationCreatedFieldPolicy, - }, - TranslationError?: Omit & { - keyFields?: false | TranslationErrorKeySpecifier | (() => undefined | TranslationErrorKeySpecifier), - fields?: TranslationErrorFieldPolicy, - }, - TranslationUpdated?: Omit & { - keyFields?: false | TranslationUpdatedKeySpecifier | (() => undefined | TranslationUpdatedKeySpecifier), - fields?: TranslationUpdatedFieldPolicy, - }, - UpdateMetadata?: Omit & { - keyFields?: false | UpdateMetadataKeySpecifier | (() => undefined | UpdateMetadataKeySpecifier), - fields?: UpdateMetadataFieldPolicy, - }, - UpdatePrivateMetadata?: Omit & { - keyFields?: false | UpdatePrivateMetadataKeySpecifier | (() => undefined | UpdatePrivateMetadataKeySpecifier), - fields?: UpdatePrivateMetadataFieldPolicy, - }, - UploadError?: Omit & { - keyFields?: false | UploadErrorKeySpecifier | (() => undefined | UploadErrorKeySpecifier), - fields?: UploadErrorFieldPolicy, - }, - User?: Omit & { - keyFields?: false | UserKeySpecifier | (() => undefined | UserKeySpecifier), - fields?: UserFieldPolicy, - }, - UserAvatarDelete?: Omit & { - keyFields?: false | UserAvatarDeleteKeySpecifier | (() => undefined | UserAvatarDeleteKeySpecifier), - fields?: UserAvatarDeleteFieldPolicy, - }, - UserAvatarUpdate?: Omit & { - keyFields?: false | UserAvatarUpdateKeySpecifier | (() => undefined | UserAvatarUpdateKeySpecifier), - fields?: UserAvatarUpdateFieldPolicy, - }, - UserBulkSetActive?: Omit & { - keyFields?: false | UserBulkSetActiveKeySpecifier | (() => undefined | UserBulkSetActiveKeySpecifier), - fields?: UserBulkSetActiveFieldPolicy, - }, - UserCountableConnection?: Omit & { - keyFields?: false | UserCountableConnectionKeySpecifier | (() => undefined | UserCountableConnectionKeySpecifier), - fields?: UserCountableConnectionFieldPolicy, - }, - UserCountableEdge?: Omit & { - keyFields?: false | UserCountableEdgeKeySpecifier | (() => undefined | UserCountableEdgeKeySpecifier), - fields?: UserCountableEdgeFieldPolicy, - }, - UserPermission?: Omit & { - keyFields?: false | UserPermissionKeySpecifier | (() => undefined | UserPermissionKeySpecifier), - fields?: UserPermissionFieldPolicy, - }, - VAT?: Omit & { - keyFields?: false | VATKeySpecifier | (() => undefined | VATKeySpecifier), - fields?: VATFieldPolicy, - }, - VariantMediaAssign?: Omit & { - keyFields?: false | VariantMediaAssignKeySpecifier | (() => undefined | VariantMediaAssignKeySpecifier), - fields?: VariantMediaAssignFieldPolicy, - }, - VariantMediaUnassign?: Omit & { - keyFields?: false | VariantMediaUnassignKeySpecifier | (() => undefined | VariantMediaUnassignKeySpecifier), - fields?: VariantMediaUnassignFieldPolicy, - }, - VariantPricingInfo?: Omit & { - keyFields?: false | VariantPricingInfoKeySpecifier | (() => undefined | VariantPricingInfoKeySpecifier), - fields?: VariantPricingInfoFieldPolicy, - }, - VerifyToken?: Omit & { - keyFields?: false | VerifyTokenKeySpecifier | (() => undefined | VerifyTokenKeySpecifier), - fields?: VerifyTokenFieldPolicy, - }, - Voucher?: Omit & { - keyFields?: false | VoucherKeySpecifier | (() => undefined | VoucherKeySpecifier), - fields?: VoucherFieldPolicy, - }, - VoucherAddCatalogues?: Omit & { - keyFields?: false | VoucherAddCataloguesKeySpecifier | (() => undefined | VoucherAddCataloguesKeySpecifier), - fields?: VoucherAddCataloguesFieldPolicy, - }, - VoucherBulkDelete?: Omit & { - keyFields?: false | VoucherBulkDeleteKeySpecifier | (() => undefined | VoucherBulkDeleteKeySpecifier), - fields?: VoucherBulkDeleteFieldPolicy, - }, - VoucherChannelListing?: Omit & { - keyFields?: false | VoucherChannelListingKeySpecifier | (() => undefined | VoucherChannelListingKeySpecifier), - fields?: VoucherChannelListingFieldPolicy, - }, - VoucherChannelListingUpdate?: Omit & { - keyFields?: false | VoucherChannelListingUpdateKeySpecifier | (() => undefined | VoucherChannelListingUpdateKeySpecifier), - fields?: VoucherChannelListingUpdateFieldPolicy, - }, - VoucherCountableConnection?: Omit & { - keyFields?: false | VoucherCountableConnectionKeySpecifier | (() => undefined | VoucherCountableConnectionKeySpecifier), - fields?: VoucherCountableConnectionFieldPolicy, - }, - VoucherCountableEdge?: Omit & { - keyFields?: false | VoucherCountableEdgeKeySpecifier | (() => undefined | VoucherCountableEdgeKeySpecifier), - fields?: VoucherCountableEdgeFieldPolicy, - }, - VoucherCreate?: Omit & { - keyFields?: false | VoucherCreateKeySpecifier | (() => undefined | VoucherCreateKeySpecifier), - fields?: VoucherCreateFieldPolicy, - }, - VoucherCreated?: Omit & { - keyFields?: false | VoucherCreatedKeySpecifier | (() => undefined | VoucherCreatedKeySpecifier), - fields?: VoucherCreatedFieldPolicy, - }, - VoucherDelete?: Omit & { - keyFields?: false | VoucherDeleteKeySpecifier | (() => undefined | VoucherDeleteKeySpecifier), - fields?: VoucherDeleteFieldPolicy, - }, - VoucherDeleted?: Omit & { - keyFields?: false | VoucherDeletedKeySpecifier | (() => undefined | VoucherDeletedKeySpecifier), - fields?: VoucherDeletedFieldPolicy, - }, - VoucherMetadataUpdated?: Omit & { - keyFields?: false | VoucherMetadataUpdatedKeySpecifier | (() => undefined | VoucherMetadataUpdatedKeySpecifier), - fields?: VoucherMetadataUpdatedFieldPolicy, - }, - VoucherRemoveCatalogues?: Omit & { - keyFields?: false | VoucherRemoveCataloguesKeySpecifier | (() => undefined | VoucherRemoveCataloguesKeySpecifier), - fields?: VoucherRemoveCataloguesFieldPolicy, - }, - VoucherTranslatableContent?: Omit & { - keyFields?: false | VoucherTranslatableContentKeySpecifier | (() => undefined | VoucherTranslatableContentKeySpecifier), - fields?: VoucherTranslatableContentFieldPolicy, - }, - VoucherTranslate?: Omit & { - keyFields?: false | VoucherTranslateKeySpecifier | (() => undefined | VoucherTranslateKeySpecifier), - fields?: VoucherTranslateFieldPolicy, - }, - VoucherTranslation?: Omit & { - keyFields?: false | VoucherTranslationKeySpecifier | (() => undefined | VoucherTranslationKeySpecifier), - fields?: VoucherTranslationFieldPolicy, - }, - VoucherUpdate?: Omit & { - keyFields?: false | VoucherUpdateKeySpecifier | (() => undefined | VoucherUpdateKeySpecifier), - fields?: VoucherUpdateFieldPolicy, - }, - VoucherUpdated?: Omit & { - keyFields?: false | VoucherUpdatedKeySpecifier | (() => undefined | VoucherUpdatedKeySpecifier), - fields?: VoucherUpdatedFieldPolicy, - }, - Warehouse?: Omit & { - keyFields?: false | WarehouseKeySpecifier | (() => undefined | WarehouseKeySpecifier), - fields?: WarehouseFieldPolicy, - }, - WarehouseCountableConnection?: Omit & { - keyFields?: false | WarehouseCountableConnectionKeySpecifier | (() => undefined | WarehouseCountableConnectionKeySpecifier), - fields?: WarehouseCountableConnectionFieldPolicy, - }, - WarehouseCountableEdge?: Omit & { - keyFields?: false | WarehouseCountableEdgeKeySpecifier | (() => undefined | WarehouseCountableEdgeKeySpecifier), - fields?: WarehouseCountableEdgeFieldPolicy, - }, - WarehouseCreate?: Omit & { - keyFields?: false | WarehouseCreateKeySpecifier | (() => undefined | WarehouseCreateKeySpecifier), - fields?: WarehouseCreateFieldPolicy, - }, - WarehouseCreated?: Omit & { - keyFields?: false | WarehouseCreatedKeySpecifier | (() => undefined | WarehouseCreatedKeySpecifier), - fields?: WarehouseCreatedFieldPolicy, - }, - WarehouseDelete?: Omit & { - keyFields?: false | WarehouseDeleteKeySpecifier | (() => undefined | WarehouseDeleteKeySpecifier), - fields?: WarehouseDeleteFieldPolicy, - }, - WarehouseDeleted?: Omit & { - keyFields?: false | WarehouseDeletedKeySpecifier | (() => undefined | WarehouseDeletedKeySpecifier), - fields?: WarehouseDeletedFieldPolicy, - }, - WarehouseError?: Omit & { - keyFields?: false | WarehouseErrorKeySpecifier | (() => undefined | WarehouseErrorKeySpecifier), - fields?: WarehouseErrorFieldPolicy, - }, - WarehouseMetadataUpdated?: Omit & { - keyFields?: false | WarehouseMetadataUpdatedKeySpecifier | (() => undefined | WarehouseMetadataUpdatedKeySpecifier), - fields?: WarehouseMetadataUpdatedFieldPolicy, - }, - WarehouseShippingZoneAssign?: Omit & { - keyFields?: false | WarehouseShippingZoneAssignKeySpecifier | (() => undefined | WarehouseShippingZoneAssignKeySpecifier), - fields?: WarehouseShippingZoneAssignFieldPolicy, - }, - WarehouseShippingZoneUnassign?: Omit & { - keyFields?: false | WarehouseShippingZoneUnassignKeySpecifier | (() => undefined | WarehouseShippingZoneUnassignKeySpecifier), - fields?: WarehouseShippingZoneUnassignFieldPolicy, - }, - WarehouseUpdate?: Omit & { - keyFields?: false | WarehouseUpdateKeySpecifier | (() => undefined | WarehouseUpdateKeySpecifier), - fields?: WarehouseUpdateFieldPolicy, - }, - WarehouseUpdated?: Omit & { - keyFields?: false | WarehouseUpdatedKeySpecifier | (() => undefined | WarehouseUpdatedKeySpecifier), - fields?: WarehouseUpdatedFieldPolicy, - }, - Webhook?: Omit & { - keyFields?: false | WebhookKeySpecifier | (() => undefined | WebhookKeySpecifier), - fields?: WebhookFieldPolicy, - }, - WebhookCreate?: Omit & { - keyFields?: false | WebhookCreateKeySpecifier | (() => undefined | WebhookCreateKeySpecifier), - fields?: WebhookCreateFieldPolicy, - }, - WebhookDelete?: Omit & { - keyFields?: false | WebhookDeleteKeySpecifier | (() => undefined | WebhookDeleteKeySpecifier), - fields?: WebhookDeleteFieldPolicy, - }, - WebhookDryRun?: Omit & { - keyFields?: false | WebhookDryRunKeySpecifier | (() => undefined | WebhookDryRunKeySpecifier), - fields?: WebhookDryRunFieldPolicy, - }, - WebhookDryRunError?: Omit & { - keyFields?: false | WebhookDryRunErrorKeySpecifier | (() => undefined | WebhookDryRunErrorKeySpecifier), - fields?: WebhookDryRunErrorFieldPolicy, - }, - WebhookError?: Omit & { - keyFields?: false | WebhookErrorKeySpecifier | (() => undefined | WebhookErrorKeySpecifier), - fields?: WebhookErrorFieldPolicy, - }, - WebhookEvent?: Omit & { - keyFields?: false | WebhookEventKeySpecifier | (() => undefined | WebhookEventKeySpecifier), - fields?: WebhookEventFieldPolicy, - }, - WebhookEventAsync?: Omit & { - keyFields?: false | WebhookEventAsyncKeySpecifier | (() => undefined | WebhookEventAsyncKeySpecifier), - fields?: WebhookEventAsyncFieldPolicy, - }, - WebhookEventSync?: Omit & { - keyFields?: false | WebhookEventSyncKeySpecifier | (() => undefined | WebhookEventSyncKeySpecifier), - fields?: WebhookEventSyncFieldPolicy, - }, - WebhookTrigger?: Omit & { - keyFields?: false | WebhookTriggerKeySpecifier | (() => undefined | WebhookTriggerKeySpecifier), - fields?: WebhookTriggerFieldPolicy, - }, - WebhookTriggerError?: Omit & { - keyFields?: false | WebhookTriggerErrorKeySpecifier | (() => undefined | WebhookTriggerErrorKeySpecifier), - fields?: WebhookTriggerErrorFieldPolicy, - }, - WebhookUpdate?: Omit & { - keyFields?: false | WebhookUpdateKeySpecifier | (() => undefined | WebhookUpdateKeySpecifier), - fields?: WebhookUpdateFieldPolicy, - }, - Weight?: Omit & { - keyFields?: false | WeightKeySpecifier | (() => undefined | WeightKeySpecifier), - fields?: WeightFieldPolicy, - }, - _Service?: Omit & { - keyFields?: false | _ServiceKeySpecifier | (() => undefined | _ServiceKeySpecifier), - fields?: _ServiceFieldPolicy, - } -}; -export type TypedTypePolicies = StrictTypedTypePolicies & TypePolicies; \ No newline at end of file diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 043b7ca85..85535451f 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -11,144 +11,116 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; - /** - * The `Date` scalar type represents a Date - * value as specified by - * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). - */ Date: any; - /** - * The `DateTime` scalar type represents a DateTime - * value as specified by - * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). - */ DateTime: any; - /** - * The `GenericScalar` scalar type represents a generic - * GraphQL scalar value that could be: - * String, Boolean, Int, Float, List or Object. - */ + Decimal: any; GenericScalar: any; + JSON: any; JSONString: any; - /** - * Metadata is a map of key-value pairs, both keys and values are `String`. - * - * Example: - * ``` - * { - * "key1": "value1", - * "key2": "value2" - * } - * ``` - */ Metadata: any; - /** - * Nonnegative Decimal scalar implementation. - * - * Should be used in places where value must be nonnegative (0 or greater). - */ + Minute: any; PositiveDecimal: any; UUID: any; - /** Variables of this type must be set to null in mutations. They will be replaced with a filename from a following multipart part containing a binary file. See: https://github.com/jaydenseric/graphql-multipart-request-spec. */ Upload: any; WeightScalar: any; - /** _Any value scalar as defined by Federation spec. */ _Any: any; }; /** An enumeration. */ export enum AccountErrorCode { + ACCOUNT_NOT_CONFIRMED = 'ACCOUNT_NOT_CONFIRMED', ACTIVATE_OWN_ACCOUNT = 'ACTIVATE_OWN_ACCOUNT', ACTIVATE_SUPERUSER_ACCOUNT = 'ACTIVATE_SUPERUSER_ACCOUNT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', + CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', DEACTIVATE_OWN_ACCOUNT = 'DEACTIVATE_OWN_ACCOUNT', DEACTIVATE_SUPERUSER_ACCOUNT = 'DEACTIVATE_SUPERUSER_ACCOUNT', DELETE_NON_STAFF_USER = 'DELETE_NON_STAFF_USER', DELETE_OWN_ACCOUNT = 'DELETE_OWN_ACCOUNT', DELETE_STAFF_ACCOUNT = 'DELETE_STAFF_ACCOUNT', DELETE_SUPERUSER_ACCOUNT = 'DELETE_SUPERUSER_ACCOUNT', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INACTIVE = 'INACTIVE', INVALID = 'INVALID', - INVALID_PASSWORD = 'INVALID_PASSWORD', - LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', INVALID_CREDENTIALS = 'INVALID_CREDENTIALS', + INVALID_PASSWORD = 'INVALID_PASSWORD', + JWT_DECODE_ERROR = 'JWT_DECODE_ERROR', + JWT_INVALID_CSRF_TOKEN = 'JWT_INVALID_CSRF_TOKEN', + JWT_INVALID_TOKEN = 'JWT_INVALID_TOKEN', + JWT_MISSING_TOKEN = 'JWT_MISSING_TOKEN', + JWT_SIGNATURE_EXPIRED = 'JWT_SIGNATURE_EXPIRED', + LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', + MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', NOT_FOUND = 'NOT_FOUND', - OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', OUT_OF_SCOPE_GROUP = 'OUT_OF_SCOPE_GROUP', OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', + OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', PASSWORD_ENTIRELY_NUMERIC = 'PASSWORD_ENTIRELY_NUMERIC', + PASSWORD_RESET_ALREADY_REQUESTED = 'PASSWORD_RESET_ALREADY_REQUESTED', PASSWORD_TOO_COMMON = 'PASSWORD_TOO_COMMON', PASSWORD_TOO_SHORT = 'PASSWORD_TOO_SHORT', PASSWORD_TOO_SIMILAR = 'PASSWORD_TOO_SIMILAR', - PASSWORD_RESET_ALREADY_REQUESTED = 'PASSWORD_RESET_ALREADY_REQUESTED', REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - JWT_SIGNATURE_EXPIRED = 'JWT_SIGNATURE_EXPIRED', - JWT_INVALID_TOKEN = 'JWT_INVALID_TOKEN', - JWT_DECODE_ERROR = 'JWT_DECODE_ERROR', - JWT_MISSING_TOKEN = 'JWT_MISSING_TOKEN', - JWT_INVALID_CSRF_TOKEN = 'JWT_INVALID_CSRF_TOKEN', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', - ACCOUNT_NOT_CONFIRMED = 'ACCOUNT_NOT_CONFIRMED' + UNIQUE = 'UNIQUE' } +/** Fields required to update the user. */ export type AccountInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; /** Billing address of the customer. */ defaultBillingAddress?: InputMaybe; /** Shipping address of the customer. */ defaultShippingAddress?: InputMaybe; -}; - -export type AccountRegisterInput = { /** Given name. */ firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; /** User language code. */ languageCode?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; +}; + +/** Fields required to create a user. */ +export type AccountRegisterInput = { + /** Slug of a channel which will be used to notify users. Optional when only one channel exists. */ + channel?: InputMaybe; /** The email address of the user. */ email: Scalars['String']; + /** Given name. */ + firstName?: InputMaybe; + /** User language code. */ + languageCode?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** User public metadata. */ + metadata?: InputMaybe>; /** Password. */ password: Scalars['String']; /** Base of frontend URL that will be needed to create confirmation URL. */ redirectUrl?: InputMaybe; - /** User public metadata. */ - metadata?: InputMaybe>; - /** Slug of a channel which will be used to notify users. Optional when only one channel exists. */ - channel?: InputMaybe; }; export type AddressInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** Company or organization. */ - companyName?: InputMaybe; - /** Address. */ - streetAddress1?: InputMaybe; - /** Address. */ - streetAddress2?: InputMaybe; /** City. */ city?: InputMaybe; /** District. */ cityArea?: InputMaybe; - /** Postal code. */ - postalCode?: InputMaybe; + /** Company or organization. */ + companyName?: InputMaybe; /** Country. */ country?: InputMaybe; /** State or province. */ countryArea?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; /** Phone number. */ phone?: InputMaybe; + /** Postal code. */ + postalCode?: InputMaybe; + /** Address. */ + streetAddress1?: InputMaybe; + /** Address. */ + streetAddress2?: InputMaybe; }; /** An enumeration. */ @@ -167,8 +139,8 @@ export enum AddressTypeEnum { * */ export enum AllocationStrategyEnum { - PRIORITIZE_SORTING_ORDER = 'PRIORITIZE_SORTING_ORDER', - PRIORITIZE_HIGH_STOCK = 'PRIORITIZE_HIGH_STOCK' + PRIORITIZE_HIGH_STOCK = 'PRIORITIZE_HIGH_STOCK', + PRIORITIZE_SORTING_ORDER = 'PRIORITIZE_SORTING_ORDER' } /** An enumeration. */ @@ -176,17 +148,17 @@ export enum AppErrorCode { FORBIDDEN = 'FORBIDDEN', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', - INVALID_STATUS = 'INVALID_STATUS', - INVALID_PERMISSION = 'INVALID_PERMISSION', - INVALID_URL_FORMAT = 'INVALID_URL_FORMAT', - INVALID_MANIFEST_FORMAT = 'INVALID_MANIFEST_FORMAT', INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS', + INVALID_MANIFEST_FORMAT = 'INVALID_MANIFEST_FORMAT', + INVALID_PERMISSION = 'INVALID_PERMISSION', + INVALID_STATUS = 'INVALID_STATUS', + INVALID_URL_FORMAT = 'INVALID_URL_FORMAT', MANIFEST_URL_CANT_CONNECT = 'MANIFEST_URL_CANT_CONNECT', NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', OUT_OF_SCOPE_APP = 'OUT_OF_SCOPE_APP', OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', + REQUIRED = 'REQUIRED', + UNIQUE = 'UNIQUE', UNSUPPORTED_SALEOR_VERSION = 'UNSUPPORTED_SALEOR_VERSION' } @@ -197,21 +169,21 @@ export type AppExtensionFilterInput = { /** All places where app extension can be mounted. */ export enum AppExtensionMountEnum { + CUSTOMER_DETAILS_MORE_ACTIONS = 'CUSTOMER_DETAILS_MORE_ACTIONS', CUSTOMER_OVERVIEW_CREATE = 'CUSTOMER_OVERVIEW_CREATE', CUSTOMER_OVERVIEW_MORE_ACTIONS = 'CUSTOMER_OVERVIEW_MORE_ACTIONS', - CUSTOMER_DETAILS_MORE_ACTIONS = 'CUSTOMER_DETAILS_MORE_ACTIONS', - PRODUCT_OVERVIEW_CREATE = 'PRODUCT_OVERVIEW_CREATE', - PRODUCT_OVERVIEW_MORE_ACTIONS = 'PRODUCT_OVERVIEW_MORE_ACTIONS', - PRODUCT_DETAILS_MORE_ACTIONS = 'PRODUCT_DETAILS_MORE_ACTIONS', NAVIGATION_CATALOG = 'NAVIGATION_CATALOG', - NAVIGATION_ORDERS = 'NAVIGATION_ORDERS', NAVIGATION_CUSTOMERS = 'NAVIGATION_CUSTOMERS', NAVIGATION_DISCOUNTS = 'NAVIGATION_DISCOUNTS', - NAVIGATION_TRANSLATIONS = 'NAVIGATION_TRANSLATIONS', + NAVIGATION_ORDERS = 'NAVIGATION_ORDERS', NAVIGATION_PAGES = 'NAVIGATION_PAGES', + NAVIGATION_TRANSLATIONS = 'NAVIGATION_TRANSLATIONS', ORDER_DETAILS_MORE_ACTIONS = 'ORDER_DETAILS_MORE_ACTIONS', ORDER_OVERVIEW_CREATE = 'ORDER_OVERVIEW_CREATE', - ORDER_OVERVIEW_MORE_ACTIONS = 'ORDER_OVERVIEW_MORE_ACTIONS' + ORDER_OVERVIEW_MORE_ACTIONS = 'ORDER_OVERVIEW_MORE_ACTIONS', + PRODUCT_DETAILS_MORE_ACTIONS = 'PRODUCT_DETAILS_MORE_ACTIONS', + PRODUCT_OVERVIEW_CREATE = 'PRODUCT_OVERVIEW_CREATE', + PRODUCT_OVERVIEW_MORE_ACTIONS = 'PRODUCT_OVERVIEW_MORE_ACTIONS' } /** @@ -222,13 +194,13 @@ export enum AppExtensionMountEnum { * */ export enum AppExtensionTargetEnum { - POPUP = 'POPUP', - APP_PAGE = 'APP_PAGE' + APP_PAGE = 'APP_PAGE', + POPUP = 'POPUP' } export type AppFilterInput = { - search?: InputMaybe; isActive?: InputMaybe; + search?: InputMaybe; type?: InputMaybe; }; @@ -240,35 +212,35 @@ export type AppInput = { }; export type AppInstallInput = { + /** Determine if app will be set active or not. */ + activateAfterInstallation?: InputMaybe; /** Name of the app to install. */ appName?: InputMaybe; /** Url to app's manifest in JSON format. */ manifestUrl?: InputMaybe; - /** Determine if app will be set active or not. */ - activateAfterInstallation?: InputMaybe; /** List of permission code names to assign to this app. */ permissions?: InputMaybe>; }; export enum AppSortField { - /** Sort apps by name. */ - NAME = 'NAME', /** Sort apps by creation date. */ - CREATION_DATE = 'CREATION_DATE' + CREATION_DATE = 'CREATION_DATE', + /** Sort apps by name. */ + NAME = 'NAME' } export type AppSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort apps. */ direction: OrderDirection; /** Sort apps by the selected field. */ field: AppSortField; }; export type AppTokenInput = { - /** Name of the token. */ - name?: InputMaybe; /** ID of app. */ app: Scalars['ID']; + /** Name of the token. */ + name?: InputMaybe; }; /** Enum determining type of your App. */ @@ -282,11 +254,11 @@ export enum AppTypeEnum { /** An enumeration. */ export enum AreaUnitsEnum { SQ_CM = 'SQ_CM', - SQ_M = 'SQ_M', - SQ_KM = 'SQ_KM', SQ_FT = 'SQ_FT', - SQ_YD = 'SQ_YD', - SQ_INCH = 'SQ_INCH' + SQ_INCH = 'SQ_INCH', + SQ_KM = 'SQ_KM', + SQ_M = 'SQ_M', + SQ_YD = 'SQ_YD' } export enum AttributeChoicesSortField { @@ -297,59 +269,59 @@ export enum AttributeChoicesSortField { } export type AttributeChoicesSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort attribute choices. */ direction: OrderDirection; /** Sort attribute choices by the selected field. */ field: AttributeChoicesSortField; }; export type AttributeCreateInput = { - /** The input type to use for entering attribute values in the dashboard. */ - inputType?: InputMaybe; - /** The entity type which can be used as a reference. */ - entityType?: InputMaybe; - /** Name of an attribute displayed in the interface. */ - name: Scalars['String']; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** The attribute type. */ - type: AttributeTypeEnum; - /** The unit of attribute values. */ - unit?: InputMaybe; - /** List of attribute's values. */ - values?: InputMaybe>; - /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; - /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; - /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; - /** - * Whether the attribute can be filtered in storefront. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - filterableInStorefront?: InputMaybe; - /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; - /** - * The position of the attribute in the storefront navigation (0 by default). - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - storefrontSearchPosition?: InputMaybe; /** * Whether the attribute can be displayed in the admin product list. * * DEPRECATED: this field will be removed in Saleor 4.0. */ availableInGrid?: InputMaybe; + /** The entity type which can be used as a reference. */ + entityType?: InputMaybe; /** * External ID of this attribute. * * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** Whether the attribute can be filtered in dashboard. */ + filterableInDashboard?: InputMaybe; + /** + * Whether the attribute can be filtered in storefront. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + filterableInStorefront?: InputMaybe; + /** The input type to use for entering attribute values in the dashboard. */ + inputType?: InputMaybe; + /** Whether the attribute is for variants only. */ + isVariantOnly?: InputMaybe; + /** Name of an attribute displayed in the interface. */ + name: Scalars['String']; + /** Internal representation of an attribute name. */ + slug?: InputMaybe; + /** + * The position of the attribute in the storefront navigation (0 by default). + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + storefrontSearchPosition?: InputMaybe; + /** The attribute type. */ + type: AttributeTypeEnum; + /** The unit of attribute values. */ + unit?: InputMaybe; + /** Whether the attribute requires values to be passed or not. */ + valueRequired?: InputMaybe; + /** List of attribute's values. */ + values?: InputMaybe>; + /** Whether the attribute should be visible or not in storefront. */ + visibleInStorefront?: InputMaybe; }; /** An enumeration. */ @@ -377,55 +349,55 @@ export enum AttributeErrorCode { } export type AttributeFilterInput = { - valueRequired?: InputMaybe; - isVariantOnly?: InputMaybe; - visibleInStorefront?: InputMaybe; - filterableInStorefront?: InputMaybe; - filterableInDashboard?: InputMaybe; availableInGrid?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - ids?: InputMaybe>; - type?: InputMaybe; - inCollection?: InputMaybe; - inCategory?: InputMaybe; - slugs?: InputMaybe>; /** * Specifies the channel by which the data should be filtered. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ channel?: InputMaybe; + filterableInDashboard?: InputMaybe; + filterableInStorefront?: InputMaybe; + ids?: InputMaybe>; + inCategory?: InputMaybe; + inCollection?: InputMaybe; + isVariantOnly?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; + type?: InputMaybe; + valueRequired?: InputMaybe; + visibleInStorefront?: InputMaybe; }; export type AttributeInput = { + /** The boolean value of the attribute. */ + boolean?: InputMaybe; + /** The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. */ + date?: InputMaybe; + /** The date/time range that the returned values should be in. */ + dateTime?: InputMaybe; /** Internal representation of an attribute name. */ slug: Scalars['String']; /** Internal representation of a value (unique per attribute). */ values?: InputMaybe>; /** The range that the returned values should be in. */ valuesRange?: InputMaybe; - /** The date/time range that the returned values should be in. */ - dateTime?: InputMaybe; - /** The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. */ - date?: InputMaybe; - /** The boolean value of the attribute. */ - boolean?: InputMaybe; }; /** An enumeration. */ export enum AttributeInputTypeEnum { - DROPDOWN = 'DROPDOWN', - MULTISELECT = 'MULTISELECT', - FILE = 'FILE', - REFERENCE = 'REFERENCE', - NUMERIC = 'NUMERIC', - RICH_TEXT = 'RICH_TEXT', - PLAIN_TEXT = 'PLAIN_TEXT', - SWATCH = 'SWATCH', BOOLEAN = 'BOOLEAN', DATE = 'DATE', - DATE_TIME = 'DATE_TIME' + DATE_TIME = 'DATE_TIME', + DROPDOWN = 'DROPDOWN', + FILE = 'FILE', + MULTISELECT = 'MULTISELECT', + NUMERIC = 'NUMERIC', + PLAIN_TEXT = 'PLAIN_TEXT', + REFERENCE = 'REFERENCE', + RICH_TEXT = 'RICH_TEXT', + SWATCH = 'SWATCH' } export type AttributeInputTypeEnumFilterInput = { @@ -436,28 +408,28 @@ export type AttributeInputTypeEnumFilterInput = { }; export enum AttributeSortField { + /** Sort attributes based on whether they can be displayed or not in a product grid. */ + AVAILABLE_IN_GRID = 'AVAILABLE_IN_GRID', + /** Sort attributes by the filterable in dashboard flag */ + FILTERABLE_IN_DASHBOARD = 'FILTERABLE_IN_DASHBOARD', + /** Sort attributes by the filterable in storefront flag */ + FILTERABLE_IN_STOREFRONT = 'FILTERABLE_IN_STOREFRONT', + /** Sort attributes by the variant only flag */ + IS_VARIANT_ONLY = 'IS_VARIANT_ONLY', /** Sort attributes by name */ NAME = 'NAME', /** Sort attributes by slug */ SLUG = 'SLUG', - /** Sort attributes by the value required flag */ - VALUE_REQUIRED = 'VALUE_REQUIRED', - /** Sort attributes by the variant only flag */ - IS_VARIANT_ONLY = 'IS_VARIANT_ONLY', - /** Sort attributes by visibility in the storefront */ - VISIBLE_IN_STOREFRONT = 'VISIBLE_IN_STOREFRONT', - /** Sort attributes by the filterable in storefront flag */ - FILTERABLE_IN_STOREFRONT = 'FILTERABLE_IN_STOREFRONT', - /** Sort attributes by the filterable in dashboard flag */ - FILTERABLE_IN_DASHBOARD = 'FILTERABLE_IN_DASHBOARD', /** Sort attributes by their position in storefront */ STOREFRONT_SEARCH_POSITION = 'STOREFRONT_SEARCH_POSITION', - /** Sort attributes based on whether they can be displayed or not in a product grid. */ - AVAILABLE_IN_GRID = 'AVAILABLE_IN_GRID' + /** Sort attributes by the value required flag */ + VALUE_REQUIRED = 'VALUE_REQUIRED', + /** Sort attributes by visibility in the storefront */ + VISIBLE_IN_STOREFRONT = 'VISIBLE_IN_STOREFRONT' } export type AttributeSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort attributes. */ direction: OrderDirection; /** Sort attributes by the selected field. */ field: AttributeSortField; @@ -465,8 +437,8 @@ export type AttributeSortingInput = { /** An enumeration. */ export enum AttributeTypeEnum { - PRODUCT_TYPE = 'PRODUCT_TYPE', - PAGE_TYPE = 'PAGE_TYPE' + PAGE_TYPE = 'PAGE_TYPE', + PRODUCT_TYPE = 'PRODUCT_TYPE' } export type AttributeTypeEnumFilterInput = { @@ -477,36 +449,8 @@ export type AttributeTypeEnumFilterInput = { }; export type AttributeUpdateInput = { - /** Name of an attribute displayed in the interface. */ - name?: InputMaybe; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** The unit of attribute values. */ - unit?: InputMaybe; - /** IDs of values to be removed from this attribute. */ - removeValues?: InputMaybe>; /** New values to be created for this attribute. */ addValues?: InputMaybe>; - /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; - /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; - /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; - /** - * Whether the attribute can be filtered in storefront. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - filterableInStorefront?: InputMaybe; - /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; - /** - * The position of the attribute in the storefront navigation (0 by default). - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - storefrontSearchPosition?: InputMaybe; /** * Whether the attribute can be displayed in the admin product list. * @@ -519,27 +463,37 @@ export type AttributeUpdateInput = { * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** Whether the attribute can be filtered in dashboard. */ + filterableInDashboard?: InputMaybe; + /** + * Whether the attribute can be filtered in storefront. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + filterableInStorefront?: InputMaybe; + /** Whether the attribute is for variants only. */ + isVariantOnly?: InputMaybe; + /** Name of an attribute displayed in the interface. */ + name?: InputMaybe; + /** IDs of values to be removed from this attribute. */ + removeValues?: InputMaybe>; + /** Internal representation of an attribute name. */ + slug?: InputMaybe; + /** + * The position of the attribute in the storefront navigation (0 by default). + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + storefrontSearchPosition?: InputMaybe; + /** The unit of attribute values. */ + unit?: InputMaybe; + /** Whether the attribute requires values to be passed or not. */ + valueRequired?: InputMaybe; + /** Whether the attribute should be visible or not in storefront. */ + visibleInStorefront?: InputMaybe; }; export type AttributeValueCreateInput = { - /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; - /** - * Represents the text of the attribute value, includes formatting. - * - * Rich text format. For reference see https://editorjs.io/ - * - * DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - richText?: InputMaybe; - /** - * Represents the text of the attribute value, plain text without formating. - * - * DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - plainText?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; /** File content type. */ contentType?: InputMaybe; /** @@ -548,32 +502,52 @@ export type AttributeValueCreateInput = { * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** URL of the file attribute. Every time, a new value is created. */ + fileUrl?: InputMaybe; /** Name of a value displayed in the interface. */ name: Scalars['String']; + /** + * Represents the text of the attribute value, plain text without formating. + * + * DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + */ + plainText?: InputMaybe; + /** + * Represents the text of the attribute value, includes formatting. + * + * Rich text format. For reference see https://editorjs.io/ + * + * DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + */ + richText?: InputMaybe; + /** Represent value of the attribute value (e.g. color values for swatch attributes). */ + value?: InputMaybe; }; export type AttributeValueFilterInput = { - search?: InputMaybe; ids?: InputMaybe>; + search?: InputMaybe; }; export type AttributeValueInput = { - /** ID of the selected attribute. */ - id?: InputMaybe; - /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. This field will be removed in Saleor 4.0. */ - values?: InputMaybe>; + /** Represents the boolean value of the attribute value. */ + boolean?: InputMaybe; + /** File content type. */ + contentType?: InputMaybe; + /** Represents the date value of the attribute value. */ + date?: InputMaybe; + /** Represents the date/time value of the attribute value. */ + dateTime?: InputMaybe; /** * Attribute value ID. * * Added in Saleor 3.9. */ dropdown?: InputMaybe; - /** - * Attribute value ID. - * - * Added in Saleor 3.9. - */ - swatch?: InputMaybe; + /** URL of the file attribute. Every time, a new value is created. */ + file?: InputMaybe; + /** ID of the selected attribute. */ + id?: InputMaybe; /** * List of attribute value IDs. * @@ -586,22 +560,20 @@ export type AttributeValueInput = { * Added in Saleor 3.9. */ numeric?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - file?: InputMaybe; - /** File content type. */ - contentType?: InputMaybe; + /** Plain text content. */ + plainText?: InputMaybe; /** List of entity IDs that will be used as references. */ references?: InputMaybe>; /** Text content in JSON format. */ richText?: InputMaybe; - /** Plain text content. */ - plainText?: InputMaybe; - /** Represents the boolean value of the attribute value. */ - boolean?: InputMaybe; - /** Represents the date value of the attribute value. */ - date?: InputMaybe; - /** Represents the date/time value of the attribute value. */ - dateTime?: InputMaybe; + /** + * Attribute value ID. + * + * Added in Saleor 3.9. + */ + swatch?: InputMaybe; + /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. This field will be removed in Saleor 4.0. */ + values?: InputMaybe>; }; /** @@ -618,35 +590,17 @@ export type AttributeValueSelectableTypeInput = { export type AttributeValueTranslationInput = { name?: InputMaybe; + /** Translated text. */ + plainText?: InputMaybe; /** * Translated text. * * Rich text format. For reference see https://editorjs.io/ */ richText?: InputMaybe; - /** Translated text. */ - plainText?: InputMaybe; }; export type AttributeValueUpdateInput = { - /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; - /** - * Represents the text of the attribute value, includes formatting. - * - * Rich text format. For reference see https://editorjs.io/ - * - * DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - richText?: InputMaybe; - /** - * Represents the text of the attribute value, plain text without formating. - * - * DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - plainText?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; /** File content type. */ contentType?: InputMaybe; /** @@ -655,8 +609,26 @@ export type AttributeValueUpdateInput = { * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** URL of the file attribute. Every time, a new value is created. */ + fileUrl?: InputMaybe; /** Name of a value displayed in the interface. */ name?: InputMaybe; + /** + * Represents the text of the attribute value, plain text without formating. + * + * DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + */ + plainText?: InputMaybe; + /** + * Represents the text of the attribute value, includes formatting. + * + * Rich text format. For reference see https://editorjs.io/ + * + * DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + */ + richText?: InputMaybe; + /** Represent value of the attribute value (e.g. color values for swatch attributes). */ + value?: InputMaybe; }; /** @@ -667,31 +639,47 @@ export type AttributeValueUpdateInput = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type AttributeWhereInput = { - valueRequired?: InputMaybe; - visibleInStorefront?: InputMaybe; - filterableInDashboard?: InputMaybe; - metadata?: InputMaybe>; - ids?: InputMaybe>; - name?: InputMaybe; - slug?: InputMaybe; - withChoices?: InputMaybe; - inputType?: InputMaybe; - entityType?: InputMaybe; - type?: InputMaybe; - unit?: InputMaybe; - inCollection?: InputMaybe; - inCategory?: InputMaybe; /** List of conditions that must be met. */ AND?: InputMaybe>; /** A list of conditions of which at least one must be met. */ OR?: InputMaybe>; + entityType?: InputMaybe; + filterableInDashboard?: InputMaybe; + ids?: InputMaybe>; + inCategory?: InputMaybe; + inCollection?: InputMaybe; + inputType?: InputMaybe; + metadata?: InputMaybe>; + name?: InputMaybe; + slug?: InputMaybe; + type?: InputMaybe; + unit?: InputMaybe; + valueRequired?: InputMaybe; + visibleInStorefront?: InputMaybe; + withChoices?: InputMaybe; }; export type BulkAttributeValueInput = { - /** ID of the selected attribute. */ - id?: InputMaybe; - /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.This field will be removed in Saleor 4.0. */ - values?: InputMaybe>; + /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ + boolean?: InputMaybe; + /** + * File content type. + * + * Added in Saleor 3.12. + */ + contentType?: InputMaybe; + /** + * Represents the date value of the attribute value. + * + * Added in Saleor 3.12. + */ + date?: InputMaybe; + /** + * Represents the date/time value of the attribute value. + * + * Added in Saleor 3.12. + */ + dateTime?: InputMaybe; /** * Attribute value ID. * @@ -699,11 +687,13 @@ export type BulkAttributeValueInput = { */ dropdown?: InputMaybe; /** - * Attribute value ID. + * URL of the file attribute. Every time, a new value is created. * * Added in Saleor 3.12. */ - swatch?: InputMaybe; + file?: InputMaybe; + /** ID of the selected attribute. */ + id?: InputMaybe; /** * List of attribute value IDs. * @@ -717,17 +707,11 @@ export type BulkAttributeValueInput = { */ numeric?: InputMaybe; /** - * URL of the file attribute. Every time, a new value is created. + * Plain text content. * * Added in Saleor 3.12. */ - file?: InputMaybe; - /** - * File content type. - * - * Added in Saleor 3.12. - */ - contentType?: InputMaybe; + plainText?: InputMaybe; /** * List of entity IDs that will be used as references. * @@ -741,25 +725,13 @@ export type BulkAttributeValueInput = { */ richText?: InputMaybe; /** - * Plain text content. + * Attribute value ID. * * Added in Saleor 3.12. */ - plainText?: InputMaybe; - /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ - boolean?: InputMaybe; - /** - * Represents the date value of the attribute value. - * - * Added in Saleor 3.12. - */ - date?: InputMaybe; - /** - * Represents the date/time value of the attribute value. - * - * Added in Saleor 3.12. - */ - dateTime?: InputMaybe; + swatch?: InputMaybe; + /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.This field will be removed in Saleor 4.0. */ + values?: InputMaybe>; }; export type CardInput = { @@ -772,12 +744,12 @@ export type CardInput = { }; export type CatalogueInput = { - /** Products related to the discount. */ - products?: InputMaybe>; /** Categories related to the discount. */ categories?: InputMaybe>; /** Collections related to the discount. */ collections?: InputMaybe>; + /** Products related to the discount. */ + products?: InputMaybe>; /** * Product variant related to the discount. * @@ -787,41 +759,41 @@ export type CatalogueInput = { }; export type CategoryFilterInput = { - search?: InputMaybe; - metadata?: InputMaybe>; ids?: InputMaybe>; + metadata?: InputMaybe>; + search?: InputMaybe; slugs?: InputMaybe>; }; export type CategoryInput = { + /** Background image file. */ + backgroundImage?: InputMaybe; + /** Alt text for a product media. */ + backgroundImageAlt?: InputMaybe; /** * Category description. * * Rich text format. For reference see https://editorjs.io/ */ description?: InputMaybe; - /** Category name. */ - name?: InputMaybe; - /** Category slug. */ - slug?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for a product media. */ - backgroundImageAlt?: InputMaybe; /** * Fields required to update the category metadata. * * Added in Saleor 3.8. */ metadata?: InputMaybe>; + /** Category name. */ + name?: InputMaybe; /** * Fields required to update the category private metadata. * * Added in Saleor 3.8. */ privateMetadata?: InputMaybe>; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Category slug. */ + slug?: InputMaybe; }; export enum CategorySortField { @@ -834,59 +806,53 @@ export enum CategorySortField { } export type CategorySortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; /** * Specifies the channel in which to sort the data. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ channel?: InputMaybe; + /** Specifies the direction in which to sort categories. */ + direction: OrderDirection; /** Sort categories by the selected field. */ field: CategorySortField; }; export type ChannelCreateInput = { - /** isActive flag. */ - isActive?: InputMaybe; - /** - * The channel stock settings. - * - * Added in Saleor 3.7. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - stockSettings?: InputMaybe; /** List of shipping zones to assign to the channel. */ addShippingZones?: InputMaybe>; /** * List of warehouses to assign to the channel. * * Added in Saleor 3.5. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ addWarehouses?: InputMaybe>; - /** - * The channel order settings - * - * Added in Saleor 3.12. - */ - orderSettings?: InputMaybe; - /** Name of the channel. */ - name: Scalars['String']; - /** Slug of the channel. */ - slug: Scalars['String']; /** Currency of the channel. */ currencyCode: Scalars['String']; /** * Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ defaultCountry: CountryCode; + /** isActive flag. */ + isActive?: InputMaybe; + /** Name of the channel. */ + name: Scalars['String']; + /** + * The channel order settings + * + * Added in Saleor 3.12. + */ + orderSettings?: InputMaybe; + /** Slug of the channel. */ + slug: Scalars['String']; + /** + * The channel stock settings. + * + * Added in Saleor 3.7. + */ + stockSettings?: InputMaybe; }; export type ChannelDeleteInput = { @@ -897,104 +863,141 @@ export type ChannelDeleteInput = { /** An enumeration. */ export enum ChannelErrorCode { ALREADY_EXISTS = 'ALREADY_EXISTS', + CHANNELS_CURRENCY_MUST_BE_THE_SAME = 'CHANNELS_CURRENCY_MUST_BE_THE_SAME', + CHANNEL_WITH_ORDERS = 'CHANNEL_WITH_ORDERS', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', NOT_FOUND = 'NOT_FOUND', REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - CHANNELS_CURRENCY_MUST_BE_THE_SAME = 'CHANNELS_CURRENCY_MUST_BE_THE_SAME', - CHANNEL_WITH_ORDERS = 'CHANNEL_WITH_ORDERS', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM' + UNIQUE = 'UNIQUE' } export type ChannelListingUpdateInput = { /** ID of a channel listing. */ channelListing: Scalars['ID']; - /** Price of the particular variant in channel. */ - price?: InputMaybe; /** Cost price of the variant in channel. */ costPrice?: InputMaybe; /** The threshold for preorder variant in channel. */ preorderThreshold?: InputMaybe; + /** Price of the particular variant in channel. */ + price?: InputMaybe; }; export type ChannelUpdateInput = { - /** isActive flag. */ - isActive?: InputMaybe; - /** - * The channel stock settings. - * - * Added in Saleor 3.7. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - stockSettings?: InputMaybe; /** List of shipping zones to assign to the channel. */ addShippingZones?: InputMaybe>; /** * List of warehouses to assign to the channel. * * Added in Saleor 3.5. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ addWarehouses?: InputMaybe>; - /** - * The channel order settings - * - * Added in Saleor 3.12. - */ - orderSettings?: InputMaybe; - /** Name of the channel. */ - name?: InputMaybe; - /** Slug of the channel. */ - slug?: InputMaybe; /** * Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. * * Added in Saleor 3.1. */ defaultCountry?: InputMaybe; + /** isActive flag. */ + isActive?: InputMaybe; + /** Name of the channel. */ + name?: InputMaybe; + /** + * The channel order settings + * + * Added in Saleor 3.12. + */ + orderSettings?: InputMaybe; /** List of shipping zones to unassign from the channel. */ removeShippingZones?: InputMaybe>; /** * List of warehouses to unassign from the channel. * * Added in Saleor 3.5. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ removeWarehouses?: InputMaybe>; + /** Slug of the channel. */ + slug?: InputMaybe; + /** + * The channel stock settings. + * + * Added in Saleor 3.7. + */ + stockSettings?: InputMaybe; }; export type CheckoutAddressValidationRules = { - /** Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input. */ - checkRequiredFields?: InputMaybe; /** Determines if an error should be raised when the provided address doesn't match the expected format. Example: using letters for postal code when the numbers are expected. */ checkFieldsFormat?: InputMaybe; + /** Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input. */ + checkRequiredFields?: InputMaybe; /** Determines if Saleor should apply normalization on address fields. Example: converting city field to uppercase letters. */ enableFieldsNormalization?: InputMaybe; }; +/** + * Determine a current authorize status for checkout. + * + * We treat the checkout as fully authorized when the sum of authorized and charged + * funds cover the checkout.total. + * We treat the checkout as partially authorized when the sum of authorized and charged + * funds covers only part of the checkout.total + * We treat the checkout as not authorized when the sum of authorized and charged funds + * is 0. + * + * NONE - the funds are not authorized + * PARTIAL - the cover funds don't cover fully the checkout's total + * FULL - the cover funds covers the checkout's total + * + */ +export enum CheckoutAuthorizeStatusEnum { + FULL = 'FULL', + NONE = 'NONE', + PARTIAL = 'PARTIAL' +} + +/** + * Determine the current charge status for the checkout. + * + * The checkout is considered overcharged when the sum of the transactionItem's charge + * amounts exceeds the value of `checkout.total`. + * If the sum of the transactionItem's charge amounts equals + * `checkout.total`, we consider the checkout to be fully charged. + * If the sum of the transactionItem's charge amounts covers a part of the + * `checkout.total`, we treat the checkout as partially charged. + * + * + * NONE - the funds are not charged. + * PARTIAL - the funds that are charged don't cover the checkout's total + * FULL - the funds that are charged fully cover the checkout's total + * OVERCHARGED - the charged funds are bigger than checkout's total + * + */ +export enum CheckoutChargeStatusEnum { + FULL = 'FULL', + NONE = 'NONE', + OVERCHARGED = 'OVERCHARGED', + PARTIAL = 'PARTIAL' +} + export type CheckoutCreateInput = { - /** Slug of a channel in which to create a checkout. */ - channel?: InputMaybe; - /** A list of checkout lines, each containing information about an item in the checkout. */ - lines: Array; - /** The customer's email address. */ - email?: InputMaybe; - /** The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn't contain shippable items. */ - shippingAddress?: InputMaybe; /** Billing address of the customer. */ billingAddress?: InputMaybe; + /** Slug of a channel in which to create a checkout. */ + channel?: InputMaybe; + /** The customer's email address. */ + email?: InputMaybe; /** Checkout language code. */ languageCode?: InputMaybe; + /** A list of checkout lines, each containing information about an item in the checkout. */ + lines: Array; + /** The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn't contain shippable items. */ + shippingAddress?: InputMaybe; /** * The checkout validation rules that can be changed. * * Added in Saleor 3.5. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ validationRules?: InputMaybe; }; @@ -1002,62 +1005,51 @@ export type CheckoutCreateInput = { /** An enumeration. */ export enum CheckoutErrorCode { BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', + CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', CHECKOUT_NOT_FULLY_PAID = 'CHECKOUT_NOT_FULLY_PAID', + DELIVERY_METHOD_NOT_APPLICABLE = 'DELIVERY_METHOD_NOT_APPLICABLE', + EMAIL_NOT_SET = 'EMAIL_NOT_SET', + GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', GRAPHQL_ERROR = 'GRAPHQL_ERROR', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', + INACTIVE_PAYMENT = 'INACTIVE_PAYMENT', INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', INVALID = 'INVALID', INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', + MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', NOT_FOUND = 'NOT_FOUND', + NO_LINES = 'NO_LINES', PAYMENT_ERROR = 'PAYMENT_ERROR', + PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', + PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', QUANTITY_GREATER_THAN_LIMIT = 'QUANTITY_GREATER_THAN_LIMIT', REQUIRED = 'REQUIRED', SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', SHIPPING_METHOD_NOT_APPLICABLE = 'SHIPPING_METHOD_NOT_APPLICABLE', - DELIVERY_METHOD_NOT_APPLICABLE = 'DELIVERY_METHOD_NOT_APPLICABLE', SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', SHIPPING_NOT_REQUIRED = 'SHIPPING_NOT_REQUIRED', TAX_ERROR = 'TAX_ERROR', + UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', UNIQUE = 'UNIQUE', VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE', - GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', - ZERO_QUANTITY = 'ZERO_QUANTITY', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - NO_LINES = 'NO_LINES', - INACTIVE_PAYMENT = 'INACTIVE_PAYMENT' + ZERO_QUANTITY = 'ZERO_QUANTITY' } export type CheckoutFilterInput = { - customer?: InputMaybe; - created?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; + authorizeStatus?: InputMaybe>; channels?: InputMaybe>; + chargeStatus?: InputMaybe>; + created?: InputMaybe; + customer?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; + updatedAt?: InputMaybe; }; export type CheckoutLineInput = { - /** The number of items purchased. */ - quantity: Scalars['Int']; - /** ID of the product variant. */ - variantId: Scalars['ID']; - /** - * Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - price?: InputMaybe; /** * Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. * * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ forceNewLine?: InputMaybe; /** @@ -1066,31 +1058,39 @@ export type CheckoutLineInput = { * Added in Saleor 3.8. */ metadata?: InputMaybe>; -}; - -export type CheckoutLineUpdateInput = { - /** - * ID of the product variant. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. - */ - variantId?: InputMaybe; - /** The number of items purchased. Optional for apps, required for any other users. */ - quantity?: InputMaybe; /** * Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ price?: InputMaybe; + /** The number of items purchased. */ + quantity: Scalars['Int']; + /** ID of the product variant. */ + variantId: Scalars['ID']; +}; + +export type CheckoutLineUpdateInput = { /** * ID of the line. * * Added in Saleor 3.6. */ lineId?: InputMaybe; + /** + * Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. + * + * Added in Saleor 3.1. + */ + price?: InputMaybe; + /** The number of items purchased. Optional for apps, required for any other users. */ + quantity?: InputMaybe; + /** + * ID of the product variant. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. + */ + variantId?: InputMaybe; }; export enum CheckoutSortField { @@ -1103,17 +1103,17 @@ export enum CheckoutSortField { } export type CheckoutSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort checkouts. */ direction: OrderDirection; /** Sort checkouts by the selected field. */ field: CheckoutSortField; }; export type CheckoutValidationRules = { - /** The validation rules that can be applied to provided shipping address data. */ - shippingAddress?: InputMaybe; /** The validation rules that can be applied to provided billing address data. */ billingAddress?: InputMaybe; + /** The validation rules that can be applied to provided shipping address data. */ + shippingAddress?: InputMaybe; }; export type CollectionChannelListingUpdateInput = { @@ -1124,36 +1124,26 @@ export type CollectionChannelListingUpdateInput = { }; export type CollectionCreateInput = { - /** Informs whether a collection is published. */ - isPublished?: InputMaybe; - /** Name of the collection. */ - name?: InputMaybe; - /** Slug of the collection. */ - slug?: InputMaybe; + /** Background image file. */ + backgroundImage?: InputMaybe; + /** Alt text for an image. */ + backgroundImageAlt?: InputMaybe; /** * Description of the collection. * * Rich text format. For reference see https://editorjs.io/ */ description?: InputMaybe; - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - publicationDate?: InputMaybe; + /** Informs whether a collection is published. */ + isPublished?: InputMaybe; /** * Fields required to update the collection metadata. * * Added in Saleor 3.8. */ metadata?: InputMaybe>; + /** Name of the collection. */ + name?: InputMaybe; /** * Fields required to update the collection private metadata. * @@ -1162,86 +1152,96 @@ export type CollectionCreateInput = { privateMetadata?: InputMaybe>; /** List of products to be added to the collection. */ products?: InputMaybe>; -}; - -/** An enumeration. */ -export enum CollectionErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT' -} - -export type CollectionFilterInput = { - published?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - ids?: InputMaybe>; - slugs?: InputMaybe>; - /** - * Specifies the channel by which the data should be filtered. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; -}; - -export type CollectionInput = { - /** Informs whether a collection is published. */ - isPublished?: InputMaybe; - /** Name of the collection. */ - name?: InputMaybe; - /** Slug of the collection. */ - slug?: InputMaybe; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; /** * Publication date. ISO 8601 standard. * * DEPRECATED: this field will be removed in Saleor 4.0. */ publicationDate?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Slug of the collection. */ + slug?: InputMaybe; +}; + +/** An enumeration. */ +export enum CollectionErrorCode { + CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID = 'INVALID', + NOT_FOUND = 'NOT_FOUND', + REQUIRED = 'REQUIRED', + UNIQUE = 'UNIQUE' +} + +export type CollectionFilterInput = { + /** + * Specifies the channel by which the data should be filtered. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. + */ + channel?: InputMaybe; + ids?: InputMaybe>; + metadata?: InputMaybe>; + published?: InputMaybe; + search?: InputMaybe; + slugs?: InputMaybe>; +}; + +export type CollectionInput = { + /** Background image file. */ + backgroundImage?: InputMaybe; + /** Alt text for an image. */ + backgroundImageAlt?: InputMaybe; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + /** Informs whether a collection is published. */ + isPublished?: InputMaybe; /** * Fields required to update the collection metadata. * * Added in Saleor 3.8. */ metadata?: InputMaybe>; + /** Name of the collection. */ + name?: InputMaybe; /** * Fields required to update the collection private metadata. * * Added in Saleor 3.8. */ privateMetadata?: InputMaybe>; + /** + * Publication date. ISO 8601 standard. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + publicationDate?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Slug of the collection. */ + slug?: InputMaybe; }; export enum CollectionPublished { - PUBLISHED = 'PUBLISHED', - HIDDEN = 'HIDDEN' + HIDDEN = 'HIDDEN', + PUBLISHED = 'PUBLISHED' } export enum CollectionSortField { - /** Sort collections by name. */ - NAME = 'NAME', /** * Sort collections by availability. * * This option requires a channel filter to work as the values can vary between channels. */ AVAILABILITY = 'AVAILABILITY', + /** Sort collections by name. */ + NAME = 'NAME', /** Sort collections by product count. */ PRODUCT_COUNT = 'PRODUCT_COUNT', /** @@ -1259,14 +1259,14 @@ export enum CollectionSortField { } export type CollectionSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; /** * Specifies the channel in which to sort the data. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ channel?: InputMaybe; + /** Specifies the direction in which to sort collections. */ + direction: OrderDirection; /** Sort collections by the selected field. */ field: CollectionSortField; }; @@ -1280,265 +1280,265 @@ export type ConfigurationItemInput = { /** An enumeration. */ export enum ConfigurationTypeFieldEnum { - STRING = 'STRING', - MULTILINE = 'MULTILINE', BOOLEAN = 'BOOLEAN', - SECRET = 'SECRET', + MULTILINE = 'MULTILINE', + OUTPUT = 'OUTPUT', PASSWORD = 'PASSWORD', + SECRET = 'SECRET', SECRETMULTILINE = 'SECRETMULTILINE', - OUTPUT = 'OUTPUT' + STRING = 'STRING' } /** An enumeration. */ export enum CountryCode { - AF = 'AF', - AX = 'AX', - AL = 'AL', - DZ = 'DZ', - AS = 'AS', AD = 'AD', - AO = 'AO', - AI = 'AI', - AQ = 'AQ', + AE = 'AE', + AF = 'AF', AG = 'AG', - AR = 'AR', + AI = 'AI', + AL = 'AL', AM = 'AM', - AW = 'AW', - AU = 'AU', + AO = 'AO', + AQ = 'AQ', + AR = 'AR', + AS = 'AS', AT = 'AT', + AU = 'AU', + AW = 'AW', + AX = 'AX', AZ = 'AZ', - BS = 'BS', - BH = 'BH', - BD = 'BD', + BA = 'BA', BB = 'BB', - BY = 'BY', + BD = 'BD', BE = 'BE', - BZ = 'BZ', + BF = 'BF', + BG = 'BG', + BH = 'BH', + BI = 'BI', BJ = 'BJ', + BL = 'BL', BM = 'BM', - BT = 'BT', + BN = 'BN', BO = 'BO', BQ = 'BQ', - BA = 'BA', - BW = 'BW', - BV = 'BV', BR = 'BR', - IO = 'IO', - BN = 'BN', - BG = 'BG', - BF = 'BF', - BI = 'BI', - CV = 'CV', - KH = 'KH', - CM = 'CM', + BS = 'BS', + BT = 'BT', + BV = 'BV', + BW = 'BW', + BY = 'BY', + BZ = 'BZ', CA = 'CA', - KY = 'KY', - CF = 'CF', - TD = 'TD', - CL = 'CL', - CN = 'CN', - CX = 'CX', CC = 'CC', - CO = 'CO', - KM = 'KM', - CG = 'CG', CD = 'CD', - CK = 'CK', - CR = 'CR', + CF = 'CF', + CG = 'CG', + CH = 'CH', CI = 'CI', - HR = 'HR', + CK = 'CK', + CL = 'CL', + CM = 'CM', + CN = 'CN', + CO = 'CO', + CR = 'CR', CU = 'CU', + CV = 'CV', CW = 'CW', + CX = 'CX', CY = 'CY', CZ = 'CZ', - DK = 'DK', + DE = 'DE', DJ = 'DJ', + DK = 'DK', DM = 'DM', DO = 'DO', + DZ = 'DZ', EC = 'EC', - EG = 'EG', - SV = 'SV', - GQ = 'GQ', - ER = 'ER', EE = 'EE', - SZ = 'SZ', + EG = 'EG', + EH = 'EH', + ER = 'ER', + ES = 'ES', ET = 'ET', EU = 'EU', - FK = 'FK', - FO = 'FO', - FJ = 'FJ', FI = 'FI', + FJ = 'FJ', + FK = 'FK', + FM = 'FM', + FO = 'FO', FR = 'FR', - GF = 'GF', - PF = 'PF', - TF = 'TF', GA = 'GA', - GM = 'GM', + GB = 'GB', + GD = 'GD', GE = 'GE', - DE = 'DE', + GF = 'GF', + GG = 'GG', GH = 'GH', GI = 'GI', - GR = 'GR', GL = 'GL', - GD = 'GD', - GP = 'GP', - GU = 'GU', - GT = 'GT', - GG = 'GG', + GM = 'GM', GN = 'GN', + GP = 'GP', + GQ = 'GQ', + GR = 'GR', + GS = 'GS', + GT = 'GT', + GU = 'GU', GW = 'GW', GY = 'GY', - HT = 'HT', - HM = 'HM', - VA = 'VA', - HN = 'HN', HK = 'HK', + HM = 'HM', + HN = 'HN', + HR = 'HR', + HT = 'HT', HU = 'HU', - IS = 'IS', - IN = 'IN', ID = 'ID', - IR = 'IR', - IQ = 'IQ', IE = 'IE', - IM = 'IM', IL = 'IL', + IM = 'IM', + IN = 'IN', + IO = 'IO', + IQ = 'IQ', + IR = 'IR', + IS = 'IS', IT = 'IT', - JM = 'JM', - JP = 'JP', JE = 'JE', + JM = 'JM', JO = 'JO', - KZ = 'KZ', + JP = 'JP', KE = 'KE', - KI = 'KI', - KW = 'KW', KG = 'KG', + KH = 'KH', + KI = 'KI', + KM = 'KM', + KN = 'KN', + KP = 'KP', + KR = 'KR', + KW = 'KW', + KY = 'KY', + KZ = 'KZ', LA = 'LA', - LV = 'LV', LB = 'LB', - LS = 'LS', - LR = 'LR', - LY = 'LY', + LC = 'LC', LI = 'LI', + LK = 'LK', + LR = 'LR', + LS = 'LS', LT = 'LT', LU = 'LU', - MO = 'MO', + LV = 'LV', + LY = 'LY', + MA = 'MA', + MC = 'MC', + MD = 'MD', + ME = 'ME', + MF = 'MF', MG = 'MG', - MW = 'MW', - MY = 'MY', - MV = 'MV', - ML = 'ML', - MT = 'MT', MH = 'MH', + MK = 'MK', + ML = 'ML', + MM = 'MM', + MN = 'MN', + MO = 'MO', + MP = 'MP', MQ = 'MQ', MR = 'MR', - MU = 'MU', - YT = 'YT', - MX = 'MX', - FM = 'FM', - MD = 'MD', - MC = 'MC', - MN = 'MN', - ME = 'ME', MS = 'MS', - MA = 'MA', + MT = 'MT', + MU = 'MU', + MV = 'MV', + MW = 'MW', + MX = 'MX', + MY = 'MY', MZ = 'MZ', - MM = 'MM', NA = 'NA', - NR = 'NR', - NP = 'NP', - NL = 'NL', NC = 'NC', - NZ = 'NZ', - NI = 'NI', NE = 'NE', - NG = 'NG', - NU = 'NU', NF = 'NF', - KP = 'KP', - MK = 'MK', - MP = 'MP', + NG = 'NG', + NI = 'NI', + NL = 'NL', NO = 'NO', + NP = 'NP', + NR = 'NR', + NU = 'NU', + NZ = 'NZ', OM = 'OM', - PK = 'PK', - PW = 'PW', - PS = 'PS', PA = 'PA', - PG = 'PG', - PY = 'PY', PE = 'PE', + PF = 'PF', + PG = 'PG', PH = 'PH', - PN = 'PN', + PK = 'PK', PL = 'PL', - PT = 'PT', + PM = 'PM', + PN = 'PN', PR = 'PR', + PS = 'PS', + PT = 'PT', + PW = 'PW', + PY = 'PY', QA = 'QA', RE = 'RE', RO = 'RO', + RS = 'RS', RU = 'RU', RW = 'RW', - BL = 'BL', - SH = 'SH', - KN = 'KN', - LC = 'LC', - MF = 'MF', - PM = 'PM', - VC = 'VC', - WS = 'WS', - SM = 'SM', - ST = 'ST', SA = 'SA', - SN = 'SN', - RS = 'RS', - SC = 'SC', - SL = 'SL', - SG = 'SG', - SX = 'SX', - SK = 'SK', - SI = 'SI', SB = 'SB', - SO = 'SO', - ZA = 'ZA', - GS = 'GS', - KR = 'KR', - SS = 'SS', - ES = 'ES', - LK = 'LK', + SC = 'SC', SD = 'SD', - SR = 'SR', - SJ = 'SJ', SE = 'SE', - CH = 'CH', + SG = 'SG', + SH = 'SH', + SI = 'SI', + SJ = 'SJ', + SK = 'SK', + SL = 'SL', + SM = 'SM', + SN = 'SN', + SO = 'SO', + SR = 'SR', + SS = 'SS', + ST = 'ST', + SV = 'SV', + SX = 'SX', SY = 'SY', - TW = 'TW', - TJ = 'TJ', - TZ = 'TZ', - TH = 'TH', - TL = 'TL', - TG = 'TG', - TK = 'TK', - TO = 'TO', - TT = 'TT', - TN = 'TN', - TR = 'TR', - TM = 'TM', + SZ = 'SZ', TC = 'TC', + TD = 'TD', + TF = 'TF', + TG = 'TG', + TH = 'TH', + TJ = 'TJ', + TK = 'TK', + TL = 'TL', + TM = 'TM', + TN = 'TN', + TO = 'TO', + TR = 'TR', + TT = 'TT', TV = 'TV', - UG = 'UG', + TW = 'TW', + TZ = 'TZ', UA = 'UA', - AE = 'AE', - GB = 'GB', + UG = 'UG', UM = 'UM', US = 'US', UY = 'UY', UZ = 'UZ', - VU = 'VU', + VA = 'VA', + VC = 'VC', VE = 'VE', - VN = 'VN', VG = 'VG', VI = 'VI', + VN = 'VN', + VU = 'VU', WF = 'WF', - EH = 'EH', + WS = 'WS', YE = 'YE', + YT = 'YT', + ZA = 'ZA', ZM = 'ZM', ZW = 'ZW' } @@ -1562,37 +1562,58 @@ export type CountryRateUpdateInput = { rate?: InputMaybe; }; +/** An enumeration. */ +export enum CustomerBulkUpdateErrorCode { + BLANK = 'BLANK', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID = 'INVALID', + MAX_LENGTH = 'MAX_LENGTH', + NOT_FOUND = 'NOT_FOUND', + REQUIRED = 'REQUIRED', + UNIQUE = 'UNIQUE' +} + +export type CustomerBulkUpdateInput = { + /** External ID of a customer to update. */ + externalReference?: InputMaybe; + /** ID of a customer to update. */ + id?: InputMaybe; + /** Fields required to update a customer. */ + input: CustomerInput; +}; + /** An enumeration. */ export enum CustomerEventsEnum { - ACCOUNT_CREATED = 'ACCOUNT_CREATED', ACCOUNT_ACTIVATED = 'ACCOUNT_ACTIVATED', + ACCOUNT_CREATED = 'ACCOUNT_CREATED', ACCOUNT_DEACTIVATED = 'ACCOUNT_DEACTIVATED', - PASSWORD_RESET_LINK_SENT = 'PASSWORD_RESET_LINK_SENT', - PASSWORD_RESET = 'PASSWORD_RESET', - EMAIL_CHANGED_REQUEST = 'EMAIL_CHANGED_REQUEST', - PASSWORD_CHANGED = 'PASSWORD_CHANGED', - EMAIL_CHANGED = 'EMAIL_CHANGED', - PLACED_ORDER = 'PLACED_ORDER', - NOTE_ADDED_TO_ORDER = 'NOTE_ADDED_TO_ORDER', - DIGITAL_LINK_DOWNLOADED = 'DIGITAL_LINK_DOWNLOADED', CUSTOMER_DELETED = 'CUSTOMER_DELETED', - NAME_ASSIGNED = 'NAME_ASSIGNED', + DIGITAL_LINK_DOWNLOADED = 'DIGITAL_LINK_DOWNLOADED', EMAIL_ASSIGNED = 'EMAIL_ASSIGNED', - NOTE_ADDED = 'NOTE_ADDED' + EMAIL_CHANGED = 'EMAIL_CHANGED', + EMAIL_CHANGED_REQUEST = 'EMAIL_CHANGED_REQUEST', + NAME_ASSIGNED = 'NAME_ASSIGNED', + NOTE_ADDED = 'NOTE_ADDED', + NOTE_ADDED_TO_ORDER = 'NOTE_ADDED_TO_ORDER', + PASSWORD_CHANGED = 'PASSWORD_CHANGED', + PASSWORD_RESET = 'PASSWORD_RESET', + PASSWORD_RESET_LINK_SENT = 'PASSWORD_RESET_LINK_SENT', + PLACED_ORDER = 'PLACED_ORDER' } export type CustomerFilterInput = { dateJoined?: InputMaybe; - numberOfOrders?: InputMaybe; - placedOrders?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; /** * Filter by ids. * * Added in Saleor 3.8. */ ids?: InputMaybe>; + metadata?: InputMaybe>; + numberOfOrders?: InputMaybe; + placedOrders?: InputMaybe; + search?: InputMaybe; updatedAt?: InputMaybe; }; @@ -1601,24 +1622,24 @@ export type CustomerInput = { defaultBillingAddress?: InputMaybe; /** Shipping address of the customer. */ defaultShippingAddress?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; /** The unique email address of the user. */ email?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** A note about the user. */ - note?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; /** * External ID of the customer. * * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User account is active. */ + isActive?: InputMaybe; + /** User language code. */ + languageCode?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** A note about the user. */ + note?: InputMaybe; }; export type DateRangeInput = { @@ -1636,14 +1657,10 @@ export type DateTimeRangeInput = { }; export type DigitalContentInput = { - /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars['Boolean']; - /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; - /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; /** Overwrite default automatic_fulfillment setting for variant. */ automaticFulfillment?: InputMaybe; + /** Determines how many times a download link can be accessed by a customer. */ + maxDownloads?: InputMaybe; /** * Fields required to update the digital content metadata. * @@ -1656,17 +1673,19 @@ export type DigitalContentInput = { * Added in Saleor 3.8. */ privateMetadata?: InputMaybe>; + /** Determines for how many days a download link is active since it was generated. */ + urlValidDays?: InputMaybe; + /** Use default digital content settings for this product. */ + useDefaultSettings: Scalars['Boolean']; }; export type DigitalContentUploadInput = { - /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars['Boolean']; - /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; - /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; /** Overwrite default automatic_fulfillment setting for variant. */ automaticFulfillment?: InputMaybe; + /** Represents an file in a multipart request. */ + contentFile: Scalars['Upload']; + /** Determines how many times a download link can be accessed by a customer. */ + maxDownloads?: InputMaybe; /** * Fields required to update the digital content metadata. * @@ -1679,8 +1698,10 @@ export type DigitalContentUploadInput = { * Added in Saleor 3.8. */ privateMetadata?: InputMaybe>; - /** Represents an file in a multipart request. */ - contentFile: Scalars['Upload']; + /** Determines for how many days a download link is active since it was generated. */ + urlValidDays?: InputMaybe; + /** Use default digital content settings for this product. */ + useDefaultSettings: Scalars['Boolean']; }; export type DigitalContentUrlCreateInput = { @@ -1691,13 +1712,13 @@ export type DigitalContentUrlCreateInput = { /** An enumeration. */ export enum DiscountErrorCode { ALREADY_EXISTS = 'ALREADY_EXISTS', + CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', NOT_FOUND = 'NOT_FOUND', REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM' + UNIQUE = 'UNIQUE' } export enum DiscountStatusEnum { @@ -1714,34 +1735,22 @@ export enum DiscountValueTypeEnum { /** An enumeration. */ export enum DistanceUnitsEnum { CM = 'CM', - M = 'M', - KM = 'KM', FT = 'FT', - YD = 'YD', - INCH = 'INCH' + INCH = 'INCH', + KM = 'KM', + M = 'M', + YD = 'YD' } export type DraftOrderCreateInput = { /** Billing address of the customer. */ billingAddress?: InputMaybe; - /** Customer associated with the draft order. */ - user?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** Discount amount for the order. */ - discount?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; - /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; - /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; /** ID of the channel associated with the order. */ channelId?: InputMaybe; - /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; + /** A note from a customer. Visible by customers in the order summary. */ + customerNote?: InputMaybe; + /** Discount amount for the order. */ + discount?: InputMaybe; /** * External ID of this order. * @@ -1750,35 +1759,47 @@ export type DraftOrderCreateInput = { externalReference?: InputMaybe; /** Variant line input consisting of variant ID and quantity of products. */ lines?: InputMaybe>; + /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ + redirectUrl?: InputMaybe; + /** Shipping address of the customer. */ + shippingAddress?: InputMaybe; + /** ID of a selected shipping method. */ + shippingMethod?: InputMaybe; + /** Customer associated with the draft order. */ + user?: InputMaybe; + /** Email address of the customer. */ + userEmail?: InputMaybe; + /** ID of the voucher associated with the order. */ + voucher?: InputMaybe; }; export type DraftOrderInput = { /** Billing address of the customer. */ billingAddress?: InputMaybe; - /** Customer associated with the draft order. */ - user?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** Discount amount for the order. */ - discount?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; - /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; - /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; /** ID of the channel associated with the order. */ channelId?: InputMaybe; - /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; + /** A note from a customer. Visible by customers in the order summary. */ + customerNote?: InputMaybe; + /** Discount amount for the order. */ + discount?: InputMaybe; /** * External ID of this order. * * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ + redirectUrl?: InputMaybe; + /** Shipping address of the customer. */ + shippingAddress?: InputMaybe; + /** ID of a selected shipping method. */ + shippingMethod?: InputMaybe; + /** Customer associated with the draft order. */ + user?: InputMaybe; + /** Email address of the customer. */ + userEmail?: InputMaybe; + /** ID of the voucher associated with the order. */ + voucher?: InputMaybe; }; export enum ErrorPolicyEnum { @@ -1796,15 +1817,15 @@ export enum EventDeliveryAttemptSortField { } export type EventDeliveryAttemptSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort attempts. */ direction: OrderDirection; /** Sort attempts by the selected field. */ field: EventDeliveryAttemptSortField; }; export type EventDeliveryFilterInput = { - status?: InputMaybe; eventType?: InputMaybe; + status?: InputMaybe; }; export enum EventDeliverySortField { @@ -1813,16 +1834,16 @@ export enum EventDeliverySortField { } export type EventDeliverySortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort deliveries. */ direction: OrderDirection; /** Sort deliveries by the selected field. */ field: EventDeliverySortField; }; export enum EventDeliveryStatusEnum { + FAILED = 'FAILED', PENDING = 'PENDING', - SUCCESS = 'SUCCESS', - FAILED = 'FAILED' + SUCCESS = 'SUCCESS' } /** An enumeration. */ @@ -1835,95 +1856,95 @@ export enum ExportErrorCode { /** An enumeration. */ export enum ExportEventsEnum { - EXPORT_PENDING = 'EXPORT_PENDING', - EXPORT_SUCCESS = 'EXPORT_SUCCESS', - EXPORT_FAILED = 'EXPORT_FAILED', - EXPORT_DELETED = 'EXPORT_DELETED', EXPORTED_FILE_SENT = 'EXPORTED_FILE_SENT', - EXPORT_FAILED_INFO_SENT = 'EXPORT_FAILED_INFO_SENT' + EXPORT_DELETED = 'EXPORT_DELETED', + EXPORT_FAILED = 'EXPORT_FAILED', + EXPORT_FAILED_INFO_SENT = 'EXPORT_FAILED_INFO_SENT', + EXPORT_PENDING = 'EXPORT_PENDING', + EXPORT_SUCCESS = 'EXPORT_SUCCESS' } export type ExportFileFilterInput = { - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - status?: InputMaybe; - user?: InputMaybe; app?: InputMaybe; + createdAt?: InputMaybe; + status?: InputMaybe; + updatedAt?: InputMaybe; + user?: InputMaybe; }; export enum ExportFileSortField { - STATUS = 'STATUS', CREATED_AT = 'CREATED_AT', - UPDATED_AT = 'UPDATED_AT', - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', + STATUS = 'STATUS', + UPDATED_AT = 'UPDATED_AT' } export type ExportFileSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort export file. */ direction: OrderDirection; /** Sort export file by the selected field. */ field: ExportFileSortField; }; export type ExportGiftCardsInput = { - /** Determine which gift cards should be exported. */ - scope: ExportScope; + /** Type of exported file. */ + fileType: FileTypesEnum; /** Filtering options for gift cards. */ filter?: InputMaybe; /** List of gift cards IDs to export. */ ids?: InputMaybe>; - /** Type of exported file. */ - fileType: FileTypesEnum; + /** Determine which gift cards should be exported. */ + scope: ExportScope; }; export type ExportInfoInput = { /** List of attribute ids witch should be exported. */ attributes?: InputMaybe>; - /** List of warehouse ids witch should be exported. */ - warehouses?: InputMaybe>; /** List of channels ids which should be exported. */ channels?: InputMaybe>; /** List of product fields witch should be exported. */ fields?: InputMaybe>; + /** List of warehouse ids witch should be exported. */ + warehouses?: InputMaybe>; }; export type ExportProductsInput = { - /** Determine which products should be exported. */ - scope: ExportScope; - /** Filtering options for products. */ - filter?: InputMaybe; - /** List of products IDs to export. */ - ids?: InputMaybe>; /** Input with info about fields which should be exported. */ exportInfo?: InputMaybe; /** Type of exported file. */ fileType: FileTypesEnum; + /** Filtering options for products. */ + filter?: InputMaybe; + /** List of products IDs to export. */ + ids?: InputMaybe>; + /** Determine which products should be exported. */ + scope: ExportScope; }; export enum ExportScope { /** Export all products. */ ALL = 'ALL', - /** Export products with given ids. */ - IDS = 'IDS', /** Export the filtered products. */ - FILTER = 'FILTER' + FILTER = 'FILTER', + /** Export products with given ids. */ + IDS = 'IDS' } /** An enumeration. */ export enum ExternalNotificationErrorCodes { - REQUIRED = 'REQUIRED', + CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', INVALID_MODEL_TYPE = 'INVALID_MODEL_TYPE', NOT_FOUND = 'NOT_FOUND', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE' + REQUIRED = 'REQUIRED' } export type ExternalNotificationTriggerInput = { - /** The list of customers or orders node IDs that will be serialized and included in the notification payload. */ - ids: Array; - /** Additional payload that will be merged with the one based on the bussines object ID. */ - extraPayload?: InputMaybe; /** External event type. This field is passed to a plugin as an event type. */ externalEventType: Scalars['String']; + /** Additional payload that will be merged with the one based on the bussines object ID. */ + extraPayload?: InputMaybe; + /** The list of customers or orders node IDs that will be serialized and included in the notification payload. */ + ids: Array; }; /** An enumeration. */ @@ -1939,20 +1960,20 @@ export type FulfillmentCancelInput = { /** An enumeration. */ export enum FulfillmentStatus { + CANCELED = 'CANCELED', FULFILLED = 'FULFILLED', REFUNDED = 'REFUNDED', - RETURNED = 'RETURNED', - REPLACED = 'REPLACED', REFUNDED_AND_RETURNED = 'REFUNDED_AND_RETURNED', - CANCELED = 'CANCELED', + REPLACED = 'REPLACED', + RETURNED = 'RETURNED', WAITING_FOR_APPROVAL = 'WAITING_FOR_APPROVAL' } export type FulfillmentUpdateTrackingInput = { - /** Fulfillment tracking number. */ - trackingNumber?: InputMaybe; /** If true, send an email notification to the customer. */ notifyCustomer?: InputMaybe; + /** Fulfillment tracking number. */ + trackingNumber?: InputMaybe; }; export type GiftCardAddNoteInput = { @@ -1961,16 +1982,16 @@ export type GiftCardAddNoteInput = { }; export type GiftCardBulkCreateInput = { - /** The number of cards to issue. */ - count: Scalars['Int']; /** Balance of the gift card. */ balance: PriceInput; - /** The gift card tags. */ - tags?: InputMaybe>; + /** The number of cards to issue. */ + count: Scalars['Int']; /** The gift card expiry date. */ expiryDate?: InputMaybe; /** Determine if gift card is active. */ isActive: Scalars['Boolean']; + /** The gift card tags. */ + tags?: InputMaybe>; }; export type GiftCardCreateInput = { @@ -1978,158 +1999,148 @@ export type GiftCardCreateInput = { * The gift card tags to add. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ addTags?: InputMaybe>; - /** - * The gift card expiry date. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - expiryDate?: InputMaybe; - /** - * Start date of the gift card in ISO 8601 format. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - startDate?: InputMaybe; - /** - * End date of the gift card in ISO 8601 format. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. - */ - endDate?: InputMaybe; /** Balance of the gift card. */ balance: PriceInput; - /** Email of the customer to whom gift card will be sent. */ - userEmail?: InputMaybe; /** * Slug of a channel from which the email should be sent. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ channel?: InputMaybe; - /** - * Determine if gift card is active. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - isActive: Scalars['Boolean']; /** * Code to use the gift card. * * DEPRECATED: this field will be removed in Saleor 4.0. The code is now auto generated. */ code?: InputMaybe; + /** + * End date of the gift card in ISO 8601 format. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. + */ + endDate?: InputMaybe; + /** + * The gift card expiry date. + * + * Added in Saleor 3.1. + */ + expiryDate?: InputMaybe; + /** + * Determine if gift card is active. + * + * Added in Saleor 3.1. + */ + isActive: Scalars['Boolean']; /** * The gift card note from the staff member. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ note?: InputMaybe; + /** + * Start date of the gift card in ISO 8601 format. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + startDate?: InputMaybe; + /** Email of the customer to whom gift card will be sent. */ + userEmail?: InputMaybe; }; /** An enumeration. */ export enum GiftCardErrorCode { ALREADY_EXISTS = 'ALREADY_EXISTS', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', + EXPIRED_GIFT_CARD = 'EXPIRED_GIFT_CARD', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', NOT_FOUND = 'NOT_FOUND', REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - EXPIRED_GIFT_CARD = 'EXPIRED_GIFT_CARD', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM' + UNIQUE = 'UNIQUE' } export type GiftCardEventFilterInput = { - type?: InputMaybe; orders?: InputMaybe>; + type?: InputMaybe; }; /** An enumeration. */ export enum GiftCardEventsEnum { - ISSUED = 'ISSUED', - BOUGHT = 'BOUGHT', - UPDATED = 'UPDATED', ACTIVATED = 'ACTIVATED', - DEACTIVATED = 'DEACTIVATED', BALANCE_RESET = 'BALANCE_RESET', + BOUGHT = 'BOUGHT', + DEACTIVATED = 'DEACTIVATED', EXPIRY_DATE_UPDATED = 'EXPIRY_DATE_UPDATED', - TAGS_UPDATED = 'TAGS_UPDATED', - SENT_TO_CUSTOMER = 'SENT_TO_CUSTOMER', - RESENT = 'RESENT', + ISSUED = 'ISSUED', NOTE_ADDED = 'NOTE_ADDED', + RESENT = 'RESENT', + SENT_TO_CUSTOMER = 'SENT_TO_CUSTOMER', + TAGS_UPDATED = 'TAGS_UPDATED', + UPDATED = 'UPDATED', USED_IN_ORDER = 'USED_IN_ORDER' } export type GiftCardFilterInput = { - isActive?: InputMaybe; - metadata?: InputMaybe>; - tags?: InputMaybe>; - products?: InputMaybe>; - usedBy?: InputMaybe>; - used?: InputMaybe; + code?: InputMaybe; currency?: InputMaybe; currentBalance?: InputMaybe; initialBalance?: InputMaybe; - code?: InputMaybe; + isActive?: InputMaybe; + metadata?: InputMaybe>; + products?: InputMaybe>; + tags?: InputMaybe>; + used?: InputMaybe; + usedBy?: InputMaybe>; }; export type GiftCardResendInput = { - /** ID of a gift card to resend. */ - id: Scalars['ID']; - /** Email to which gift card should be send. */ - email?: InputMaybe; /** Slug of a channel from which the email should be sent. */ channel: Scalars['String']; + /** Email to which gift card should be send. */ + email?: InputMaybe; + /** ID of a gift card to resend. */ + id: Scalars['ID']; }; /** An enumeration. */ export enum GiftCardSettingsErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', - REQUIRED = 'REQUIRED', - GRAPHQL_ERROR = 'GRAPHQL_ERROR' + REQUIRED = 'REQUIRED' } /** An enumeration. */ export enum GiftCardSettingsExpiryTypeEnum { - NEVER_EXPIRE = 'NEVER_EXPIRE', - EXPIRY_PERIOD = 'EXPIRY_PERIOD' + EXPIRY_PERIOD = 'EXPIRY_PERIOD', + NEVER_EXPIRE = 'NEVER_EXPIRE' } export type GiftCardSettingsUpdateInput = { - /** Defines gift card default expiry settings. */ - expiryType?: InputMaybe; /** Defines gift card expiry period. */ expiryPeriod?: InputMaybe; + /** Defines gift card default expiry settings. */ + expiryType?: InputMaybe; }; export enum GiftCardSortField { - /** Sort gift cards by product. */ - PRODUCT = 'PRODUCT', - /** Sort gift cards by used by. */ - USED_BY = 'USED_BY', - /** Sort gift cards by current balance. */ - CURRENT_BALANCE = 'CURRENT_BALANCE', /** * Sort gift cards by created at. * * Added in Saleor 3.8. */ - CREATED_AT = 'CREATED_AT' + CREATED_AT = 'CREATED_AT', + /** Sort gift cards by current balance. */ + CURRENT_BALANCE = 'CURRENT_BALANCE', + /** Sort gift cards by product. */ + PRODUCT = 'PRODUCT', + /** Sort gift cards by used by. */ + USED_BY = 'USED_BY' } export type GiftCardSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort gift cards. */ direction: OrderDirection; /** Sort gift cards by the selected field. */ field: GiftCardSortField; @@ -2144,46 +2155,38 @@ export type GiftCardUpdateInput = { * The gift card tags to add. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ addTags?: InputMaybe>; /** - * The gift card expiry date. + * The gift card balance amount. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - expiryDate?: InputMaybe; - /** - * Start date of the gift card in ISO 8601 format. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - startDate?: InputMaybe; + balanceAmount?: InputMaybe; /** * End date of the gift card in ISO 8601 format. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. */ endDate?: InputMaybe; + /** + * The gift card expiry date. + * + * Added in Saleor 3.1. + */ + expiryDate?: InputMaybe; /** * The gift card tags to remove. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ removeTags?: InputMaybe>; /** - * The gift card balance amount. + * Start date of the gift card in ISO 8601 format. * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * DEPRECATED: this field will be removed in Saleor 4.0. */ - balanceAmount?: InputMaybe; + startDate?: InputMaybe; }; export type IntRangeInput = { @@ -2202,22 +2205,22 @@ export type InvoiceCreateInput = { /** An enumeration. */ export enum InvoiceErrorCode { - REQUIRED = 'REQUIRED', - NOT_READY = 'NOT_READY', - URL_NOT_SET = 'URL_NOT_SET', EMAIL_NOT_SET = 'EMAIL_NOT_SET', - NUMBER_NOT_SET = 'NUMBER_NOT_SET', - NOT_FOUND = 'NOT_FOUND', INVALID_STATUS = 'INVALID_STATUS', - NO_INVOICE_PLUGIN = 'NO_INVOICE_PLUGIN' + NOT_FOUND = 'NOT_FOUND', + NOT_READY = 'NOT_READY', + NO_INVOICE_PLUGIN = 'NO_INVOICE_PLUGIN', + NUMBER_NOT_SET = 'NUMBER_NOT_SET', + REQUIRED = 'REQUIRED', + URL_NOT_SET = 'URL_NOT_SET' } /** An enumeration. */ export enum JobStatusEnum { - PENDING = 'PENDING', - SUCCESS = 'SUCCESS', + DELETED = 'DELETED', FAILED = 'FAILED', - DELETED = 'DELETED' + PENDING = 'PENDING', + SUCCESS = 'SUCCESS' } /** An enumeration. */ @@ -2260,11 +2263,11 @@ export enum LanguageCodeEnum { AR_TN = 'AR_TN', AR_YE = 'AR_YE', AS = 'AS', - AS_IN = 'AS_IN', ASA = 'ASA', ASA_TZ = 'ASA_TZ', AST = 'AST', AST_ES = 'AST_ES', + AS_IN = 'AS_IN', AZ = 'AZ', AZ_CYRL = 'AZ_CYRL', AZ_CYRL_AZ = 'AZ_CYRL_AZ', @@ -2273,11 +2276,11 @@ export enum LanguageCodeEnum { BAS = 'BAS', BAS_CM = 'BAS_CM', BE = 'BE', - BE_BY = 'BE_BY', BEM = 'BEM', BEM_ZM = 'BEM_ZM', BEZ = 'BEZ', BEZ_TZ = 'BEZ_TZ', + BE_BY = 'BE_BY', BG = 'BG', BG_BG = 'BG_BG', BM = 'BM', @@ -2289,9 +2292,9 @@ export enum LanguageCodeEnum { BO_CN = 'BO_CN', BO_IN = 'BO_IN', BR = 'BR', - BR_FR = 'BR_FR', BRX = 'BRX', BRX_IN = 'BRX_IN', + BR_FR = 'BR_FR', BS = 'BS', BS_CYRL = 'BS_CYRL', BS_CYRL_BA = 'BS_CYRL_BA', @@ -2307,9 +2310,9 @@ export enum LanguageCodeEnum { CCP_BD = 'CCP_BD', CCP_IN = 'CCP_IN', CE = 'CE', - CE_RU = 'CE_RU', CEB = 'CEB', CEB_PH = 'CEB_PH', + CE_RU = 'CE_RU', CGG = 'CGG', CGG_UG = 'CGG_UG', CHR = 'CHR', @@ -2324,10 +2327,10 @@ export enum LanguageCodeEnum { CY = 'CY', CY_GB = 'CY_GB', DA = 'DA', - DA_DK = 'DA_DK', - DA_GL = 'DA_GL', DAV = 'DAV', DAV_KE = 'DAV_KE', + DA_DK = 'DA_DK', + DA_GL = 'DA_GL', DE = 'DE', DE_AT = 'DE_AT', DE_BE = 'DE_BE', @@ -2524,9 +2527,9 @@ export enum LanguageCodeEnum { FF_LATN_SL = 'FF_LATN_SL', FF_LATN_SN = 'FF_LATN_SN', FI = 'FI', - FI_FI = 'FI_FI', FIL = 'FIL', FIL_PH = 'FIL_PH', + FI_FI = 'FI_FI', FO = 'FO', FO_DK = 'FO_DK', FO_FO = 'FO_FO', @@ -2593,17 +2596,17 @@ export enum LanguageCodeEnum { GSW_FR = 'GSW_FR', GSW_LI = 'GSW_LI', GU = 'GU', - GU_IN = 'GU_IN', GUZ = 'GUZ', GUZ_KE = 'GUZ_KE', + GU_IN = 'GU_IN', GV = 'GV', GV_IM = 'GV_IM', HA = 'HA', + HAW = 'HAW', + HAW_US = 'HAW_US', HA_GH = 'HA_GH', HA_NE = 'HA_NE', HA_NG = 'HA_NG', - HAW = 'HAW', - HAW_US = 'HAW_US', HE = 'HE', HE_IL = 'HE_IL', HI = 'HI', @@ -2640,11 +2643,11 @@ export enum LanguageCodeEnum { JV = 'JV', JV_ID = 'JV_ID', KA = 'KA', - KA_GE = 'KA_GE', KAB = 'KAB', KAB_DZ = 'KAB_DZ', KAM = 'KAM', KAM_KE = 'KAM_KE', + KA_GE = 'KA_GE', KDE = 'KDE', KDE_TZ = 'KDE_TZ', KEA = 'KEA', @@ -2654,31 +2657,31 @@ export enum LanguageCodeEnum { KI = 'KI', KI_KE = 'KI_KE', KK = 'KK', - KK_KZ = 'KK_KZ', KKJ = 'KKJ', KKJ_CM = 'KKJ_CM', + KK_KZ = 'KK_KZ', KL = 'KL', - KL_GL = 'KL_GL', KLN = 'KLN', KLN_KE = 'KLN_KE', + KL_GL = 'KL_GL', KM = 'KM', KM_KH = 'KM_KH', KN = 'KN', KN_IN = 'KN_IN', KO = 'KO', - KO_KP = 'KO_KP', - KO_KR = 'KO_KR', KOK = 'KOK', KOK_IN = 'KOK_IN', + KO_KP = 'KO_KP', + KO_KR = 'KO_KR', KS = 'KS', - KS_ARAB = 'KS_ARAB', - KS_ARAB_IN = 'KS_ARAB_IN', KSB = 'KSB', KSB_TZ = 'KSB_TZ', KSF = 'KSF', KSF_CM = 'KSF_CM', KSH = 'KSH', KSH_DE = 'KSH_DE', + KS_ARAB = 'KS_ARAB', + KS_ARAB_IN = 'KS_ARAB_IN', KU = 'KU', KU_TR = 'KU_TR', KW = 'KW', @@ -2706,11 +2709,11 @@ export enum LanguageCodeEnum { LT = 'LT', LT_LT = 'LT_LT', LU = 'LU', - LU_CD = 'LU_CD', LUO = 'LUO', LUO_KE = 'LUO_KE', LUY = 'LUY', LUY_KE = 'LUY_KE', + LU_CD = 'LU_CD', LV = 'LV', LV_LV = 'LV_LV', MAI = 'MAI', @@ -2723,11 +2726,11 @@ export enum LanguageCodeEnum { MFE = 'MFE', MFE_MU = 'MFE_MU', MG = 'MG', - MG_MG = 'MG_MG', MGH = 'MGH', MGH_MZ = 'MGH_MZ', MGO = 'MGO', MGO_CM = 'MGO_CM', + MG_MG = 'MG_MG', MI = 'MI', MI_NZ = 'MI_NZ', MK = 'MK', @@ -2735,10 +2738,10 @@ export enum LanguageCodeEnum { ML = 'ML', ML_IN = 'ML_IN', MN = 'MN', - MN_MN = 'MN_MN', MNI = 'MNI', MNI_BENG = 'MNI_BENG', MNI_BENG_IN = 'MNI_BENG_IN', + MN_MN = 'MN_MN', MR = 'MR', MR_IN = 'MR_IN', MS = 'MS', @@ -2760,10 +2763,10 @@ export enum LanguageCodeEnum { NB_NO = 'NB_NO', NB_SJ = 'NB_SJ', ND = 'ND', - ND_ZW = 'ND_ZW', NDS = 'NDS', NDS_DE = 'NDS_DE', NDS_NL = 'NDS_NL', + ND_ZW = 'ND_ZW', NE = 'NE', NE_IN = 'NE_IN', NE_NP = 'NE_NP', @@ -2778,9 +2781,9 @@ export enum LanguageCodeEnum { NMG = 'NMG', NMG_CM = 'NMG_CM', NN = 'NN', - NN_NO = 'NN_NO', NNH = 'NNH', NNH_CM = 'NNH_CM', + NN_NO = 'NN_NO', NUS = 'NUS', NUS_SS = 'NUS_SS', NYN = 'NYN', @@ -2828,10 +2831,10 @@ export enum LanguageCodeEnum { RN = 'RN', RN_BI = 'RN_BI', RO = 'RO', - RO_MD = 'RO_MD', - RO_RO = 'RO_RO', ROF = 'ROF', ROF_TZ = 'ROF_TZ', + RO_MD = 'RO_MD', + RO_RO = 'RO_RO', RU = 'RU', RU_BY = 'RU_BY', RU_KG = 'RU_KG', @@ -2840,9 +2843,9 @@ export enum LanguageCodeEnum { RU_RU = 'RU_RU', RU_UA = 'RU_UA', RW = 'RW', - RW_RW = 'RW_RW', RWK = 'RWK', RWK_TZ = 'RWK_TZ', + RW_RW = 'RW_RW', SAH = 'SAH', SAH_RU = 'SAH_RU', SAQ = 'SAQ', @@ -2858,13 +2861,13 @@ export enum LanguageCodeEnum { SD_DEVA = 'SD_DEVA', SD_DEVA_IN = 'SD_DEVA_IN', SE = 'SE', - SE_FI = 'SE_FI', - SE_NO = 'SE_NO', - SE_SE = 'SE_SE', SEH = 'SEH', SEH_MZ = 'SEH_MZ', SES = 'SES', SES_ML = 'SES_ML', + SE_FI = 'SE_FI', + SE_NO = 'SE_NO', + SE_SE = 'SE_SE', SG = 'SG', SG_CF = 'SG_CF', SHI = 'SHI', @@ -2920,10 +2923,10 @@ export enum LanguageCodeEnum { TA_MY = 'TA_MY', TA_SG = 'TA_SG', TE = 'TE', - TE_IN = 'TE_IN', TEO = 'TEO', TEO_KE = 'TEO_KE', TEO_UG = 'TEO_UG', + TE_IN = 'TE_IN', TG = 'TG', TG_TJ = 'TG_TJ', TH = 'TH', @@ -3003,38 +3006,54 @@ export enum LanguageCodeEnum { ZU_ZA = 'ZU_ZA' } +/** + * Determine the mark as paid strategy for the channel. + * + * TRANSACTION_FLOW - new orders marked as paid will receive a + * `TransactionItem` object, that will cover the `order.total`. + * + * PAYMENT_FLOW - new orders marked as paid will receive a + * `Payment` object, that will cover the `order.total`. + * + * + */ +export enum MarkAsPaidStrategyEnum { + PAYMENT_FLOW = 'PAYMENT_FLOW', + TRANSACTION_FLOW = 'TRANSACTION_FLOW' +} + /** An enumeration. */ export enum MeasurementUnitsEnum { + ACRE_FT = 'ACRE_FT', + ACRE_IN = 'ACRE_IN', CM = 'CM', - M = 'M', - KM = 'KM', - FT = 'FT', - YD = 'YD', - INCH = 'INCH', - SQ_CM = 'SQ_CM', - SQ_M = 'SQ_M', - SQ_KM = 'SQ_KM', - SQ_FT = 'SQ_FT', - SQ_YD = 'SQ_YD', - SQ_INCH = 'SQ_INCH', - CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', CUBIC_CENTIMETER = 'CUBIC_CENTIMETER', CUBIC_DECIMETER = 'CUBIC_DECIMETER', - CUBIC_METER = 'CUBIC_METER', - LITER = 'LITER', CUBIC_FOOT = 'CUBIC_FOOT', CUBIC_INCH = 'CUBIC_INCH', + CUBIC_METER = 'CUBIC_METER', + CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', CUBIC_YARD = 'CUBIC_YARD', - QT = 'QT', - PINT = 'PINT', FL_OZ = 'FL_OZ', - ACRE_IN = 'ACRE_IN', - ACRE_FT = 'ACRE_FT', + FT = 'FT', G = 'G', - LB = 'LB', - OZ = 'OZ', + INCH = 'INCH', KG = 'KG', - TONNE = 'TONNE' + KM = 'KM', + LB = 'LB', + LITER = 'LITER', + M = 'M', + OZ = 'OZ', + PINT = 'PINT', + QT = 'QT', + SQ_CM = 'SQ_CM', + SQ_FT = 'SQ_FT', + SQ_INCH = 'SQ_INCH', + SQ_KM = 'SQ_KM', + SQ_M = 'SQ_M', + SQ_YD = 'SQ_YD', + TONNE = 'TONNE', + YD = 'YD' } export type MeasurementUnitsEnumFilterInput = { @@ -3049,20 +3068,29 @@ export enum MediaChoicesSortField { ID = 'ID' } +export type MediaInput = { + /** Alt text for a product media. */ + alt?: InputMaybe; + /** Represents an image file in a multipart request. */ + image?: InputMaybe; + /** Represents an URL to an external media. */ + mediaUrl?: InputMaybe; +}; + export type MediaSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort media. */ direction: OrderDirection; /** Sort media by the selected field. */ field: MediaChoicesSortField; }; export type MenuCreateInput = { + /** List of menu items. */ + items?: InputMaybe>; /** Name of the menu. */ name: Scalars['String']; /** Slug of the menu. Will be generated if not provided. */ slug?: InputMaybe; - /** List of menu items. */ - items?: InputMaybe>; }; /** An enumeration. */ @@ -3071,17 +3099,17 @@ export enum MenuErrorCode { GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', INVALID_MENU_ITEM = 'INVALID_MENU_ITEM', - NO_MENU_ITEM_PROVIDED = 'NO_MENU_ITEM_PROVIDED', NOT_FOUND = 'NOT_FOUND', + NO_MENU_ITEM_PROVIDED = 'NO_MENU_ITEM_PROVIDED', REQUIRED = 'REQUIRED', TOO_MANY_MENU_ITEMS = 'TOO_MANY_MENU_ITEMS', UNIQUE = 'UNIQUE' } export type MenuFilterInput = { + metadata?: InputMaybe>; search?: InputMaybe; slug?: InputMaybe>; - metadata?: InputMaybe>; slugs?: InputMaybe>; }; @@ -3093,38 +3121,38 @@ export type MenuInput = { }; export type MenuItemCreateInput = { - /** Name of the menu item. */ - name: Scalars['String']; - /** URL of the pointed item. */ - url?: InputMaybe; /** Category to which item points. */ category?: InputMaybe; /** Collection to which item points. */ collection?: InputMaybe; - /** Page to which item points. */ - page?: InputMaybe; /** Menu to which item belongs. */ menu: Scalars['ID']; + /** Name of the menu item. */ + name: Scalars['String']; + /** Page to which item points. */ + page?: InputMaybe; /** ID of the parent menu. If empty, menu will be top level menu. */ parent?: InputMaybe; + /** URL of the pointed item. */ + url?: InputMaybe; }; export type MenuItemFilterInput = { - search?: InputMaybe; metadata?: InputMaybe>; + search?: InputMaybe; }; export type MenuItemInput = { - /** Name of the menu item. */ - name?: InputMaybe; - /** URL of the pointed item. */ - url?: InputMaybe; /** Category to which item points. */ category?: InputMaybe; /** Collection to which item points. */ collection?: InputMaybe; + /** Name of the menu item. */ + name?: InputMaybe; /** Page to which item points. */ page?: InputMaybe; + /** URL of the pointed item. */ + url?: InputMaybe; }; export type MenuItemMoveInput = { @@ -3137,7 +3165,7 @@ export type MenuItemMoveInput = { }; export type MenuItemSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort menu items. */ direction: OrderDirection; /** Sort menu items by the selected field. */ field: MenuItemsSortField; @@ -3149,14 +3177,14 @@ export enum MenuItemsSortField { } export enum MenuSortField { - /** Sort menus by name. */ - NAME = 'NAME', /** Sort menus by items count. */ - ITEMS_COUNT = 'ITEMS_COUNT' + ITEMS_COUNT = 'ITEMS_COUNT', + /** Sort menus by name. */ + NAME = 'NAME' } export type MenuSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort menus. */ direction: OrderDirection; /** Sort menus by the selected field. */ field: MenuSortField; @@ -3167,8 +3195,8 @@ export enum MetadataErrorCode { GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - NOT_UPDATED = 'NOT_UPDATED' + NOT_UPDATED = 'NOT_UPDATED', + REQUIRED = 'REQUIRED' } export type MetadataFilter = { @@ -3186,10 +3214,10 @@ export type MetadataInput = { }; export type MoneyInput = { - /** Currency code. */ - currency: Scalars['String']; /** Amount of money. */ amount: Scalars['PositiveDecimal']; + /** Currency code. */ + currency: Scalars['String']; }; export type MoveProductInput = { @@ -3230,61 +3258,69 @@ export type OrderAddNoteInput = { * Determine a current authorize status for order. * * We treat the order as fully authorized when the sum of authorized and charged funds - * cover the order.total. + * cover the `order.total`-`order.totalGrantedRefund`. * We treat the order as partially authorized when the sum of authorized and charged - * funds covers only part of the order.total + * funds covers only part of the `order.total`-`order.totalGrantedRefund`. * We treat the order as not authorized when the sum of authorized and charged funds is * 0. * * NONE - the funds are not authorized - * PARTIAL - the funds that are authorized or charged don't cover fully the order's - * total - * FULL - the funds that are authorized or charged fully cover the order's total + * PARTIAL - the funds that are authorized and charged don't cover fully the + * `order.total`-`order.totalGrantedRefund` + * FULL - the funds that are authorized and charged fully cover the + * `order.total`-`order.totalGrantedRefund` * */ export enum OrderAuthorizeStatusEnum { + FULL = 'FULL', NONE = 'NONE', - PARTIAL = 'PARTIAL', - FULL = 'FULL' + PARTIAL = 'PARTIAL' } /** * Determine the current charge status for the order. * - * We treat the order as overcharged when the charged amount is bigger that order.total - * We treat the order as fully charged when the charged amount is equal to order.total. - * We treat the order as partially charged when the charged amount covers only part of - * the order.total + * An order is considered overcharged when the sum of the + * transactionItem's charge amounts exceeds the value of + * `order.total` - `order.totalGrantedRefund`. + * If the sum of the transactionItem's charge amounts equals + * `order.total` - `order.totalGrantedRefund`, we consider the order to be fully + * charged. + * If the sum of the transactionItem's charge amounts covers a part of the + * `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged. * * NONE - the funds are not charged. - * PARTIAL - the funds that are charged don't cover the order's total - * FULL - the funds that are charged fully cover the order's total - * OVERCHARGED - the charged funds are bigger than order's total + * PARTIAL - the funds that are charged don't cover the + * `order.total`-`order.totalGrantedRefund` + * FULL - the funds that are charged fully cover the + * `order.total`-`order.totalGrantedRefund` + * OVERCHARGED - the charged funds are bigger than the + * `order.total`-`order.totalGrantedRefund` * */ export enum OrderChargeStatusEnum { - NONE = 'NONE', - PARTIAL = 'PARTIAL', FULL = 'FULL', - OVERCHARGED = 'OVERCHARGED' + NONE = 'NONE', + OVERCHARGED = 'OVERCHARGED', + PARTIAL = 'PARTIAL' } /** An enumeration. */ export enum OrderCreateFromCheckoutErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - CHECKOUT_NOT_FOUND = 'CHECKOUT_NOT_FOUND', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE', - GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', - TAX_ERROR = 'TAX_ERROR', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', + CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', + CHECKOUT_NOT_FOUND = 'CHECKOUT_NOT_FOUND', + EMAIL_NOT_SET = 'EMAIL_NOT_SET', + GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', NO_LINES = 'NO_LINES', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL' + SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', + SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', + TAX_ERROR = 'TAX_ERROR', + UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', + VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE' } export enum OrderDirection { @@ -3295,26 +3331,26 @@ export enum OrderDirection { } export type OrderDiscountCommonInput = { - /** Type of the discount: fixed or percent */ - valueType: DiscountValueTypeEnum; - /** Value of the discount. Can store fixed value or percent value */ - value: Scalars['PositiveDecimal']; /** Explanation for the applied discount. */ reason?: InputMaybe; + /** Value of the discount. Can store fixed value or percent value */ + value: Scalars['PositiveDecimal']; + /** Type of the discount: fixed or percent */ + valueType: DiscountValueTypeEnum; }; /** An enumeration. */ export enum OrderDiscountType { - VOUCHER = 'VOUCHER', - MANUAL = 'MANUAL' + MANUAL = 'MANUAL', + VOUCHER = 'VOUCHER' } export type OrderDraftFilterInput = { - customer?: InputMaybe; - created?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; channels?: InputMaybe>; + created?: InputMaybe; + customer?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; }; /** An enumeration. */ @@ -3324,125 +3360,131 @@ export enum OrderErrorCode { CANNOT_CANCEL_ORDER = 'CANNOT_CANCEL_ORDER', CANNOT_DELETE = 'CANNOT_DELETE', CANNOT_DISCOUNT = 'CANNOT_DISCOUNT', - CANNOT_REFUND = 'CANNOT_REFUND', CANNOT_FULFILL_UNPAID_ORDER = 'CANNOT_FULFILL_UNPAID_ORDER', + CANNOT_REFUND = 'CANNOT_REFUND', CAPTURE_INACTIVE_PAYMENT = 'CAPTURE_INACTIVE_PAYMENT', - GIFT_CARD_LINE = 'GIFT_CARD_LINE', - NOT_EDITABLE = 'NOT_EDITABLE', + CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', FULFILL_ORDER_LINE = 'FULFILL_ORDER_LINE', + GIFT_CARD_LINE = 'GIFT_CARD_LINE', GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', INVALID = 'INVALID', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', + INVALID_QUANTITY = 'INVALID_QUANTITY', + NOT_AVAILABLE_IN_CHANNEL = 'NOT_AVAILABLE_IN_CHANNEL', + NOT_EDITABLE = 'NOT_EDITABLE', NOT_FOUND = 'NOT_FOUND', ORDER_NO_SHIPPING_ADDRESS = 'ORDER_NO_SHIPPING_ADDRESS', PAYMENT_ERROR = 'PAYMENT_ERROR', PAYMENT_MISSING = 'PAYMENT_MISSING', + PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', + PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', REQUIRED = 'REQUIRED', SHIPPING_METHOD_NOT_APPLICABLE = 'SHIPPING_METHOD_NOT_APPLICABLE', SHIPPING_METHOD_REQUIRED = 'SHIPPING_METHOD_REQUIRED', TAX_ERROR = 'TAX_ERROR', + TRANSACTION_ERROR = 'TRANSACTION_ERROR', UNIQUE = 'UNIQUE', VOID_INACTIVE_PAYMENT = 'VOID_INACTIVE_PAYMENT', - ZERO_QUANTITY = 'ZERO_QUANTITY', - INVALID_QUANTITY = 'INVALID_QUANTITY', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - NOT_AVAILABLE_IN_CHANNEL = 'NOT_AVAILABLE_IN_CHANNEL', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK = 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK' + ZERO_QUANTITY = 'ZERO_QUANTITY' } /** An enumeration. */ export enum OrderEventsEmailsEnum { - PAYMENT_CONFIRMATION = 'PAYMENT_CONFIRMATION', CONFIRMED = 'CONFIRMED', - SHIPPING_CONFIRMATION = 'SHIPPING_CONFIRMATION', - TRACKING_UPDATED = 'TRACKING_UPDATED', - ORDER_CONFIRMATION = 'ORDER_CONFIRMATION', - ORDER_CANCEL = 'ORDER_CANCEL', - ORDER_REFUND = 'ORDER_REFUND', + DIGITAL_LINKS = 'DIGITAL_LINKS', FULFILLMENT_CONFIRMATION = 'FULFILLMENT_CONFIRMATION', - DIGITAL_LINKS = 'DIGITAL_LINKS' + ORDER_CANCEL = 'ORDER_CANCEL', + ORDER_CONFIRMATION = 'ORDER_CONFIRMATION', + ORDER_REFUND = 'ORDER_REFUND', + PAYMENT_CONFIRMATION = 'PAYMENT_CONFIRMATION', + SHIPPING_CONFIRMATION = 'SHIPPING_CONFIRMATION', + TRACKING_UPDATED = 'TRACKING_UPDATED' } -/** An enumeration. */ +/** The different order event types. */ export enum OrderEventsEnum { + ADDED_PRODUCTS = 'ADDED_PRODUCTS', + CANCELED = 'CANCELED', + CONFIRMED = 'CONFIRMED', DRAFT_CREATED = 'DRAFT_CREATED', DRAFT_CREATED_FROM_REPLACE = 'DRAFT_CREATED_FROM_REPLACE', - ADDED_PRODUCTS = 'ADDED_PRODUCTS', - REMOVED_PRODUCTS = 'REMOVED_PRODUCTS', - PLACED = 'PLACED', - PLACED_FROM_DRAFT = 'PLACED_FROM_DRAFT', - OVERSOLD_ITEMS = 'OVERSOLD_ITEMS', - CANCELED = 'CANCELED', - ORDER_MARKED_AS_PAID = 'ORDER_MARKED_AS_PAID', - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - ORDER_REPLACEMENT_CREATED = 'ORDER_REPLACEMENT_CREATED', - ORDER_DISCOUNT_ADDED = 'ORDER_DISCOUNT_ADDED', - ORDER_DISCOUNT_AUTOMATICALLY_UPDATED = 'ORDER_DISCOUNT_AUTOMATICALLY_UPDATED', - ORDER_DISCOUNT_UPDATED = 'ORDER_DISCOUNT_UPDATED', - ORDER_DISCOUNT_DELETED = 'ORDER_DISCOUNT_DELETED', - ORDER_LINE_DISCOUNT_UPDATED = 'ORDER_LINE_DISCOUNT_UPDATED', - ORDER_LINE_DISCOUNT_REMOVED = 'ORDER_LINE_DISCOUNT_REMOVED', - ORDER_LINE_PRODUCT_DELETED = 'ORDER_LINE_PRODUCT_DELETED', - ORDER_LINE_VARIANT_DELETED = 'ORDER_LINE_VARIANT_DELETED', - UPDATED_ADDRESS = 'UPDATED_ADDRESS', EMAIL_SENT = 'EMAIL_SENT', - CONFIRMED = 'CONFIRMED', - PAYMENT_AUTHORIZED = 'PAYMENT_AUTHORIZED', - PAYMENT_CAPTURED = 'PAYMENT_CAPTURED', + EXPIRED = 'EXPIRED', EXTERNAL_SERVICE_NOTIFICATION = 'EXTERNAL_SERVICE_NOTIFICATION', - PAYMENT_REFUNDED = 'PAYMENT_REFUNDED', - PAYMENT_VOIDED = 'PAYMENT_VOIDED', - PAYMENT_FAILED = 'PAYMENT_FAILED', - TRANSACTION_EVENT = 'TRANSACTION_EVENT', - TRANSACTION_CAPTURE_REQUESTED = 'TRANSACTION_CAPTURE_REQUESTED', - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', - TRANSACTION_VOID_REQUESTED = 'TRANSACTION_VOID_REQUESTED', - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - INVOICE_GENERATED = 'INVOICE_GENERATED', - INVOICE_UPDATED = 'INVOICE_UPDATED', - INVOICE_SENT = 'INVOICE_SENT', + FULFILLMENT_AWAITS_APPROVAL = 'FULFILLMENT_AWAITS_APPROVAL', FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - FULFILLMENT_RESTOCKED_ITEMS = 'FULFILLMENT_RESTOCKED_ITEMS', FULFILLMENT_FULFILLED_ITEMS = 'FULFILLMENT_FULFILLED_ITEMS', FULFILLMENT_REFUNDED = 'FULFILLMENT_REFUNDED', - FULFILLMENT_RETURNED = 'FULFILLMENT_RETURNED', FULFILLMENT_REPLACED = 'FULFILLMENT_REPLACED', - FULFILLMENT_AWAITS_APPROVAL = 'FULFILLMENT_AWAITS_APPROVAL', - TRACKING_UPDATED = 'TRACKING_UPDATED', + FULFILLMENT_RESTOCKED_ITEMS = 'FULFILLMENT_RESTOCKED_ITEMS', + FULFILLMENT_RETURNED = 'FULFILLMENT_RETURNED', + INVOICE_GENERATED = 'INVOICE_GENERATED', + INVOICE_REQUESTED = 'INVOICE_REQUESTED', + INVOICE_SENT = 'INVOICE_SENT', + INVOICE_UPDATED = 'INVOICE_UPDATED', NOTE_ADDED = 'NOTE_ADDED', - OTHER = 'OTHER' + ORDER_DISCOUNT_ADDED = 'ORDER_DISCOUNT_ADDED', + ORDER_DISCOUNT_AUTOMATICALLY_UPDATED = 'ORDER_DISCOUNT_AUTOMATICALLY_UPDATED', + ORDER_DISCOUNT_DELETED = 'ORDER_DISCOUNT_DELETED', + ORDER_DISCOUNT_UPDATED = 'ORDER_DISCOUNT_UPDATED', + ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', + ORDER_LINE_DISCOUNT_REMOVED = 'ORDER_LINE_DISCOUNT_REMOVED', + ORDER_LINE_DISCOUNT_UPDATED = 'ORDER_LINE_DISCOUNT_UPDATED', + ORDER_LINE_PRODUCT_DELETED = 'ORDER_LINE_PRODUCT_DELETED', + ORDER_LINE_VARIANT_DELETED = 'ORDER_LINE_VARIANT_DELETED', + ORDER_MARKED_AS_PAID = 'ORDER_MARKED_AS_PAID', + ORDER_REPLACEMENT_CREATED = 'ORDER_REPLACEMENT_CREATED', + OTHER = 'OTHER', + OVERSOLD_ITEMS = 'OVERSOLD_ITEMS', + PAYMENT_AUTHORIZED = 'PAYMENT_AUTHORIZED', + PAYMENT_CAPTURED = 'PAYMENT_CAPTURED', + PAYMENT_FAILED = 'PAYMENT_FAILED', + PAYMENT_REFUNDED = 'PAYMENT_REFUNDED', + PAYMENT_VOIDED = 'PAYMENT_VOIDED', + PLACED = 'PLACED', + PLACED_FROM_DRAFT = 'PLACED_FROM_DRAFT', + REMOVED_PRODUCTS = 'REMOVED_PRODUCTS', + TRACKING_UPDATED = 'TRACKING_UPDATED', + TRANSACTION_CANCEL_REQUESTED = 'TRANSACTION_CANCEL_REQUESTED', + /** This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead. */ + TRANSACTION_CAPTURE_REQUESTED = 'TRANSACTION_CAPTURE_REQUESTED', + TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', + TRANSACTION_EVENT = 'TRANSACTION_EVENT', + TRANSACTION_MARK_AS_PAID_FAILED = 'TRANSACTION_MARK_AS_PAID_FAILED', + TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', + /** This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead. */ + TRANSACTION_VOID_REQUESTED = 'TRANSACTION_VOID_REQUESTED', + UPDATED_ADDRESS = 'UPDATED_ADDRESS' } export type OrderFilterInput = { - paymentStatus?: InputMaybe>; - status?: InputMaybe>; - customer?: InputMaybe; - created?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - channels?: InputMaybe>; authorizeStatus?: InputMaybe>; + channels?: InputMaybe>; chargeStatus?: InputMaybe>; - updatedAt?: InputMaybe; + checkoutIds?: InputMaybe>; + created?: InputMaybe; + customer?: InputMaybe; + giftCardBought?: InputMaybe; + giftCardUsed?: InputMaybe; + ids?: InputMaybe>; isClickAndCollect?: InputMaybe; isPreorder?: InputMaybe; - ids?: InputMaybe>; - giftCardUsed?: InputMaybe; - giftCardBought?: InputMaybe; + metadata?: InputMaybe>; numbers?: InputMaybe>; - checkoutIds?: InputMaybe>; + paymentStatus?: InputMaybe>; + search?: InputMaybe; + status?: InputMaybe>; + updatedAt?: InputMaybe; }; export type OrderFulfillInput = { + /** If true, then allow proceed fulfillment when stock is exceeded. */ + allowStockToBeExceeded?: InputMaybe; /** List of items informing how to fulfill the order. */ lines: Array; /** If true, send an email notification to the customer. */ notifyCustomer?: InputMaybe; - /** If true, then allow proceed fulfillment when stock is exceeded. */ - allowStockToBeExceeded?: InputMaybe; /** * Fulfillment tracking number. * @@ -3465,19 +3507,44 @@ export type OrderFulfillStockInput = { warehouse: Scalars['ID']; }; +/** An enumeration. */ +export enum OrderGrantRefundCreateErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + NOT_FOUND = 'NOT_FOUND' +} + +export type OrderGrantRefundCreateInput = { + /** Amount of the granted refund. */ + amount: Scalars['Decimal']; + /** Reason of the granted refund. */ + reason?: InputMaybe; +}; + +/** An enumeration. */ +export enum OrderGrantRefundUpdateErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + NOT_FOUND = 'NOT_FOUND', + REQUIRED = 'REQUIRED' +} + +export type OrderGrantRefundUpdateInput = { + /** Amount of the granted refund. */ + amount?: InputMaybe; + /** Reason of the granted refund. */ + reason?: InputMaybe; +}; + export type OrderLineCreateInput = { - /** Number of variant items ordered. */ - quantity: Scalars['Int']; - /** Product variant ID. */ - variantId: Scalars['ID']; /** * Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. * * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ forceNewLine?: InputMaybe; + /** Number of variant items ordered. */ + quantity: Scalars['Int']; + /** Product variant ID. */ + variantId: Scalars['ID']; }; export type OrderLineInput = { @@ -3507,14 +3574,14 @@ export type OrderRefundLineInput = { }; export type OrderRefundProductsInput = { - /** List of unfulfilled lines to refund. */ - orderLines?: InputMaybe>; - /** List of fulfilled lines to refund. */ - fulfillmentLines?: InputMaybe>; /** The total amount of refund when the value is provided manually. */ amountToRefund?: InputMaybe; + /** List of fulfilled lines to refund. */ + fulfillmentLines?: InputMaybe>; /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ includeShippingCosts?: InputMaybe; + /** List of unfulfilled lines to refund. */ + orderLines?: InputMaybe>; }; export type OrderReturnFulfillmentLineInput = { @@ -3536,14 +3603,14 @@ export type OrderReturnLineInput = { }; export type OrderReturnProductsInput = { - /** List of unfulfilled lines to return. */ - orderLines?: InputMaybe>; - /** List of fulfilled lines to return. */ - fulfillmentLines?: InputMaybe>; /** The total amount of refund when the value is provided manually. */ amountToRefund?: InputMaybe; + /** List of fulfilled lines to return. */ + fulfillmentLines?: InputMaybe>; /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ includeShippingCosts?: InputMaybe; + /** List of unfulfilled lines to return. */ + orderLines?: InputMaybe>; /** If true, Saleor will call refund action for all lines. */ refund?: InputMaybe; }; @@ -3558,6 +3625,32 @@ export type OrderSettingsInput = { automaticallyConfirmAllNewOrders?: InputMaybe; /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By defualt set to True. */ automaticallyFulfillNonShippableGiftCard?: InputMaybe; + /** + * Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + defaultTransactionFlowStrategy?: InputMaybe; + /** + * Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + expireOrdersAfter?: InputMaybe; + /** + * Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. + * `PAYMENT_FLOW` - [default option] creates the `Payment` object. + * `TRANSACTION_FLOW` - creates the `TransactionItem` object. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + markAsPaidStrategy?: InputMaybe; }; export type OrderSettingsUpdateInput = { @@ -3568,34 +3661,34 @@ export type OrderSettingsUpdateInput = { }; export enum OrderSortField { - /** Sort orders by number. */ - NUMBER = 'NUMBER', - /** Sort orders by rank. Note: This option is available only with the `search` filter. */ - RANK = 'RANK', - /** - * Sort orders by creation date. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - CREATION_DATE = 'CREATION_DATE', /** * Sort orders by creation date. * * DEPRECATED: this field will be removed in Saleor 4.0. */ CREATED_AT = 'CREATED_AT', - /** Sort orders by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', + /** + * Sort orders by creation date. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + CREATION_DATE = 'CREATION_DATE', /** Sort orders by customer. */ CUSTOMER = 'CUSTOMER', + /** Sort orders by fulfillment status. */ + FULFILLMENT_STATUS = 'FULFILLMENT_STATUS', + /** Sort orders by last modified at. */ + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', + /** Sort orders by number. */ + NUMBER = 'NUMBER', /** Sort orders by payment. */ PAYMENT = 'PAYMENT', - /** Sort orders by fulfillment status. */ - FULFILLMENT_STATUS = 'FULFILLMENT_STATUS' + /** Sort orders by rank. Note: This option is available only with the `search` filter. */ + RANK = 'RANK' } export type OrderSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort orders. */ direction: OrderDirection; /** Sort orders by the selected field. */ field: OrderSortField; @@ -3603,39 +3696,40 @@ export type OrderSortingInput = { /** An enumeration. */ export enum OrderStatus { + CANCELED = 'CANCELED', DRAFT = 'DRAFT', - UNCONFIRMED = 'UNCONFIRMED', - UNFULFILLED = 'UNFULFILLED', + EXPIRED = 'EXPIRED', + FULFILLED = 'FULFILLED', PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', PARTIALLY_RETURNED = 'PARTIALLY_RETURNED', RETURNED = 'RETURNED', - FULFILLED = 'FULFILLED', - CANCELED = 'CANCELED' + UNCONFIRMED = 'UNCONFIRMED', + UNFULFILLED = 'UNFULFILLED' } export enum OrderStatusFilter { - READY_TO_FULFILL = 'READY_TO_FULFILL', - READY_TO_CAPTURE = 'READY_TO_CAPTURE', - UNFULFILLED = 'UNFULFILLED', - UNCONFIRMED = 'UNCONFIRMED', - PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', + CANCELED = 'CANCELED', FULFILLED = 'FULFILLED', - CANCELED = 'CANCELED' + PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', + READY_TO_CAPTURE = 'READY_TO_CAPTURE', + READY_TO_FULFILL = 'READY_TO_FULFILL', + UNCONFIRMED = 'UNCONFIRMED', + UNFULFILLED = 'UNFULFILLED' } export type OrderUpdateInput = { /** Billing address of the customer. */ billingAddress?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; /** * External ID of this order. * * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** Shipping address of the customer. */ + shippingAddress?: InputMaybe; + /** Email address of the customer. */ + userEmail?: InputMaybe; }; export type OrderUpdateShippingInput = { @@ -3644,20 +3738,18 @@ export type OrderUpdateShippingInput = { }; export type PageCreateInput = { - /** Page internal name. */ - slug?: InputMaybe; - /** Page title. */ - title?: InputMaybe; + /** List of attributes. */ + attributes?: InputMaybe>; /** * Page content. * * Rich text format. For reference see https://editorjs.io/ */ content?: InputMaybe; - /** List of attributes. */ - attributes?: InputMaybe>; /** Determines if page is visible in the storefront. */ isPublished?: InputMaybe; + /** ID of the page type that page belongs to. */ + pageType: Scalars['ID']; /** * Publication date. ISO 8601 standard. * @@ -3672,42 +3764,40 @@ export type PageCreateInput = { publishedAt?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; - /** ID of the page type that page belongs to. */ - pageType: Scalars['ID']; + /** Page internal name. */ + slug?: InputMaybe; + /** Page title. */ + title?: InputMaybe; }; /** An enumeration. */ export enum PageErrorCode { + ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', NOT_FOUND = 'NOT_FOUND', REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED' + UNIQUE = 'UNIQUE' } export type PageFilterInput = { - search?: InputMaybe; + ids?: InputMaybe>; metadata?: InputMaybe>; pageTypes?: InputMaybe>; - ids?: InputMaybe>; + search?: InputMaybe; slugs?: InputMaybe>; }; export type PageInput = { - /** Page internal name. */ - slug?: InputMaybe; - /** Page title. */ - title?: InputMaybe; + /** List of attributes. */ + attributes?: InputMaybe>; /** * Page content. * * Rich text format. For reference see https://editorjs.io/ */ content?: InputMaybe; - /** List of attributes. */ - attributes?: InputMaybe>; /** Determines if page is visible in the storefront. */ isPublished?: InputMaybe; /** @@ -3724,15 +3814,19 @@ export type PageInput = { publishedAt?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; + /** Page internal name. */ + slug?: InputMaybe; + /** Page title. */ + title?: InputMaybe; }; export enum PageSortField { - /** Sort pages by title. */ - TITLE = 'TITLE', - /** Sort pages by slug. */ - SLUG = 'SLUG', - /** Sort pages by visibility. */ - VISIBILITY = 'VISIBILITY', + /** + * Sort pages by creation date. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + CREATED_AT = 'CREATED_AT', /** * Sort pages by creation date. * @@ -3751,40 +3845,40 @@ export enum PageSortField { * DEPRECATED: this field will be removed in Saleor 4.0. */ PUBLISHED_AT = 'PUBLISHED_AT', - /** - * Sort pages by creation date. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - CREATED_AT = 'CREATED_AT' + /** Sort pages by slug. */ + SLUG = 'SLUG', + /** Sort pages by title. */ + TITLE = 'TITLE', + /** Sort pages by visibility. */ + VISIBILITY = 'VISIBILITY' } export type PageSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort pages. */ direction: OrderDirection; /** Sort pages by the selected field. */ field: PageSortField; }; export type PageTranslationInput = { - seoTitle?: InputMaybe; - seoDescription?: InputMaybe; - title?: InputMaybe; /** * Translated page content. * * Rich text format. For reference see https://editorjs.io/ */ content?: InputMaybe; + seoDescription?: InputMaybe; + seoTitle?: InputMaybe; + title?: InputMaybe; }; export type PageTypeCreateInput = { + /** List of attribute IDs to be assigned to the page type. */ + addAttributes?: InputMaybe>; /** Name of the page type. */ name?: InputMaybe; /** Page type slug. */ slug?: InputMaybe; - /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; }; export type PageTypeFilterInput = { @@ -3800,84 +3894,109 @@ export enum PageTypeSortField { } export type PageTypeSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort page types. */ direction: OrderDirection; /** Sort page types by the selected field. */ field: PageTypeSortField; }; export type PageTypeUpdateInput = { - /** Name of the page type. */ - name?: InputMaybe; - /** Page type slug. */ - slug?: InputMaybe; /** List of attribute IDs to be assigned to the page type. */ addAttributes?: InputMaybe>; + /** Name of the page type. */ + name?: InputMaybe; /** List of attribute IDs to be assigned to the page type. */ removeAttributes?: InputMaybe>; + /** Page type slug. */ + slug?: InputMaybe; }; /** An enumeration. */ export enum PaymentChargeStatusEnum { - NOT_CHARGED = 'NOT_CHARGED', - PENDING = 'PENDING', - PARTIALLY_CHARGED = 'PARTIALLY_CHARGED', + CANCELLED = 'CANCELLED', FULLY_CHARGED = 'FULLY_CHARGED', - PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED', FULLY_REFUNDED = 'FULLY_REFUNDED', - REFUSED = 'REFUSED', - CANCELLED = 'CANCELLED' + NOT_CHARGED = 'NOT_CHARGED', + PARTIALLY_CHARGED = 'PARTIALLY_CHARGED', + PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED', + PENDING = 'PENDING', + REFUSED = 'REFUSED' } export type PaymentCheckBalanceInput = { + /** Information about card. */ + card: CardInput; + /** Slug of a channel for which the data should be returned. */ + channel: Scalars['String']; /** An ID of a payment gateway to check. */ gatewayId: Scalars['String']; /** Payment method name. */ method: Scalars['String']; - /** Slug of a channel for which the data should be returned. */ - channel: Scalars['String']; - /** Information about card. */ - card: CardInput; }; /** An enumeration. */ export enum PaymentErrorCode { + BALANCE_CHECK_ERROR = 'BALANCE_CHECK_ERROR', BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', + CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', + CHECKOUT_EMAIL_NOT_SET = 'CHECKOUT_EMAIL_NOT_SET', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - PARTIAL_PAYMENT_NOT_ALLOWED = 'PARTIAL_PAYMENT_NOT_ALLOWED', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - PAYMENT_ERROR = 'PAYMENT_ERROR', + NOT_FOUND = 'NOT_FOUND', NOT_SUPPORTED_GATEWAY = 'NOT_SUPPORTED_GATEWAY', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - BALANCE_CHECK_ERROR = 'BALANCE_CHECK_ERROR', - CHECKOUT_EMAIL_NOT_SET = 'CHECKOUT_EMAIL_NOT_SET', + NO_CHECKOUT_LINES = 'NO_CHECKOUT_LINES', + PARTIAL_PAYMENT_NOT_ALLOWED = 'PARTIAL_PAYMENT_NOT_ALLOWED', + PAYMENT_ERROR = 'PAYMENT_ERROR', + REQUIRED = 'REQUIRED', + SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', + SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - NO_CHECKOUT_LINES = 'NO_CHECKOUT_LINES' + UNIQUE = 'UNIQUE' } export type PaymentFilterInput = { + checkouts?: InputMaybe>; /** * Filter by ids. * * Added in Saleor 3.8. */ ids?: InputMaybe>; - checkouts?: InputMaybe>; +}; + +/** An enumeration. */ +export enum PaymentGatewayConfigErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID = 'INVALID', + NOT_FOUND = 'NOT_FOUND' +} + +/** An enumeration. */ +export enum PaymentGatewayInitializeErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID = 'INVALID', + NOT_FOUND = 'NOT_FOUND' +} + +export type PaymentGatewayToInitialize = { + /** The data that will be passed to the payment gateway. */ + data?: InputMaybe; + /** The identifier of the payment gateway app to initialize. */ + id: Scalars['String']; }; export type PaymentInput = { - /** A gateway to use with that payment. */ - gateway: Scalars['String']; - /** Client-side generated payment token, representing customer's billing data in a secure manner. */ - token?: InputMaybe; /** Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used. */ amount?: InputMaybe; + /** A gateway to use with that payment. */ + gateway: Scalars['String']; + /** + * User public metadata. + * + * Added in Saleor 3.1. + */ + metadata?: InputMaybe>; /** URL of a storefront view where user should be redirected after requiring additional actions. Payment with additional actions will not be finished if this field is not provided. */ returnUrl?: InputMaybe; /** @@ -3886,39 +4005,35 @@ export type PaymentInput = { * Added in Saleor 3.1. */ storePaymentMethod?: InputMaybe; - /** - * User public metadata. - * - * Added in Saleor 3.1. - */ - metadata?: InputMaybe>; + /** Client-side generated payment token, representing customer's billing data in a secure manner. */ + token?: InputMaybe; }; /** An enumeration. */ export enum PermissionEnum { - MANAGE_USERS = 'MANAGE_USERS', - MANAGE_STAFF = 'MANAGE_STAFF', + HANDLE_CHECKOUTS = 'HANDLE_CHECKOUTS', + HANDLE_PAYMENTS = 'HANDLE_PAYMENTS', + HANDLE_TAXES = 'HANDLE_TAXES', IMPERSONATE_USER = 'IMPERSONATE_USER', MANAGE_APPS = 'MANAGE_APPS', - MANAGE_OBSERVABILITY = 'MANAGE_OBSERVABILITY', - MANAGE_CHECKOUTS = 'MANAGE_CHECKOUTS', - HANDLE_CHECKOUTS = 'HANDLE_CHECKOUTS', - HANDLE_TAXES = 'HANDLE_TAXES', - MANAGE_TAXES = 'MANAGE_TAXES', MANAGE_CHANNELS = 'MANAGE_CHANNELS', + MANAGE_CHECKOUTS = 'MANAGE_CHECKOUTS', MANAGE_DISCOUNTS = 'MANAGE_DISCOUNTS', MANAGE_GIFT_CARD = 'MANAGE_GIFT_CARD', MANAGE_MENUS = 'MANAGE_MENUS', + MANAGE_OBSERVABILITY = 'MANAGE_OBSERVABILITY', MANAGE_ORDERS = 'MANAGE_ORDERS', MANAGE_PAGES = 'MANAGE_PAGES', MANAGE_PAGE_TYPES_AND_ATTRIBUTES = 'MANAGE_PAGE_TYPES_AND_ATTRIBUTES', - HANDLE_PAYMENTS = 'HANDLE_PAYMENTS', MANAGE_PLUGINS = 'MANAGE_PLUGINS', MANAGE_PRODUCTS = 'MANAGE_PRODUCTS', MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES = 'MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES', - MANAGE_SHIPPING = 'MANAGE_SHIPPING', MANAGE_SETTINGS = 'MANAGE_SETTINGS', - MANAGE_TRANSLATIONS = 'MANAGE_TRANSLATIONS' + MANAGE_SHIPPING = 'MANAGE_SHIPPING', + MANAGE_STAFF = 'MANAGE_STAFF', + MANAGE_TAXES = 'MANAGE_TAXES', + MANAGE_TRANSLATIONS = 'MANAGE_TRANSLATIONS', + MANAGE_USERS = 'MANAGE_USERS' } export type PermissionGroupCreateInput = { @@ -3933,8 +4048,8 @@ export type PermissionGroupCreateInput = { /** An enumeration. */ export enum PermissionGroupErrorCode { ASSIGN_NON_STAFF_MEMBER = 'ASSIGN_NON_STAFF_MEMBER', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', CANNOT_REMOVE_FROM_LAST_GROUP = 'CANNOT_REMOVE_FROM_LAST_GROUP', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', @@ -3943,17 +4058,18 @@ export enum PermissionGroupErrorCode { } export type PermissionGroupFilterInput = { - search?: InputMaybe; ids?: InputMaybe>; + search?: InputMaybe; }; +/** Sorting options for permission groups. */ export enum PermissionGroupSortField { /** Sort permission group accounts by name. */ NAME = 'NAME' } export type PermissionGroupSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort permission group. */ direction: OrderDirection; /** Sort permission group by the selected field. */ field: PermissionGroupSortField; @@ -3973,33 +4089,33 @@ export type PermissionGroupUpdateInput = { }; export enum PluginConfigurationType { - PER_CHANNEL = 'PER_CHANNEL', - GLOBAL = 'GLOBAL' + GLOBAL = 'GLOBAL', + PER_CHANNEL = 'PER_CHANNEL' } /** An enumeration. */ export enum PluginErrorCode { GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', - PLUGIN_MISCONFIGURED = 'PLUGIN_MISCONFIGURED', NOT_FOUND = 'NOT_FOUND', + PLUGIN_MISCONFIGURED = 'PLUGIN_MISCONFIGURED', REQUIRED = 'REQUIRED', UNIQUE = 'UNIQUE' } export type PluginFilterInput = { - statusInChannels?: InputMaybe; search?: InputMaybe; + statusInChannels?: InputMaybe; type?: InputMaybe; }; export enum PluginSortField { - NAME = 'NAME', - IS_ACTIVE = 'IS_ACTIVE' + IS_ACTIVE = 'IS_ACTIVE', + NAME = 'NAME' } export type PluginSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort plugins. */ direction: OrderDirection; /** Sort plugins by the selected field. */ field: PluginSortField; @@ -4019,22 +4135,22 @@ export type PluginUpdateInput = { /** An enumeration. */ export enum PostalCodeRuleInclusionTypeEnum { - INCLUDE = 'INCLUDE', - EXCLUDE = 'EXCLUDE' + EXCLUDE = 'EXCLUDE', + INCLUDE = 'INCLUDE' } export type PreorderSettingsInput = { - /** The global threshold for preorder variant. */ - globalThreshold?: InputMaybe; /** The end date for preorder. */ endDate?: InputMaybe; + /** The global threshold for preorder variant. */ + globalThreshold?: InputMaybe; }; export type PriceInput = { - /** Currency code. */ - currency: Scalars['String']; /** Amount of money. */ amount: Scalars['PositiveDecimal']; + /** Currency code. */ + currency: Scalars['String']; }; export type PriceRangeInput = { @@ -4073,9 +4189,97 @@ export enum ProductAttributeType { VARIANT = 'VARIANT' } +/** An enumeration. */ +export enum ProductBulkCreateErrorCode { + ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', + ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', + ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', + BLANK = 'BLANK', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID = 'INVALID', + INVALID_PRICE = 'INVALID_PRICE', + MAX_LENGTH = 'MAX_LENGTH', + NOT_FOUND = 'NOT_FOUND', + PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', + PRODUCT_WITHOUT_CATEGORY = 'PRODUCT_WITHOUT_CATEGORY', + REQUIRED = 'REQUIRED', + UNIQUE = 'UNIQUE', + UNSUPPORTED_MEDIA_PROVIDER = 'UNSUPPORTED_MEDIA_PROVIDER' +} + +export type ProductBulkCreateInput = { + /** List of attributes. */ + attributes?: InputMaybe>; + /** ID of the product's category. */ + category?: InputMaybe; + /** List of channels in which the product is available. */ + channelListings?: InputMaybe>; + /** + * Determine if taxes are being charged for the product. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + */ + chargeTaxes?: InputMaybe; + /** List of IDs of collections that the product belongs to. */ + collections?: InputMaybe>; + /** + * Product description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + /** External ID of this product. */ + externalReference?: InputMaybe; + /** List of media inputs associated with the product. */ + media?: InputMaybe>; + /** Fields required to update the product metadata. */ + metadata?: InputMaybe>; + /** Product name. */ + name?: InputMaybe; + /** Fields required to update the product private metadata. */ + privateMetadata?: InputMaybe>; + /** ID of the type that product belongs to. */ + productType: Scalars['ID']; + /** Defines the product rating value. */ + rating?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Product slug. */ + slug?: InputMaybe; + /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ + taxClass?: InputMaybe; + /** + * Tax rate for enabled tax gateway. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + */ + taxCode?: InputMaybe; + /** Input list of product variants to create. */ + variants?: InputMaybe>; + /** Weight of the Product. */ + weight?: InputMaybe; +}; + export type ProductChannelListingAddInput = { + /** List of variants to which the channel should be assigned. */ + addVariants?: InputMaybe>; + /** + * A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. + * + * Added in Saleor 3.3. + */ + availableForPurchaseAt?: InputMaybe; + /** + * A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use `availableForPurchaseAt` field instead. + */ + availableForPurchaseDate?: InputMaybe; /** ID of a channel. */ channelId: Scalars['ID']; + /** Determine if product should be available for purchase. */ + isAvailableForPurchase?: InputMaybe; /** Determines if object is visible to customers. */ isPublished?: InputMaybe; /** @@ -4090,33 +4294,32 @@ export type ProductChannelListingAddInput = { * Added in Saleor 3.3. */ publishedAt?: InputMaybe; - /** Determines if product is visible in product listings (doesn't apply to product collections). */ - visibleInListings?: InputMaybe; - /** Determine if product should be available for purchase. */ - isAvailableForPurchase?: InputMaybe; - /** - * A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `availableForPurchaseAt` field instead. - */ - availableForPurchaseDate?: InputMaybe; - /** - * A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. - * - * Added in Saleor 3.3. - */ - availableForPurchaseAt?: InputMaybe; - /** List of variants to which the channel should be assigned. */ - addVariants?: InputMaybe>; /** List of variants from which the channel should be unassigned. */ removeVariants?: InputMaybe>; + /** Determines if product is visible in product listings (doesn't apply to product collections). */ + visibleInListings?: InputMaybe; +}; + +export type ProductChannelListingCreateInput = { + /** A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. */ + availableForPurchaseAt?: InputMaybe; + /** ID of a channel. */ + channelId: Scalars['ID']; + /** Determine if product should be available for purchase. */ + isAvailableForPurchase?: InputMaybe; + /** Determines if object is visible to customers. */ + isPublished?: InputMaybe; + /** Publication date time. ISO 8601 standard. */ + publishedAt?: InputMaybe; + /** Determines if product is visible in product listings (doesn't apply to product collections). */ + visibleInListings?: InputMaybe; }; export type ProductChannelListingUpdateInput = { - /** List of channels to which the product should be assigned or updated. */ - updateChannels?: InputMaybe>; /** List of channels from which the product should be unassigned. */ removeChannels?: InputMaybe>; + /** List of channels to which the product should be assigned or updated. */ + updateChannels?: InputMaybe>; }; export type ProductCreateInput = { @@ -4138,8 +4341,32 @@ export type ProductCreateInput = { * Rich text format. For reference see https://editorjs.io/ */ description?: InputMaybe; + /** + * External ID of this product. + * + * Added in Saleor 3.10. + */ + externalReference?: InputMaybe; + /** + * Fields required to update the product metadata. + * + * Added in Saleor 3.8. + */ + metadata?: InputMaybe>; /** Product name. */ name?: InputMaybe; + /** + * Fields required to update the product private metadata. + * + * Added in Saleor 3.8. + */ + privateMetadata?: InputMaybe>; + /** ID of the type that product belongs to. */ + productType: Scalars['ID']; + /** Defines the product rating value. */ + rating?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; /** Product slug. */ slug?: InputMaybe; /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ @@ -4150,32 +4377,8 @@ export type ProductCreateInput = { * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; /** Weight of the Product. */ weight?: InputMaybe; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** - * Fields required to update the product metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** ID of the type that product belongs to. */ - productType: Scalars['ID']; }; /** An enumeration. */ @@ -4184,91 +4387,91 @@ export enum ProductErrorCode { ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - MEDIA_ALREADY_ASSIGNED = 'MEDIA_ALREADY_ASSIGNED', + CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', INVALID_PRICE = 'INVALID_PRICE', - PRODUCT_WITHOUT_CATEGORY = 'PRODUCT_WITHOUT_CATEGORY', + MEDIA_ALREADY_ASSIGNED = 'MEDIA_ALREADY_ASSIGNED', + NOT_FOUND = 'NOT_FOUND', NOT_PRODUCTS_IMAGE = 'NOT_PRODUCTS_IMAGE', NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', - NOT_FOUND = 'NOT_FOUND', + PREORDER_VARIANT_CANNOT_BE_DEACTIVATED = 'PREORDER_VARIANT_CANNOT_BE_DEACTIVATED', + PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', + PRODUCT_WITHOUT_CATEGORY = 'PRODUCT_WITHOUT_CATEGORY', REQUIRED = 'REQUIRED', UNIQUE = 'UNIQUE', - VARIANT_NO_DIGITAL_CONTENT = 'VARIANT_NO_DIGITAL_CONTENT', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', UNSUPPORTED_MEDIA_PROVIDER = 'UNSUPPORTED_MEDIA_PROVIDER', - PREORDER_VARIANT_CANNOT_BE_DEACTIVATED = 'PREORDER_VARIANT_CANNOT_BE_DEACTIVATED' + VARIANT_NO_DIGITAL_CONTENT = 'VARIANT_NO_DIGITAL_CONTENT' } export enum ProductFieldEnum { - NAME = 'NAME', - DESCRIPTION = 'DESCRIPTION', - PRODUCT_TYPE = 'PRODUCT_TYPE', CATEGORY = 'CATEGORY', - PRODUCT_WEIGHT = 'PRODUCT_WEIGHT', - COLLECTIONS = 'COLLECTIONS', CHARGE_TAXES = 'CHARGE_TAXES', + COLLECTIONS = 'COLLECTIONS', + DESCRIPTION = 'DESCRIPTION', + NAME = 'NAME', PRODUCT_MEDIA = 'PRODUCT_MEDIA', + PRODUCT_TYPE = 'PRODUCT_TYPE', + PRODUCT_WEIGHT = 'PRODUCT_WEIGHT', VARIANT_ID = 'VARIANT_ID', + VARIANT_MEDIA = 'VARIANT_MEDIA', VARIANT_SKU = 'VARIANT_SKU', - VARIANT_WEIGHT = 'VARIANT_WEIGHT', - VARIANT_MEDIA = 'VARIANT_MEDIA' + VARIANT_WEIGHT = 'VARIANT_WEIGHT' } export type ProductFilterInput = { - isPublished?: InputMaybe; - collections?: InputMaybe>; - categories?: InputMaybe>; - hasCategory?: InputMaybe; attributes?: InputMaybe>; - /** Filter by variants having specific stock status. */ - stockAvailability?: InputMaybe; - stocks?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - /** - * Filter by the publication date. - * - * Added in Saleor 3.8. - */ - publishedFrom?: InputMaybe; - /** - * Filter by availability for purchase. - * - * Added in Saleor 3.8. - */ - isAvailable?: InputMaybe; /** * Filter by the date of availability for purchase. * * Added in Saleor 3.8. */ availableFrom?: InputMaybe; - /** - * Filter by visibility in product listings. - * - * Added in Saleor 3.8. - */ - isVisibleInListing?: InputMaybe; - price?: InputMaybe; - /** Filter by the lowest variant price after discounts. */ - minimalPrice?: InputMaybe; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; - productTypes?: InputMaybe>; - /** Filter on whether product is a gift card or not. */ - giftCard?: InputMaybe; - ids?: InputMaybe>; - hasPreorderedVariants?: InputMaybe; - slugs?: InputMaybe>; + categories?: InputMaybe>; /** * Specifies the channel by which the data should be filtered. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ channel?: InputMaybe; + collections?: InputMaybe>; + /** Filter on whether product is a gift card or not. */ + giftCard?: InputMaybe; + hasCategory?: InputMaybe; + hasPreorderedVariants?: InputMaybe; + ids?: InputMaybe>; + /** + * Filter by availability for purchase. + * + * Added in Saleor 3.8. + */ + isAvailable?: InputMaybe; + isPublished?: InputMaybe; + /** + * Filter by visibility in product listings. + * + * Added in Saleor 3.8. + */ + isVisibleInListing?: InputMaybe; + metadata?: InputMaybe>; + /** Filter by the lowest variant price after discounts. */ + minimalPrice?: InputMaybe; + price?: InputMaybe; + productTypes?: InputMaybe>; + /** + * Filter by the publication date. + * + * Added in Saleor 3.8. + */ + publishedFrom?: InputMaybe; + search?: InputMaybe; + slugs?: InputMaybe>; + /** Filter by variants having specific stock status. */ + stockAvailability?: InputMaybe; + stocks?: InputMaybe; + /** Filter by when was the most recent update. */ + updatedAt?: InputMaybe; }; export type ProductInput = { @@ -4290,8 +4493,30 @@ export type ProductInput = { * Rich text format. For reference see https://editorjs.io/ */ description?: InputMaybe; + /** + * External ID of this product. + * + * Added in Saleor 3.10. + */ + externalReference?: InputMaybe; + /** + * Fields required to update the product metadata. + * + * Added in Saleor 3.8. + */ + metadata?: InputMaybe>; /** Product name. */ name?: InputMaybe; + /** + * Fields required to update the product private metadata. + * + * Added in Saleor 3.8. + */ + privateMetadata?: InputMaybe>; + /** Defines the product rating value. */ + rating?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; /** Product slug. */ slug?: InputMaybe; /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ @@ -4302,30 +4527,8 @@ export type ProductInput = { * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; /** Weight of the Product. */ weight?: InputMaybe; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** - * Fields required to update the product metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; }; export type ProductMediaCreateInput = { @@ -4333,10 +4536,10 @@ export type ProductMediaCreateInput = { alt?: InputMaybe; /** Represents an image file in a multipart request. */ image?: InputMaybe; - /** ID of an product. */ - product: Scalars['ID']; /** Represents an URL to an external media. */ mediaUrl?: InputMaybe; + /** ID of an product. */ + product: Scalars['ID']; }; /** An enumeration. */ @@ -4351,28 +4554,50 @@ export type ProductMediaUpdateInput = { }; export type ProductOrder = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; + /** + * Sort product by the selected attribute's values. + * Note: this doesn't take translations into account yet. + */ + attributeId?: InputMaybe; /** * Specifies the channel in which to sort the data. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ channel?: InputMaybe; - /** - * Sort product by the selected attribute's values. - * Note: this doesn't take translations into account yet. - */ - attributeId?: InputMaybe; + /** Specifies the direction in which to sort products. */ + direction: OrderDirection; /** Sort products by the selected field. */ field?: InputMaybe; }; export enum ProductOrderField { + /** + * Sort products by collection. Note: This option is available only for the `Collection.products` query. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + COLLECTION = 'COLLECTION', + /** + * Sort products by creation date. + * + * Added in Saleor 3.8. + */ + CREATED_AT = 'CREATED_AT', + /** Sort products by update date. */ + DATE = 'DATE', + /** Sort products by update date. */ + LAST_MODIFIED = 'LAST_MODIFIED', + /** Sort products by update date. */ + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', + /** + * Sort products by a minimal price of a product's variant. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + MINIMAL_PRICE = 'MINIMAL_PRICE', /** Sort products by name. */ NAME = 'NAME', - /** Sort products by rank. Note: This option is available only with the `search` filter. */ - RANK = 'RANK', /** * Sort products by price. * @@ -4380,56 +4605,34 @@ export enum ProductOrderField { */ PRICE = 'PRICE', /** - * Sort products by a minimal price of a product's variant. + * Sort products by publication date. * * This option requires a channel filter to work as the values can vary between channels. */ - MINIMAL_PRICE = 'MINIMAL_PRICE', - /** Sort products by update date. */ - LAST_MODIFIED = 'LAST_MODIFIED', - /** Sort products by update date. */ - DATE = 'DATE', - /** Sort products by type. */ - TYPE = 'TYPE', + PUBLICATION_DATE = 'PUBLICATION_DATE', /** * Sort products by publication status. * * This option requires a channel filter to work as the values can vary between channels. */ PUBLISHED = 'PUBLISHED', - /** - * Sort products by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', /** * Sort products by publication date. * * This option requires a channel filter to work as the values can vary between channels. */ PUBLISHED_AT = 'PUBLISHED_AT', - /** Sort products by update date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** - * Sort products by collection. Note: This option is available only for the `Collection.products` query. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - COLLECTION = 'COLLECTION', + /** Sort products by rank. Note: This option is available only with the `search` filter. */ + RANK = 'RANK', /** Sort products by rating. */ RATING = 'RATING', - /** - * Sort products by creation date. - * - * Added in Saleor 3.8. - */ - CREATED_AT = 'CREATED_AT' + /** Sort products by type. */ + TYPE = 'TYPE' } export type ProductStockFilterInput = { - warehouseIds?: InputMaybe>; quantity?: InputMaybe; + warehouseIds?: InputMaybe>; }; export enum ProductTypeConfigurable { @@ -4443,61 +4646,61 @@ export enum ProductTypeEnum { } export type ProductTypeFilterInput = { - search?: InputMaybe; configurable?: InputMaybe; - productType?: InputMaybe; - metadata?: InputMaybe>; - kind?: InputMaybe; ids?: InputMaybe>; + kind?: InputMaybe; + metadata?: InputMaybe>; + productType?: InputMaybe; + search?: InputMaybe; slugs?: InputMaybe>; }; export type ProductTypeInput = { - /** Name of the product type. */ - name?: InputMaybe; - /** Product type slug. */ - slug?: InputMaybe; - /** The product type kind. */ - kind?: InputMaybe; /** Determines if product of this type has multiple variants. This option mainly simplifies product management in the dashboard. There is always at least one variant created under the hood. */ hasVariants?: InputMaybe; - /** List of attributes shared among all product variants. */ - productAttributes?: InputMaybe>; - /** List of attributes used to distinguish between different variants of a product. */ - variantAttributes?: InputMaybe>; - /** Determines if shipping is required for products of this variant. */ - isShippingRequired?: InputMaybe; /** Determines if products are digital. */ isDigital?: InputMaybe; - /** Weight of the ProductType items. */ - weight?: InputMaybe; + /** Determines if shipping is required for products of this variant. */ + isShippingRequired?: InputMaybe; + /** The product type kind. */ + kind?: InputMaybe; + /** Name of the product type. */ + name?: InputMaybe; + /** List of attributes shared among all product variants. */ + productAttributes?: InputMaybe>; + /** Product type slug. */ + slug?: InputMaybe; + /** ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. */ + taxClass?: InputMaybe; /** * Tax rate for enabled tax gateway. * * DEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; - /** ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. */ - taxClass?: InputMaybe; + /** List of attributes used to distinguish between different variants of a product. */ + variantAttributes?: InputMaybe>; + /** Weight of the ProductType items. */ + weight?: InputMaybe; }; /** An enumeration. */ export enum ProductTypeKindEnum { - NORMAL = 'NORMAL', - GIFT_CARD = 'GIFT_CARD' + GIFT_CARD = 'GIFT_CARD', + NORMAL = 'NORMAL' } export enum ProductTypeSortField { - /** Sort products by name. */ - NAME = 'NAME', /** Sort products by type. */ DIGITAL = 'DIGITAL', + /** Sort products by name. */ + NAME = 'NAME', /** Sort products by shipping. */ SHIPPING_REQUIRED = 'SHIPPING_REQUIRED' } export type ProductTypeSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort product types. */ direction: OrderDirection; /** Sort product types by the selected field. */ field: ProductTypeSortField; @@ -4506,36 +4709,28 @@ export type ProductTypeSortingInput = { export type ProductVariantBulkCreateInput = { /** List of attributes specific to this variant. */ attributes: Array; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Variant name. */ - name?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; + /** List of prices assigned to channels. */ + channelListings?: InputMaybe>; /** - * Determines if variant is in preorder. + * External ID of this product variant. * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * Added in Saleor 3.10. */ - preorder?: InputMaybe; - /** - * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - quantityLimitPerCustomer?: InputMaybe; + externalReference?: InputMaybe; /** * Fields required to update the product variant metadata. * * Added in Saleor 3.8. */ metadata?: InputMaybe>; + /** Variant name. */ + name?: InputMaybe; + /** + * Determines if variant is in preorder. + * + * Added in Saleor 3.1. + */ + preorder?: InputMaybe; /** * Fields required to update the product variant private metadata. * @@ -4543,15 +4738,19 @@ export type ProductVariantBulkCreateInput = { */ privateMetadata?: InputMaybe>; /** - * External ID of this product variant. + * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. * - * Added in Saleor 3.10. + * Added in Saleor 3.1. */ - externalReference?: InputMaybe; + quantityLimitPerCustomer?: InputMaybe; + /** Stock keeping unit. */ + sku?: InputMaybe; /** Stocks of a product available for sale. */ stocks?: InputMaybe>; - /** List of prices assigned to channels. */ - channelListings?: InputMaybe>; + /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ + trackInventory?: InputMaybe; + /** Weight of the Product Variant. */ + weight?: InputMaybe; }; /** An enumeration. */ @@ -4563,11 +4762,11 @@ export enum ProductVariantBulkErrorCode { GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', INVALID_PRICE = 'INVALID_PRICE', - NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', NOT_FOUND = 'NOT_FOUND', + NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', + PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL' + UNIQUE = 'UNIQUE' } /** @@ -4578,56 +4777,6 @@ export enum ProductVariantBulkErrorCode { export type ProductVariantBulkUpdateInput = { /** List of attributes specific to this variant. */ attributes?: InputMaybe>; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Variant name. */ - name?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; - /** - * Determines if variant is in preorder. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - preorder?: InputMaybe; - /** - * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - quantityLimitPerCustomer?: InputMaybe; - /** - * Fields required to update the product variant metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product variant private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product variant. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** - * Stocks input. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - stocks?: InputMaybe; /** * Channel listings input. * @@ -4636,128 +4785,158 @@ export type ProductVariantBulkUpdateInput = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ channelListings?: InputMaybe; + /** + * External ID of this product variant. + * + * Added in Saleor 3.10. + */ + externalReference?: InputMaybe; /** ID of the product variant to update. */ id: Scalars['ID']; + /** + * Fields required to update the product variant metadata. + * + * Added in Saleor 3.8. + */ + metadata?: InputMaybe>; + /** Variant name. */ + name?: InputMaybe; + /** + * Determines if variant is in preorder. + * + * Added in Saleor 3.1. + */ + preorder?: InputMaybe; + /** + * Fields required to update the product variant private metadata. + * + * Added in Saleor 3.8. + */ + privateMetadata?: InputMaybe>; + /** + * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. + * + * Added in Saleor 3.1. + */ + quantityLimitPerCustomer?: InputMaybe; + /** Stock keeping unit. */ + sku?: InputMaybe; + /** + * Stocks input. + * + * Added in Saleor 3.12. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + stocks?: InputMaybe; + /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ + trackInventory?: InputMaybe; + /** Weight of the Product Variant. */ + weight?: InputMaybe; }; export type ProductVariantChannelListingAddInput = { /** ID of a channel. */ channelId: Scalars['ID']; - /** Price of the particular variant in channel. */ - price: Scalars['PositiveDecimal']; /** Cost price of the variant in channel. */ costPrice?: InputMaybe; /** * The threshold for preorder variant in channel. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ preorderThreshold?: InputMaybe; + /** Price of the particular variant in channel. */ + price: Scalars['PositiveDecimal']; }; export type ProductVariantChannelListingUpdateInput = { /** List of channels to create variant channel listings. */ create?: InputMaybe>; - /** List of channel listings to update. */ - update?: InputMaybe>; /** List of channel listings to remove. */ remove?: InputMaybe>; + /** List of channel listings to update. */ + update?: InputMaybe>; }; export type ProductVariantCreateInput = { /** List of attributes specific to this variant. */ attributes: Array; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Variant name. */ - name?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; - /** - * Determines if variant is in preorder. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - preorder?: InputMaybe; - /** - * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - quantityLimitPerCustomer?: InputMaybe; - /** - * Fields required to update the product variant metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product variant private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; /** * External ID of this product variant. * * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** + * Fields required to update the product variant metadata. + * + * Added in Saleor 3.8. + */ + metadata?: InputMaybe>; + /** Variant name. */ + name?: InputMaybe; + /** + * Determines if variant is in preorder. + * + * Added in Saleor 3.1. + */ + preorder?: InputMaybe; + /** + * Fields required to update the product variant private metadata. + * + * Added in Saleor 3.8. + */ + privateMetadata?: InputMaybe>; /** Product ID of which type is the variant. */ product: Scalars['ID']; + /** + * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. + * + * Added in Saleor 3.1. + */ + quantityLimitPerCustomer?: InputMaybe; + /** Stock keeping unit. */ + sku?: InputMaybe; /** Stocks of a product available for sale. */ stocks?: InputMaybe>; + /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ + trackInventory?: InputMaybe; + /** Weight of the Product Variant. */ + weight?: InputMaybe; }; export type ProductVariantFilterInput = { + isPreorder?: InputMaybe; + metadata?: InputMaybe>; search?: InputMaybe; sku?: InputMaybe>; - metadata?: InputMaybe>; - isPreorder?: InputMaybe; updatedAt?: InputMaybe; }; export type ProductVariantInput = { /** List of attributes specific to this variant. */ attributes?: InputMaybe>; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Variant name. */ - name?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; /** - * Determines if variant is in preorder. + * External ID of this product variant. * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * Added in Saleor 3.10. */ - preorder?: InputMaybe; - /** - * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - quantityLimitPerCustomer?: InputMaybe; + externalReference?: InputMaybe; /** * Fields required to update the product variant metadata. * * Added in Saleor 3.8. */ metadata?: InputMaybe>; + /** Variant name. */ + name?: InputMaybe; + /** + * Determines if variant is in preorder. + * + * Added in Saleor 3.1. + */ + preorder?: InputMaybe; /** * Fields required to update the product variant private metadata. * @@ -4765,11 +4944,17 @@ export type ProductVariantInput = { */ privateMetadata?: InputMaybe>; /** - * External ID of this product variant. + * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. * - * Added in Saleor 3.10. + * Added in Saleor 3.1. */ - externalReference?: InputMaybe; + quantityLimitPerCustomer?: InputMaybe; + /** Stock keeping unit. */ + sku?: InputMaybe; + /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ + trackInventory?: InputMaybe; + /** Weight of the Product Variant. */ + weight?: InputMaybe; }; export enum ProductVariantSortField { @@ -4778,7 +4963,7 @@ export enum ProductVariantSortField { } export type ProductVariantSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort productVariants. */ direction: OrderDirection; /** Sort productVariants by the selected field. */ field: ProductVariantSortField; @@ -4787,10 +4972,10 @@ export type ProductVariantSortingInput = { export type ProductVariantStocksUpdateInput = { /** List of warehouses to create stocks. */ create?: InputMaybe>; - /** List of stocks to update. */ - update?: InputMaybe>; /** List of stocks to remove. */ remove?: InputMaybe>; + /** List of stocks to update. */ + update?: InputMaybe>; }; export type PublishableChannelListingInput = { @@ -4820,8 +5005,8 @@ export type ReorderInput = { }; export enum ReportingPeriod { - TODAY = 'TODAY', - THIS_MONTH = 'THIS_MONTH' + THIS_MONTH = 'THIS_MONTH', + TODAY = 'TODAY' } export type SaleChannelListingAddInput = { @@ -4839,64 +5024,64 @@ export type SaleChannelListingInput = { }; export type SaleFilterInput = { - status?: InputMaybe>; - saleType?: InputMaybe; - started?: InputMaybe; - search?: InputMaybe; metadata?: InputMaybe>; + saleType?: InputMaybe; + search?: InputMaybe; + started?: InputMaybe; + status?: InputMaybe>; updatedAt?: InputMaybe; }; export type SaleInput = { - /** Voucher name. */ - name?: InputMaybe; - /** Fixed or percentage. */ - type?: InputMaybe; - /** Value of the voucher. */ - value?: InputMaybe; - /** Products related to the discount. */ - products?: InputMaybe>; - variants?: InputMaybe>; /** Categories related to the discount. */ categories?: InputMaybe>; /** Collections related to the discount. */ collections?: InputMaybe>; - /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; /** End date of the voucher in ISO 8601 format. */ endDate?: InputMaybe; + /** Voucher name. */ + name?: InputMaybe; + /** Products related to the discount. */ + products?: InputMaybe>; + /** Start date of the voucher in ISO 8601 format. */ + startDate?: InputMaybe; + /** Fixed or percentage. */ + type?: InputMaybe; + /** Value of the voucher. */ + value?: InputMaybe; + variants?: InputMaybe>; }; export enum SaleSortField { + /** Sort sales by created at. */ + CREATED_AT = 'CREATED_AT', + /** Sort sales by end date. */ + END_DATE = 'END_DATE', + /** Sort sales by last modified at. */ + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', /** Sort sales by name. */ NAME = 'NAME', /** Sort sales by start date. */ START_DATE = 'START_DATE', - /** Sort sales by end date. */ - END_DATE = 'END_DATE', + /** Sort sales by type. */ + TYPE = 'TYPE', /** * Sort sales by value. * * This option requires a channel filter to work as the values can vary between channels. */ - VALUE = 'VALUE', - /** Sort sales by type. */ - TYPE = 'TYPE', - /** Sort sales by created at. */ - CREATED_AT = 'CREATED_AT', - /** Sort sales by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' + VALUE = 'VALUE' } export type SaleSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; /** * Specifies the channel in which to sort the data. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ channel?: InputMaybe; + /** Specifies the direction in which to sort sales. */ + direction: OrderDirection; /** Sort sales by the selected field. */ field: SaleSortField; }; @@ -4907,33 +5092,33 @@ export enum SaleType { } export type SeoInput = { - /** SEO title. */ - title?: InputMaybe; /** SEO description. */ description?: InputMaybe; + /** SEO title. */ + title?: InputMaybe; }; /** An enumeration. */ export enum ShippingErrorCode { ALREADY_EXISTS = 'ALREADY_EXISTS', + DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', MAX_LESS_THAN_MIN = 'MAX_LESS_THAN_MIN', NOT_FOUND = 'NOT_FOUND', REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM' + UNIQUE = 'UNIQUE' } export type ShippingMethodChannelListingAddInput = { /** ID of a channel. */ channelId: Scalars['ID']; - /** Shipping price of the shipping method in this channel. */ - price?: InputMaybe; - /** Minimum order price to use this shipping method. */ - minimumOrderPrice?: InputMaybe; /** Maximum order price to use this shipping method. */ maximumOrderPrice?: InputMaybe; + /** Minimum order price to use this shipping method. */ + minimumOrderPrice?: InputMaybe; + /** Shipping price of the shipping method in this channel. */ + price?: InputMaybe; }; export type ShippingMethodChannelListingInput = { @@ -4950,10 +5135,10 @@ export enum ShippingMethodTypeEnum { } export type ShippingPostalCodeRulesCreateInputRange = { - /** Start range of the postal code. */ - start: Scalars['String']; /** End range of the postal code. */ end?: InputMaybe; + /** Start range of the postal code. */ + start: Scalars['String']; }; export type ShippingPriceExcludeProductsInput = { @@ -4962,79 +5147,79 @@ export type ShippingPriceExcludeProductsInput = { }; export type ShippingPriceInput = { - /** Name of the shipping method. */ - name?: InputMaybe; - /** Shipping method description. */ - description?: InputMaybe; - /** Minimum order weight to use this shipping method. */ - minimumOrderWeight?: InputMaybe; - /** Maximum order weight to use this shipping method. */ - maximumOrderWeight?: InputMaybe; - /** Maximum number of days for delivery. */ - maximumDeliveryDays?: InputMaybe; - /** Minimal number of days for delivery. */ - minimumDeliveryDays?: InputMaybe; - /** Shipping type: price or weight based. */ - type?: InputMaybe; - /** Shipping zone this method belongs to. */ - shippingZone?: InputMaybe; /** Postal code rules to add. */ addPostalCodeRules?: InputMaybe>; /** Postal code rules to delete. */ deletePostalCodeRules?: InputMaybe>; + /** Shipping method description. */ + description?: InputMaybe; /** Inclusion type for currently assigned postal code rules. */ inclusionType?: InputMaybe; + /** Maximum number of days for delivery. */ + maximumDeliveryDays?: InputMaybe; + /** Maximum order weight to use this shipping method. */ + maximumOrderWeight?: InputMaybe; + /** Minimal number of days for delivery. */ + minimumDeliveryDays?: InputMaybe; + /** Minimum order weight to use this shipping method. */ + minimumOrderWeight?: InputMaybe; + /** Name of the shipping method. */ + name?: InputMaybe; + /** Shipping zone this method belongs to. */ + shippingZone?: InputMaybe; /** ID of a tax class to assign to this shipping method. If not provided, the default tax class will be used. */ taxClass?: InputMaybe; + /** Shipping type: price or weight based. */ + type?: InputMaybe; }; export type ShippingPriceTranslationInput = { - name?: InputMaybe; /** * Translated shipping method description. * * Rich text format. For reference see https://editorjs.io/ */ description?: InputMaybe; + name?: InputMaybe; }; export type ShippingZoneCreateInput = { - /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; - /** Description of the shipping zone. */ - description?: InputMaybe; + /** List of channels to assign to the shipping zone. */ + addChannels?: InputMaybe>; + /** List of warehouses to assign to a shipping zone */ + addWarehouses?: InputMaybe>; /** List of countries in this shipping zone. */ countries?: InputMaybe>; /** Default shipping zone will be used for countries not covered by other zones. */ default?: InputMaybe; - /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; - /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; + /** Description of the shipping zone. */ + description?: InputMaybe; + /** Shipping zone's name. Visible only to the staff. */ + name?: InputMaybe; }; export type ShippingZoneFilterInput = { - search?: InputMaybe; channels?: InputMaybe>; + search?: InputMaybe; }; export type ShippingZoneUpdateInput = { - /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; - /** Description of the shipping zone. */ - description?: InputMaybe; + /** List of channels to assign to the shipping zone. */ + addChannels?: InputMaybe>; + /** List of warehouses to assign to a shipping zone */ + addWarehouses?: InputMaybe>; /** List of countries in this shipping zone. */ countries?: InputMaybe>; /** Default shipping zone will be used for countries not covered by other zones. */ default?: InputMaybe; - /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; - /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; - /** List of warehouses to unassign from a shipping zone */ - removeWarehouses?: InputMaybe>; + /** Description of the shipping zone. */ + description?: InputMaybe; + /** Shipping zone's name. Visible only to the staff. */ + name?: InputMaybe; /** List of channels to unassign from the shipping zone. */ removeChannels?: InputMaybe>; + /** List of warehouses to unassign from a shipping zone */ + removeWarehouses?: InputMaybe>; }; /** An enumeration. */ @@ -5049,38 +5234,60 @@ export enum ShopErrorCode { } export type ShopSettingsInput = { - /** Header text. */ - headerText?: InputMaybe; - /** SEO description. */ - description?: InputMaybe; - /** Enable inventory tracking. */ - trackInventoryByDefault?: InputMaybe; - /** Default weight unit. */ - defaultWeightUnit?: InputMaybe; /** Enable automatic fulfillment for all digital products. */ automaticFulfillmentDigitalProducts?: InputMaybe; /** - * Enable automatic approval of all new fulfillments. + * Charge taxes on shipping. * - * Added in Saleor 3.1. + * DEPRECATED: this field will be removed in Saleor 4.0. To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. */ - fulfillmentAutoApprove?: InputMaybe; + chargeTaxesOnShipping?: InputMaybe; + /** URL of a view where customers can set their password. */ + customerSetPasswordUrl?: InputMaybe; + /** Default number of max downloads per digital content URL. */ + defaultDigitalMaxDownloads?: InputMaybe; + /** Default number of days which digital content URL will be valid. */ + defaultDigitalUrlValidDays?: InputMaybe; + /** Default email sender's address. */ + defaultMailSenderAddress?: InputMaybe; + /** Default email sender's name. */ + defaultMailSenderName?: InputMaybe; + /** Default weight unit. */ + defaultWeightUnit?: InputMaybe; + /** SEO description. */ + description?: InputMaybe; + /** + * Display prices with tax in store. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. + */ + displayGrossPrices?: InputMaybe; /** * Enable ability to approve fulfillments which are unpaid. * * Added in Saleor 3.1. */ fulfillmentAllowUnpaid?: InputMaybe; - /** Default number of max downloads per digital content URL. */ - defaultDigitalMaxDownloads?: InputMaybe; - /** Default number of days which digital content URL will be valid. */ - defaultDigitalUrlValidDays?: InputMaybe; - /** Default email sender's name. */ - defaultMailSenderName?: InputMaybe; - /** Default email sender's address. */ - defaultMailSenderAddress?: InputMaybe; - /** URL of a view where customers can set their password. */ - customerSetPasswordUrl?: InputMaybe; + /** + * Enable automatic approval of all new fulfillments. + * + * Added in Saleor 3.1. + */ + fulfillmentAutoApprove?: InputMaybe; + /** Header text. */ + headerText?: InputMaybe; + /** + * Include taxes in prices. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. + */ + includeTaxesInPrices?: InputMaybe; + /** + * Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. + * + * Added in Saleor 3.1. + */ + limitQuantityPerCheckout?: InputMaybe; /** * Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable. * @@ -5093,37 +5300,13 @@ export type ShopSettingsInput = { * Added in Saleor 3.1. */ reserveStockDurationAuthenticatedUser?: InputMaybe; - /** - * Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - limitQuantityPerCheckout?: InputMaybe; - /** - * Include taxes in prices. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - */ - includeTaxesInPrices?: InputMaybe; - /** - * Display prices with tax in store. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - */ - displayGrossPrices?: InputMaybe; - /** - * Charge taxes on shipping. - * - * DEPRECATED: this field will be removed in Saleor 4.0. To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. - */ - chargeTaxesOnShipping?: InputMaybe; + /** Enable inventory tracking. */ + trackInventoryByDefault?: InputMaybe; }; export type ShopSettingsTranslationInput = { - headerText?: InputMaybe; description?: InputMaybe; + headerText?: InputMaybe; }; export type SiteDomainInput = { @@ -5133,23 +5316,25 @@ export type SiteDomainInput = { name?: InputMaybe; }; +/** Fields required to create a staff user. */ export type StaffCreateInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** A note about the user. */ - note?: InputMaybe; /** List of permission group IDs to which user should be assigned. */ addGroups?: InputMaybe>; + /** The unique email address of the user. */ + email?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User account is active. */ + isActive?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** A note about the user. */ + note?: InputMaybe; /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ redirectUrl?: InputMaybe; }; +/** Represents status of a staff account. */ export enum StaffMemberStatus { /** User account has been activated. */ ACTIVE = 'ACTIVE', @@ -5158,35 +5343,36 @@ export enum StaffMemberStatus { } export type StaffNotificationRecipientInput = { - /** The ID of the user subscribed to email notifications.. */ - user?: InputMaybe; - /** Email address of a user subscribed to email notifications. */ - email?: InputMaybe; /** Determines if a notification active. */ active?: InputMaybe; + /** Email address of a user subscribed to email notifications. */ + email?: InputMaybe; + /** The ID of the user subscribed to email notifications.. */ + user?: InputMaybe; }; +/** Fields required to update a staff user. */ export type StaffUpdateInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** A note about the user. */ - note?: InputMaybe; /** List of permission group IDs to which user should be assigned. */ addGroups?: InputMaybe>; + /** The unique email address of the user. */ + email?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User account is active. */ + isActive?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** A note about the user. */ + note?: InputMaybe; /** List of permission group IDs from which user should be unassigned. */ removeGroups?: InputMaybe>; }; export type StaffUserInput = { - status?: InputMaybe; - search?: InputMaybe; ids?: InputMaybe>; + search?: InputMaybe; + status?: InputMaybe; }; export enum StockAvailability { @@ -5203,16 +5389,16 @@ export enum StockBulkUpdateErrorCode { } export type StockBulkUpdateInput = { - /** Variant ID. */ - variantId?: InputMaybe; - /** Variant external reference. */ - variantExternalReference?: InputMaybe; - /** Warehouse ID. */ - warehouseId?: InputMaybe; - /** Warehouse external reference. */ - warehouseExternalReference?: InputMaybe; /** Quantity of items available for sell. */ quantity: Scalars['Int']; + /** Variant external reference. */ + variantExternalReference?: InputMaybe; + /** Variant ID. */ + variantId?: InputMaybe; + /** Warehouse external reference. */ + warehouseExternalReference?: InputMaybe; + /** Warehouse ID. */ + warehouseId?: InputMaybe; }; /** An enumeration. */ @@ -5231,10 +5417,10 @@ export type StockFilterInput = { }; export type StockInput = { - /** Warehouse in which stock is located. */ - warehouse: Scalars['ID']; /** Quantity of items available for sell. */ quantity: Scalars['Int']; + /** Warehouse in which stock is located. */ + warehouse: Scalars['ID']; }; export type StockSettingsInput = { @@ -5243,20 +5429,20 @@ export type StockSettingsInput = { }; export type StockUpdateInput = { - /** Stock. */ - stock: Scalars['ID']; /** Quantity of items available for sell. */ quantity: Scalars['Int']; + /** Stock. */ + stock: Scalars['ID']; }; /** Enum representing the type of a payment storage in a gateway. */ export enum StorePaymentMethodEnum { - /** On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. */ - ON_SESSION = 'ON_SESSION', + /** Storage is disabled. The payment is not stored. */ + NONE = 'NONE', /** Off session storage type. The payment is stored to be reused even if the customer is absent. */ OFF_SESSION = 'OFF_SESSION', - /** Storage is disabled. The payment is not stored. */ - NONE = 'NONE' + /** On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. */ + ON_SESSION = 'ON_SESSION' } /** @@ -5286,10 +5472,10 @@ export enum TaxClassCreateErrorCode { } export type TaxClassCreateInput = { - /** Name of the tax class. */ - name: Scalars['String']; /** List of country-specific tax rates to create for this tax class. */ createCountryRates?: InputMaybe>; + /** Name of the tax class. */ + name: Scalars['String']; }; /** An enumeration. */ @@ -5300,16 +5486,16 @@ export enum TaxClassDeleteErrorCode { } export type TaxClassFilterInput = { - metadata?: InputMaybe>; - ids?: InputMaybe>; countries?: InputMaybe>; + ids?: InputMaybe>; + metadata?: InputMaybe>; }; export type TaxClassRateInput = { - /** ID of a tax class for which to update the tax rate */ - taxClassId?: InputMaybe; /** Tax rate value. */ rate?: InputMaybe; + /** ID of a tax class for which to update the tax rate */ + taxClassId?: InputMaybe; }; export enum TaxClassSortField { @@ -5318,7 +5504,7 @@ export enum TaxClassSortField { } export type TaxClassSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort tax classes. */ direction: OrderDirection; /** Sort tax classes by the selected field. */ field: TaxClassSortField; @@ -5335,26 +5521,26 @@ export enum TaxClassUpdateErrorCode { export type TaxClassUpdateInput = { /** Name of the tax class. */ name?: InputMaybe; - /** List of country-specific tax rates to create or update for this tax class. */ - updateCountryRates?: InputMaybe>; /** List of country codes for which to remove the tax class rates. Note: It removes all rates for given country code. */ removeCountryRates?: InputMaybe>; + /** List of country-specific tax rates to create or update for this tax class. */ + updateCountryRates?: InputMaybe>; }; export type TaxConfigurationFilterInput = { - metadata?: InputMaybe>; ids?: InputMaybe>; + metadata?: InputMaybe>; }; export type TaxConfigurationPerCountryInput = { - /** Country in which this configuration applies. */ - countryCode: CountryCode; /** Determines whether taxes are charged in this country. */ chargeTaxes: Scalars['Boolean']; - /** A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. */ - taxCalculationStrategy?: InputMaybe; + /** Country in which this configuration applies. */ + countryCode: CountryCode; /** Determines whether prices displayed in a storefront should include taxes for this country. */ displayGrossPrices: Scalars['Boolean']; + /** A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. */ + taxCalculationStrategy?: InputMaybe; }; /** An enumeration. */ @@ -5368,16 +5554,16 @@ export enum TaxConfigurationUpdateErrorCode { export type TaxConfigurationUpdateInput = { /** Determines whether taxes are charged in the given channel. */ chargeTaxes?: InputMaybe; - /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ - taxCalculationStrategy?: InputMaybe; /** Determines whether prices displayed in a storefront should include taxes. */ displayGrossPrices?: InputMaybe; /** Determines whether prices are entered with the tax included. */ pricesEnteredWithTax?: InputMaybe; - /** List of tax country configurations to create or update (identified by a country code). */ - updateCountriesConfiguration?: InputMaybe>; /** List of country codes for which to remove the tax configuration. */ removeCountriesConfiguration?: InputMaybe>; + /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ + taxCalculationStrategy?: InputMaybe; + /** List of tax country configurations to create or update (identified by a country code). */ + updateCountriesConfiguration?: InputMaybe>; }; /** An enumeration. */ @@ -5389,25 +5575,25 @@ export enum TaxCountryConfigurationDeleteErrorCode { /** An enumeration. */ export enum TaxCountryConfigurationUpdateErrorCode { + CANNOT_CREATE_NEGATIVE_RATE = 'CANNOT_CREATE_NEGATIVE_RATE', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', NOT_FOUND = 'NOT_FOUND', - ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED = 'ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED', - CANNOT_CREATE_NEGATIVE_RATE = 'CANNOT_CREATE_NEGATIVE_RATE' + ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED = 'ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED' } /** An enumeration. */ export enum TaxExemptionManageErrorCode { GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - NOT_EDITABLE_ORDER = 'NOT_EDITABLE_ORDER' + NOT_EDITABLE_ORDER = 'NOT_EDITABLE_ORDER', + NOT_FOUND = 'NOT_FOUND' } /** An enumeration. */ export enum ThumbnailFormatEnum { - ORIGINAL = 'ORIGINAL', AVIF = 'AVIF', + ORIGINAL = 'ORIGINAL', WEBP = 'WEBP' } @@ -5421,8 +5607,8 @@ export type TimePeriodInputType = { /** An enumeration. */ export enum TimePeriodTypeEnum { DAY = 'DAY', - WEEK = 'WEEK', MONTH = 'MONTH', + WEEK = 'WEEK', YEAR = 'YEAR' } @@ -5432,10 +5618,13 @@ export enum TimePeriodTypeEnum { * The following actions are possible: * CHARGE - Represents the charge action. * REFUND - Represents a refund action. - * VOID - Represents a void action. + * VOID - Represents a void action. This field will be removed + * in Saleor 3.14 (Preview Feature). Use `CANCEL` instead. + * CANCEL - Represents a cancel action. Added in Saleor 3.12. * */ export enum TransactionActionEnum { + CANCEL = 'CANCEL', CHARGE = 'CHARGE', REFUND = 'REFUND', VOID = 'VOID' @@ -5443,104 +5632,317 @@ export enum TransactionActionEnum { /** An enumeration. */ export enum TransactionCreateErrorCode { - INVALID = 'INVALID', GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED' + INVALID = 'INVALID', + METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', + NOT_FOUND = 'NOT_FOUND', + UNIQUE = 'UNIQUE' } export type TransactionCreateInput = { - /** Status of the transaction. */ - status: Scalars['String']; - /** Payment type used for this transaction. */ - type: Scalars['String']; - /** Reference of the transaction. */ - reference?: InputMaybe; - /** List of all possible actions for the transaction */ - availableActions?: InputMaybe>; /** Amount authorized by this transaction. */ amountAuthorized?: InputMaybe; + /** + * Amount canceled by this transaction. + * + * Added in Saleor 3.13. + */ + amountCanceled?: InputMaybe; /** Amount charged by this transaction. */ amountCharged?: InputMaybe; /** Amount refunded by this transaction. */ amountRefunded?: InputMaybe; - /** Amount voided by this transaction. */ + /** + * Amount voided by this transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead. + */ amountVoided?: InputMaybe; + /** List of all possible actions for the transaction */ + availableActions?: InputMaybe>; + /** + * The url that will allow to redirect user to payment provider page with transaction event details. + * + * Added in Saleor 3.13. + */ + externalUrl?: InputMaybe; + /** + * The message of the transaction. + * + * Added in Saleor 3.13. + */ + message?: InputMaybe; /** Payment public metadata. */ metadata?: InputMaybe>; + /** + * Payment name of the transaction. + * + * Added in Saleor 3.13. + */ + name?: InputMaybe; /** Payment private metadata. */ privateMetadata?: InputMaybe>; + /** + * PSP Reference of the transaction. + * + * Added in Saleor 3.13. + */ + pspReference?: InputMaybe; + /** + * Reference of the transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + */ + reference?: InputMaybe; + /** + * Status of the transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. + */ + status?: InputMaybe; + /** + * Payment type used for this transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead. + */ + type?: InputMaybe; }; export type TransactionEventInput = { - /** Current status of the payment transaction. */ - status: TransactionStatus; - /** Reference of the transaction. */ - reference?: InputMaybe; - /** Name of the transaction. */ + /** + * The message related to the event. + * + * Added in Saleor 3.13. + */ + message?: InputMaybe; + /** + * Name of the transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead. `name` field will be added to `message`. + */ name?: InputMaybe; + /** + * PSP Reference related to this action. + * + * Added in Saleor 3.13. + */ + pspReference?: InputMaybe; + /** + * Reference of the transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + */ + reference?: InputMaybe; + /** + * Current status of the payment transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Status will be calculated by Saleor. + */ + status?: InputMaybe; }; +/** An enumeration. */ +export enum TransactionEventReportErrorCode { + ALREADY_EXISTS = 'ALREADY_EXISTS', + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INCORRECT_DETAILS = 'INCORRECT_DETAILS', + INVALID = 'INVALID', + NOT_FOUND = 'NOT_FOUND' +} + +/** + * Represents possible event types. + * + * Added in Saleor 3.12. + * + * The following types are possible: + * AUTHORIZATION_SUCCESS - represents success authorization. + * AUTHORIZATION_FAILURE - represents failure authorization. + * AUTHORIZATION_ADJUSTMENT - represents authorization adjustment. + * AUTHORIZATION_REQUEST - represents authorization request. + * AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs + * additional actions from the customer. + * CHARGE_ACTION_REQUIRED - represents charge that needs + * additional actions from the customer. + * CHARGE_SUCCESS - represents success charge. + * CHARGE_FAILURE - represents failure charge. + * CHARGE_BACK - represents chargeback. + * CHARGE_REQUEST - represents charge request. + * REFUND_SUCCESS - represents success refund. + * REFUND_FAILURE - represents failure refund. + * REFUND_REVERSE - represents reverse refund. + * REFUND_REQUEST - represents refund request. + * CANCEL_SUCCESS - represents success cancel. + * CANCEL_FAILURE - represents failure cancel. + * CANCEL_REQUEST - represents cancel request. + * INFO - represents info event. + * + */ +export enum TransactionEventTypeEnum { + AUTHORIZATION_ACTION_REQUIRED = 'AUTHORIZATION_ACTION_REQUIRED', + AUTHORIZATION_ADJUSTMENT = 'AUTHORIZATION_ADJUSTMENT', + AUTHORIZATION_FAILURE = 'AUTHORIZATION_FAILURE', + AUTHORIZATION_REQUEST = 'AUTHORIZATION_REQUEST', + AUTHORIZATION_SUCCESS = 'AUTHORIZATION_SUCCESS', + CANCEL_FAILURE = 'CANCEL_FAILURE', + CANCEL_REQUEST = 'CANCEL_REQUEST', + CANCEL_SUCCESS = 'CANCEL_SUCCESS', + CHARGE_ACTION_REQUIRED = 'CHARGE_ACTION_REQUIRED', + CHARGE_BACK = 'CHARGE_BACK', + CHARGE_FAILURE = 'CHARGE_FAILURE', + CHARGE_REQUEST = 'CHARGE_REQUEST', + CHARGE_SUCCESS = 'CHARGE_SUCCESS', + INFO = 'INFO', + REFUND_FAILURE = 'REFUND_FAILURE', + REFUND_REQUEST = 'REFUND_REQUEST', + REFUND_REVERSE = 'REFUND_REVERSE', + REFUND_SUCCESS = 'REFUND_SUCCESS' +} + +/** + * Determine the transaction flow strategy. + * + * AUTHORIZATION - the processed transaction should be only authorized + * CHARGE - the processed transaction should be charged. + * + */ +export enum TransactionFlowStrategyEnum { + AUTHORIZATION = 'AUTHORIZATION', + CHARGE = 'CHARGE' +} + +/** An enumeration. */ +export enum TransactionInitializeErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID = 'INVALID', + NOT_FOUND = 'NOT_FOUND' +} + /** An enumeration. */ export enum TransactionKind { - EXTERNAL = 'EXTERNAL', - AUTH = 'AUTH', - PENDING = 'PENDING', ACTION_TO_CONFIRM = 'ACTION_TO_CONFIRM', + AUTH = 'AUTH', + CANCEL = 'CANCEL', + CAPTURE = 'CAPTURE', + CONFIRM = 'CONFIRM', + EXTERNAL = 'EXTERNAL', + PENDING = 'PENDING', REFUND = 'REFUND', REFUND_ONGOING = 'REFUND_ONGOING', - CAPTURE = 'CAPTURE', - VOID = 'VOID', - CONFIRM = 'CONFIRM', - CANCEL = 'CANCEL' + VOID = 'VOID' +} + +/** An enumeration. */ +export enum TransactionProcessErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID = 'INVALID', + MISSING_PAYMENT_APP = 'MISSING_PAYMENT_APP', + MISSING_PAYMENT_APP_RELATION = 'MISSING_PAYMENT_APP_RELATION', + NOT_FOUND = 'NOT_FOUND', + TRANSACTION_ALREADY_PROCESSED = 'TRANSACTION_ALREADY_PROCESSED' } /** An enumeration. */ export enum TransactionRequestActionErrorCode { - INVALID = 'INVALID', GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK = 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK' + INVALID = 'INVALID', + MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK = 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK', + NOT_FOUND = 'NOT_FOUND' } -/** An enumeration. */ +/** + * Represents a status of payment transaction. + * + * The following statuses are possible: + * SUCCESS - Represents a sucess action. + * FAILURE - Represents a failure action. + * PENDING - Represents a pending action. + * + */ export enum TransactionStatus { + FAILURE = 'FAILURE', PENDING = 'PENDING', - SUCCESS = 'SUCCESS', - FAILURE = 'FAILURE' + SUCCESS = 'SUCCESS' } /** An enumeration. */ export enum TransactionUpdateErrorCode { - INVALID = 'INVALID', GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED' + INVALID = 'INVALID', + METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', + NOT_FOUND = 'NOT_FOUND', + UNIQUE = 'UNIQUE' } export type TransactionUpdateInput = { - /** Status of the transaction. */ - status?: InputMaybe; - /** Payment type used for this transaction. */ - type?: InputMaybe; - /** Reference of the transaction. */ - reference?: InputMaybe; - /** List of all possible actions for the transaction */ - availableActions?: InputMaybe>; /** Amount authorized by this transaction. */ amountAuthorized?: InputMaybe; + /** + * Amount canceled by this transaction. + * + * Added in Saleor 3.13. + */ + amountCanceled?: InputMaybe; /** Amount charged by this transaction. */ amountCharged?: InputMaybe; /** Amount refunded by this transaction. */ amountRefunded?: InputMaybe; - /** Amount voided by this transaction. */ + /** + * Amount voided by this transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead. + */ amountVoided?: InputMaybe; + /** List of all possible actions for the transaction */ + availableActions?: InputMaybe>; + /** + * The url that will allow to redirect user to payment provider page with transaction event details. + * + * Added in Saleor 3.13. + */ + externalUrl?: InputMaybe; + /** + * The message of the transaction. + * + * Added in Saleor 3.13. + */ + message?: InputMaybe; /** Payment public metadata. */ metadata?: InputMaybe>; + /** + * Payment name of the transaction. + * + * Added in Saleor 3.13. + */ + name?: InputMaybe; /** Payment private metadata. */ privateMetadata?: InputMaybe>; + /** + * PSP Reference of the transaction. + * + * Added in Saleor 3.13. + */ + pspReference?: InputMaybe; + /** + * Reference of the transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + */ + reference?: InputMaybe; + /** + * Status of the transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. + */ + status?: InputMaybe; + /** + * Payment type used for this transaction. + * + * DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead. + */ + type?: InputMaybe; }; export enum TranslatableKinds { @@ -5566,15 +5968,15 @@ export enum TranslationErrorCode { } export type TranslationInput = { - seoTitle?: InputMaybe; - seoDescription?: InputMaybe; - name?: InputMaybe; /** * Translated description. * * Rich text format. For reference see https://editorjs.io/ */ description?: InputMaybe; + name?: InputMaybe; + seoDescription?: InputMaybe; + seoTitle?: InputMaybe; }; export type UpdateInvoiceInput = { @@ -5590,51 +5992,51 @@ export enum UploadErrorCode { } export type UserCreateInput = { + /** Slug of a channel which will be used for notify user. Optional when only one channel exists. */ + channel?: InputMaybe; /** Billing address of the customer. */ defaultBillingAddress?: InputMaybe; /** Shipping address of the customer. */ defaultShippingAddress?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; /** The unique email address of the user. */ email?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** A note about the user. */ - note?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; /** * External ID of the customer. * * Added in Saleor 3.10. */ externalReference?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User account is active. */ + isActive?: InputMaybe; + /** User language code. */ + languageCode?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** A note about the user. */ + note?: InputMaybe; /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ redirectUrl?: InputMaybe; - /** Slug of a channel which will be used for notify user. Optional when only one channel exists. */ - channel?: InputMaybe; }; export enum UserSortField { - /** Sort users by first name. */ - FIRST_NAME = 'FIRST_NAME', - /** Sort users by last name. */ - LAST_NAME = 'LAST_NAME', - /** Sort users by email. */ - EMAIL = 'EMAIL', - /** Sort users by order count. */ - ORDER_COUNT = 'ORDER_COUNT', /** Sort users by created at. */ CREATED_AT = 'CREATED_AT', + /** Sort users by email. */ + EMAIL = 'EMAIL', + /** Sort users by first name. */ + FIRST_NAME = 'FIRST_NAME', /** Sort users by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', + /** Sort users by last name. */ + LAST_NAME = 'LAST_NAME', + /** Sort users by order count. */ + ORDER_COUNT = 'ORDER_COUNT' } export type UserSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort users. */ direction: OrderDirection; /** Sort users by the selected field. */ field: UserSortField; @@ -5642,25 +6044,25 @@ export type UserSortingInput = { export enum VariantAttributeScope { ALL = 'ALL', - VARIANT_SELECTION = 'VARIANT_SELECTION', - NOT_VARIANT_SELECTION = 'NOT_VARIANT_SELECTION' + NOT_VARIANT_SELECTION = 'NOT_VARIANT_SELECTION', + VARIANT_SELECTION = 'VARIANT_SELECTION' } /** An enumeration. */ export enum VolumeUnitsEnum { - CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', + ACRE_FT = 'ACRE_FT', + ACRE_IN = 'ACRE_IN', CUBIC_CENTIMETER = 'CUBIC_CENTIMETER', CUBIC_DECIMETER = 'CUBIC_DECIMETER', - CUBIC_METER = 'CUBIC_METER', - LITER = 'LITER', CUBIC_FOOT = 'CUBIC_FOOT', CUBIC_INCH = 'CUBIC_INCH', + CUBIC_METER = 'CUBIC_METER', + CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', CUBIC_YARD = 'CUBIC_YARD', - QT = 'QT', - PINT = 'PINT', FL_OZ = 'FL_OZ', - ACRE_IN = 'ACRE_IN', - ACRE_FT = 'ACRE_FT' + LITER = 'LITER', + PINT = 'PINT', + QT = 'QT' } export type VoucherChannelListingAddInput = { @@ -5686,108 +6088,108 @@ export enum VoucherDiscountType { } export type VoucherFilterInput = { + discountType?: InputMaybe>; + ids?: InputMaybe>; + metadata?: InputMaybe>; + search?: InputMaybe; + started?: InputMaybe; status?: InputMaybe>; timesUsed?: InputMaybe; - discountType?: InputMaybe>; - started?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - ids?: InputMaybe>; }; export type VoucherInput = { - /** Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. */ - type?: InputMaybe; - /** Voucher name. */ - name?: InputMaybe; + /** Voucher should be applied once per customer. */ + applyOncePerCustomer?: InputMaybe; + /** Voucher should be applied to the cheapest item or entire order. */ + applyOncePerOrder?: InputMaybe; + /** Categories discounted by the voucher. */ + categories?: InputMaybe>; /** Code to use the voucher. */ code?: InputMaybe; - /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; - /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; + /** Collections discounted by the voucher. */ + collections?: InputMaybe>; + /** Country codes that can be used with the shipping voucher. */ + countries?: InputMaybe>; /** Choices: fixed or percentage. */ discountValueType?: InputMaybe; + /** End date of the voucher in ISO 8601 format. */ + endDate?: InputMaybe; + /** Minimal quantity of checkout items required to apply the voucher. */ + minCheckoutItemsQuantity?: InputMaybe; + /** Voucher name. */ + name?: InputMaybe; + /** Voucher can be used only by staff user. */ + onlyForStaff?: InputMaybe; /** Products discounted by the voucher. */ products?: InputMaybe>; + /** Start date of the voucher in ISO 8601 format. */ + startDate?: InputMaybe; + /** Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. */ + type?: InputMaybe; + /** Limit number of times this voucher can be used in total. */ + usageLimit?: InputMaybe; /** * Variants discounted by the voucher. * * Added in Saleor 3.1. */ variants?: InputMaybe>; - /** Collections discounted by the voucher. */ - collections?: InputMaybe>; - /** Categories discounted by the voucher. */ - categories?: InputMaybe>; - /** Minimal quantity of checkout items required to apply the voucher. */ - minCheckoutItemsQuantity?: InputMaybe; - /** Country codes that can be used with the shipping voucher. */ - countries?: InputMaybe>; - /** Voucher should be applied to the cheapest item or entire order. */ - applyOncePerOrder?: InputMaybe; - /** Voucher should be applied once per customer. */ - applyOncePerCustomer?: InputMaybe; - /** Voucher can be used only by staff user. */ - onlyForStaff?: InputMaybe; - /** Limit number of times this voucher can be used in total. */ - usageLimit?: InputMaybe; }; export enum VoucherSortField { /** Sort vouchers by code. */ CODE = 'CODE', - /** Sort vouchers by start date. */ - START_DATE = 'START_DATE', /** Sort vouchers by end date. */ END_DATE = 'END_DATE', - /** - * Sort vouchers by value. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - VALUE = 'VALUE', - /** Sort vouchers by type. */ - TYPE = 'TYPE', - /** Sort vouchers by usage limit. */ - USAGE_LIMIT = 'USAGE_LIMIT', /** * Sort vouchers by minimum spent amount. * * This option requires a channel filter to work as the values can vary between channels. */ - MINIMUM_SPENT_AMOUNT = 'MINIMUM_SPENT_AMOUNT' + MINIMUM_SPENT_AMOUNT = 'MINIMUM_SPENT_AMOUNT', + /** Sort vouchers by start date. */ + START_DATE = 'START_DATE', + /** Sort vouchers by type. */ + TYPE = 'TYPE', + /** Sort vouchers by usage limit. */ + USAGE_LIMIT = 'USAGE_LIMIT', + /** + * Sort vouchers by value. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + VALUE = 'VALUE' } export type VoucherSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; /** * Specifies the channel in which to sort the data. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ channel?: InputMaybe; + /** Specifies the direction in which to sort vouchers. */ + direction: OrderDirection; /** Sort vouchers by the selected field. */ field: VoucherSortField; }; export enum VoucherTypeEnum { - SHIPPING = 'SHIPPING', ENTIRE_ORDER = 'ENTIRE_ORDER', + SHIPPING = 'SHIPPING', SPECIFIC_PRODUCT = 'SPECIFIC_PRODUCT' } /** An enumeration. */ export enum WarehouseClickAndCollectOptionEnum { + ALL = 'ALL', DISABLED = 'DISABLED', - LOCAL = 'LOCAL', - ALL = 'ALL' + LOCAL = 'LOCAL' } export type WarehouseCreateInput = { - /** Warehouse slug. */ - slug?: InputMaybe; + /** Address of the warehouse. */ + address: AddressInput; /** The email address of the warehouse. */ email?: InputMaybe; /** @@ -5798,14 +6200,14 @@ export type WarehouseCreateInput = { externalReference?: InputMaybe; /** Warehouse name. */ name: Scalars['String']; - /** Address of the warehouse. */ - address: AddressInput; /** * Shipping zones supported by the warehouse. * * DEPRECATED: this field will be removed in Saleor 4.0. Providing the zone ids will raise a ValidationError. */ shippingZones?: InputMaybe>; + /** Warehouse slug. */ + slug?: InputMaybe; }; /** An enumeration. */ @@ -5819,11 +6221,11 @@ export enum WarehouseErrorCode { } export type WarehouseFilterInput = { + channels?: InputMaybe>; clickAndCollectOption?: InputMaybe; - search?: InputMaybe; ids?: InputMaybe>; isPrivate?: InputMaybe; - channels?: InputMaybe>; + search?: InputMaybe; slugs?: InputMaybe>; }; @@ -5833,15 +6235,21 @@ export enum WarehouseSortField { } export type WarehouseSortingInput = { - /** Specifies the direction in which to sort products. */ + /** Specifies the direction in which to sort warehouses. */ direction: OrderDirection; /** Sort warehouses by the selected field. */ field: WarehouseSortField; }; export type WarehouseUpdateInput = { - /** Warehouse slug. */ - slug?: InputMaybe; + /** Address of the warehouse. */ + address?: InputMaybe; + /** + * Click and collect options: local, all or disabled. + * + * Added in Saleor 3.1. + */ + clickAndCollectOption?: InputMaybe; /** The email address of the warehouse. */ email?: InputMaybe; /** @@ -5850,243 +6258,268 @@ export type WarehouseUpdateInput = { * Added in Saleor 3.10. */ externalReference?: InputMaybe; - /** Warehouse name. */ - name?: InputMaybe; - /** Address of the warehouse. */ - address?: InputMaybe; - /** - * Click and collect options: local, all or disabled. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - clickAndCollectOption?: InputMaybe; /** * Visibility of warehouse stocks. * * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ isPrivate?: InputMaybe; + /** Warehouse name. */ + name?: InputMaybe; + /** Warehouse slug. */ + slug?: InputMaybe; }; export type WebhookCreateInput = { - /** The name of the webhook. */ - name?: InputMaybe; - /** The url to receive the payload. */ - targetUrl?: InputMaybe; + /** ID of the app to which webhook belongs. */ + app?: InputMaybe; + /** The asynchronous events that webhook wants to subscribe. */ + asyncEvents?: InputMaybe>; + /** + * Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only "X-*" and "Authorization*" keys are allowed. + * + * Added in Saleor 3.12. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + customHeaders?: InputMaybe; /** * The events that webhook wants to subscribe. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. */ events?: InputMaybe>; - /** The asynchronous events that webhook wants to subscribe. */ - asyncEvents?: InputMaybe>; - /** The synchronous events that webhook wants to subscribe. */ - syncEvents?: InputMaybe>; - /** ID of the app to which webhook belongs. */ - app?: InputMaybe; /** Determine if webhook will be set active or not. */ isActive?: InputMaybe; + /** The name of the webhook. */ + name?: InputMaybe; + /** + * Subscription query used to define a webhook payload. + * + * Added in Saleor 3.2. + */ + query?: InputMaybe; /** * The secret key used to create a hash signature with each payload. * * DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. */ secretKey?: InputMaybe; - /** - * Subscription query used to define a webhook payload. - * - * Added in Saleor 3.2. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - query?: InputMaybe; - /** - * Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only "X-*" and "Authorization*" keys are allowed. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - customHeaders?: InputMaybe; + /** The synchronous events that webhook wants to subscribe. */ + syncEvents?: InputMaybe>; + /** The url to receive the payload. */ + targetUrl?: InputMaybe; }; /** An enumeration. */ export enum WebhookDryRunErrorCode { GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', INVALID_ID = 'INVALID_ID', + MISSING_EVENT = 'MISSING_EVENT', MISSING_PERMISSION = 'MISSING_PERMISSION', - TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', - SYNTAX = 'SYNTAX', MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE', - MISSING_EVENT = 'MISSING_EVENT' + NOT_FOUND = 'NOT_FOUND', + SYNTAX = 'SYNTAX', + TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', + UNABLE_TO_PARSE = 'UNABLE_TO_PARSE' } /** An enumeration. */ export enum WebhookErrorCode { + DELETE_FAILED = 'DELETE_FAILED', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', + INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS', + MISSING_EVENT = 'MISSING_EVENT', + MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', NOT_FOUND = 'NOT_FOUND', REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - DELETE_FAILED = 'DELETE_FAILED', SYNTAX = 'SYNTAX', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', UNABLE_TO_PARSE = 'UNABLE_TO_PARSE', - MISSING_EVENT = 'MISSING_EVENT', - INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS' + UNIQUE = 'UNIQUE' } /** Enum determining type of webhook. */ export enum WebhookEventTypeAsyncEnum { - /** All the events. */ - ANY_EVENTS = 'ANY_EVENTS', /** A new address created. */ ADDRESS_CREATED = 'ADDRESS_CREATED', - /** An address updated. */ - ADDRESS_UPDATED = 'ADDRESS_UPDATED', /** An address deleted. */ ADDRESS_DELETED = 'ADDRESS_DELETED', - /** A new app installed. */ - APP_INSTALLED = 'APP_INSTALLED', - /** An app updated. */ - APP_UPDATED = 'APP_UPDATED', + /** An address updated. */ + ADDRESS_UPDATED = 'ADDRESS_UPDATED', + /** All the events. */ + ANY_EVENTS = 'ANY_EVENTS', /** An app deleted. */ APP_DELETED = 'APP_DELETED', + /** A new app installed. */ + APP_INSTALLED = 'APP_INSTALLED', /** An app status is changed. */ APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', + /** An app updated. */ + APP_UPDATED = 'APP_UPDATED', /** A new attribute is created. */ ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - /** An attribute is updated. */ - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', /** An attribute is deleted. */ ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', + /** An attribute is updated. */ + ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', /** A new attribute value is created. */ ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - /** An attribute value is updated. */ - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', /** An attribute value is deleted. */ ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', + /** An attribute value is updated. */ + ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', /** A new category created. */ CATEGORY_CREATED = 'CATEGORY_CREATED', - /** A category is updated. */ - CATEGORY_UPDATED = 'CATEGORY_UPDATED', /** A category is deleted. */ CATEGORY_DELETED = 'CATEGORY_DELETED', + /** A category is updated. */ + CATEGORY_UPDATED = 'CATEGORY_UPDATED', /** A new channel created. */ CHANNEL_CREATED = 'CHANNEL_CREATED', - /** A channel is updated. */ - CHANNEL_UPDATED = 'CHANNEL_UPDATED', /** A channel is deleted. */ CHANNEL_DELETED = 'CHANNEL_DELETED', /** A channel status is changed. */ CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - /** A new gift card created. */ - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - /** A gift card is updated. */ - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - /** A gift card is deleted. */ - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - /** A gift card status is changed. */ - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', + /** A channel is updated. */ + CHANNEL_UPDATED = 'CHANNEL_UPDATED', + /** A new checkout is created. */ + CHECKOUT_CREATED = 'CHECKOUT_CREATED', + CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', /** - * A gift card metadata is updated. + * A checkout metadata is updated. * * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - /** A new menu created. */ - MENU_CREATED = 'MENU_CREATED', - /** A menu is updated. */ - MENU_UPDATED = 'MENU_UPDATED', - /** A menu is deleted. */ - MENU_DELETED = 'MENU_DELETED', - /** A new menu item created. */ - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - /** A menu item is updated. */ - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - /** A menu item is deleted. */ - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - /** A new order is placed. */ - ORDER_CREATED = 'ORDER_CREATED', - /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - /** Payment is made and an order is fully paid. */ - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - ORDER_UPDATED = 'ORDER_UPDATED', - /** An order is cancelled. */ - ORDER_CANCELLED = 'ORDER_CANCELLED', - /** An order is fulfilled. */ - ORDER_FULFILLED = 'ORDER_FULFILLED', - /** - * An order metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - /** A draft order is created. */ - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - /** A draft order is updated. */ - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - /** A draft order is deleted. */ - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - /** A sale is created. */ - SALE_CREATED = 'SALE_CREATED', - /** A sale is updated. */ - SALE_UPDATED = 'SALE_UPDATED', - /** A sale is deleted. */ - SALE_DELETED = 'SALE_DELETED', - /** A sale is activated or deactivated. */ - SALE_TOGGLE = 'SALE_TOGGLE', - /** An invoice for order requested. */ - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - /** An invoice is deleted. */ - INVOICE_DELETED = 'INVOICE_DELETED', - /** Invoice has been sent. */ - INVOICE_SENT = 'INVOICE_SENT', - /** A new customer account is created. */ - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - /** A customer account is updated. */ - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - /** A customer account is deleted. */ - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - /** - * A customer account metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', + CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', + /** A checkout is updated. It also triggers all updates related to the checkout. */ + CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', /** A new collection is created. */ COLLECTION_CREATED = 'COLLECTION_CREATED', - /** A collection is updated. */ - COLLECTION_UPDATED = 'COLLECTION_UPDATED', /** A collection is deleted. */ COLLECTION_DELETED = 'COLLECTION_DELETED', /** * A collection metadata is updated. * * Added in Saleor 3.8. + */ + COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', + /** A collection is updated. */ + COLLECTION_UPDATED = 'COLLECTION_UPDATED', + /** A new customer account is created. */ + CUSTOMER_CREATED = 'CUSTOMER_CREATED', + /** A customer account is deleted. */ + CUSTOMER_DELETED = 'CUSTOMER_DELETED', + /** + * A customer account metadata is updated. + * + * Added in Saleor 3.8. + */ + CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', + /** A customer account is updated. */ + CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', + /** A draft order is created. */ + DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', + /** A draft order is deleted. */ + DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', + /** A draft order is updated. */ + DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', + /** A fulfillment is approved. */ + FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', + /** A fulfillment is cancelled. */ + FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', + /** A new fulfillment is created. */ + FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', + /** + * A fulfillment metadata is updated. + * + * Added in Saleor 3.8. + */ + FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', + /** A new gift card created. */ + GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', + /** A gift card is deleted. */ + GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', + /** + * A gift card metadata is updated. + * + * Added in Saleor 3.8. + */ + GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', + /** + * A gift card has been sent. + * + * Added in Saleor 3.13. * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', + GIFT_CARD_SENT = 'GIFT_CARD_SENT', + /** A gift card status is changed. */ + GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', + /** A gift card is updated. */ + GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', + /** An invoice is deleted. */ + INVOICE_DELETED = 'INVOICE_DELETED', + /** An invoice for order requested. */ + INVOICE_REQUESTED = 'INVOICE_REQUESTED', + /** Invoice has been sent. */ + INVOICE_SENT = 'INVOICE_SENT', + /** A new menu created. */ + MENU_CREATED = 'MENU_CREATED', + /** A menu is deleted. */ + MENU_DELETED = 'MENU_DELETED', + /** A new menu item created. */ + MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', + /** A menu item is deleted. */ + MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', + /** A menu item is updated. */ + MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', + /** A menu is updated. */ + MENU_UPDATED = 'MENU_UPDATED', + /** User notification triggered. */ + NOTIFY_USER = 'NOTIFY_USER', + /** An observability event is created. */ + OBSERVABILITY = 'OBSERVABILITY', + /** An order is cancelled. */ + ORDER_CANCELLED = 'ORDER_CANCELLED', + /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ + ORDER_CONFIRMED = 'ORDER_CONFIRMED', + /** A new order is placed. */ + ORDER_CREATED = 'ORDER_CREATED', + /** An order is expired. */ + ORDER_EXPIRED = 'ORDER_EXPIRED', + /** An order is fulfilled. */ + ORDER_FULFILLED = 'ORDER_FULFILLED', + /** Payment is made and an order is fully paid. */ + ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', + /** + * An order metadata is updated. + * + * Added in Saleor 3.8. + */ + ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', + /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ + ORDER_UPDATED = 'ORDER_UPDATED', + /** A new page is created. */ + PAGE_CREATED = 'PAGE_CREATED', + /** A page is deleted. */ + PAGE_DELETED = 'PAGE_DELETED', + /** A new page type is created. */ + PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', + /** A page type is deleted. */ + PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', + /** A page type is updated. */ + PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', + /** A page is updated. */ + PAGE_UPDATED = 'PAGE_UPDATED', + /** A new permission group is created. */ + PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', + /** A permission group is deleted. */ + PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', + /** A permission group is updated. */ + PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', /** A new product is created. */ PRODUCT_CREATED = 'PRODUCT_CREATED', - /** A product is updated. */ - PRODUCT_UPDATED = 'PRODUCT_UPDATED', /** A product is deleted. */ PRODUCT_DELETED = 'PRODUCT_DELETED', /** @@ -6095,490 +6528,320 @@ export enum WebhookEventTypeAsyncEnum { * Added in Saleor 3.12. */ PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - /** - * A product media is updated. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', /** * A product media is deleted. * * Added in Saleor 3.12. */ PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', + /** + * A product media is updated. + * + * Added in Saleor 3.12. + */ + PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', /** * A product metadata is updated. * * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - /** A new product variant is created. */ - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - /** A product variant is updated. */ - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - /** A product variant is deleted. */ - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - /** A product variant is out of stock. */ - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', + /** A product is updated. */ + PRODUCT_UPDATED = 'PRODUCT_UPDATED', /** A product variant is back in stock. */ PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - /** A product variant stock is updated */ - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', + /** A new product variant is created. */ + PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', + /** A product variant is deleted. */ + PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', /** * A product variant metadata is updated. * * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - /** A new checkout is created. */ - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - /** A checkout is updated. It also triggers all updates related to the checkout. */ - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - /** - * A checkout metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - /** A new fulfillment is created. */ - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - /** A fulfillment is cancelled. */ - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - /** A fulfillment is approved. */ - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - /** - * A fulfillment metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - /** User notification triggered. */ - NOTIFY_USER = 'NOTIFY_USER', - /** A new page is created. */ - PAGE_CREATED = 'PAGE_CREATED', - /** A page is updated. */ - PAGE_UPDATED = 'PAGE_UPDATED', - /** A page is deleted. */ - PAGE_DELETED = 'PAGE_DELETED', - /** A new page type is created. */ - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - /** A page type is updated. */ - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - /** A page type is deleted. */ - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - /** A new permission group is created. */ - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - /** A permission group is updated. */ - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - /** A permission group is deleted. */ - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - /** A new shipping price is created. */ - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - /** A shipping price is updated. */ - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - /** A shipping price is deleted. */ - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - /** A new shipping zone is created. */ - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - /** A shipping zone is updated. */ - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - /** A shipping zone is deleted. */ - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - /** - * A shipping zone metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - /** A new staff user is created. */ - STAFF_CREATED = 'STAFF_CREATED', - /** A staff user is updated. */ - STAFF_UPDATED = 'STAFF_UPDATED', - /** A staff user is deleted. */ - STAFF_DELETED = 'STAFF_DELETED', - /** An action requested for transaction. */ - TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', - /** - * Transaction item metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - /** A new translation is created. */ - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - /** A translation is updated. */ - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - /** A new warehouse created. */ - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - /** A warehouse is updated. */ - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED', - /** A warehouse is deleted. */ - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - /** - * A warehouse metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - /** A new voucher created. */ - VOUCHER_CREATED = 'VOUCHER_CREATED', - /** A voucher is updated. */ - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - /** A voucher is deleted. */ - VOUCHER_DELETED = 'VOUCHER_DELETED', - /** - * A voucher metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - /** An observability event is created. */ - OBSERVABILITY = 'OBSERVABILITY', - /** - * A thumbnail is created. - * - * Added in Saleor 3.12. - */ - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeEnum { - /** All the events. */ - ANY_EVENTS = 'ANY_EVENTS', - /** A new address created. */ - ADDRESS_CREATED = 'ADDRESS_CREATED', - /** An address updated. */ - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - /** An address deleted. */ - ADDRESS_DELETED = 'ADDRESS_DELETED', - /** A new app installed. */ - APP_INSTALLED = 'APP_INSTALLED', - /** An app updated. */ - APP_UPDATED = 'APP_UPDATED', - /** An app deleted. */ - APP_DELETED = 'APP_DELETED', - /** An app status is changed. */ - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - /** A new attribute is created. */ - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - /** An attribute is updated. */ - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - /** An attribute is deleted. */ - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - /** A new attribute value is created. */ - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - /** An attribute value is updated. */ - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - /** An attribute value is deleted. */ - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - /** A new category created. */ - CATEGORY_CREATED = 'CATEGORY_CREATED', - /** A category is updated. */ - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - /** A category is deleted. */ - CATEGORY_DELETED = 'CATEGORY_DELETED', - /** A new channel created. */ - CHANNEL_CREATED = 'CHANNEL_CREATED', - /** A channel is updated. */ - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - /** A channel is deleted. */ - CHANNEL_DELETED = 'CHANNEL_DELETED', - /** A channel status is changed. */ - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - /** A new gift card created. */ - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - /** A gift card is updated. */ - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - /** A gift card is deleted. */ - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - /** A gift card status is changed. */ - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - /** - * A gift card metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - /** A new menu created. */ - MENU_CREATED = 'MENU_CREATED', - /** A menu is updated. */ - MENU_UPDATED = 'MENU_UPDATED', - /** A menu is deleted. */ - MENU_DELETED = 'MENU_DELETED', - /** A new menu item created. */ - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - /** A menu item is updated. */ - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - /** A menu item is deleted. */ - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - /** A new order is placed. */ - ORDER_CREATED = 'ORDER_CREATED', - /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - /** Payment is made and an order is fully paid. */ - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - ORDER_UPDATED = 'ORDER_UPDATED', - /** An order is cancelled. */ - ORDER_CANCELLED = 'ORDER_CANCELLED', - /** An order is fulfilled. */ - ORDER_FULFILLED = 'ORDER_FULFILLED', - /** - * An order metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - /** A draft order is created. */ - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - /** A draft order is updated. */ - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - /** A draft order is deleted. */ - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', + /** A product variant is out of stock. */ + PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', + /** A product variant stock is updated */ + PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', + /** A product variant is updated. */ + PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', /** A sale is created. */ SALE_CREATED = 'SALE_CREATED', - /** A sale is updated. */ - SALE_UPDATED = 'SALE_UPDATED', /** A sale is deleted. */ SALE_DELETED = 'SALE_DELETED', /** A sale is activated or deactivated. */ SALE_TOGGLE = 'SALE_TOGGLE', - /** An invoice for order requested. */ - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - /** An invoice is deleted. */ - INVOICE_DELETED = 'INVOICE_DELETED', - /** Invoice has been sent. */ - INVOICE_SENT = 'INVOICE_SENT', - /** A new customer account is created. */ - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - /** A customer account is updated. */ - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - /** A customer account is deleted. */ - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - /** - * A customer account metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - /** A new collection is created. */ - COLLECTION_CREATED = 'COLLECTION_CREATED', - /** A collection is updated. */ - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - /** A collection is deleted. */ - COLLECTION_DELETED = 'COLLECTION_DELETED', - /** - * A collection metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - /** A new product is created. */ - PRODUCT_CREATED = 'PRODUCT_CREATED', - /** A product is updated. */ - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - /** A product is deleted. */ - PRODUCT_DELETED = 'PRODUCT_DELETED', - /** - * A new product media is created. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - /** - * A product media is updated. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - /** - * A product media is deleted. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - /** - * A product metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - /** A new product variant is created. */ - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - /** A product variant is updated. */ - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - /** A product variant is deleted. */ - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - /** A product variant is out of stock. */ - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - /** A product variant is back in stock. */ - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - /** A product variant stock is updated */ - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - /** - * A product variant metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - /** A new checkout is created. */ - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - /** A checkout is updated. It also triggers all updates related to the checkout. */ - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - /** - * A checkout metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - /** A new fulfillment is created. */ - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - /** A fulfillment is cancelled. */ - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - /** A fulfillment is approved. */ - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - /** - * A fulfillment metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - /** User notification triggered. */ - NOTIFY_USER = 'NOTIFY_USER', - /** A new page is created. */ - PAGE_CREATED = 'PAGE_CREATED', - /** A page is updated. */ - PAGE_UPDATED = 'PAGE_UPDATED', - /** A page is deleted. */ - PAGE_DELETED = 'PAGE_DELETED', - /** A new page type is created. */ - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - /** A page type is updated. */ - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - /** A page type is deleted. */ - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - /** A new permission group is created. */ - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - /** A permission group is updated. */ - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - /** A permission group is deleted. */ - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', + /** A sale is updated. */ + SALE_UPDATED = 'SALE_UPDATED', /** A new shipping price is created. */ SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - /** A shipping price is updated. */ - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', /** A shipping price is deleted. */ SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', + /** A shipping price is updated. */ + SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', /** A new shipping zone is created. */ SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - /** A shipping zone is updated. */ - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', /** A shipping zone is deleted. */ SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', /** * A shipping zone metadata is updated. * * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', + /** A shipping zone is updated. */ + SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', /** A new staff user is created. */ STAFF_CREATED = 'STAFF_CREATED', - /** A staff user is updated. */ - STAFF_UPDATED = 'STAFF_UPDATED', /** A staff user is deleted. */ STAFF_DELETED = 'STAFF_DELETED', - /** An action requested for transaction. */ - TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', - /** - * Transaction item metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - /** A new translation is created. */ - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - /** A translation is updated. */ - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - /** A new warehouse created. */ - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - /** A warehouse is updated. */ - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED', - /** A warehouse is deleted. */ - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - /** - * A warehouse metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - /** A new voucher created. */ - VOUCHER_CREATED = 'VOUCHER_CREATED', - /** A voucher is updated. */ - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - /** A voucher is deleted. */ - VOUCHER_DELETED = 'VOUCHER_DELETED', - /** - * A voucher metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - /** An observability event is created. */ - OBSERVABILITY = 'OBSERVABILITY', + /** A staff user is updated. */ + STAFF_UPDATED = 'STAFF_UPDATED', /** * A thumbnail is created. * * Added in Saleor 3.12. */ THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', + /** + * An action requested for transaction. + * + * DEPRECATED: this subscription will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead. + */ + TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', + /** + * Transaction item metadata is updated. + * + * Added in Saleor 3.8. + */ + TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', + /** A new translation is created. */ + TRANSLATION_CREATED = 'TRANSLATION_CREATED', + /** A translation is updated. */ + TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', + /** A new voucher created. */ + VOUCHER_CREATED = 'VOUCHER_CREATED', + /** A voucher is deleted. */ + VOUCHER_DELETED = 'VOUCHER_DELETED', + /** + * A voucher metadata is updated. + * + * Added in Saleor 3.8. + */ + VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', + /** A voucher is updated. */ + VOUCHER_UPDATED = 'VOUCHER_UPDATED', + /** A new warehouse created. */ + WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', + /** A warehouse is deleted. */ + WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', + /** + * A warehouse metadata is updated. + * + * Added in Saleor 3.8. + */ + WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', + /** A warehouse is updated. */ + WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' +} + +/** Enum determining type of webhook. */ +export enum WebhookEventTypeEnum { + /** A new address created. */ + ADDRESS_CREATED = 'ADDRESS_CREATED', + /** An address deleted. */ + ADDRESS_DELETED = 'ADDRESS_DELETED', + /** An address updated. */ + ADDRESS_UPDATED = 'ADDRESS_UPDATED', + /** All the events. */ + ANY_EVENTS = 'ANY_EVENTS', + /** An app deleted. */ + APP_DELETED = 'APP_DELETED', + /** A new app installed. */ + APP_INSTALLED = 'APP_INSTALLED', + /** An app status is changed. */ + APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', + /** An app updated. */ + APP_UPDATED = 'APP_UPDATED', + /** A new attribute is created. */ + ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', + /** An attribute is deleted. */ + ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', + /** An attribute is updated. */ + ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', + /** A new attribute value is created. */ + ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', + /** An attribute value is deleted. */ + ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', + /** An attribute value is updated. */ + ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', + /** A new category created. */ + CATEGORY_CREATED = 'CATEGORY_CREATED', + /** A category is deleted. */ + CATEGORY_DELETED = 'CATEGORY_DELETED', + /** A category is updated. */ + CATEGORY_UPDATED = 'CATEGORY_UPDATED', + /** A new channel created. */ + CHANNEL_CREATED = 'CHANNEL_CREATED', + /** A channel is deleted. */ + CHANNEL_DELETED = 'CHANNEL_DELETED', + /** A channel status is changed. */ + CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', + /** A channel is updated. */ + CHANNEL_UPDATED = 'CHANNEL_UPDATED', + /** + * Event called for checkout tax calculation. + * + * Added in Saleor 3.6. + */ + CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', + /** A new checkout is created. */ + CHECKOUT_CREATED = 'CHECKOUT_CREATED', + /** Filter shipping methods for checkout. */ + CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS', + CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', + /** + * A checkout metadata is updated. + * + * Added in Saleor 3.8. + */ + CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', + /** A checkout is updated. It also triggers all updates related to the checkout. */ + CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', + /** A new collection is created. */ + COLLECTION_CREATED = 'COLLECTION_CREATED', + /** A collection is deleted. */ + COLLECTION_DELETED = 'COLLECTION_DELETED', + /** + * A collection metadata is updated. + * + * Added in Saleor 3.8. + */ + COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', + /** A collection is updated. */ + COLLECTION_UPDATED = 'COLLECTION_UPDATED', + /** A new customer account is created. */ + CUSTOMER_CREATED = 'CUSTOMER_CREATED', + /** A customer account is deleted. */ + CUSTOMER_DELETED = 'CUSTOMER_DELETED', + /** + * A customer account metadata is updated. + * + * Added in Saleor 3.8. + */ + CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', + /** A customer account is updated. */ + CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', + /** A draft order is created. */ + DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', + /** A draft order is deleted. */ + DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', + /** A draft order is updated. */ + DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', + /** A fulfillment is approved. */ + FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', + /** A fulfillment is cancelled. */ + FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', + /** A new fulfillment is created. */ + FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', + /** + * A fulfillment metadata is updated. + * + * Added in Saleor 3.8. + */ + FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', + /** A new gift card created. */ + GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', + /** A gift card is deleted. */ + GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', + /** + * A gift card metadata is updated. + * + * Added in Saleor 3.8. + */ + GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', + /** + * A gift card has been sent. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + GIFT_CARD_SENT = 'GIFT_CARD_SENT', + /** A gift card status is changed. */ + GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', + /** A gift card is updated. */ + GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', + /** An invoice is deleted. */ + INVOICE_DELETED = 'INVOICE_DELETED', + /** An invoice for order requested. */ + INVOICE_REQUESTED = 'INVOICE_REQUESTED', + /** Invoice has been sent. */ + INVOICE_SENT = 'INVOICE_SENT', + /** A new menu created. */ + MENU_CREATED = 'MENU_CREATED', + /** A menu is deleted. */ + MENU_DELETED = 'MENU_DELETED', + /** A new menu item created. */ + MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', + /** A menu item is deleted. */ + MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', + /** A menu item is updated. */ + MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', + /** A menu is updated. */ + MENU_UPDATED = 'MENU_UPDATED', + /** User notification triggered. */ + NOTIFY_USER = 'NOTIFY_USER', + /** An observability event is created. */ + OBSERVABILITY = 'OBSERVABILITY', + /** + * Event called for order tax calculation. + * + * Added in Saleor 3.6. + */ + ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', + /** An order is cancelled. */ + ORDER_CANCELLED = 'ORDER_CANCELLED', + /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ + ORDER_CONFIRMED = 'ORDER_CONFIRMED', + /** A new order is placed. */ + ORDER_CREATED = 'ORDER_CREATED', + /** An order is expired. */ + ORDER_EXPIRED = 'ORDER_EXPIRED', + /** Filter shipping methods for order. */ + ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', + /** An order is fulfilled. */ + ORDER_FULFILLED = 'ORDER_FULFILLED', + /** Payment is made and an order is fully paid. */ + ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', + /** + * An order metadata is updated. + * + * Added in Saleor 3.8. + */ + ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', + /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ + ORDER_UPDATED = 'ORDER_UPDATED', + /** A new page is created. */ + PAGE_CREATED = 'PAGE_CREATED', + /** A page is deleted. */ + PAGE_DELETED = 'PAGE_DELETED', + /** A new page type is created. */ + PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', + /** A page type is deleted. */ + PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', + /** A page type is updated. */ + PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', + /** A page is updated. */ + PAGE_UPDATED = 'PAGE_UPDATED', /** Authorize payment. */ PAYMENT_AUTHORIZE = 'PAYMENT_AUTHORIZE', /** Capture payment. */ PAYMENT_CAPTURE = 'PAYMENT_CAPTURE', /** Confirm payment. */ PAYMENT_CONFIRM = 'PAYMENT_CONFIRM', + PAYMENT_GATEWAY_INITIALIZE_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_SESSION', /** Listing available payment gateways. */ PAYMENT_LIST_GATEWAYS = 'PAYMENT_LIST_GATEWAYS', /** Process payment. */ @@ -6587,38 +6850,193 @@ export enum WebhookEventTypeEnum { PAYMENT_REFUND = 'PAYMENT_REFUND', /** Void payment. */ PAYMENT_VOID = 'PAYMENT_VOID', + /** A new permission group is created. */ + PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', + /** A permission group is deleted. */ + PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', + /** A permission group is updated. */ + PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', + /** A new product is created. */ + PRODUCT_CREATED = 'PRODUCT_CREATED', + /** A product is deleted. */ + PRODUCT_DELETED = 'PRODUCT_DELETED', /** - * Event called for checkout tax calculation. + * A new product media is created. * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * Added in Saleor 3.12. */ - CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', + PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', /** - * Event called for order tax calculation. + * A product media is deleted. * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * Added in Saleor 3.12. */ - ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', + PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', + /** + * A product media is updated. + * + * Added in Saleor 3.12. + */ + PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', + /** + * A product metadata is updated. + * + * Added in Saleor 3.8. + */ + PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', + /** A product is updated. */ + PRODUCT_UPDATED = 'PRODUCT_UPDATED', + /** A product variant is back in stock. */ + PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', + /** A new product variant is created. */ + PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', + /** A product variant is deleted. */ + PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', + /** + * A product variant metadata is updated. + * + * Added in Saleor 3.8. + */ + PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', + /** A product variant is out of stock. */ + PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', + /** A product variant stock is updated */ + PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', + /** A product variant is updated. */ + PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', + /** A sale is created. */ + SALE_CREATED = 'SALE_CREATED', + /** A sale is deleted. */ + SALE_DELETED = 'SALE_DELETED', + /** A sale is activated or deactivated. */ + SALE_TOGGLE = 'SALE_TOGGLE', + /** A sale is updated. */ + SALE_UPDATED = 'SALE_UPDATED', /** Fetch external shipping methods for checkout. */ SHIPPING_LIST_METHODS_FOR_CHECKOUT = 'SHIPPING_LIST_METHODS_FOR_CHECKOUT', - /** Filter shipping methods for order. */ - ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', - /** Filter shipping methods for checkout. */ - CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS' + /** A new shipping price is created. */ + SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', + /** A shipping price is deleted. */ + SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', + /** A shipping price is updated. */ + SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', + /** A new shipping zone is created. */ + SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', + /** A shipping zone is deleted. */ + SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', + /** + * A shipping zone metadata is updated. + * + * Added in Saleor 3.8. + */ + SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', + /** A shipping zone is updated. */ + SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', + /** A new staff user is created. */ + STAFF_CREATED = 'STAFF_CREATED', + /** A staff user is deleted. */ + STAFF_DELETED = 'STAFF_DELETED', + /** A staff user is updated. */ + STAFF_UPDATED = 'STAFF_UPDATED', + /** + * A thumbnail is created. + * + * Added in Saleor 3.12. + */ + THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', + /** + * An action requested for transaction. + * + * DEPRECATED: this subscription will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead. + */ + TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', + /** + * Event called when cancel has been requested for transaction. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + TRANSACTION_CANCELATION_REQUESTED = 'TRANSACTION_CANCELATION_REQUESTED', + /** + * Event called when charge has been requested for transaction. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', + TRANSACTION_INITIALIZE_SESSION = 'TRANSACTION_INITIALIZE_SESSION', + /** + * Transaction item metadata is updated. + * + * Added in Saleor 3.8. + */ + TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', + TRANSACTION_PROCESS_SESSION = 'TRANSACTION_PROCESS_SESSION', + /** + * Event called when refund has been requested for transaction. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', + /** A new translation is created. */ + TRANSLATION_CREATED = 'TRANSLATION_CREATED', + /** A translation is updated. */ + TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', + /** A new voucher created. */ + VOUCHER_CREATED = 'VOUCHER_CREATED', + /** A voucher is deleted. */ + VOUCHER_DELETED = 'VOUCHER_DELETED', + /** + * A voucher metadata is updated. + * + * Added in Saleor 3.8. + */ + VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', + /** A voucher is updated. */ + VOUCHER_UPDATED = 'VOUCHER_UPDATED', + /** A new warehouse created. */ + WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', + /** A warehouse is deleted. */ + WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', + /** + * A warehouse metadata is updated. + * + * Added in Saleor 3.8. + */ + WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', + /** A warehouse is updated. */ + WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' } /** Enum determining type of webhook. */ export enum WebhookEventTypeSyncEnum { + /** + * Event called for checkout tax calculation. + * + * Added in Saleor 3.6. + */ + CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', + /** Filter shipping methods for checkout. */ + CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS', + /** + * Event called for order tax calculation. + * + * Added in Saleor 3.6. + */ + ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', + /** Filter shipping methods for order. */ + ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', /** Authorize payment. */ PAYMENT_AUTHORIZE = 'PAYMENT_AUTHORIZE', /** Capture payment. */ PAYMENT_CAPTURE = 'PAYMENT_CAPTURE', /** Confirm payment. */ PAYMENT_CONFIRM = 'PAYMENT_CONFIRM', + PAYMENT_GATEWAY_INITIALIZE_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_SESSION', /** Listing available payment gateways. */ PAYMENT_LIST_GATEWAYS = 'PAYMENT_LIST_GATEWAYS', /** Process payment. */ @@ -6627,192 +7045,173 @@ export enum WebhookEventTypeSyncEnum { PAYMENT_REFUND = 'PAYMENT_REFUND', /** Void payment. */ PAYMENT_VOID = 'PAYMENT_VOID', - /** - * Event called for checkout tax calculation. - * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', - /** - * Event called for order tax calculation. - * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', /** Fetch external shipping methods for checkout. */ SHIPPING_LIST_METHODS_FOR_CHECKOUT = 'SHIPPING_LIST_METHODS_FOR_CHECKOUT', - /** Filter shipping methods for order. */ - ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', - /** Filter shipping methods for checkout. */ - CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS' + /** + * Event called when cancel has been requested for transaction. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + TRANSACTION_CANCELATION_REQUESTED = 'TRANSACTION_CANCELATION_REQUESTED', + /** + * Event called when charge has been requested for transaction. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', + TRANSACTION_INITIALIZE_SESSION = 'TRANSACTION_INITIALIZE_SESSION', + TRANSACTION_PROCESS_SESSION = 'TRANSACTION_PROCESS_SESSION', + /** + * Event called when refund has been requested for transaction. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED' } /** An enumeration. */ export enum WebhookSampleEventTypeEnum { ADDRESS_CREATED = 'ADDRESS_CREATED', - ADDRESS_UPDATED = 'ADDRESS_UPDATED', ADDRESS_DELETED = 'ADDRESS_DELETED', - APP_INSTALLED = 'APP_INSTALLED', - APP_UPDATED = 'APP_UPDATED', + ADDRESS_UPDATED = 'ADDRESS_UPDATED', APP_DELETED = 'APP_DELETED', + APP_INSTALLED = 'APP_INSTALLED', APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', + APP_UPDATED = 'APP_UPDATED', ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', + ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', + ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', CATEGORY_CREATED = 'CATEGORY_CREATED', - CATEGORY_UPDATED = 'CATEGORY_UPDATED', CATEGORY_DELETED = 'CATEGORY_DELETED', + CATEGORY_UPDATED = 'CATEGORY_UPDATED', CHANNEL_CREATED = 'CHANNEL_CREATED', - CHANNEL_UPDATED = 'CHANNEL_UPDATED', CHANNEL_DELETED = 'CHANNEL_DELETED', CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - MENU_CREATED = 'MENU_CREATED', - MENU_UPDATED = 'MENU_UPDATED', - MENU_DELETED = 'MENU_DELETED', - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - ORDER_CREATED = 'ORDER_CREATED', - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - ORDER_UPDATED = 'ORDER_UPDATED', - ORDER_CANCELLED = 'ORDER_CANCELLED', - ORDER_FULFILLED = 'ORDER_FULFILLED', - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - SALE_CREATED = 'SALE_CREATED', - SALE_UPDATED = 'SALE_UPDATED', - SALE_DELETED = 'SALE_DELETED', - SALE_TOGGLE = 'SALE_TOGGLE', - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - INVOICE_DELETED = 'INVOICE_DELETED', - INVOICE_SENT = 'INVOICE_SENT', - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', + CHANNEL_UPDATED = 'CHANNEL_UPDATED', + CHECKOUT_CREATED = 'CHECKOUT_CREATED', + CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', + CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', + CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', COLLECTION_CREATED = 'COLLECTION_CREATED', - COLLECTION_UPDATED = 'COLLECTION_UPDATED', COLLECTION_DELETED = 'COLLECTION_DELETED', COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - PRODUCT_CREATED = 'PRODUCT_CREATED', - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - PRODUCT_DELETED = 'PRODUCT_DELETED', - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', + COLLECTION_UPDATED = 'COLLECTION_UPDATED', + CUSTOMER_CREATED = 'CUSTOMER_CREATED', + CUSTOMER_DELETED = 'CUSTOMER_DELETED', + CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', + CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', + DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', + DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', + DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', + FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', + FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', + GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', + GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', + GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', + GIFT_CARD_SENT = 'GIFT_CARD_SENT', + GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', + GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', + INVOICE_DELETED = 'INVOICE_DELETED', + INVOICE_REQUESTED = 'INVOICE_REQUESTED', + INVOICE_SENT = 'INVOICE_SENT', + MENU_CREATED = 'MENU_CREATED', + MENU_DELETED = 'MENU_DELETED', + MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', + MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', + MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', + MENU_UPDATED = 'MENU_UPDATED', NOTIFY_USER = 'NOTIFY_USER', + OBSERVABILITY = 'OBSERVABILITY', + ORDER_CANCELLED = 'ORDER_CANCELLED', + ORDER_CONFIRMED = 'ORDER_CONFIRMED', + ORDER_CREATED = 'ORDER_CREATED', + ORDER_EXPIRED = 'ORDER_EXPIRED', + ORDER_FULFILLED = 'ORDER_FULFILLED', + ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', + ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', + ORDER_UPDATED = 'ORDER_UPDATED', PAGE_CREATED = 'PAGE_CREATED', - PAGE_UPDATED = 'PAGE_UPDATED', PAGE_DELETED = 'PAGE_DELETED', PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', + PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', + PAGE_UPDATED = 'PAGE_UPDATED', PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', + PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', + PRODUCT_CREATED = 'PRODUCT_CREATED', + PRODUCT_DELETED = 'PRODUCT_DELETED', + PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', + PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', + PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', + PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', + PRODUCT_UPDATED = 'PRODUCT_UPDATED', + PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', + PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', + PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', + PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', + PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', + PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', + PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', + SALE_CREATED = 'SALE_CREATED', + SALE_DELETED = 'SALE_DELETED', + SALE_TOGGLE = 'SALE_TOGGLE', + SALE_UPDATED = 'SALE_UPDATED', SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', + SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', + SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', STAFF_CREATED = 'STAFF_CREATED', - STAFF_UPDATED = 'STAFF_UPDATED', STAFF_DELETED = 'STAFF_DELETED', + STAFF_UPDATED = 'STAFF_UPDATED', + THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', TRANSLATION_CREATED = 'TRANSLATION_CREATED', TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED', - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', VOUCHER_CREATED = 'VOUCHER_CREATED', - VOUCHER_UPDATED = 'VOUCHER_UPDATED', VOUCHER_DELETED = 'VOUCHER_DELETED', VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - OBSERVABILITY = 'OBSERVABILITY', - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED' + VOUCHER_UPDATED = 'VOUCHER_UPDATED', + WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', + WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', + WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', + WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' } /** An enumeration. */ export enum WebhookTriggerErrorCode { GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', INVALID_ID = 'INVALID_ID', + MISSING_EVENT = 'MISSING_EVENT', MISSING_PERMISSION = 'MISSING_PERMISSION', - TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', - SYNTAX = 'SYNTAX', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE', MISSING_QUERY = 'MISSING_QUERY', - MISSING_EVENT = 'MISSING_EVENT' + MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', + NOT_FOUND = 'NOT_FOUND', + SYNTAX = 'SYNTAX', + TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', + UNABLE_TO_PARSE = 'UNABLE_TO_PARSE' } export type WebhookUpdateInput = { - /** The new name of the webhook. */ - name?: InputMaybe; - /** The url to receive the payload. */ - targetUrl?: InputMaybe; - /** - * The events that webhook wants to subscribe. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. - */ - events?: InputMaybe>; - /** The asynchronous events that webhook wants to subscribe. */ - asyncEvents?: InputMaybe>; - /** The synchronous events that webhook wants to subscribe. */ - syncEvents?: InputMaybe>; /** ID of the app to which webhook belongs. */ app?: InputMaybe; - /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; - /** - * Use to create a hash signature with each payload. - * - * DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - */ - secretKey?: InputMaybe; - /** - * Subscription query used to define a webhook payload. - * - * Added in Saleor 3.2. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - query?: InputMaybe; + /** The asynchronous events that webhook wants to subscribe. */ + asyncEvents?: InputMaybe>; /** * Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only "X-*" and "Authorization*" keys are allowed. * @@ -6821,14 +7220,40 @@ export type WebhookUpdateInput = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ customHeaders?: InputMaybe; + /** + * The events that webhook wants to subscribe. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. + */ + events?: InputMaybe>; + /** Determine if webhook will be set active or not. */ + isActive?: InputMaybe; + /** The new name of the webhook. */ + name?: InputMaybe; + /** + * Subscription query used to define a webhook payload. + * + * Added in Saleor 3.2. + */ + query?: InputMaybe; + /** + * Use to create a hash signature with each payload. + * + * DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. + */ + secretKey?: InputMaybe; + /** The synchronous events that webhook wants to subscribe. */ + syncEvents?: InputMaybe>; + /** The url to receive the payload. */ + targetUrl?: InputMaybe; }; /** An enumeration. */ export enum WeightUnitsEnum { G = 'G', + KG = 'KG', LB = 'LB', OZ = 'OZ', - KG = 'KG', TONNE = 'TONNE' } @@ -7116,7 +7541,7 @@ export type ChannelCreateMutationVariables = Exact<{ }>; -export type ChannelCreateMutation = { __typename: 'Mutation', channelCreate: { __typename: 'ChannelCreate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; +export type ChannelCreateMutation = { __typename: 'Mutation', channelCreate: { __typename: 'ChannelCreate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; export type ChannelUpdateMutationVariables = Exact<{ id: Scalars['ID']; @@ -7124,7 +7549,7 @@ export type ChannelUpdateMutationVariables = Exact<{ }>; -export type ChannelUpdateMutation = { __typename: 'Mutation', channelUpdate: { __typename: 'ChannelUpdate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; +export type ChannelUpdateMutation = { __typename: 'Mutation', channelUpdate: { __typename: 'ChannelUpdate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; export type ChannelDeleteMutationVariables = Exact<{ id: Scalars['ID']; @@ -7139,14 +7564,14 @@ export type ChannelActivateMutationVariables = Exact<{ }>; -export type ChannelActivateMutation = { __typename: 'Mutation', channelActivate: { __typename: 'ChannelActivate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; +export type ChannelActivateMutation = { __typename: 'Mutation', channelActivate: { __typename: 'ChannelActivate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; export type ChannelDeactivateMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type ChannelDeactivateMutation = { __typename: 'Mutation', channelDeactivate: { __typename: 'ChannelDeactivate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; +export type ChannelDeactivateMutation = { __typename: 'Mutation', channelDeactivate: { __typename: 'ChannelDeactivate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; export type ChannelReorderWarehousesMutationVariables = Exact<{ channelId: Scalars['ID']; @@ -7154,7 +7579,7 @@ export type ChannelReorderWarehousesMutationVariables = Exact<{ }>; -export type ChannelReorderWarehousesMutation = { __typename: 'Mutation', channelReorderWarehouses: { __typename: 'ChannelReorderWarehouses', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; +export type ChannelReorderWarehousesMutation = { __typename: 'Mutation', channelReorderWarehouses: { __typename: 'ChannelReorderWarehouses', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; export type BaseChannelsQueryVariables = Exact<{ [key: string]: never; }>; @@ -7164,14 +7589,14 @@ export type BaseChannelsQuery = { __typename: 'Query', channels: Array<{ __typen export type ChannelsQueryVariables = Exact<{ [key: string]: never; }>; -export type ChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; +export type ChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; export type ChannelQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type ChannelQuery = { __typename: 'Query', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null }; +export type ChannelQuery = { __typename: 'Query', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null }; export type CollectionUpdateMutationVariables = Exact<{ id: Scalars['ID']; @@ -7704,7 +8129,7 @@ export type ChannelErrorFragment = { __typename: 'ChannelError', code: ChannelEr export type ChannelFragment = { __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; -export type ChannelDetailsFragment = { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; +export type ChannelDetailsFragment = { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; export type CollectionFragment = { __typename: 'Collection', id: string, name: string, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publicationDate: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null }; @@ -7858,6 +8283,14 @@ export type TaxClassCreateErrorFragment = { __typename: 'TaxClassCreateError', f export type TaxClassDeleteErrorFragment = { __typename: 'TaxClassDeleteError', field: string | null, code: TaxClassDeleteErrorCode, message: string | null }; +export type TransactionRequestActionErrorFragment = { __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }; + +export type TransactionCreateErrorFragment = { __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }; + +export type OrderGrantRefundCreateErrorFragment = { __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode }; + +export type OrderGrantRefundUpdateErrorFragment = { __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode }; + export type FileFragment = { __typename: 'File', url: string, contentType: string | null }; export type GiftCardsSettingsFragment = { __typename: 'GiftCardSettings', expiryType: GiftCardSettingsExpiryTypeEnum, expiryPeriod: { __typename: 'TimePeriod', type: TimePeriodTypeEnum, amount: number } | null }; @@ -7954,7 +8387,7 @@ export type FulfillmentFragment = { __typename: 'Fulfillment', id: string, fulfi export type InvoiceFragment = { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }; -export type OrderDetailsFragment = { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderDetailsFragment = { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; export type OrderSettingsFragment = { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean }; @@ -7964,6 +8397,22 @@ export type OrderFulfillLineFragment = { __typename: 'OrderLine', id: string, is export type OrderLineStockDataFragment = { __typename: 'OrderLine', id: string, quantity: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', quantity: number, warehouse: { __typename: 'Warehouse', id: string } }> | null, variant: { __typename: 'ProductVariant', stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null }; +export type TransactionEventFragment = { __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }; + +export type TransactionItemFragment = { __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }; + +export type OrderPaymentFragment = { __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }; + +export type OrderGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }; + +export type OrderGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }; + +export type OrderLineGrantRefundFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }; + +export type OrderFulfillmentGrantRefundFragment = { __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }; + +export type OrderDetailsGrantRefundFragment = { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }; + export type PageInfoFragment = { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }; export type PageTypeFragment = { __typename: 'PageType', id: string, name: string, hasPages: boolean | null }; @@ -8346,7 +8795,7 @@ export type OrderCancelMutationVariables = Exact<{ }>; -export type OrderCancelMutation = { __typename: 'Mutation', orderCancel: { __typename: 'OrderCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderCancelMutation = { __typename: 'Mutation', orderCancel: { __typename: 'OrderCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDiscountAddMutationVariables = Exact<{ input: OrderDiscountCommonInput; @@ -8354,21 +8803,21 @@ export type OrderDiscountAddMutationVariables = Exact<{ }>; -export type OrderDiscountAddMutation = { __typename: 'Mutation', orderDiscountAdd: { __typename: 'OrderDiscountAdd', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDiscountAddMutation = { __typename: 'Mutation', orderDiscountAdd: { __typename: 'OrderDiscountAdd', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDiscountDeleteMutationVariables = Exact<{ discountId: Scalars['ID']; }>; -export type OrderDiscountDeleteMutation = { __typename: 'Mutation', orderDiscountDelete: { __typename: 'OrderDiscountDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDiscountDeleteMutation = { __typename: 'Mutation', orderDiscountDelete: { __typename: 'OrderDiscountDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderLineDiscountRemoveMutationVariables = Exact<{ orderLineId: Scalars['ID']; }>; -export type OrderLineDiscountRemoveMutation = { __typename: 'Mutation', orderLineDiscountRemove: { __typename: 'OrderLineDiscountRemove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderLineDiscountRemoveMutation = { __typename: 'Mutation', orderLineDiscountRemove: { __typename: 'OrderLineDiscountRemove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderLineDiscountUpdateMutationVariables = Exact<{ input: OrderDiscountCommonInput; @@ -8376,7 +8825,7 @@ export type OrderLineDiscountUpdateMutationVariables = Exact<{ }>; -export type OrderLineDiscountUpdateMutation = { __typename: 'Mutation', orderLineDiscountUpdate: { __typename: 'OrderLineDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderLineDiscountUpdateMutation = { __typename: 'Mutation', orderLineDiscountUpdate: { __typename: 'OrderLineDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDiscountUpdateMutationVariables = Exact<{ input: OrderDiscountCommonInput; @@ -8384,14 +8833,14 @@ export type OrderDiscountUpdateMutationVariables = Exact<{ }>; -export type OrderDiscountUpdateMutation = { __typename: 'Mutation', orderDiscountUpdate: { __typename: 'OrderDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDiscountUpdateMutation = { __typename: 'Mutation', orderDiscountUpdate: { __typename: 'OrderDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftCancelMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderDraftCancelMutation = { __typename: 'Mutation', draftOrderDelete: { __typename: 'DraftOrderDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDraftCancelMutation = { __typename: 'Mutation', draftOrderDelete: { __typename: 'DraftOrderDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftBulkCancelMutationVariables = Exact<{ ids: Array | Scalars['ID']; @@ -8405,14 +8854,14 @@ export type OrderConfirmMutationVariables = Exact<{ }>; -export type OrderConfirmMutation = { __typename: 'Mutation', orderConfirm: { __typename: 'OrderConfirm', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderConfirmMutation = { __typename: 'Mutation', orderConfirm: { __typename: 'OrderConfirm', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftFinalizeMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderDraftFinalizeMutation = { __typename: 'Mutation', draftOrderComplete: { __typename: 'DraftOrderComplete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDraftFinalizeMutation = { __typename: 'Mutation', draftOrderComplete: { __typename: 'DraftOrderComplete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type FulfillmentReturnProductsMutationVariables = Exact<{ id: Scalars['ID']; @@ -8428,7 +8877,7 @@ export type OrderRefundMutationVariables = Exact<{ }>; -export type OrderRefundMutation = { __typename: 'Mutation', orderRefund: { __typename: 'OrderRefund', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderRefundMutation = { __typename: 'Mutation', orderRefund: { __typename: 'OrderRefund', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderFulfillmentRefundProductsMutationVariables = Exact<{ input: OrderRefundProductsInput; @@ -8436,14 +8885,14 @@ export type OrderFulfillmentRefundProductsMutationVariables = Exact<{ }>; -export type OrderFulfillmentRefundProductsMutation = { __typename: 'Mutation', orderFulfillmentRefundProducts: { __typename: 'FulfillmentRefundProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, fulfillment: { __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null } | null, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderFulfillmentRefundProductsMutation = { __typename: 'Mutation', orderFulfillmentRefundProducts: { __typename: 'FulfillmentRefundProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, fulfillment: { __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null } | null, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderVoidMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderVoidMutation = { __typename: 'Mutation', orderVoid: { __typename: 'OrderVoid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderVoidMutation = { __typename: 'Mutation', orderVoid: { __typename: 'OrderVoid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderMarkAsPaidMutationVariables = Exact<{ id: Scalars['ID']; @@ -8451,7 +8900,7 @@ export type OrderMarkAsPaidMutationVariables = Exact<{ }>; -export type OrderMarkAsPaidMutation = { __typename: 'Mutation', orderMarkAsPaid: { __typename: 'OrderMarkAsPaid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderMarkAsPaidMutation = { __typename: 'Mutation', orderMarkAsPaid: { __typename: 'OrderMarkAsPaid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderCaptureMutationVariables = Exact<{ id: Scalars['ID']; @@ -8459,7 +8908,7 @@ export type OrderCaptureMutationVariables = Exact<{ }>; -export type OrderCaptureMutation = { __typename: 'Mutation', orderCapture: { __typename: 'OrderCapture', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderCaptureMutation = { __typename: 'Mutation', orderCapture: { __typename: 'OrderCapture', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderFulfillmentUpdateTrackingMutationVariables = Exact<{ id: Scalars['ID']; @@ -8467,7 +8916,7 @@ export type OrderFulfillmentUpdateTrackingMutationVariables = Exact<{ }>; -export type OrderFulfillmentUpdateTrackingMutation = { __typename: 'Mutation', orderFulfillmentUpdateTracking: { __typename: 'FulfillmentUpdateTracking', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderFulfillmentUpdateTrackingMutation = { __typename: 'Mutation', orderFulfillmentUpdateTracking: { __typename: 'FulfillmentUpdateTracking', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderFulfillmentApproveMutationVariables = Exact<{ id: Scalars['ID']; @@ -8476,7 +8925,7 @@ export type OrderFulfillmentApproveMutationVariables = Exact<{ }>; -export type OrderFulfillmentApproveMutation = { __typename: 'Mutation', orderFulfillmentApprove: { __typename: 'FulfillmentApprove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderFulfillmentApproveMutation = { __typename: 'Mutation', orderFulfillmentApprove: { __typename: 'FulfillmentApprove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderFulfillmentCancelMutationVariables = Exact<{ id: Scalars['ID']; @@ -8484,7 +8933,7 @@ export type OrderFulfillmentCancelMutationVariables = Exact<{ }>; -export type OrderFulfillmentCancelMutation = { __typename: 'Mutation', orderFulfillmentCancel: { __typename: 'FulfillmentCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderFulfillmentCancelMutation = { __typename: 'Mutation', orderFulfillmentCancel: { __typename: 'FulfillmentCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderAddNoteMutationVariables = Exact<{ order: Scalars['ID']; @@ -8500,7 +8949,7 @@ export type OrderUpdateMutationVariables = Exact<{ }>; -export type OrderUpdateMutation = { __typename: 'Mutation', orderUpdate: { __typename: 'OrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderUpdateMutation = { __typename: 'Mutation', orderUpdate: { __typename: 'OrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftUpdateMutationVariables = Exact<{ id: Scalars['ID']; @@ -8508,7 +8957,7 @@ export type OrderDraftUpdateMutationVariables = Exact<{ }>; -export type OrderDraftUpdateMutation = { __typename: 'Mutation', draftOrderUpdate: { __typename: 'DraftOrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderDraftUpdateMutation = { __typename: 'Mutation', draftOrderUpdate: { __typename: 'DraftOrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderShippingMethodUpdateMutationVariables = Exact<{ id: Scalars['ID']; @@ -8516,7 +8965,7 @@ export type OrderShippingMethodUpdateMutationVariables = Exact<{ }>; -export type OrderShippingMethodUpdateMutation = { __typename: 'Mutation', orderUpdateShipping: { __typename: 'OrderUpdateShipping', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, shippingMethodName: string | null, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, total: { __typename: 'TaxedMoney', tax: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string, name: string, price: { __typename: 'Money', amount: number, currency: string } } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderShippingMethodUpdateMutation = { __typename: 'Mutation', orderUpdateShipping: { __typename: 'OrderUpdateShipping', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, shippingMethodName: string | null, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, total: { __typename: 'TaxedMoney', tax: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string, name: string, price: { __typename: 'Money', amount: number, currency: string } } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type OrderDraftCreateMutationVariables = Exact<{ input: DraftOrderCreateInput; @@ -8554,7 +9003,7 @@ export type FulfillOrderMutationVariables = Exact<{ }>; -export type FulfillOrderMutation = { __typename: 'Mutation', orderFulfill: { __typename: 'OrderFulfill', errors: Array<{ __typename: 'OrderError', warehouse: string | null, code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type FulfillOrderMutation = { __typename: 'Mutation', orderFulfill: { __typename: 'OrderFulfill', errors: Array<{ __typename: 'OrderError', warehouse: string | null, code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; export type InvoiceRequestMutationVariables = Exact<{ orderId: Scalars['ID']; @@ -8578,6 +9027,62 @@ export type OrderSettingsUpdateMutationVariables = Exact<{ export type OrderSettingsUpdateMutation = { __typename: 'Mutation', orderSettingsUpdate: { __typename: 'OrderSettingsUpdate', errors: Array<{ __typename: 'OrderSettingsError', code: OrderSettingsErrorCode, field: string | null, message: string | null }>, orderSettings: { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean } | null } | null, shopSettingsUpdate: { __typename: 'ShopSettingsUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean } | null } | null }; +export type OrderTransactionRequestActionMutationVariables = Exact<{ + action: TransactionActionEnum; + transactionId: Scalars['ID']; +}>; + + +export type OrderTransactionRequestActionMutation = { __typename: 'Mutation', transactionRequestAction: { __typename: 'TransactionRequestAction', errors: Array<{ __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }> } | null }; + +export type OrderGrantRefundAddMutationVariables = Exact<{ + orderId: Scalars['ID']; + amount: Scalars['Decimal']; + reason?: InputMaybe; +}>; + + +export type OrderGrantRefundAddMutation = { __typename: 'Mutation', orderGrantRefundCreate: { __typename: 'OrderGrantRefundCreate', errors: Array<{ __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode }> } | null }; + +export type OrderGrantRefundEditMutationVariables = Exact<{ + refundId: Scalars['ID']; + amount: Scalars['Decimal']; + reason?: InputMaybe; +}>; + + +export type OrderGrantRefundEditMutation = { __typename: 'Mutation', orderGrantRefundUpdate: { __typename: 'OrderGrantRefundUpdate', errors: Array<{ __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode }> } | null }; + +export type OrderSendRefundMutationVariables = Exact<{ + amount: Scalars['PositiveDecimal']; + transactionId: Scalars['ID']; +}>; + + +export type OrderSendRefundMutation = { __typename: 'Mutation', transactionRequestAction: { __typename: 'TransactionRequestAction', transaction: { __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }> } | null }; + +export type CreateManualTransactionCaptureMutationVariables = Exact<{ + orderId: Scalars['ID']; + amount: Scalars['PositiveDecimal']; + currency: Scalars['String']; + description?: InputMaybe; + pspReference?: InputMaybe; +}>; + + +export type CreateManualTransactionCaptureMutation = { __typename: 'Mutation', transactionCreate: { __typename: 'TransactionCreate', transaction: { __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }> } | null }; + +export type CreateManualTransactionRefundMutationVariables = Exact<{ + orderId: Scalars['ID']; + amount: Scalars['PositiveDecimal']; + currency: Scalars['String']; + description?: InputMaybe; + pspReference?: InputMaybe; +}>; + + +export type CreateManualTransactionRefundMutation = { __typename: 'Mutation', transactionCreate: { __typename: 'TransactionCreate', transaction: { __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }> } | null }; + export type OrderListQueryVariables = Exact<{ first?: InputMaybe; after?: InputMaybe; @@ -8607,14 +9112,28 @@ export type OrderDetailsQueryVariables = Exact<{ }>; -export type OrderDetailsQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> } }; +export type OrderDetailsQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'App', id: string, name: string | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; + +export type OrderDetailsGrantRefundQueryVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type OrderDetailsGrantRefundQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }; + +export type OrderDetailsGrantRefundEditQueryVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type OrderDetailsGrantRefundEditQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, amount: { __typename: 'Money', amount: number, currency: string } }>, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }; export type OrderFulfillDataQueryVariables = Exact<{ orderId: Scalars['ID']; }>; -export type OrderFulfillDataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, isPaid: boolean, number: string, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, quantity: number, quantityFulfilled: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, preorder: { __typename: 'PreorderData', endDate: any | null } | null, attributes: Array<{ __typename: 'SelectedAttribute', values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null, thumbnail: { __typename: 'Image', url: string } | null }> } | null }; +export type OrderFulfillDataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, isPaid: boolean, number: string, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, quantity: number, quantityFulfilled: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, preorder: { __typename: 'PreorderData', endDate: any | null } | null, attributes: Array<{ __typename: 'SelectedAttribute', values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null, thumbnail: { __typename: 'Image', url: string } | null }> } | null }; export type OrderFulfillSettingsQueryVariables = Exact<{ [key: string]: never; }>; @@ -9842,7 +10361,7 @@ export type CategoryTranslationsQueryVariables = Exact<{ }>; -export type CategoryTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type CategoryTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type CollectionTranslationsQueryVariables = Exact<{ language: LanguageCodeEnum; @@ -9853,7 +10372,7 @@ export type CollectionTranslationsQueryVariables = Exact<{ }>; -export type CollectionTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type CollectionTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type ProductTranslationsQueryVariables = Exact<{ language: LanguageCodeEnum; @@ -9864,7 +10383,7 @@ export type ProductTranslationsQueryVariables = Exact<{ }>; -export type ProductTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type ProductTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type PageTranslationsQueryVariables = Exact<{ language: LanguageCodeEnum; @@ -9875,7 +10394,7 @@ export type PageTranslationsQueryVariables = Exact<{ }>; -export type PageTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type PageTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type VoucherTranslationsQueryVariables = Exact<{ language: LanguageCodeEnum; @@ -9886,7 +10405,7 @@ export type VoucherTranslationsQueryVariables = Exact<{ }>; -export type VoucherTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'MenuItemTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type VoucherTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type SaleTranslationsQueryVariables = Exact<{ language: LanguageCodeEnum; @@ -9897,7 +10416,7 @@ export type SaleTranslationsQueryVariables = Exact<{ }>; -export type SaleTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type SaleTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type AttributeTranslationsQueryVariables = Exact<{ language: LanguageCodeEnum; @@ -9908,7 +10427,7 @@ export type AttributeTranslationsQueryVariables = Exact<{ }>; -export type AttributeTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent', id: string, name: string, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null } | null } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AttributeTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent', id: string, name: string, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null } | null } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type ShippingMethodTranslationsQueryVariables = Exact<{ language: LanguageCodeEnum; @@ -9919,7 +10438,7 @@ export type ShippingMethodTranslationsQueryVariables = Exact<{ }>; -export type ShippingMethodTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type ShippingMethodTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type MenuItemTranslationsQueryVariables = Exact<{ language: LanguageCodeEnum; @@ -9930,7 +10449,7 @@ export type MenuItemTranslationsQueryVariables = Exact<{ }>; -export type MenuItemTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type MenuItemTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; export type ProductTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -9938,7 +10457,7 @@ export type ProductTranslationDetailsQueryVariables = Exact<{ }>; -export type ProductTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type ProductTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; export type ProductVariantListQueryVariables = Exact<{ id: Scalars['ID']; @@ -9953,7 +10472,7 @@ export type ProductVariantTranslationDetailsQueryVariables = Exact<{ }>; -export type ProductVariantTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent', name: string, productVariant: { __typename: 'ProductVariant', id: string } | null, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type ProductVariantTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent', name: string, productVariant: { __typename: 'ProductVariant', id: string } | null, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; export type CategoryTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -9961,7 +10480,7 @@ export type CategoryTranslationDetailsQueryVariables = Exact<{ }>; -export type CategoryTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type CategoryTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; export type CollectionTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -9969,7 +10488,7 @@ export type CollectionTranslationDetailsQueryVariables = Exact<{ }>; -export type CollectionTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type CollectionTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; export type PageTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -9977,7 +10496,7 @@ export type PageTranslationDetailsQueryVariables = Exact<{ }>; -export type PageTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type PageTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; export type SaleTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -9985,7 +10504,7 @@ export type SaleTranslationDetailsQueryVariables = Exact<{ }>; -export type SaleTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type SaleTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; export type VoucherTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -9993,7 +10512,7 @@ export type VoucherTranslationDetailsQueryVariables = Exact<{ }>; -export type VoucherTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type VoucherTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null }; export type AttributeTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -10005,7 +10524,7 @@ export type AttributeTranslationDetailsQueryVariables = Exact<{ }>; -export type AttributeTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent', translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, withChoices: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> } | null } | null } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type AttributeTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent', translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, withChoices: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> } | null } | null } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; export type ShippingMethodTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -10013,7 +10532,7 @@ export type ShippingMethodTranslationDetailsQueryVariables = Exact<{ }>; -export type ShippingMethodTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | null }; +export type ShippingMethodTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'VoucherTranslatableContent' } | null }; export type MenuItemTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; @@ -10021,7 +10540,7 @@ export type MenuItemTranslationDetailsQueryVariables = Exact<{ }>; -export type MenuItemTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'ProductTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null } | null }; +export type MenuItemTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; export type UpdateMetadataMutationVariables = Exact<{ id: Scalars['ID']; diff --git a/src/graphql/types.transactions.generated.ts b/src/graphql/types.transactions.generated.ts deleted file mode 100644 index e4cee3bac..000000000 --- a/src/graphql/types.transactions.generated.ts +++ /dev/null @@ -1,7627 +0,0 @@ -/* eslint-disable */ -export type Maybe = T | null; -export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** - * The `Date` scalar type represents a Date - * value as specified by - * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). - */ - Date: any; - /** - * The `DateTime` scalar type represents a DateTime - * value as specified by - * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). - */ - DateTime: any; - /** - * Custom Decimal implementation. - * - * Returns Decimal as a float in the API, - * parses float to the Decimal on the way back. - */ - Decimal: any; - /** - * The `GenericScalar` scalar type represents a generic - * GraphQL scalar value that could be: - * String, Boolean, Int, Float, List or Object. - */ - GenericScalar: any; - JSONString: any; - /** - * Metadata is a map of key-value pairs, both keys and values are `String`. - * - * Example: - * ``` - * { - * "key1": "value1", - * "key2": "value2" - * } - * ``` - */ - Metadata: any; - /** - * Nonnegative Decimal scalar implementation. - * - * Should be used in places where value must be nonnegative (0 or greater). - */ - PositiveDecimal: any; - UUID: any; - /** Variables of this type must be set to null in mutations. They will be replaced with a filename from a following multipart part containing a binary file. See: https://github.com/jaydenseric/graphql-multipart-request-spec. */ - Upload: any; - WeightScalar: any; - /** _Any value scalar as defined by Federation spec. */ - _Any: any; -}; - -/** An enumeration. */ -export enum AccountErrorCode { - ACTIVATE_OWN_ACCOUNT = 'ACTIVATE_OWN_ACCOUNT', - ACTIVATE_SUPERUSER_ACCOUNT = 'ACTIVATE_SUPERUSER_ACCOUNT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - DEACTIVATE_OWN_ACCOUNT = 'DEACTIVATE_OWN_ACCOUNT', - DEACTIVATE_SUPERUSER_ACCOUNT = 'DEACTIVATE_SUPERUSER_ACCOUNT', - DELETE_NON_STAFF_USER = 'DELETE_NON_STAFF_USER', - DELETE_OWN_ACCOUNT = 'DELETE_OWN_ACCOUNT', - DELETE_STAFF_ACCOUNT = 'DELETE_STAFF_ACCOUNT', - DELETE_SUPERUSER_ACCOUNT = 'DELETE_SUPERUSER_ACCOUNT', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INACTIVE = 'INACTIVE', - INVALID = 'INVALID', - INVALID_PASSWORD = 'INVALID_PASSWORD', - LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', - INVALID_CREDENTIALS = 'INVALID_CREDENTIALS', - NOT_FOUND = 'NOT_FOUND', - OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', - OUT_OF_SCOPE_GROUP = 'OUT_OF_SCOPE_GROUP', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', - PASSWORD_ENTIRELY_NUMERIC = 'PASSWORD_ENTIRELY_NUMERIC', - PASSWORD_TOO_COMMON = 'PASSWORD_TOO_COMMON', - PASSWORD_TOO_SHORT = 'PASSWORD_TOO_SHORT', - PASSWORD_TOO_SIMILAR = 'PASSWORD_TOO_SIMILAR', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - JWT_SIGNATURE_EXPIRED = 'JWT_SIGNATURE_EXPIRED', - JWT_INVALID_TOKEN = 'JWT_INVALID_TOKEN', - JWT_DECODE_ERROR = 'JWT_DECODE_ERROR', - JWT_MISSING_TOKEN = 'JWT_MISSING_TOKEN', - JWT_INVALID_CSRF_TOKEN = 'JWT_INVALID_CSRF_TOKEN', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', - ACCOUNT_NOT_CONFIRMED = 'ACCOUNT_NOT_CONFIRMED' -} - -export type AccountInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; -}; - -export type AccountRegisterInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** The email address of the user. */ - email: Scalars['String']; - /** Password. */ - password: Scalars['String']; - /** Base of frontend URL that will be needed to create confirmation URL. */ - redirectUrl?: InputMaybe; - /** User public metadata. */ - metadata?: InputMaybe>; - /** Slug of a channel which will be used to notify users. Optional when only one channel exists. */ - channel?: InputMaybe; -}; - -export type AddressInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** Company or organization. */ - companyName?: InputMaybe; - /** Address. */ - streetAddress1?: InputMaybe; - /** Address. */ - streetAddress2?: InputMaybe; - /** City. */ - city?: InputMaybe; - /** District. */ - cityArea?: InputMaybe; - /** Postal code. */ - postalCode?: InputMaybe; - /** Country. */ - country?: InputMaybe; - /** State or province. */ - countryArea?: InputMaybe; - /** Phone number. */ - phone?: InputMaybe; -}; - -/** An enumeration. */ -export enum AddressTypeEnum { - BILLING = 'BILLING', - SHIPPING = 'SHIPPING' -} - -/** - * Determine the allocation strategy for the channel. - * - * PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order - * within the channel - * - * PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock - * - */ -export enum AllocationStrategyEnum { - PRIORITIZE_SORTING_ORDER = 'PRIORITIZE_SORTING_ORDER', - PRIORITIZE_HIGH_STOCK = 'PRIORITIZE_HIGH_STOCK' -} - -/** An enumeration. */ -export enum AppErrorCode { - FORBIDDEN = 'FORBIDDEN', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_STATUS = 'INVALID_STATUS', - INVALID_PERMISSION = 'INVALID_PERMISSION', - INVALID_URL_FORMAT = 'INVALID_URL_FORMAT', - INVALID_MANIFEST_FORMAT = 'INVALID_MANIFEST_FORMAT', - INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS', - MANIFEST_URL_CANT_CONNECT = 'MANIFEST_URL_CANT_CONNECT', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - OUT_OF_SCOPE_APP = 'OUT_OF_SCOPE_APP', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION' -} - -export type AppExtensionFilterInput = { - mount?: InputMaybe>; - target?: InputMaybe; -}; - -/** All places where app extension can be mounted. */ -export enum AppExtensionMountEnum { - CUSTOMER_OVERVIEW_CREATE = 'CUSTOMER_OVERVIEW_CREATE', - CUSTOMER_OVERVIEW_MORE_ACTIONS = 'CUSTOMER_OVERVIEW_MORE_ACTIONS', - CUSTOMER_DETAILS_MORE_ACTIONS = 'CUSTOMER_DETAILS_MORE_ACTIONS', - PRODUCT_OVERVIEW_CREATE = 'PRODUCT_OVERVIEW_CREATE', - PRODUCT_OVERVIEW_MORE_ACTIONS = 'PRODUCT_OVERVIEW_MORE_ACTIONS', - PRODUCT_DETAILS_MORE_ACTIONS = 'PRODUCT_DETAILS_MORE_ACTIONS', - NAVIGATION_CATALOG = 'NAVIGATION_CATALOG', - NAVIGATION_ORDERS = 'NAVIGATION_ORDERS', - NAVIGATION_CUSTOMERS = 'NAVIGATION_CUSTOMERS', - NAVIGATION_DISCOUNTS = 'NAVIGATION_DISCOUNTS', - NAVIGATION_TRANSLATIONS = 'NAVIGATION_TRANSLATIONS', - NAVIGATION_PAGES = 'NAVIGATION_PAGES', - ORDER_DETAILS_MORE_ACTIONS = 'ORDER_DETAILS_MORE_ACTIONS', - ORDER_OVERVIEW_CREATE = 'ORDER_OVERVIEW_CREATE', - ORDER_OVERVIEW_MORE_ACTIONS = 'ORDER_OVERVIEW_MORE_ACTIONS' -} - -/** - * All available ways of opening an app extension. - * - * POPUP - app's extension will be mounted as a popup window - * APP_PAGE - redirect to app's page - * - */ -export enum AppExtensionTargetEnum { - POPUP = 'POPUP', - APP_PAGE = 'APP_PAGE' -} - -export type AppFilterInput = { - search?: InputMaybe; - isActive?: InputMaybe; - type?: InputMaybe; -}; - -export type AppInput = { - /** Name of the app. */ - name?: InputMaybe; - /** List of permission code names to assign to this app. */ - permissions?: InputMaybe>; -}; - -export type AppInstallInput = { - /** Name of the app to install. */ - appName?: InputMaybe; - /** Url to app's manifest in JSON format. */ - manifestUrl?: InputMaybe; - /** Determine if app will be set active or not. */ - activateAfterInstallation?: InputMaybe; - /** List of permission code names to assign to this app. */ - permissions?: InputMaybe>; -}; - -export enum AppSortField { - /** Sort apps by name. */ - NAME = 'NAME', - /** Sort apps by creation date. */ - CREATION_DATE = 'CREATION_DATE' -} - -export type AppSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort apps by the selected field. */ - field: AppSortField; -}; - -export type AppTokenInput = { - /** Name of the token. */ - name?: InputMaybe; - /** ID of app. */ - app: Scalars['ID']; -}; - -/** Enum determining type of your App. */ -export enum AppTypeEnum { - /** Local Saleor App. The app is fully manageable from dashboard. You can change assigned permissions, add webhooks, or authentication token */ - LOCAL = 'LOCAL', - /** Third party external App. Installation is fully automated. Saleor uses a defined App manifest to gather all required information. */ - THIRDPARTY = 'THIRDPARTY' -} - -/** An enumeration. */ -export enum AreaUnitsEnum { - SQ_CM = 'SQ_CM', - SQ_M = 'SQ_M', - SQ_KM = 'SQ_KM', - SQ_FT = 'SQ_FT', - SQ_YD = 'SQ_YD', - SQ_INCH = 'SQ_INCH' -} - -export enum AttributeChoicesSortField { - /** Sort attribute choice by name. */ - NAME = 'NAME', - /** Sort attribute choice by slug. */ - SLUG = 'SLUG' -} - -export type AttributeChoicesSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort attribute choices by the selected field. */ - field: AttributeChoicesSortField; -}; - -export type AttributeCreateInput = { - /** The input type to use for entering attribute values in the dashboard. */ - inputType?: InputMaybe; - /** The entity type which can be used as a reference. */ - entityType?: InputMaybe; - /** Name of an attribute displayed in the interface. */ - name: Scalars['String']; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** The attribute type. */ - type: AttributeTypeEnum; - /** The unit of attribute values. */ - unit?: InputMaybe; - /** List of attribute's values. */ - values?: InputMaybe>; - /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; - /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; - /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; - /** - * Whether the attribute can be filtered in storefront. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - filterableInStorefront?: InputMaybe; - /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; - /** - * The position of the attribute in the storefront navigation (0 by default). - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - storefrontSearchPosition?: InputMaybe; - /** - * Whether the attribute can be displayed in the admin product list. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - availableInGrid?: InputMaybe; - /** - * External ID of this attribute. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; -}; - -/** An enumeration. */ -export enum AttributeEntityTypeEnum { - PAGE = 'PAGE', - PRODUCT = 'PRODUCT', - PRODUCT_VARIANT = 'PRODUCT_VARIANT' -} - -export type AttributeEntityTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -/** An enumeration. */ -export enum AttributeErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type AttributeFilterInput = { - valueRequired?: InputMaybe; - isVariantOnly?: InputMaybe; - visibleInStorefront?: InputMaybe; - filterableInStorefront?: InputMaybe; - filterableInDashboard?: InputMaybe; - availableInGrid?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - ids?: InputMaybe>; - type?: InputMaybe; - inCollection?: InputMaybe; - inCategory?: InputMaybe; - slugs?: InputMaybe>; - /** - * Specifies the channel by which the data should be filtered. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; -}; - -export type AttributeInput = { - /** Internal representation of an attribute name. */ - slug: Scalars['String']; - /** Internal representation of a value (unique per attribute). */ - values?: InputMaybe>; - /** The range that the returned values should be in. */ - valuesRange?: InputMaybe; - /** The date/time range that the returned values should be in. */ - dateTime?: InputMaybe; - /** The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. */ - date?: InputMaybe; - /** The boolean value of the attribute. */ - boolean?: InputMaybe; -}; - -/** An enumeration. */ -export enum AttributeInputTypeEnum { - DROPDOWN = 'DROPDOWN', - MULTISELECT = 'MULTISELECT', - FILE = 'FILE', - REFERENCE = 'REFERENCE', - NUMERIC = 'NUMERIC', - RICH_TEXT = 'RICH_TEXT', - PLAIN_TEXT = 'PLAIN_TEXT', - SWATCH = 'SWATCH', - BOOLEAN = 'BOOLEAN', - DATE = 'DATE', - DATE_TIME = 'DATE_TIME' -} - -export type AttributeInputTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum AttributeSortField { - /** Sort attributes by name */ - NAME = 'NAME', - /** Sort attributes by slug */ - SLUG = 'SLUG', - /** Sort attributes by the value required flag */ - VALUE_REQUIRED = 'VALUE_REQUIRED', - /** Sort attributes by the variant only flag */ - IS_VARIANT_ONLY = 'IS_VARIANT_ONLY', - /** Sort attributes by visibility in the storefront */ - VISIBLE_IN_STOREFRONT = 'VISIBLE_IN_STOREFRONT', - /** Sort attributes by the filterable in storefront flag */ - FILTERABLE_IN_STOREFRONT = 'FILTERABLE_IN_STOREFRONT', - /** Sort attributes by the filterable in dashboard flag */ - FILTERABLE_IN_DASHBOARD = 'FILTERABLE_IN_DASHBOARD', - /** Sort attributes by their position in storefront */ - STOREFRONT_SEARCH_POSITION = 'STOREFRONT_SEARCH_POSITION', - /** Sort attributes based on whether they can be displayed or not in a product grid. */ - AVAILABLE_IN_GRID = 'AVAILABLE_IN_GRID' -} - -export type AttributeSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort attributes by the selected field. */ - field: AttributeSortField; -}; - -/** An enumeration. */ -export enum AttributeTypeEnum { - PRODUCT_TYPE = 'PRODUCT_TYPE', - PAGE_TYPE = 'PAGE_TYPE' -} - -export type AttributeTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export type AttributeUpdateInput = { - /** Name of an attribute displayed in the interface. */ - name?: InputMaybe; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** The unit of attribute values. */ - unit?: InputMaybe; - /** IDs of values to be removed from this attribute. */ - removeValues?: InputMaybe>; - /** New values to be created for this attribute. */ - addValues?: InputMaybe>; - /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; - /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; - /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; - /** - * Whether the attribute can be filtered in storefront. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - filterableInStorefront?: InputMaybe; - /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; - /** - * The position of the attribute in the storefront navigation (0 by default). - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - storefrontSearchPosition?: InputMaybe; - /** - * Whether the attribute can be displayed in the admin product list. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - availableInGrid?: InputMaybe; - /** - * External ID of this product. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; -}; - -export type AttributeValueCreateInput = { - /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; - /** - * Represents the text of the attribute value, includes formatting. - * - * Rich text format. For reference see https://editorjs.io/ - * - * DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - richText?: InputMaybe; - /** - * Represents the text of the attribute value, plain text without formating. - * - * DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - plainText?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; - /** File content type. */ - contentType?: InputMaybe; - /** - * External ID of this attribute value. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** Name of a value displayed in the interface. */ - name: Scalars['String']; -}; - -export type AttributeValueFilterInput = { - search?: InputMaybe; - ids?: InputMaybe>; -}; - -export type AttributeValueInput = { - /** ID of the selected attribute. */ - id?: InputMaybe; - /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. This field will be removed in Saleor 4.0. */ - values?: InputMaybe>; - /** - * Attribute value ID. - * - * Added in Saleor 3.9. - */ - dropdown?: InputMaybe; - /** - * Attribute value ID. - * - * Added in Saleor 3.9. - */ - swatch?: InputMaybe; - /** - * List of attribute value IDs. - * - * Added in Saleor 3.9. - */ - multiselect?: InputMaybe>; - /** - * Numeric value of an attribute. - * - * Added in Saleor 3.9. - */ - numeric?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - file?: InputMaybe; - /** File content type. */ - contentType?: InputMaybe; - /** List of entity IDs that will be used as references. */ - references?: InputMaybe>; - /** Text content in JSON format. */ - richText?: InputMaybe; - /** Plain text content. */ - plainText?: InputMaybe; - /** Represents the boolean value of the attribute value. */ - boolean?: InputMaybe; - /** Represents the date value of the attribute value. */ - date?: InputMaybe; - /** Represents the date/time value of the attribute value. */ - dateTime?: InputMaybe; -}; - -/** - * Represents attribute value. If no ID provided, value will be resolved. - * - * Added in Saleor 3.9. - */ -export type AttributeValueSelectableTypeInput = { - /** ID of an attribute value. */ - id?: InputMaybe; - /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ - value?: InputMaybe; -}; - -export type AttributeValueTranslationInput = { - name?: InputMaybe; - /** - * Translated text. - * - * Rich text format. For reference see https://editorjs.io/ - */ - richText?: InputMaybe; - /** Translated text. */ - plainText?: InputMaybe; -}; - -export type AttributeValueUpdateInput = { - /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; - /** - * Represents the text of the attribute value, includes formatting. - * - * Rich text format. For reference see https://editorjs.io/ - * - * DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - richText?: InputMaybe; - /** - * Represents the text of the attribute value, plain text without formating. - * - * DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - plainText?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; - /** File content type. */ - contentType?: InputMaybe; - /** - * External ID of this attribute value. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** Name of a value displayed in the interface. */ - name?: InputMaybe; -}; - -/** - * Where filtering options. - * - * Added in Saleor 3.11. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ -export type AttributeWhereInput = { - valueRequired?: InputMaybe; - visibleInStorefront?: InputMaybe; - filterableInDashboard?: InputMaybe; - metadata?: InputMaybe>; - ids?: InputMaybe>; - name?: InputMaybe; - slug?: InputMaybe; - withChoices?: InputMaybe; - inputType?: InputMaybe; - entityType?: InputMaybe; - type?: InputMaybe; - unit?: InputMaybe; - inCollection?: InputMaybe; - inCategory?: InputMaybe; - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; -}; - -export type BulkAttributeValueInput = { - /** ID of the selected attribute. */ - id?: InputMaybe; - /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ - values?: InputMaybe>; - /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ - boolean?: InputMaybe; -}; - -export type CardInput = { - /** Payment method nonce, a token returned by the appropriate provider's SDK. */ - code: Scalars['String']; - /** Card security code. */ - cvc?: InputMaybe; - /** Information about currency and amount. */ - money: MoneyInput; -}; - -export type CatalogueInput = { - /** Products related to the discount. */ - products?: InputMaybe>; - /** Categories related to the discount. */ - categories?: InputMaybe>; - /** Collections related to the discount. */ - collections?: InputMaybe>; - /** - * Product variant related to the discount. - * - * Added in Saleor 3.1. - */ - variants?: InputMaybe>; -}; - -export type CategoryFilterInput = { - search?: InputMaybe; - metadata?: InputMaybe>; - ids?: InputMaybe>; - slugs?: InputMaybe>; -}; - -export type CategoryInput = { - /** - * Category description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Category name. */ - name?: InputMaybe; - /** Category slug. */ - slug?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for a product media. */ - backgroundImageAlt?: InputMaybe; - /** - * Fields required to update the category metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the category private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; -}; - -export enum CategorySortField { - /** Sort categories by name. */ - NAME = 'NAME', - /** Sort categories by product count. */ - PRODUCT_COUNT = 'PRODUCT_COUNT', - /** Sort categories by subcategory count. */ - SUBCATEGORY_COUNT = 'SUBCATEGORY_COUNT' -} - -export type CategorySortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** - * Specifies the channel in which to sort the data. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Sort categories by the selected field. */ - field: CategorySortField; -}; - -export type ChannelCreateInput = { - /** isActive flag. */ - isActive?: InputMaybe; - /** - * The channel stock settings. - * - * Added in Saleor 3.7. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - stockSettings?: InputMaybe; - /** List of shipping zones to assign to the channel. */ - addShippingZones?: InputMaybe>; - /** - * List of warehouses to assign to the channel. - * - * Added in Saleor 3.5. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - addWarehouses?: InputMaybe>; - /** - * The channel order settings - * - * Added in Saleor 3.12. - */ - orderSettings?: InputMaybe; - /** Name of the channel. */ - name: Scalars['String']; - /** Slug of the channel. */ - slug: Scalars['String']; - /** Currency of the channel. */ - currencyCode: Scalars['String']; - /** - * Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - defaultCountry: CountryCode; -}; - -export type ChannelDeleteInput = { - /** ID of channel to migrate orders from origin channel. */ - channelId: Scalars['ID']; -}; - -/** An enumeration. */ -export enum ChannelErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - CHANNELS_CURRENCY_MUST_BE_THE_SAME = 'CHANNELS_CURRENCY_MUST_BE_THE_SAME', - CHANNEL_WITH_ORDERS = 'CHANNEL_WITH_ORDERS', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM' -} - -export type ChannelListingUpdateInput = { - /** ID of a channel listing. */ - channelListing: Scalars['ID']; - /** Price of the particular variant in channel. */ - price?: InputMaybe; - /** Cost price of the variant in channel. */ - costPrice?: InputMaybe; - /** The threshold for preorder variant in channel. */ - preorderThreshold?: InputMaybe; -}; - -export type ChannelUpdateInput = { - /** isActive flag. */ - isActive?: InputMaybe; - /** - * The channel stock settings. - * - * Added in Saleor 3.7. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - stockSettings?: InputMaybe; - /** List of shipping zones to assign to the channel. */ - addShippingZones?: InputMaybe>; - /** - * List of warehouses to assign to the channel. - * - * Added in Saleor 3.5. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - addWarehouses?: InputMaybe>; - /** - * The channel order settings - * - * Added in Saleor 3.12. - */ - orderSettings?: InputMaybe; - /** Name of the channel. */ - name?: InputMaybe; - /** Slug of the channel. */ - slug?: InputMaybe; - /** - * Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. - * - * Added in Saleor 3.1. - */ - defaultCountry?: InputMaybe; - /** List of shipping zones to unassign from the channel. */ - removeShippingZones?: InputMaybe>; - /** - * List of warehouses to unassign from the channel. - * - * Added in Saleor 3.5. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - removeWarehouses?: InputMaybe>; -}; - -export type CheckoutAddressValidationRules = { - /** Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input. */ - checkRequiredFields?: InputMaybe; - /** Determines if an error should be raised when the provided address doesn't match the expected format. Example: using letters for postal code when the numbers are expected. */ - checkFieldsFormat?: InputMaybe; - /** Determines if Saleor should apply normalization on address fields. Example: converting city field to uppercase letters. */ - enableFieldsNormalization?: InputMaybe; -}; - -export type CheckoutCreateInput = { - /** Slug of a channel in which to create a checkout. */ - channel?: InputMaybe; - /** A list of checkout lines, each containing information about an item in the checkout. */ - lines: Array; - /** The customer's email address. */ - email?: InputMaybe; - /** The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn't contain shippable items. */ - shippingAddress?: InputMaybe; - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** Checkout language code. */ - languageCode?: InputMaybe; - /** - * The checkout validation rules that can be changed. - * - * Added in Saleor 3.5. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - validationRules?: InputMaybe; -}; - -/** An enumeration. */ -export enum CheckoutErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CHECKOUT_NOT_FULLY_PAID = 'CHECKOUT_NOT_FULLY_PAID', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID = 'INVALID', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - NOT_FOUND = 'NOT_FOUND', - PAYMENT_ERROR = 'PAYMENT_ERROR', - QUANTITY_GREATER_THAN_LIMIT = 'QUANTITY_GREATER_THAN_LIMIT', - REQUIRED = 'REQUIRED', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - SHIPPING_METHOD_NOT_APPLICABLE = 'SHIPPING_METHOD_NOT_APPLICABLE', - DELIVERY_METHOD_NOT_APPLICABLE = 'DELIVERY_METHOD_NOT_APPLICABLE', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - SHIPPING_NOT_REQUIRED = 'SHIPPING_NOT_REQUIRED', - TAX_ERROR = 'TAX_ERROR', - UNIQUE = 'UNIQUE', - VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE', - GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', - ZERO_QUANTITY = 'ZERO_QUANTITY', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - NO_LINES = 'NO_LINES', - INACTIVE_PAYMENT = 'INACTIVE_PAYMENT' -} - -export type CheckoutFilterInput = { - customer?: InputMaybe; - created?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - channels?: InputMaybe>; -}; - -export type CheckoutLineInput = { - /** The number of items purchased. */ - quantity: Scalars['Int']; - /** ID of the product variant. */ - variantId: Scalars['ID']; - /** - * Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - price?: InputMaybe; - /** - * Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. - * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - forceNewLine?: InputMaybe; - /** - * Fields required to update the object's metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; -}; - -export type CheckoutLineUpdateInput = { - /** - * ID of the product variant. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. - */ - variantId?: InputMaybe; - /** The number of items purchased. Optional for apps, required for any other users. */ - quantity?: InputMaybe; - /** - * Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - price?: InputMaybe; - /** - * ID of the line. - * - * Added in Saleor 3.6. - */ - lineId?: InputMaybe; -}; - -export enum CheckoutSortField { - /** Sort checkouts by creation date. */ - CREATION_DATE = 'CREATION_DATE', - /** Sort checkouts by customer. */ - CUSTOMER = 'CUSTOMER', - /** Sort checkouts by payment. */ - PAYMENT = 'PAYMENT' -} - -export type CheckoutSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort checkouts by the selected field. */ - field: CheckoutSortField; -}; - -export type CheckoutValidationRules = { - /** The validation rules that can be applied to provided shipping address data. */ - shippingAddress?: InputMaybe; - /** The validation rules that can be applied to provided billing address data. */ - billingAddress?: InputMaybe; -}; - -export type CollectionChannelListingUpdateInput = { - /** List of channels to which the collection should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the collection should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -export type CollectionCreateInput = { - /** Informs whether a collection is published. */ - isPublished?: InputMaybe; - /** Name of the collection. */ - name?: InputMaybe; - /** Slug of the collection. */ - slug?: InputMaybe; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - publicationDate?: InputMaybe; - /** - * Fields required to update the collection metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the collection private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** List of products to be added to the collection. */ - products?: InputMaybe>; -}; - -/** An enumeration. */ -export enum CollectionErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT' -} - -export type CollectionFilterInput = { - published?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - ids?: InputMaybe>; - slugs?: InputMaybe>; - /** - * Specifies the channel by which the data should be filtered. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; -}; - -export type CollectionInput = { - /** Informs whether a collection is published. */ - isPublished?: InputMaybe; - /** Name of the collection. */ - name?: InputMaybe; - /** Slug of the collection. */ - slug?: InputMaybe; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - publicationDate?: InputMaybe; - /** - * Fields required to update the collection metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the collection private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; -}; - -export enum CollectionPublished { - PUBLISHED = 'PUBLISHED', - HIDDEN = 'HIDDEN' -} - -export enum CollectionSortField { - /** Sort collections by name. */ - NAME = 'NAME', - /** - * Sort collections by availability. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - AVAILABILITY = 'AVAILABILITY', - /** Sort collections by product count. */ - PRODUCT_COUNT = 'PRODUCT_COUNT', - /** - * Sort collections by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** - * Sort collections by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED_AT = 'PUBLISHED_AT' -} - -export type CollectionSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** - * Specifies the channel in which to sort the data. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Sort collections by the selected field. */ - field: CollectionSortField; -}; - -export type ConfigurationItemInput = { - /** Name of the field to update. */ - name: Scalars['String']; - /** Value of the given field to update. */ - value?: InputMaybe; -}; - -/** An enumeration. */ -export enum ConfigurationTypeFieldEnum { - STRING = 'STRING', - MULTILINE = 'MULTILINE', - BOOLEAN = 'BOOLEAN', - SECRET = 'SECRET', - PASSWORD = 'PASSWORD', - SECRETMULTILINE = 'SECRETMULTILINE', - OUTPUT = 'OUTPUT' -} - -/** An enumeration. */ -export enum CountryCode { - AF = 'AF', - AX = 'AX', - AL = 'AL', - DZ = 'DZ', - AS = 'AS', - AD = 'AD', - AO = 'AO', - AI = 'AI', - AQ = 'AQ', - AG = 'AG', - AR = 'AR', - AM = 'AM', - AW = 'AW', - AU = 'AU', - AT = 'AT', - AZ = 'AZ', - BS = 'BS', - BH = 'BH', - BD = 'BD', - BB = 'BB', - BY = 'BY', - BE = 'BE', - BZ = 'BZ', - BJ = 'BJ', - BM = 'BM', - BT = 'BT', - BO = 'BO', - BQ = 'BQ', - BA = 'BA', - BW = 'BW', - BV = 'BV', - BR = 'BR', - IO = 'IO', - BN = 'BN', - BG = 'BG', - BF = 'BF', - BI = 'BI', - CV = 'CV', - KH = 'KH', - CM = 'CM', - CA = 'CA', - KY = 'KY', - CF = 'CF', - TD = 'TD', - CL = 'CL', - CN = 'CN', - CX = 'CX', - CC = 'CC', - CO = 'CO', - KM = 'KM', - CG = 'CG', - CD = 'CD', - CK = 'CK', - CR = 'CR', - CI = 'CI', - HR = 'HR', - CU = 'CU', - CW = 'CW', - CY = 'CY', - CZ = 'CZ', - DK = 'DK', - DJ = 'DJ', - DM = 'DM', - DO = 'DO', - EC = 'EC', - EG = 'EG', - SV = 'SV', - GQ = 'GQ', - ER = 'ER', - EE = 'EE', - SZ = 'SZ', - ET = 'ET', - EU = 'EU', - FK = 'FK', - FO = 'FO', - FJ = 'FJ', - FI = 'FI', - FR = 'FR', - GF = 'GF', - PF = 'PF', - TF = 'TF', - GA = 'GA', - GM = 'GM', - GE = 'GE', - DE = 'DE', - GH = 'GH', - GI = 'GI', - GR = 'GR', - GL = 'GL', - GD = 'GD', - GP = 'GP', - GU = 'GU', - GT = 'GT', - GG = 'GG', - GN = 'GN', - GW = 'GW', - GY = 'GY', - HT = 'HT', - HM = 'HM', - VA = 'VA', - HN = 'HN', - HK = 'HK', - HU = 'HU', - IS = 'IS', - IN = 'IN', - ID = 'ID', - IR = 'IR', - IQ = 'IQ', - IE = 'IE', - IM = 'IM', - IL = 'IL', - IT = 'IT', - JM = 'JM', - JP = 'JP', - JE = 'JE', - JO = 'JO', - KZ = 'KZ', - KE = 'KE', - KI = 'KI', - KW = 'KW', - KG = 'KG', - LA = 'LA', - LV = 'LV', - LB = 'LB', - LS = 'LS', - LR = 'LR', - LY = 'LY', - LI = 'LI', - LT = 'LT', - LU = 'LU', - MO = 'MO', - MG = 'MG', - MW = 'MW', - MY = 'MY', - MV = 'MV', - ML = 'ML', - MT = 'MT', - MH = 'MH', - MQ = 'MQ', - MR = 'MR', - MU = 'MU', - YT = 'YT', - MX = 'MX', - FM = 'FM', - MD = 'MD', - MC = 'MC', - MN = 'MN', - ME = 'ME', - MS = 'MS', - MA = 'MA', - MZ = 'MZ', - MM = 'MM', - NA = 'NA', - NR = 'NR', - NP = 'NP', - NL = 'NL', - NC = 'NC', - NZ = 'NZ', - NI = 'NI', - NE = 'NE', - NG = 'NG', - NU = 'NU', - NF = 'NF', - KP = 'KP', - MK = 'MK', - MP = 'MP', - NO = 'NO', - OM = 'OM', - PK = 'PK', - PW = 'PW', - PS = 'PS', - PA = 'PA', - PG = 'PG', - PY = 'PY', - PE = 'PE', - PH = 'PH', - PN = 'PN', - PL = 'PL', - PT = 'PT', - PR = 'PR', - QA = 'QA', - RE = 'RE', - RO = 'RO', - RU = 'RU', - RW = 'RW', - BL = 'BL', - SH = 'SH', - KN = 'KN', - LC = 'LC', - MF = 'MF', - PM = 'PM', - VC = 'VC', - WS = 'WS', - SM = 'SM', - ST = 'ST', - SA = 'SA', - SN = 'SN', - RS = 'RS', - SC = 'SC', - SL = 'SL', - SG = 'SG', - SX = 'SX', - SK = 'SK', - SI = 'SI', - SB = 'SB', - SO = 'SO', - ZA = 'ZA', - GS = 'GS', - KR = 'KR', - SS = 'SS', - ES = 'ES', - LK = 'LK', - SD = 'SD', - SR = 'SR', - SJ = 'SJ', - SE = 'SE', - CH = 'CH', - SY = 'SY', - TW = 'TW', - TJ = 'TJ', - TZ = 'TZ', - TH = 'TH', - TL = 'TL', - TG = 'TG', - TK = 'TK', - TO = 'TO', - TT = 'TT', - TN = 'TN', - TR = 'TR', - TM = 'TM', - TC = 'TC', - TV = 'TV', - UG = 'UG', - UA = 'UA', - AE = 'AE', - GB = 'GB', - UM = 'UM', - US = 'US', - UY = 'UY', - UZ = 'UZ', - VU = 'VU', - VE = 'VE', - VN = 'VN', - VG = 'VG', - VI = 'VI', - WF = 'WF', - EH = 'EH', - YE = 'YE', - ZM = 'ZM', - ZW = 'ZW' -} - -export type CountryFilterInput = { - /** Boolean for filtering countries by having shipping zone assigned.If 'true', return countries with shipping zone assigned.If 'false', return countries without any shipping zone assigned.If the argument is not provided (null), return all countries. */ - attachedToShippingZones?: InputMaybe; -}; - -export type CountryRateInput = { - /** Country in which this rate applies. */ - countryCode: CountryCode; - /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. */ - rate: Scalars['Float']; -}; - -export type CountryRateUpdateInput = { - /** Country in which this rate applies. */ - countryCode: CountryCode; - /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. Provide `null` to remove the particular rate. */ - rate?: InputMaybe; -}; - -/** An enumeration. */ -export enum CustomerEventsEnum { - ACCOUNT_CREATED = 'ACCOUNT_CREATED', - ACCOUNT_ACTIVATED = 'ACCOUNT_ACTIVATED', - ACCOUNT_DEACTIVATED = 'ACCOUNT_DEACTIVATED', - PASSWORD_RESET_LINK_SENT = 'PASSWORD_RESET_LINK_SENT', - PASSWORD_RESET = 'PASSWORD_RESET', - EMAIL_CHANGED_REQUEST = 'EMAIL_CHANGED_REQUEST', - PASSWORD_CHANGED = 'PASSWORD_CHANGED', - EMAIL_CHANGED = 'EMAIL_CHANGED', - PLACED_ORDER = 'PLACED_ORDER', - NOTE_ADDED_TO_ORDER = 'NOTE_ADDED_TO_ORDER', - DIGITAL_LINK_DOWNLOADED = 'DIGITAL_LINK_DOWNLOADED', - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - NAME_ASSIGNED = 'NAME_ASSIGNED', - EMAIL_ASSIGNED = 'EMAIL_ASSIGNED', - NOTE_ADDED = 'NOTE_ADDED' -} - -export type CustomerFilterInput = { - dateJoined?: InputMaybe; - numberOfOrders?: InputMaybe; - placedOrders?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - /** - * Filter by ids. - * - * Added in Saleor 3.8. - */ - ids?: InputMaybe>; - updatedAt?: InputMaybe; -}; - -export type CustomerInput = { - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** A note about the user. */ - note?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** - * External ID of the customer. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; -}; - -export type DateRangeInput = { - /** Start date. */ - gte?: InputMaybe; - /** End date. */ - lte?: InputMaybe; -}; - -export type DateTimeRangeInput = { - /** Start date. */ - gte?: InputMaybe; - /** End date. */ - lte?: InputMaybe; -}; - -export type DigitalContentInput = { - /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars['Boolean']; - /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; - /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; - /** Overwrite default automatic_fulfillment setting for variant. */ - automaticFulfillment?: InputMaybe; - /** - * Fields required to update the digital content metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the digital content private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; -}; - -export type DigitalContentUploadInput = { - /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars['Boolean']; - /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; - /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; - /** Overwrite default automatic_fulfillment setting for variant. */ - automaticFulfillment?: InputMaybe; - /** - * Fields required to update the digital content metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the digital content private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** Represents an file in a multipart request. */ - contentFile: Scalars['Upload']; -}; - -export type DigitalContentUrlCreateInput = { - /** Digital content ID which URL will belong to. */ - content: Scalars['ID']; -}; - -/** An enumeration. */ -export enum DiscountErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM' -} - -export enum DiscountStatusEnum { - ACTIVE = 'ACTIVE', - EXPIRED = 'EXPIRED', - SCHEDULED = 'SCHEDULED' -} - -export enum DiscountValueTypeEnum { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE' -} - -/** An enumeration. */ -export enum DistanceUnitsEnum { - CM = 'CM', - M = 'M', - KM = 'KM', - FT = 'FT', - YD = 'YD', - INCH = 'INCH' -} - -export type DraftOrderCreateInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** Customer associated with the draft order. */ - user?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** Discount amount for the order. */ - discount?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; - /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; - /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; - /** ID of the channel associated with the order. */ - channelId?: InputMaybe; - /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; - /** - * External ID of this order. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** Variant line input consisting of variant ID and quantity of products. */ - lines?: InputMaybe>; -}; - -export type DraftOrderInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** Customer associated with the draft order. */ - user?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** Discount amount for the order. */ - discount?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; - /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; - /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; - /** ID of the channel associated with the order. */ - channelId?: InputMaybe; - /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; - /** - * External ID of this order. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; -}; - -export enum ErrorPolicyEnum { - /** Save what is possible within a single row. If there are errors in an input data row, try to save it partially and skip the invalid part. */ - IGNORE_FAILED = 'IGNORE_FAILED', - /** Reject all rows if there is at least one error in any of them. */ - REJECT_EVERYTHING = 'REJECT_EVERYTHING', - /** Reject rows with errors. */ - REJECT_FAILED_ROWS = 'REJECT_FAILED_ROWS' -} - -export enum EventDeliveryAttemptSortField { - /** Sort event delivery attempts by created at. */ - CREATED_AT = 'CREATED_AT' -} - -export type EventDeliveryAttemptSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort attempts by the selected field. */ - field: EventDeliveryAttemptSortField; -}; - -export type EventDeliveryFilterInput = { - status?: InputMaybe; - eventType?: InputMaybe; -}; - -export enum EventDeliverySortField { - /** Sort event deliveries by created at. */ - CREATED_AT = 'CREATED_AT' -} - -export type EventDeliverySortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort deliveries by the selected field. */ - field: EventDeliverySortField; -}; - -export enum EventDeliveryStatusEnum { - PENDING = 'PENDING', - SUCCESS = 'SUCCESS', - FAILED = 'FAILED' -} - -/** An enumeration. */ -export enum ExportErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -/** An enumeration. */ -export enum ExportEventsEnum { - EXPORT_PENDING = 'EXPORT_PENDING', - EXPORT_SUCCESS = 'EXPORT_SUCCESS', - EXPORT_FAILED = 'EXPORT_FAILED', - EXPORT_DELETED = 'EXPORT_DELETED', - EXPORTED_FILE_SENT = 'EXPORTED_FILE_SENT', - EXPORT_FAILED_INFO_SENT = 'EXPORT_FAILED_INFO_SENT' -} - -export type ExportFileFilterInput = { - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - status?: InputMaybe; - user?: InputMaybe; - app?: InputMaybe; -}; - -export enum ExportFileSortField { - STATUS = 'STATUS', - CREATED_AT = 'CREATED_AT', - UPDATED_AT = 'UPDATED_AT', - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' -} - -export type ExportFileSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort export file by the selected field. */ - field: ExportFileSortField; -}; - -export type ExportGiftCardsInput = { - /** Determine which gift cards should be exported. */ - scope: ExportScope; - /** Filtering options for gift cards. */ - filter?: InputMaybe; - /** List of gift cards IDs to export. */ - ids?: InputMaybe>; - /** Type of exported file. */ - fileType: FileTypesEnum; -}; - -export type ExportInfoInput = { - /** List of attribute ids witch should be exported. */ - attributes?: InputMaybe>; - /** List of warehouse ids witch should be exported. */ - warehouses?: InputMaybe>; - /** List of channels ids which should be exported. */ - channels?: InputMaybe>; - /** List of product fields witch should be exported. */ - fields?: InputMaybe>; -}; - -export type ExportProductsInput = { - /** Determine which products should be exported. */ - scope: ExportScope; - /** Filtering options for products. */ - filter?: InputMaybe; - /** List of products IDs to export. */ - ids?: InputMaybe>; - /** Input with info about fields which should be exported. */ - exportInfo?: InputMaybe; - /** Type of exported file. */ - fileType: FileTypesEnum; -}; - -export enum ExportScope { - /** Export all products. */ - ALL = 'ALL', - /** Export products with given ids. */ - IDS = 'IDS', - /** Export the filtered products. */ - FILTER = 'FILTER' -} - -/** An enumeration. */ -export enum ExternalNotificationErrorCodes { - REQUIRED = 'REQUIRED', - INVALID_MODEL_TYPE = 'INVALID_MODEL_TYPE', - NOT_FOUND = 'NOT_FOUND', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE' -} - -export type ExternalNotificationTriggerInput = { - /** The list of customers or orders node IDs that will be serialized and included in the notification payload. */ - ids: Array; - /** Additional payload that will be merged with the one based on the bussines object ID. */ - extraPayload?: InputMaybe; - /** External event type. This field is passed to a plugin as an event type. */ - externalEventType: Scalars['String']; -}; - -/** An enumeration. */ -export enum FileTypesEnum { - CSV = 'CSV', - XLSX = 'XLSX' -} - -export type FulfillmentCancelInput = { - /** ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. */ - warehouseId?: InputMaybe; -}; - -/** An enumeration. */ -export enum FulfillmentStatus { - FULFILLED = 'FULFILLED', - REFUNDED = 'REFUNDED', - RETURNED = 'RETURNED', - REPLACED = 'REPLACED', - REFUNDED_AND_RETURNED = 'REFUNDED_AND_RETURNED', - CANCELED = 'CANCELED', - WAITING_FOR_APPROVAL = 'WAITING_FOR_APPROVAL' -} - -export type FulfillmentUpdateTrackingInput = { - /** Fulfillment tracking number. */ - trackingNumber?: InputMaybe; - /** If true, send an email notification to the customer. */ - notifyCustomer?: InputMaybe; -}; - -export type GiftCardAddNoteInput = { - /** Note message. */ - message: Scalars['String']; -}; - -export type GiftCardBulkCreateInput = { - /** The number of cards to issue. */ - count: Scalars['Int']; - /** Balance of the gift card. */ - balance: PriceInput; - /** The gift card tags. */ - tags?: InputMaybe>; - /** The gift card expiry date. */ - expiryDate?: InputMaybe; - /** Determine if gift card is active. */ - isActive: Scalars['Boolean']; -}; - -export type GiftCardCreateInput = { - /** - * The gift card tags to add. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - addTags?: InputMaybe>; - /** - * The gift card expiry date. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - expiryDate?: InputMaybe; - /** - * Start date of the gift card in ISO 8601 format. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - startDate?: InputMaybe; - /** - * End date of the gift card in ISO 8601 format. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. - */ - endDate?: InputMaybe; - /** Balance of the gift card. */ - balance: PriceInput; - /** Email of the customer to whom gift card will be sent. */ - userEmail?: InputMaybe; - /** - * Slug of a channel from which the email should be sent. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - channel?: InputMaybe; - /** - * Determine if gift card is active. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - isActive: Scalars['Boolean']; - /** - * Code to use the gift card. - * - * DEPRECATED: this field will be removed in Saleor 4.0. The code is now auto generated. - */ - code?: InputMaybe; - /** - * The gift card note from the staff member. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - note?: InputMaybe; -}; - -/** An enumeration. */ -export enum GiftCardErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - EXPIRED_GIFT_CARD = 'EXPIRED_GIFT_CARD', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM' -} - -export type GiftCardEventFilterInput = { - type?: InputMaybe; - orders?: InputMaybe>; -}; - -/** An enumeration. */ -export enum GiftCardEventsEnum { - ISSUED = 'ISSUED', - BOUGHT = 'BOUGHT', - UPDATED = 'UPDATED', - ACTIVATED = 'ACTIVATED', - DEACTIVATED = 'DEACTIVATED', - BALANCE_RESET = 'BALANCE_RESET', - EXPIRY_DATE_UPDATED = 'EXPIRY_DATE_UPDATED', - TAGS_UPDATED = 'TAGS_UPDATED', - SENT_TO_CUSTOMER = 'SENT_TO_CUSTOMER', - RESENT = 'RESENT', - NOTE_ADDED = 'NOTE_ADDED', - USED_IN_ORDER = 'USED_IN_ORDER' -} - -export type GiftCardFilterInput = { - isActive?: InputMaybe; - metadata?: InputMaybe>; - tags?: InputMaybe>; - products?: InputMaybe>; - usedBy?: InputMaybe>; - used?: InputMaybe; - currency?: InputMaybe; - currentBalance?: InputMaybe; - initialBalance?: InputMaybe; - code?: InputMaybe; -}; - -export type GiftCardResendInput = { - /** ID of a gift card to resend. */ - id: Scalars['ID']; - /** Email to which gift card should be send. */ - email?: InputMaybe; - /** Slug of a channel from which the email should be sent. */ - channel: Scalars['String']; -}; - -/** An enumeration. */ -export enum GiftCardSettingsErrorCode { - INVALID = 'INVALID', - REQUIRED = 'REQUIRED', - GRAPHQL_ERROR = 'GRAPHQL_ERROR' -} - -/** An enumeration. */ -export enum GiftCardSettingsExpiryTypeEnum { - NEVER_EXPIRE = 'NEVER_EXPIRE', - EXPIRY_PERIOD = 'EXPIRY_PERIOD' -} - -export type GiftCardSettingsUpdateInput = { - /** Defines gift card default expiry settings. */ - expiryType?: InputMaybe; - /** Defines gift card expiry period. */ - expiryPeriod?: InputMaybe; -}; - -export enum GiftCardSortField { - /** Sort gift cards by product. */ - PRODUCT = 'PRODUCT', - /** Sort gift cards by used by. */ - USED_BY = 'USED_BY', - /** Sort gift cards by current balance. */ - CURRENT_BALANCE = 'CURRENT_BALANCE', - /** - * Sort gift cards by created at. - * - * Added in Saleor 3.8. - */ - CREATED_AT = 'CREATED_AT' -} - -export type GiftCardSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort gift cards by the selected field. */ - field: GiftCardSortField; -}; - -export type GiftCardTagFilterInput = { - search?: InputMaybe; -}; - -export type GiftCardUpdateInput = { - /** - * The gift card tags to add. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - addTags?: InputMaybe>; - /** - * The gift card expiry date. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - expiryDate?: InputMaybe; - /** - * Start date of the gift card in ISO 8601 format. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - startDate?: InputMaybe; - /** - * End date of the gift card in ISO 8601 format. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. - */ - endDate?: InputMaybe; - /** - * The gift card tags to remove. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - removeTags?: InputMaybe>; - /** - * The gift card balance amount. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - balanceAmount?: InputMaybe; -}; - -export type IntRangeInput = { - /** Value greater than or equal to. */ - gte?: InputMaybe; - /** Value less than or equal to. */ - lte?: InputMaybe; -}; - -export type InvoiceCreateInput = { - /** Invoice number. */ - number: Scalars['String']; - /** URL of an invoice to download. */ - url: Scalars['String']; -}; - -/** An enumeration. */ -export enum InvoiceErrorCode { - REQUIRED = 'REQUIRED', - NOT_READY = 'NOT_READY', - URL_NOT_SET = 'URL_NOT_SET', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - NUMBER_NOT_SET = 'NUMBER_NOT_SET', - NOT_FOUND = 'NOT_FOUND', - INVALID_STATUS = 'INVALID_STATUS', - NO_INVOICE_PLUGIN = 'NO_INVOICE_PLUGIN' -} - -/** An enumeration. */ -export enum JobStatusEnum { - PENDING = 'PENDING', - SUCCESS = 'SUCCESS', - FAILED = 'FAILED', - DELETED = 'DELETED' -} - -/** An enumeration. */ -export enum LanguageCodeEnum { - AF = 'AF', - AF_NA = 'AF_NA', - AF_ZA = 'AF_ZA', - AGQ = 'AGQ', - AGQ_CM = 'AGQ_CM', - AK = 'AK', - AK_GH = 'AK_GH', - AM = 'AM', - AM_ET = 'AM_ET', - AR = 'AR', - AR_AE = 'AR_AE', - AR_BH = 'AR_BH', - AR_DJ = 'AR_DJ', - AR_DZ = 'AR_DZ', - AR_EG = 'AR_EG', - AR_EH = 'AR_EH', - AR_ER = 'AR_ER', - AR_IL = 'AR_IL', - AR_IQ = 'AR_IQ', - AR_JO = 'AR_JO', - AR_KM = 'AR_KM', - AR_KW = 'AR_KW', - AR_LB = 'AR_LB', - AR_LY = 'AR_LY', - AR_MA = 'AR_MA', - AR_MR = 'AR_MR', - AR_OM = 'AR_OM', - AR_PS = 'AR_PS', - AR_QA = 'AR_QA', - AR_SA = 'AR_SA', - AR_SD = 'AR_SD', - AR_SO = 'AR_SO', - AR_SS = 'AR_SS', - AR_SY = 'AR_SY', - AR_TD = 'AR_TD', - AR_TN = 'AR_TN', - AR_YE = 'AR_YE', - AS = 'AS', - AS_IN = 'AS_IN', - ASA = 'ASA', - ASA_TZ = 'ASA_TZ', - AST = 'AST', - AST_ES = 'AST_ES', - AZ = 'AZ', - AZ_CYRL = 'AZ_CYRL', - AZ_CYRL_AZ = 'AZ_CYRL_AZ', - AZ_LATN = 'AZ_LATN', - AZ_LATN_AZ = 'AZ_LATN_AZ', - BAS = 'BAS', - BAS_CM = 'BAS_CM', - BE = 'BE', - BE_BY = 'BE_BY', - BEM = 'BEM', - BEM_ZM = 'BEM_ZM', - BEZ = 'BEZ', - BEZ_TZ = 'BEZ_TZ', - BG = 'BG', - BG_BG = 'BG_BG', - BM = 'BM', - BM_ML = 'BM_ML', - BN = 'BN', - BN_BD = 'BN_BD', - BN_IN = 'BN_IN', - BO = 'BO', - BO_CN = 'BO_CN', - BO_IN = 'BO_IN', - BR = 'BR', - BR_FR = 'BR_FR', - BRX = 'BRX', - BRX_IN = 'BRX_IN', - BS = 'BS', - BS_CYRL = 'BS_CYRL', - BS_CYRL_BA = 'BS_CYRL_BA', - BS_LATN = 'BS_LATN', - BS_LATN_BA = 'BS_LATN_BA', - CA = 'CA', - CA_AD = 'CA_AD', - CA_ES = 'CA_ES', - CA_ES_VALENCIA = 'CA_ES_VALENCIA', - CA_FR = 'CA_FR', - CA_IT = 'CA_IT', - CCP = 'CCP', - CCP_BD = 'CCP_BD', - CCP_IN = 'CCP_IN', - CE = 'CE', - CE_RU = 'CE_RU', - CEB = 'CEB', - CEB_PH = 'CEB_PH', - CGG = 'CGG', - CGG_UG = 'CGG_UG', - CHR = 'CHR', - CHR_US = 'CHR_US', - CKB = 'CKB', - CKB_IQ = 'CKB_IQ', - CKB_IR = 'CKB_IR', - CS = 'CS', - CS_CZ = 'CS_CZ', - CU = 'CU', - CU_RU = 'CU_RU', - CY = 'CY', - CY_GB = 'CY_GB', - DA = 'DA', - DA_DK = 'DA_DK', - DA_GL = 'DA_GL', - DAV = 'DAV', - DAV_KE = 'DAV_KE', - DE = 'DE', - DE_AT = 'DE_AT', - DE_BE = 'DE_BE', - DE_CH = 'DE_CH', - DE_DE = 'DE_DE', - DE_IT = 'DE_IT', - DE_LI = 'DE_LI', - DE_LU = 'DE_LU', - DJE = 'DJE', - DJE_NE = 'DJE_NE', - DSB = 'DSB', - DSB_DE = 'DSB_DE', - DUA = 'DUA', - DUA_CM = 'DUA_CM', - DYO = 'DYO', - DYO_SN = 'DYO_SN', - DZ = 'DZ', - DZ_BT = 'DZ_BT', - EBU = 'EBU', - EBU_KE = 'EBU_KE', - EE = 'EE', - EE_GH = 'EE_GH', - EE_TG = 'EE_TG', - EL = 'EL', - EL_CY = 'EL_CY', - EL_GR = 'EL_GR', - EN = 'EN', - EN_AE = 'EN_AE', - EN_AG = 'EN_AG', - EN_AI = 'EN_AI', - EN_AS = 'EN_AS', - EN_AT = 'EN_AT', - EN_AU = 'EN_AU', - EN_BB = 'EN_BB', - EN_BE = 'EN_BE', - EN_BI = 'EN_BI', - EN_BM = 'EN_BM', - EN_BS = 'EN_BS', - EN_BW = 'EN_BW', - EN_BZ = 'EN_BZ', - EN_CA = 'EN_CA', - EN_CC = 'EN_CC', - EN_CH = 'EN_CH', - EN_CK = 'EN_CK', - EN_CM = 'EN_CM', - EN_CX = 'EN_CX', - EN_CY = 'EN_CY', - EN_DE = 'EN_DE', - EN_DG = 'EN_DG', - EN_DK = 'EN_DK', - EN_DM = 'EN_DM', - EN_ER = 'EN_ER', - EN_FI = 'EN_FI', - EN_FJ = 'EN_FJ', - EN_FK = 'EN_FK', - EN_FM = 'EN_FM', - EN_GB = 'EN_GB', - EN_GD = 'EN_GD', - EN_GG = 'EN_GG', - EN_GH = 'EN_GH', - EN_GI = 'EN_GI', - EN_GM = 'EN_GM', - EN_GU = 'EN_GU', - EN_GY = 'EN_GY', - EN_HK = 'EN_HK', - EN_IE = 'EN_IE', - EN_IL = 'EN_IL', - EN_IM = 'EN_IM', - EN_IN = 'EN_IN', - EN_IO = 'EN_IO', - EN_JE = 'EN_JE', - EN_JM = 'EN_JM', - EN_KE = 'EN_KE', - EN_KI = 'EN_KI', - EN_KN = 'EN_KN', - EN_KY = 'EN_KY', - EN_LC = 'EN_LC', - EN_LR = 'EN_LR', - EN_LS = 'EN_LS', - EN_MG = 'EN_MG', - EN_MH = 'EN_MH', - EN_MO = 'EN_MO', - EN_MP = 'EN_MP', - EN_MS = 'EN_MS', - EN_MT = 'EN_MT', - EN_MU = 'EN_MU', - EN_MW = 'EN_MW', - EN_MY = 'EN_MY', - EN_NA = 'EN_NA', - EN_NF = 'EN_NF', - EN_NG = 'EN_NG', - EN_NL = 'EN_NL', - EN_NR = 'EN_NR', - EN_NU = 'EN_NU', - EN_NZ = 'EN_NZ', - EN_PG = 'EN_PG', - EN_PH = 'EN_PH', - EN_PK = 'EN_PK', - EN_PN = 'EN_PN', - EN_PR = 'EN_PR', - EN_PW = 'EN_PW', - EN_RW = 'EN_RW', - EN_SB = 'EN_SB', - EN_SC = 'EN_SC', - EN_SD = 'EN_SD', - EN_SE = 'EN_SE', - EN_SG = 'EN_SG', - EN_SH = 'EN_SH', - EN_SI = 'EN_SI', - EN_SL = 'EN_SL', - EN_SS = 'EN_SS', - EN_SX = 'EN_SX', - EN_SZ = 'EN_SZ', - EN_TC = 'EN_TC', - EN_TK = 'EN_TK', - EN_TO = 'EN_TO', - EN_TT = 'EN_TT', - EN_TV = 'EN_TV', - EN_TZ = 'EN_TZ', - EN_UG = 'EN_UG', - EN_UM = 'EN_UM', - EN_US = 'EN_US', - EN_VC = 'EN_VC', - EN_VG = 'EN_VG', - EN_VI = 'EN_VI', - EN_VU = 'EN_VU', - EN_WS = 'EN_WS', - EN_ZA = 'EN_ZA', - EN_ZM = 'EN_ZM', - EN_ZW = 'EN_ZW', - EO = 'EO', - ES = 'ES', - ES_AR = 'ES_AR', - ES_BO = 'ES_BO', - ES_BR = 'ES_BR', - ES_BZ = 'ES_BZ', - ES_CL = 'ES_CL', - ES_CO = 'ES_CO', - ES_CR = 'ES_CR', - ES_CU = 'ES_CU', - ES_DO = 'ES_DO', - ES_EA = 'ES_EA', - ES_EC = 'ES_EC', - ES_ES = 'ES_ES', - ES_GQ = 'ES_GQ', - ES_GT = 'ES_GT', - ES_HN = 'ES_HN', - ES_IC = 'ES_IC', - ES_MX = 'ES_MX', - ES_NI = 'ES_NI', - ES_PA = 'ES_PA', - ES_PE = 'ES_PE', - ES_PH = 'ES_PH', - ES_PR = 'ES_PR', - ES_PY = 'ES_PY', - ES_SV = 'ES_SV', - ES_US = 'ES_US', - ES_UY = 'ES_UY', - ES_VE = 'ES_VE', - ET = 'ET', - ET_EE = 'ET_EE', - EU = 'EU', - EU_ES = 'EU_ES', - EWO = 'EWO', - EWO_CM = 'EWO_CM', - FA = 'FA', - FA_AF = 'FA_AF', - FA_IR = 'FA_IR', - FF = 'FF', - FF_ADLM = 'FF_ADLM', - FF_ADLM_BF = 'FF_ADLM_BF', - FF_ADLM_CM = 'FF_ADLM_CM', - FF_ADLM_GH = 'FF_ADLM_GH', - FF_ADLM_GM = 'FF_ADLM_GM', - FF_ADLM_GN = 'FF_ADLM_GN', - FF_ADLM_GW = 'FF_ADLM_GW', - FF_ADLM_LR = 'FF_ADLM_LR', - FF_ADLM_MR = 'FF_ADLM_MR', - FF_ADLM_NE = 'FF_ADLM_NE', - FF_ADLM_NG = 'FF_ADLM_NG', - FF_ADLM_SL = 'FF_ADLM_SL', - FF_ADLM_SN = 'FF_ADLM_SN', - FF_LATN = 'FF_LATN', - FF_LATN_BF = 'FF_LATN_BF', - FF_LATN_CM = 'FF_LATN_CM', - FF_LATN_GH = 'FF_LATN_GH', - FF_LATN_GM = 'FF_LATN_GM', - FF_LATN_GN = 'FF_LATN_GN', - FF_LATN_GW = 'FF_LATN_GW', - FF_LATN_LR = 'FF_LATN_LR', - FF_LATN_MR = 'FF_LATN_MR', - FF_LATN_NE = 'FF_LATN_NE', - FF_LATN_NG = 'FF_LATN_NG', - FF_LATN_SL = 'FF_LATN_SL', - FF_LATN_SN = 'FF_LATN_SN', - FI = 'FI', - FI_FI = 'FI_FI', - FIL = 'FIL', - FIL_PH = 'FIL_PH', - FO = 'FO', - FO_DK = 'FO_DK', - FO_FO = 'FO_FO', - FR = 'FR', - FR_BE = 'FR_BE', - FR_BF = 'FR_BF', - FR_BI = 'FR_BI', - FR_BJ = 'FR_BJ', - FR_BL = 'FR_BL', - FR_CA = 'FR_CA', - FR_CD = 'FR_CD', - FR_CF = 'FR_CF', - FR_CG = 'FR_CG', - FR_CH = 'FR_CH', - FR_CI = 'FR_CI', - FR_CM = 'FR_CM', - FR_DJ = 'FR_DJ', - FR_DZ = 'FR_DZ', - FR_FR = 'FR_FR', - FR_GA = 'FR_GA', - FR_GF = 'FR_GF', - FR_GN = 'FR_GN', - FR_GP = 'FR_GP', - FR_GQ = 'FR_GQ', - FR_HT = 'FR_HT', - FR_KM = 'FR_KM', - FR_LU = 'FR_LU', - FR_MA = 'FR_MA', - FR_MC = 'FR_MC', - FR_MF = 'FR_MF', - FR_MG = 'FR_MG', - FR_ML = 'FR_ML', - FR_MQ = 'FR_MQ', - FR_MR = 'FR_MR', - FR_MU = 'FR_MU', - FR_NC = 'FR_NC', - FR_NE = 'FR_NE', - FR_PF = 'FR_PF', - FR_PM = 'FR_PM', - FR_RE = 'FR_RE', - FR_RW = 'FR_RW', - FR_SC = 'FR_SC', - FR_SN = 'FR_SN', - FR_SY = 'FR_SY', - FR_TD = 'FR_TD', - FR_TG = 'FR_TG', - FR_TN = 'FR_TN', - FR_VU = 'FR_VU', - FR_WF = 'FR_WF', - FR_YT = 'FR_YT', - FUR = 'FUR', - FUR_IT = 'FUR_IT', - FY = 'FY', - FY_NL = 'FY_NL', - GA = 'GA', - GA_GB = 'GA_GB', - GA_IE = 'GA_IE', - GD = 'GD', - GD_GB = 'GD_GB', - GL = 'GL', - GL_ES = 'GL_ES', - GSW = 'GSW', - GSW_CH = 'GSW_CH', - GSW_FR = 'GSW_FR', - GSW_LI = 'GSW_LI', - GU = 'GU', - GU_IN = 'GU_IN', - GUZ = 'GUZ', - GUZ_KE = 'GUZ_KE', - GV = 'GV', - GV_IM = 'GV_IM', - HA = 'HA', - HA_GH = 'HA_GH', - HA_NE = 'HA_NE', - HA_NG = 'HA_NG', - HAW = 'HAW', - HAW_US = 'HAW_US', - HE = 'HE', - HE_IL = 'HE_IL', - HI = 'HI', - HI_IN = 'HI_IN', - HR = 'HR', - HR_BA = 'HR_BA', - HR_HR = 'HR_HR', - HSB = 'HSB', - HSB_DE = 'HSB_DE', - HU = 'HU', - HU_HU = 'HU_HU', - HY = 'HY', - HY_AM = 'HY_AM', - IA = 'IA', - ID = 'ID', - ID_ID = 'ID_ID', - IG = 'IG', - IG_NG = 'IG_NG', - II = 'II', - II_CN = 'II_CN', - IS = 'IS', - IS_IS = 'IS_IS', - IT = 'IT', - IT_CH = 'IT_CH', - IT_IT = 'IT_IT', - IT_SM = 'IT_SM', - IT_VA = 'IT_VA', - JA = 'JA', - JA_JP = 'JA_JP', - JGO = 'JGO', - JGO_CM = 'JGO_CM', - JMC = 'JMC', - JMC_TZ = 'JMC_TZ', - JV = 'JV', - JV_ID = 'JV_ID', - KA = 'KA', - KA_GE = 'KA_GE', - KAB = 'KAB', - KAB_DZ = 'KAB_DZ', - KAM = 'KAM', - KAM_KE = 'KAM_KE', - KDE = 'KDE', - KDE_TZ = 'KDE_TZ', - KEA = 'KEA', - KEA_CV = 'KEA_CV', - KHQ = 'KHQ', - KHQ_ML = 'KHQ_ML', - KI = 'KI', - KI_KE = 'KI_KE', - KK = 'KK', - KK_KZ = 'KK_KZ', - KKJ = 'KKJ', - KKJ_CM = 'KKJ_CM', - KL = 'KL', - KL_GL = 'KL_GL', - KLN = 'KLN', - KLN_KE = 'KLN_KE', - KM = 'KM', - KM_KH = 'KM_KH', - KN = 'KN', - KN_IN = 'KN_IN', - KO = 'KO', - KO_KP = 'KO_KP', - KO_KR = 'KO_KR', - KOK = 'KOK', - KOK_IN = 'KOK_IN', - KS = 'KS', - KS_ARAB = 'KS_ARAB', - KS_ARAB_IN = 'KS_ARAB_IN', - KSB = 'KSB', - KSB_TZ = 'KSB_TZ', - KSF = 'KSF', - KSF_CM = 'KSF_CM', - KSH = 'KSH', - KSH_DE = 'KSH_DE', - KU = 'KU', - KU_TR = 'KU_TR', - KW = 'KW', - KW_GB = 'KW_GB', - KY = 'KY', - KY_KG = 'KY_KG', - LAG = 'LAG', - LAG_TZ = 'LAG_TZ', - LB = 'LB', - LB_LU = 'LB_LU', - LG = 'LG', - LG_UG = 'LG_UG', - LKT = 'LKT', - LKT_US = 'LKT_US', - LN = 'LN', - LN_AO = 'LN_AO', - LN_CD = 'LN_CD', - LN_CF = 'LN_CF', - LN_CG = 'LN_CG', - LO = 'LO', - LO_LA = 'LO_LA', - LRC = 'LRC', - LRC_IQ = 'LRC_IQ', - LRC_IR = 'LRC_IR', - LT = 'LT', - LT_LT = 'LT_LT', - LU = 'LU', - LU_CD = 'LU_CD', - LUO = 'LUO', - LUO_KE = 'LUO_KE', - LUY = 'LUY', - LUY_KE = 'LUY_KE', - LV = 'LV', - LV_LV = 'LV_LV', - MAI = 'MAI', - MAI_IN = 'MAI_IN', - MAS = 'MAS', - MAS_KE = 'MAS_KE', - MAS_TZ = 'MAS_TZ', - MER = 'MER', - MER_KE = 'MER_KE', - MFE = 'MFE', - MFE_MU = 'MFE_MU', - MG = 'MG', - MG_MG = 'MG_MG', - MGH = 'MGH', - MGH_MZ = 'MGH_MZ', - MGO = 'MGO', - MGO_CM = 'MGO_CM', - MI = 'MI', - MI_NZ = 'MI_NZ', - MK = 'MK', - MK_MK = 'MK_MK', - ML = 'ML', - ML_IN = 'ML_IN', - MN = 'MN', - MN_MN = 'MN_MN', - MNI = 'MNI', - MNI_BENG = 'MNI_BENG', - MNI_BENG_IN = 'MNI_BENG_IN', - MR = 'MR', - MR_IN = 'MR_IN', - MS = 'MS', - MS_BN = 'MS_BN', - MS_ID = 'MS_ID', - MS_MY = 'MS_MY', - MS_SG = 'MS_SG', - MT = 'MT', - MT_MT = 'MT_MT', - MUA = 'MUA', - MUA_CM = 'MUA_CM', - MY = 'MY', - MY_MM = 'MY_MM', - MZN = 'MZN', - MZN_IR = 'MZN_IR', - NAQ = 'NAQ', - NAQ_NA = 'NAQ_NA', - NB = 'NB', - NB_NO = 'NB_NO', - NB_SJ = 'NB_SJ', - ND = 'ND', - ND_ZW = 'ND_ZW', - NDS = 'NDS', - NDS_DE = 'NDS_DE', - NDS_NL = 'NDS_NL', - NE = 'NE', - NE_IN = 'NE_IN', - NE_NP = 'NE_NP', - NL = 'NL', - NL_AW = 'NL_AW', - NL_BE = 'NL_BE', - NL_BQ = 'NL_BQ', - NL_CW = 'NL_CW', - NL_NL = 'NL_NL', - NL_SR = 'NL_SR', - NL_SX = 'NL_SX', - NMG = 'NMG', - NMG_CM = 'NMG_CM', - NN = 'NN', - NN_NO = 'NN_NO', - NNH = 'NNH', - NNH_CM = 'NNH_CM', - NUS = 'NUS', - NUS_SS = 'NUS_SS', - NYN = 'NYN', - NYN_UG = 'NYN_UG', - OM = 'OM', - OM_ET = 'OM_ET', - OM_KE = 'OM_KE', - OR = 'OR', - OR_IN = 'OR_IN', - OS = 'OS', - OS_GE = 'OS_GE', - OS_RU = 'OS_RU', - PA = 'PA', - PA_ARAB = 'PA_ARAB', - PA_ARAB_PK = 'PA_ARAB_PK', - PA_GURU = 'PA_GURU', - PA_GURU_IN = 'PA_GURU_IN', - PCM = 'PCM', - PCM_NG = 'PCM_NG', - PL = 'PL', - PL_PL = 'PL_PL', - PRG = 'PRG', - PS = 'PS', - PS_AF = 'PS_AF', - PS_PK = 'PS_PK', - PT = 'PT', - PT_AO = 'PT_AO', - PT_BR = 'PT_BR', - PT_CH = 'PT_CH', - PT_CV = 'PT_CV', - PT_GQ = 'PT_GQ', - PT_GW = 'PT_GW', - PT_LU = 'PT_LU', - PT_MO = 'PT_MO', - PT_MZ = 'PT_MZ', - PT_PT = 'PT_PT', - PT_ST = 'PT_ST', - PT_TL = 'PT_TL', - QU = 'QU', - QU_BO = 'QU_BO', - QU_EC = 'QU_EC', - QU_PE = 'QU_PE', - RM = 'RM', - RM_CH = 'RM_CH', - RN = 'RN', - RN_BI = 'RN_BI', - RO = 'RO', - RO_MD = 'RO_MD', - RO_RO = 'RO_RO', - ROF = 'ROF', - ROF_TZ = 'ROF_TZ', - RU = 'RU', - RU_BY = 'RU_BY', - RU_KG = 'RU_KG', - RU_KZ = 'RU_KZ', - RU_MD = 'RU_MD', - RU_RU = 'RU_RU', - RU_UA = 'RU_UA', - RW = 'RW', - RW_RW = 'RW_RW', - RWK = 'RWK', - RWK_TZ = 'RWK_TZ', - SAH = 'SAH', - SAH_RU = 'SAH_RU', - SAQ = 'SAQ', - SAQ_KE = 'SAQ_KE', - SAT = 'SAT', - SAT_OLCK = 'SAT_OLCK', - SAT_OLCK_IN = 'SAT_OLCK_IN', - SBP = 'SBP', - SBP_TZ = 'SBP_TZ', - SD = 'SD', - SD_ARAB = 'SD_ARAB', - SD_ARAB_PK = 'SD_ARAB_PK', - SD_DEVA = 'SD_DEVA', - SD_DEVA_IN = 'SD_DEVA_IN', - SE = 'SE', - SE_FI = 'SE_FI', - SE_NO = 'SE_NO', - SE_SE = 'SE_SE', - SEH = 'SEH', - SEH_MZ = 'SEH_MZ', - SES = 'SES', - SES_ML = 'SES_ML', - SG = 'SG', - SG_CF = 'SG_CF', - SHI = 'SHI', - SHI_LATN = 'SHI_LATN', - SHI_LATN_MA = 'SHI_LATN_MA', - SHI_TFNG = 'SHI_TFNG', - SHI_TFNG_MA = 'SHI_TFNG_MA', - SI = 'SI', - SI_LK = 'SI_LK', - SK = 'SK', - SK_SK = 'SK_SK', - SL = 'SL', - SL_SI = 'SL_SI', - SMN = 'SMN', - SMN_FI = 'SMN_FI', - SN = 'SN', - SN_ZW = 'SN_ZW', - SO = 'SO', - SO_DJ = 'SO_DJ', - SO_ET = 'SO_ET', - SO_KE = 'SO_KE', - SO_SO = 'SO_SO', - SQ = 'SQ', - SQ_AL = 'SQ_AL', - SQ_MK = 'SQ_MK', - SQ_XK = 'SQ_XK', - SR = 'SR', - SR_CYRL = 'SR_CYRL', - SR_CYRL_BA = 'SR_CYRL_BA', - SR_CYRL_ME = 'SR_CYRL_ME', - SR_CYRL_RS = 'SR_CYRL_RS', - SR_CYRL_XK = 'SR_CYRL_XK', - SR_LATN = 'SR_LATN', - SR_LATN_BA = 'SR_LATN_BA', - SR_LATN_ME = 'SR_LATN_ME', - SR_LATN_RS = 'SR_LATN_RS', - SR_LATN_XK = 'SR_LATN_XK', - SU = 'SU', - SU_LATN = 'SU_LATN', - SU_LATN_ID = 'SU_LATN_ID', - SV = 'SV', - SV_AX = 'SV_AX', - SV_FI = 'SV_FI', - SV_SE = 'SV_SE', - SW = 'SW', - SW_CD = 'SW_CD', - SW_KE = 'SW_KE', - SW_TZ = 'SW_TZ', - SW_UG = 'SW_UG', - TA = 'TA', - TA_IN = 'TA_IN', - TA_LK = 'TA_LK', - TA_MY = 'TA_MY', - TA_SG = 'TA_SG', - TE = 'TE', - TE_IN = 'TE_IN', - TEO = 'TEO', - TEO_KE = 'TEO_KE', - TEO_UG = 'TEO_UG', - TG = 'TG', - TG_TJ = 'TG_TJ', - TH = 'TH', - TH_TH = 'TH_TH', - TI = 'TI', - TI_ER = 'TI_ER', - TI_ET = 'TI_ET', - TK = 'TK', - TK_TM = 'TK_TM', - TO = 'TO', - TO_TO = 'TO_TO', - TR = 'TR', - TR_CY = 'TR_CY', - TR_TR = 'TR_TR', - TT = 'TT', - TT_RU = 'TT_RU', - TWQ = 'TWQ', - TWQ_NE = 'TWQ_NE', - TZM = 'TZM', - TZM_MA = 'TZM_MA', - UG = 'UG', - UG_CN = 'UG_CN', - UK = 'UK', - UK_UA = 'UK_UA', - UR = 'UR', - UR_IN = 'UR_IN', - UR_PK = 'UR_PK', - UZ = 'UZ', - UZ_ARAB = 'UZ_ARAB', - UZ_ARAB_AF = 'UZ_ARAB_AF', - UZ_CYRL = 'UZ_CYRL', - UZ_CYRL_UZ = 'UZ_CYRL_UZ', - UZ_LATN = 'UZ_LATN', - UZ_LATN_UZ = 'UZ_LATN_UZ', - VAI = 'VAI', - VAI_LATN = 'VAI_LATN', - VAI_LATN_LR = 'VAI_LATN_LR', - VAI_VAII = 'VAI_VAII', - VAI_VAII_LR = 'VAI_VAII_LR', - VI = 'VI', - VI_VN = 'VI_VN', - VO = 'VO', - VUN = 'VUN', - VUN_TZ = 'VUN_TZ', - WAE = 'WAE', - WAE_CH = 'WAE_CH', - WO = 'WO', - WO_SN = 'WO_SN', - XH = 'XH', - XH_ZA = 'XH_ZA', - XOG = 'XOG', - XOG_UG = 'XOG_UG', - YAV = 'YAV', - YAV_CM = 'YAV_CM', - YI = 'YI', - YO = 'YO', - YO_BJ = 'YO_BJ', - YO_NG = 'YO_NG', - YUE = 'YUE', - YUE_HANS = 'YUE_HANS', - YUE_HANS_CN = 'YUE_HANS_CN', - YUE_HANT = 'YUE_HANT', - YUE_HANT_HK = 'YUE_HANT_HK', - ZGH = 'ZGH', - ZGH_MA = 'ZGH_MA', - ZH = 'ZH', - ZH_HANS = 'ZH_HANS', - ZH_HANS_CN = 'ZH_HANS_CN', - ZH_HANS_HK = 'ZH_HANS_HK', - ZH_HANS_MO = 'ZH_HANS_MO', - ZH_HANS_SG = 'ZH_HANS_SG', - ZH_HANT = 'ZH_HANT', - ZH_HANT_HK = 'ZH_HANT_HK', - ZH_HANT_MO = 'ZH_HANT_MO', - ZH_HANT_TW = 'ZH_HANT_TW', - ZU = 'ZU', - ZU_ZA = 'ZU_ZA' -} - -/** - * Determine the mark as paid strategy for the channel. - * - * TRANSACTION_FLOW - new orders marked as paid will receive a - * `TransactionItem` object, that will cover the `order.total`. - * - * PAYMENT_FLOW - new orders marked as paid will receive a - * `Payment` object, that will cover the `order.total`. - * - * - */ -export enum MarkAsPaidStrategyEnum { - TRANSACTION_FLOW = 'TRANSACTION_FLOW', - PAYMENT_FLOW = 'PAYMENT_FLOW' -} - -/** An enumeration. */ -export enum MeasurementUnitsEnum { - CM = 'CM', - M = 'M', - KM = 'KM', - FT = 'FT', - YD = 'YD', - INCH = 'INCH', - SQ_CM = 'SQ_CM', - SQ_M = 'SQ_M', - SQ_KM = 'SQ_KM', - SQ_FT = 'SQ_FT', - SQ_YD = 'SQ_YD', - SQ_INCH = 'SQ_INCH', - CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', - CUBIC_CENTIMETER = 'CUBIC_CENTIMETER', - CUBIC_DECIMETER = 'CUBIC_DECIMETER', - CUBIC_METER = 'CUBIC_METER', - LITER = 'LITER', - CUBIC_FOOT = 'CUBIC_FOOT', - CUBIC_INCH = 'CUBIC_INCH', - CUBIC_YARD = 'CUBIC_YARD', - QT = 'QT', - PINT = 'PINT', - FL_OZ = 'FL_OZ', - ACRE_IN = 'ACRE_IN', - ACRE_FT = 'ACRE_FT', - G = 'G', - LB = 'LB', - OZ = 'OZ', - KG = 'KG', - TONNE = 'TONNE' -} - -export type MeasurementUnitsEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum MediaChoicesSortField { - /** Sort media by ID. */ - ID = 'ID' -} - -export type MediaSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort media by the selected field. */ - field: MediaChoicesSortField; -}; - -export type MenuCreateInput = { - /** Name of the menu. */ - name: Scalars['String']; - /** Slug of the menu. Will be generated if not provided. */ - slug?: InputMaybe; - /** List of menu items. */ - items?: InputMaybe>; -}; - -/** An enumeration. */ -export enum MenuErrorCode { - CANNOT_ASSIGN_NODE = 'CANNOT_ASSIGN_NODE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_MENU_ITEM = 'INVALID_MENU_ITEM', - NO_MENU_ITEM_PROVIDED = 'NO_MENU_ITEM_PROVIDED', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - TOO_MANY_MENU_ITEMS = 'TOO_MANY_MENU_ITEMS', - UNIQUE = 'UNIQUE' -} - -export type MenuFilterInput = { - search?: InputMaybe; - slug?: InputMaybe>; - metadata?: InputMaybe>; - slugs?: InputMaybe>; -}; - -export type MenuInput = { - /** Name of the menu. */ - name?: InputMaybe; - /** Slug of the menu. */ - slug?: InputMaybe; -}; - -export type MenuItemCreateInput = { - /** Name of the menu item. */ - name: Scalars['String']; - /** URL of the pointed item. */ - url?: InputMaybe; - /** Category to which item points. */ - category?: InputMaybe; - /** Collection to which item points. */ - collection?: InputMaybe; - /** Page to which item points. */ - page?: InputMaybe; - /** Menu to which item belongs. */ - menu: Scalars['ID']; - /** ID of the parent menu. If empty, menu will be top level menu. */ - parent?: InputMaybe; -}; - -export type MenuItemFilterInput = { - search?: InputMaybe; - metadata?: InputMaybe>; -}; - -export type MenuItemInput = { - /** Name of the menu item. */ - name?: InputMaybe; - /** URL of the pointed item. */ - url?: InputMaybe; - /** Category to which item points. */ - category?: InputMaybe; - /** Collection to which item points. */ - collection?: InputMaybe; - /** Page to which item points. */ - page?: InputMaybe; -}; - -export type MenuItemMoveInput = { - /** The menu item ID to move. */ - itemId: Scalars['ID']; - /** ID of the parent menu. If empty, menu will be top level menu. */ - parentId?: InputMaybe; - /** The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. */ - sortOrder?: InputMaybe; -}; - -export type MenuItemSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort menu items by the selected field. */ - field: MenuItemsSortField; -}; - -export enum MenuItemsSortField { - /** Sort menu items by name. */ - NAME = 'NAME' -} - -export enum MenuSortField { - /** Sort menus by name. */ - NAME = 'NAME', - /** Sort menus by items count. */ - ITEMS_COUNT = 'ITEMS_COUNT' -} - -export type MenuSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort menus by the selected field. */ - field: MenuSortField; -}; - -/** An enumeration. */ -export enum MetadataErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - NOT_UPDATED = 'NOT_UPDATED' -} - -export type MetadataFilter = { - /** Key of a metadata item. */ - key: Scalars['String']; - /** Value of a metadata item. */ - value?: InputMaybe; -}; - -export type MetadataInput = { - /** Key of a metadata item. */ - key: Scalars['String']; - /** Value of a metadata item. */ - value: Scalars['String']; -}; - -export type MoneyInput = { - /** Currency code. */ - currency: Scalars['String']; - /** Amount of money. */ - amount: Scalars['PositiveDecimal']; -}; - -export type MoveProductInput = { - /** The ID of the product to move. */ - productId: Scalars['ID']; - /** The relative sorting position of the product (from -inf to +inf) starting from the first given product's actual position.1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. */ - sortOrder?: InputMaybe; -}; - -export type NameTranslationInput = { - name?: InputMaybe; -}; - -export enum NavigationType { - /** Main storefront navigation. */ - MAIN = 'MAIN', - /** Secondary storefront navigation. */ - SECONDARY = 'SECONDARY' -} - -export enum OrderAction { - /** Represents the capture action. */ - CAPTURE = 'CAPTURE', - /** Represents a mark-as-paid action. */ - MARK_AS_PAID = 'MARK_AS_PAID', - /** Represents a refund action. */ - REFUND = 'REFUND', - /** Represents a void action. */ - VOID = 'VOID' -} - -export type OrderAddNoteInput = { - /** Note message. */ - message: Scalars['String']; -}; - -/** - * Determine a current authorize status for order. - * - * We treat the order as fully authorized when the sum of authorized and charged funds - * cover the order.total. - * We treat the order as partially authorized when the sum of authorized and charged - * funds covers only part of the order.total - * We treat the order as not authorized when the sum of authorized and charged funds is - * 0. - * - * NONE - the funds are not authorized - * PARTIAL - the funds that are authorized or charged don't cover fully the order's - * total - * FULL - the funds that are authorized or charged fully cover the order's total - * - */ -export enum OrderAuthorizeStatusEnum { - NONE = 'NONE', - PARTIAL = 'PARTIAL', - FULL = 'FULL' -} - -/** - * Determine the current charge status for the order. - * - * We treat the order as overcharged when the charged amount is bigger that order.total - * We treat the order as fully charged when the charged amount is equal to order.total. - * We treat the order as partially charged when the charged amount covers only part of - * the order.total - * - * NONE - the funds are not charged. - * PARTIAL - the funds that are charged don't cover the order's total - * FULL - the funds that are charged fully cover the order's total - * OVERCHARGED - the charged funds are bigger than order's total - * - */ -export enum OrderChargeStatusEnum { - NONE = 'NONE', - PARTIAL = 'PARTIAL', - FULL = 'FULL', - OVERCHARGED = 'OVERCHARGED' -} - -/** An enumeration. */ -export enum OrderCreateFromCheckoutErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - CHECKOUT_NOT_FOUND = 'CHECKOUT_NOT_FOUND', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE', - GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', - TAX_ERROR = 'TAX_ERROR', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - NO_LINES = 'NO_LINES', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL' -} - -export enum OrderDirection { - /** Specifies an ascending sort order. */ - ASC = 'ASC', - /** Specifies a descending sort order. */ - DESC = 'DESC' -} - -export type OrderDiscountCommonInput = { - /** Type of the discount: fixed or percent */ - valueType: DiscountValueTypeEnum; - /** Value of the discount. Can store fixed value or percent value */ - value: Scalars['PositiveDecimal']; - /** Explanation for the applied discount. */ - reason?: InputMaybe; -}; - -/** An enumeration. */ -export enum OrderDiscountType { - VOUCHER = 'VOUCHER', - MANUAL = 'MANUAL' -} - -export type OrderDraftFilterInput = { - customer?: InputMaybe; - created?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - channels?: InputMaybe>; -}; - -/** An enumeration. */ -export enum OrderErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CANNOT_CANCEL_FULFILLMENT = 'CANNOT_CANCEL_FULFILLMENT', - CANNOT_CANCEL_ORDER = 'CANNOT_CANCEL_ORDER', - CANNOT_DELETE = 'CANNOT_DELETE', - CANNOT_DISCOUNT = 'CANNOT_DISCOUNT', - CANNOT_REFUND = 'CANNOT_REFUND', - CANNOT_FULFILL_UNPAID_ORDER = 'CANNOT_FULFILL_UNPAID_ORDER', - CAPTURE_INACTIVE_PAYMENT = 'CAPTURE_INACTIVE_PAYMENT', - GIFT_CARD_LINE = 'GIFT_CARD_LINE', - NOT_EDITABLE = 'NOT_EDITABLE', - FULFILL_ORDER_LINE = 'FULFILL_ORDER_LINE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', - NOT_FOUND = 'NOT_FOUND', - ORDER_NO_SHIPPING_ADDRESS = 'ORDER_NO_SHIPPING_ADDRESS', - PAYMENT_ERROR = 'PAYMENT_ERROR', - PAYMENT_MISSING = 'PAYMENT_MISSING', - TRANSACTION_ERROR = 'TRANSACTION_ERROR', - REQUIRED = 'REQUIRED', - SHIPPING_METHOD_NOT_APPLICABLE = 'SHIPPING_METHOD_NOT_APPLICABLE', - SHIPPING_METHOD_REQUIRED = 'SHIPPING_METHOD_REQUIRED', - TAX_ERROR = 'TAX_ERROR', - UNIQUE = 'UNIQUE', - VOID_INACTIVE_PAYMENT = 'VOID_INACTIVE_PAYMENT', - ZERO_QUANTITY = 'ZERO_QUANTITY', - INVALID_QUANTITY = 'INVALID_QUANTITY', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - NOT_AVAILABLE_IN_CHANNEL = 'NOT_AVAILABLE_IN_CHANNEL', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE' -} - -/** An enumeration. */ -export enum OrderEventsEmailsEnum { - PAYMENT_CONFIRMATION = 'PAYMENT_CONFIRMATION', - CONFIRMED = 'CONFIRMED', - SHIPPING_CONFIRMATION = 'SHIPPING_CONFIRMATION', - TRACKING_UPDATED = 'TRACKING_UPDATED', - ORDER_CONFIRMATION = 'ORDER_CONFIRMATION', - ORDER_CANCEL = 'ORDER_CANCEL', - ORDER_REFUND = 'ORDER_REFUND', - FULFILLMENT_CONFIRMATION = 'FULFILLMENT_CONFIRMATION', - DIGITAL_LINKS = 'DIGITAL_LINKS' -} - -/** The different order event types. */ -export enum OrderEventsEnum { - DRAFT_CREATED = 'DRAFT_CREATED', - DRAFT_CREATED_FROM_REPLACE = 'DRAFT_CREATED_FROM_REPLACE', - ADDED_PRODUCTS = 'ADDED_PRODUCTS', - REMOVED_PRODUCTS = 'REMOVED_PRODUCTS', - PLACED = 'PLACED', - PLACED_FROM_DRAFT = 'PLACED_FROM_DRAFT', - OVERSOLD_ITEMS = 'OVERSOLD_ITEMS', - CANCELED = 'CANCELED', - ORDER_MARKED_AS_PAID = 'ORDER_MARKED_AS_PAID', - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - ORDER_REPLACEMENT_CREATED = 'ORDER_REPLACEMENT_CREATED', - ORDER_DISCOUNT_ADDED = 'ORDER_DISCOUNT_ADDED', - ORDER_DISCOUNT_AUTOMATICALLY_UPDATED = 'ORDER_DISCOUNT_AUTOMATICALLY_UPDATED', - ORDER_DISCOUNT_UPDATED = 'ORDER_DISCOUNT_UPDATED', - ORDER_DISCOUNT_DELETED = 'ORDER_DISCOUNT_DELETED', - ORDER_LINE_DISCOUNT_UPDATED = 'ORDER_LINE_DISCOUNT_UPDATED', - ORDER_LINE_DISCOUNT_REMOVED = 'ORDER_LINE_DISCOUNT_REMOVED', - ORDER_LINE_PRODUCT_DELETED = 'ORDER_LINE_PRODUCT_DELETED', - ORDER_LINE_VARIANT_DELETED = 'ORDER_LINE_VARIANT_DELETED', - UPDATED_ADDRESS = 'UPDATED_ADDRESS', - EMAIL_SENT = 'EMAIL_SENT', - CONFIRMED = 'CONFIRMED', - PAYMENT_AUTHORIZED = 'PAYMENT_AUTHORIZED', - PAYMENT_CAPTURED = 'PAYMENT_CAPTURED', - EXTERNAL_SERVICE_NOTIFICATION = 'EXTERNAL_SERVICE_NOTIFICATION', - PAYMENT_REFUNDED = 'PAYMENT_REFUNDED', - PAYMENT_VOIDED = 'PAYMENT_VOIDED', - PAYMENT_FAILED = 'PAYMENT_FAILED', - TRANSACTION_EVENT = 'TRANSACTION_EVENT', - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - /** This field will be removed in Saleor 3.13 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead. */ - TRANSACTION_CAPTURE_REQUESTED = 'TRANSACTION_CAPTURE_REQUESTED', - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', - /** This field will be removed in Saleor 3.13 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead. */ - TRANSACTION_VOID_REQUESTED = 'TRANSACTION_VOID_REQUESTED', - TRANSACTION_CANCEL_REQUESTED = 'TRANSACTION_CANCEL_REQUESTED', - TRANSACTION_MARK_AS_PAID_FAILED = 'TRANSACTION_MARK_AS_PAID_FAILED', - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - INVOICE_GENERATED = 'INVOICE_GENERATED', - INVOICE_UPDATED = 'INVOICE_UPDATED', - INVOICE_SENT = 'INVOICE_SENT', - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - FULFILLMENT_RESTOCKED_ITEMS = 'FULFILLMENT_RESTOCKED_ITEMS', - FULFILLMENT_FULFILLED_ITEMS = 'FULFILLMENT_FULFILLED_ITEMS', - FULFILLMENT_REFUNDED = 'FULFILLMENT_REFUNDED', - FULFILLMENT_RETURNED = 'FULFILLMENT_RETURNED', - FULFILLMENT_REPLACED = 'FULFILLMENT_REPLACED', - FULFILLMENT_AWAITS_APPROVAL = 'FULFILLMENT_AWAITS_APPROVAL', - TRACKING_UPDATED = 'TRACKING_UPDATED', - NOTE_ADDED = 'NOTE_ADDED', - OTHER = 'OTHER' -} - -export type OrderFilterInput = { - paymentStatus?: InputMaybe>; - status?: InputMaybe>; - customer?: InputMaybe; - created?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - channels?: InputMaybe>; - authorizeStatus?: InputMaybe>; - chargeStatus?: InputMaybe>; - updatedAt?: InputMaybe; - isClickAndCollect?: InputMaybe; - isPreorder?: InputMaybe; - ids?: InputMaybe>; - giftCardUsed?: InputMaybe; - giftCardBought?: InputMaybe; - numbers?: InputMaybe>; - checkoutIds?: InputMaybe>; -}; - -export type OrderFulfillInput = { - /** List of items informing how to fulfill the order. */ - lines: Array; - /** If true, send an email notification to the customer. */ - notifyCustomer?: InputMaybe; - /** If true, then allow proceed fulfillment when stock is exceeded. */ - allowStockToBeExceeded?: InputMaybe; - /** - * Fulfillment tracking number. - * - * Added in Saleor 3.6. - */ - trackingNumber?: InputMaybe; -}; - -export type OrderFulfillLineInput = { - /** The ID of the order line. */ - orderLineId?: InputMaybe; - /** List of stock items to create. */ - stocks: Array; -}; - -export type OrderFulfillStockInput = { - /** The number of line items to be fulfilled from given warehouse. */ - quantity: Scalars['Int']; - /** ID of the warehouse from which the item will be fulfilled. */ - warehouse: Scalars['ID']; -}; - -/** An enumeration. */ -export enum OrderGrantRefundCreateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND' -} - -export type OrderGrantRefundCreateInput = { - /** Amount of the granted refund. */ - amount: Scalars['Decimal']; - /** Reason of the granted refund. */ - reason?: InputMaybe; -}; - -/** An enumeration. */ -export enum OrderGrantRefundUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export type OrderGrantRefundUpdateInput = { - /** Amount of the granted refund. */ - amount?: InputMaybe; - /** Reason of the granted refund. */ - reason?: InputMaybe; -}; - -export type OrderLineCreateInput = { - /** Number of variant items ordered. */ - quantity: Scalars['Int']; - /** Product variant ID. */ - variantId: Scalars['ID']; - /** - * Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. - * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - forceNewLine?: InputMaybe; -}; - -export type OrderLineInput = { - /** Number of variant items ordered. */ - quantity: Scalars['Int']; -}; - -/** An enumeration. */ -export enum OrderOriginEnum { - CHECKOUT = 'CHECKOUT', - DRAFT = 'DRAFT', - REISSUE = 'REISSUE' -} - -export type OrderRefundFulfillmentLineInput = { - /** The ID of the fulfillment line to refund. */ - fulfillmentLineId: Scalars['ID']; - /** The number of items to be refunded. */ - quantity: Scalars['Int']; -}; - -export type OrderRefundLineInput = { - /** The ID of the order line to refund. */ - orderLineId: Scalars['ID']; - /** The number of items to be refunded. */ - quantity: Scalars['Int']; -}; - -export type OrderRefundProductsInput = { - /** List of unfulfilled lines to refund. */ - orderLines?: InputMaybe>; - /** List of fulfilled lines to refund. */ - fulfillmentLines?: InputMaybe>; - /** The total amount of refund when the value is provided manually. */ - amountToRefund?: InputMaybe; - /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ - includeShippingCosts?: InputMaybe; -}; - -export type OrderReturnFulfillmentLineInput = { - /** The ID of the fulfillment line to return. */ - fulfillmentLineId: Scalars['ID']; - /** The number of items to be returned. */ - quantity: Scalars['Int']; - /** Determines, if the line should be added to replace order. */ - replace?: InputMaybe; -}; - -export type OrderReturnLineInput = { - /** The ID of the order line to return. */ - orderLineId: Scalars['ID']; - /** The number of items to be returned. */ - quantity: Scalars['Int']; - /** Determines, if the line should be added to replace order. */ - replace?: InputMaybe; -}; - -export type OrderReturnProductsInput = { - /** List of unfulfilled lines to return. */ - orderLines?: InputMaybe>; - /** List of fulfilled lines to return. */ - fulfillmentLines?: InputMaybe>; - /** The total amount of refund when the value is provided manually. */ - amountToRefund?: InputMaybe; - /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ - includeShippingCosts?: InputMaybe; - /** If true, Saleor will call refund action for all lines. */ - refund?: InputMaybe; -}; - -/** An enumeration. */ -export enum OrderSettingsErrorCode { - INVALID = 'INVALID' -} - -export type OrderSettingsInput = { - /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ - automaticallyConfirmAllNewOrders?: InputMaybe; - /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By defualt set to True. */ - automaticallyFulfillNonShippableGiftCard?: InputMaybe; - /** - * Determine what strategy will be used to mark the order as paid. Based on the choosen option the proper object will be created and attached to the order, when order is manualy marked as paid. - * `PAYMENT_FLOW` - [default option] creates the `Payment` object. - * `TRANSACTION_FLOW` - creates the `TransactionItem` object. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - markAsPaidStrategy?: InputMaybe; -}; - -export type OrderSettingsUpdateInput = { - /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ - automaticallyConfirmAllNewOrders?: InputMaybe; - /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By defualt set to True. */ - automaticallyFulfillNonShippableGiftCard?: InputMaybe; -}; - -export enum OrderSortField { - /** Sort orders by number. */ - NUMBER = 'NUMBER', - /** Sort orders by rank. Note: This option is available only with the `search` filter. */ - RANK = 'RANK', - /** - * Sort orders by creation date. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - CREATION_DATE = 'CREATION_DATE', - /** - * Sort orders by creation date. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - CREATED_AT = 'CREATED_AT', - /** Sort orders by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** Sort orders by customer. */ - CUSTOMER = 'CUSTOMER', - /** Sort orders by payment. */ - PAYMENT = 'PAYMENT', - /** Sort orders by fulfillment status. */ - FULFILLMENT_STATUS = 'FULFILLMENT_STATUS' -} - -export type OrderSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort orders by the selected field. */ - field: OrderSortField; -}; - -/** An enumeration. */ -export enum OrderStatus { - DRAFT = 'DRAFT', - UNCONFIRMED = 'UNCONFIRMED', - UNFULFILLED = 'UNFULFILLED', - PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', - PARTIALLY_RETURNED = 'PARTIALLY_RETURNED', - RETURNED = 'RETURNED', - FULFILLED = 'FULFILLED', - CANCELED = 'CANCELED' -} - -export enum OrderStatusFilter { - READY_TO_FULFILL = 'READY_TO_FULFILL', - READY_TO_CAPTURE = 'READY_TO_CAPTURE', - UNFULFILLED = 'UNFULFILLED', - UNCONFIRMED = 'UNCONFIRMED', - PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', - FULFILLED = 'FULFILLED', - CANCELED = 'CANCELED' -} - -export type OrderUpdateInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** - * External ID of this order. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; -}; - -export type OrderUpdateShippingInput = { - /** ID of the selected shipping method, pass null to remove currently assigned shipping method. */ - shippingMethod?: InputMaybe; -}; - -export type PageCreateInput = { - /** Page internal name. */ - slug?: InputMaybe; - /** Page title. */ - title?: InputMaybe; - /** - * Page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; - /** List of attributes. */ - attributes?: InputMaybe>; - /** Determines if page is visible in the storefront. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** - * Publication date time. ISO 8601 standard. - * - * Added in Saleor 3.3. - */ - publishedAt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** ID of the page type that page belongs to. */ - pageType: Scalars['ID']; -}; - -/** An enumeration. */ -export enum PageErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED' -} - -export type PageFilterInput = { - search?: InputMaybe; - metadata?: InputMaybe>; - pageTypes?: InputMaybe>; - ids?: InputMaybe>; - slugs?: InputMaybe>; -}; - -export type PageInput = { - /** Page internal name. */ - slug?: InputMaybe; - /** Page title. */ - title?: InputMaybe; - /** - * Page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; - /** List of attributes. */ - attributes?: InputMaybe>; - /** Determines if page is visible in the storefront. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** - * Publication date time. ISO 8601 standard. - * - * Added in Saleor 3.3. - */ - publishedAt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; -}; - -export enum PageSortField { - /** Sort pages by title. */ - TITLE = 'TITLE', - /** Sort pages by slug. */ - SLUG = 'SLUG', - /** Sort pages by visibility. */ - VISIBILITY = 'VISIBILITY', - /** - * Sort pages by creation date. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - CREATION_DATE = 'CREATION_DATE', - /** - * Sort pages by publication date. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** - * Sort pages by publication date. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - PUBLISHED_AT = 'PUBLISHED_AT', - /** - * Sort pages by creation date. - * - * DEPRECATED: this field will be removed in Saleor 4.0. - */ - CREATED_AT = 'CREATED_AT' -} - -export type PageSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort pages by the selected field. */ - field: PageSortField; -}; - -export type PageTranslationInput = { - seoTitle?: InputMaybe; - seoDescription?: InputMaybe; - title?: InputMaybe; - /** - * Translated page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; -}; - -export type PageTypeCreateInput = { - /** Name of the page type. */ - name?: InputMaybe; - /** Page type slug. */ - slug?: InputMaybe; - /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; -}; - -export type PageTypeFilterInput = { - search?: InputMaybe; - slugs?: InputMaybe>; -}; - -export enum PageTypeSortField { - /** Sort page types by name. */ - NAME = 'NAME', - /** Sort page types by slug. */ - SLUG = 'SLUG' -} - -export type PageTypeSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort page types by the selected field. */ - field: PageTypeSortField; -}; - -export type PageTypeUpdateInput = { - /** Name of the page type. */ - name?: InputMaybe; - /** Page type slug. */ - slug?: InputMaybe; - /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; - /** List of attribute IDs to be assigned to the page type. */ - removeAttributes?: InputMaybe>; -}; - -/** An enumeration. */ -export enum PaymentChargeStatusEnum { - NOT_CHARGED = 'NOT_CHARGED', - PENDING = 'PENDING', - PARTIALLY_CHARGED = 'PARTIALLY_CHARGED', - FULLY_CHARGED = 'FULLY_CHARGED', - PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED', - FULLY_REFUNDED = 'FULLY_REFUNDED', - REFUSED = 'REFUSED', - CANCELLED = 'CANCELLED' -} - -export type PaymentCheckBalanceInput = { - /** An ID of a payment gateway to check. */ - gatewayId: Scalars['String']; - /** Payment method name. */ - method: Scalars['String']; - /** Slug of a channel for which the data should be returned. */ - channel: Scalars['String']; - /** Information about card. */ - card: CardInput; -}; - -/** An enumeration. */ -export enum PaymentErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - PARTIAL_PAYMENT_NOT_ALLOWED = 'PARTIAL_PAYMENT_NOT_ALLOWED', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - PAYMENT_ERROR = 'PAYMENT_ERROR', - NOT_SUPPORTED_GATEWAY = 'NOT_SUPPORTED_GATEWAY', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - BALANCE_CHECK_ERROR = 'BALANCE_CHECK_ERROR', - CHECKOUT_EMAIL_NOT_SET = 'CHECKOUT_EMAIL_NOT_SET', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - NO_CHECKOUT_LINES = 'NO_CHECKOUT_LINES' -} - -export type PaymentFilterInput = { - /** - * Filter by ids. - * - * Added in Saleor 3.8. - */ - ids?: InputMaybe>; - checkouts?: InputMaybe>; -}; - -export type PaymentInput = { - /** A gateway to use with that payment. */ - gateway: Scalars['String']; - /** Client-side generated payment token, representing customer's billing data in a secure manner. */ - token?: InputMaybe; - /** Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used. */ - amount?: InputMaybe; - /** URL of a storefront view where user should be redirected after requiring additional actions. Payment with additional actions will not be finished if this field is not provided. */ - returnUrl?: InputMaybe; - /** - * Payment store type. - * - * Added in Saleor 3.1. - */ - storePaymentMethod?: InputMaybe; - /** - * User public metadata. - * - * Added in Saleor 3.1. - */ - metadata?: InputMaybe>; -}; - -/** An enumeration. */ -export enum PermissionEnum { - MANAGE_USERS = 'MANAGE_USERS', - MANAGE_STAFF = 'MANAGE_STAFF', - IMPERSONATE_USER = 'IMPERSONATE_USER', - MANAGE_APPS = 'MANAGE_APPS', - MANAGE_OBSERVABILITY = 'MANAGE_OBSERVABILITY', - MANAGE_CHECKOUTS = 'MANAGE_CHECKOUTS', - HANDLE_CHECKOUTS = 'HANDLE_CHECKOUTS', - HANDLE_TAXES = 'HANDLE_TAXES', - MANAGE_TAXES = 'MANAGE_TAXES', - MANAGE_CHANNELS = 'MANAGE_CHANNELS', - MANAGE_DISCOUNTS = 'MANAGE_DISCOUNTS', - MANAGE_GIFT_CARD = 'MANAGE_GIFT_CARD', - MANAGE_MENUS = 'MANAGE_MENUS', - MANAGE_ORDERS = 'MANAGE_ORDERS', - MANAGE_PAGES = 'MANAGE_PAGES', - MANAGE_PAGE_TYPES_AND_ATTRIBUTES = 'MANAGE_PAGE_TYPES_AND_ATTRIBUTES', - HANDLE_PAYMENTS = 'HANDLE_PAYMENTS', - MANAGE_PLUGINS = 'MANAGE_PLUGINS', - MANAGE_PRODUCTS = 'MANAGE_PRODUCTS', - MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES = 'MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES', - MANAGE_SHIPPING = 'MANAGE_SHIPPING', - MANAGE_SETTINGS = 'MANAGE_SETTINGS', - MANAGE_TRANSLATIONS = 'MANAGE_TRANSLATIONS' -} - -export type PermissionGroupCreateInput = { - /** List of permission code names to assign to this group. */ - addPermissions?: InputMaybe>; - /** List of users to assign to this group. */ - addUsers?: InputMaybe>; - /** Group name. */ - name: Scalars['String']; -}; - -/** An enumeration. */ -export enum PermissionGroupErrorCode { - ASSIGN_NON_STAFF_MEMBER = 'ASSIGN_NON_STAFF_MEMBER', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - CANNOT_REMOVE_FROM_LAST_GROUP = 'CANNOT_REMOVE_FROM_LAST_GROUP', - LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', - OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type PermissionGroupFilterInput = { - search?: InputMaybe; - ids?: InputMaybe>; -}; - -export enum PermissionGroupSortField { - /** Sort permission group accounts by name. */ - NAME = 'NAME' -} - -export type PermissionGroupSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort permission group by the selected field. */ - field: PermissionGroupSortField; -}; - -export type PermissionGroupUpdateInput = { - /** List of permission code names to assign to this group. */ - addPermissions?: InputMaybe>; - /** List of users to assign to this group. */ - addUsers?: InputMaybe>; - /** Group name. */ - name?: InputMaybe; - /** List of permission code names to unassign from this group. */ - removePermissions?: InputMaybe>; - /** List of users to unassign from this group. */ - removeUsers?: InputMaybe>; -}; - -export enum PluginConfigurationType { - PER_CHANNEL = 'PER_CHANNEL', - GLOBAL = 'GLOBAL' -} - -/** An enumeration. */ -export enum PluginErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - PLUGIN_MISCONFIGURED = 'PLUGIN_MISCONFIGURED', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type PluginFilterInput = { - statusInChannels?: InputMaybe; - search?: InputMaybe; - type?: InputMaybe; -}; - -export enum PluginSortField { - NAME = 'NAME', - IS_ACTIVE = 'IS_ACTIVE' -} - -export type PluginSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort plugins by the selected field. */ - field: PluginSortField; -}; - -export type PluginStatusInChannelsInput = { - active: Scalars['Boolean']; - channels: Array; -}; - -export type PluginUpdateInput = { - /** Indicates whether the plugin should be enabled. */ - active?: InputMaybe; - /** Configuration of the plugin. */ - configuration?: InputMaybe>; -}; - -/** An enumeration. */ -export enum PostalCodeRuleInclusionTypeEnum { - INCLUDE = 'INCLUDE', - EXCLUDE = 'EXCLUDE' -} - -export type PreorderSettingsInput = { - /** The global threshold for preorder variant. */ - globalThreshold?: InputMaybe; - /** The end date for preorder. */ - endDate?: InputMaybe; -}; - -export type PriceInput = { - /** Currency code. */ - currency: Scalars['String']; - /** Amount of money. */ - amount: Scalars['PositiveDecimal']; -}; - -export type PriceRangeInput = { - /** Price greater than or equal to. */ - gte?: InputMaybe; - /** Price less than or equal to. */ - lte?: InputMaybe; -}; - -export type ProductAttributeAssignInput = { - /** The ID of the attribute to assign. */ - id: Scalars['ID']; - /** The attribute type to be assigned as. */ - type: ProductAttributeType; - /** - * Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. - * - * Added in Saleor 3.1. - */ - variantSelection?: InputMaybe; -}; - -export type ProductAttributeAssignmentUpdateInput = { - /** The ID of the attribute to assign. */ - id: Scalars['ID']; - /** - * Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. - * - * Added in Saleor 3.1. - */ - variantSelection: Scalars['Boolean']; -}; - -export enum ProductAttributeType { - PRODUCT = 'PRODUCT', - VARIANT = 'VARIANT' -} - -export type ProductChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** - * Publication date time. ISO 8601 standard. - * - * Added in Saleor 3.3. - */ - publishedAt?: InputMaybe; - /** Determines if product is visible in product listings (doesn't apply to product collections). */ - visibleInListings?: InputMaybe; - /** Determine if product should be available for purchase. */ - isAvailableForPurchase?: InputMaybe; - /** - * A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `availableForPurchaseAt` field instead. - */ - availableForPurchaseDate?: InputMaybe; - /** - * A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. - * - * Added in Saleor 3.3. - */ - availableForPurchaseAt?: InputMaybe; - /** List of variants to which the channel should be assigned. */ - addVariants?: InputMaybe>; - /** List of variants from which the channel should be unassigned. */ - removeVariants?: InputMaybe>; -}; - -export type ProductChannelListingUpdateInput = { - /** List of channels to which the product should be assigned or updated. */ - updateChannels?: InputMaybe>; - /** List of channels from which the product should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -export type ProductCreateInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** ID of the product's category. */ - category?: InputMaybe; - /** - * Determine if taxes are being charged for the product. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - */ - chargeTaxes?: InputMaybe; - /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; - /** - * Product description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Product name. */ - name?: InputMaybe; - /** Product slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. - */ - taxCode?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Weight of the Product. */ - weight?: InputMaybe; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** - * Fields required to update the product metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** ID of the type that product belongs to. */ - productType: Scalars['ID']; -}; - -/** An enumeration. */ -export enum ProductErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', - ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - MEDIA_ALREADY_ASSIGNED = 'MEDIA_ALREADY_ASSIGNED', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_PRICE = 'INVALID_PRICE', - PRODUCT_WITHOUT_CATEGORY = 'PRODUCT_WITHOUT_CATEGORY', - NOT_PRODUCTS_IMAGE = 'NOT_PRODUCTS_IMAGE', - NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - VARIANT_NO_DIGITAL_CONTENT = 'VARIANT_NO_DIGITAL_CONTENT', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', - UNSUPPORTED_MEDIA_PROVIDER = 'UNSUPPORTED_MEDIA_PROVIDER', - PREORDER_VARIANT_CANNOT_BE_DEACTIVATED = 'PREORDER_VARIANT_CANNOT_BE_DEACTIVATED' -} - -export enum ProductFieldEnum { - NAME = 'NAME', - DESCRIPTION = 'DESCRIPTION', - PRODUCT_TYPE = 'PRODUCT_TYPE', - CATEGORY = 'CATEGORY', - PRODUCT_WEIGHT = 'PRODUCT_WEIGHT', - COLLECTIONS = 'COLLECTIONS', - CHARGE_TAXES = 'CHARGE_TAXES', - PRODUCT_MEDIA = 'PRODUCT_MEDIA', - VARIANT_ID = 'VARIANT_ID', - VARIANT_SKU = 'VARIANT_SKU', - VARIANT_WEIGHT = 'VARIANT_WEIGHT', - VARIANT_MEDIA = 'VARIANT_MEDIA' -} - -export type ProductFilterInput = { - isPublished?: InputMaybe; - collections?: InputMaybe>; - categories?: InputMaybe>; - hasCategory?: InputMaybe; - attributes?: InputMaybe>; - /** Filter by variants having specific stock status. */ - stockAvailability?: InputMaybe; - stocks?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - /** - * Filter by the publication date. - * - * Added in Saleor 3.8. - */ - publishedFrom?: InputMaybe; - /** - * Filter by availability for purchase. - * - * Added in Saleor 3.8. - */ - isAvailable?: InputMaybe; - /** - * Filter by the date of availability for purchase. - * - * Added in Saleor 3.8. - */ - availableFrom?: InputMaybe; - /** - * Filter by visibility in product listings. - * - * Added in Saleor 3.8. - */ - isVisibleInListing?: InputMaybe; - price?: InputMaybe; - /** Filter by the lowest variant price after discounts. */ - minimalPrice?: InputMaybe; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; - productTypes?: InputMaybe>; - /** Filter on whether product is a gift card or not. */ - giftCard?: InputMaybe; - ids?: InputMaybe>; - hasPreorderedVariants?: InputMaybe; - slugs?: InputMaybe>; - /** - * Specifies the channel by which the data should be filtered. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; -}; - -export type ProductInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** ID of the product's category. */ - category?: InputMaybe; - /** - * Determine if taxes are being charged for the product. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - */ - chargeTaxes?: InputMaybe; - /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; - /** - * Product description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Product name. */ - name?: InputMaybe; - /** Product slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. - */ - taxCode?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Weight of the Product. */ - weight?: InputMaybe; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** - * Fields required to update the product metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; -}; - -export type ProductMediaCreateInput = { - /** Alt text for a product media. */ - alt?: InputMaybe; - /** Represents an image file in a multipart request. */ - image?: InputMaybe; - /** ID of an product. */ - product: Scalars['ID']; - /** Represents an URL to an external media. */ - mediaUrl?: InputMaybe; -}; - -/** An enumeration. */ -export enum ProductMediaType { - IMAGE = 'IMAGE', - VIDEO = 'VIDEO' -} - -export type ProductMediaUpdateInput = { - /** Alt text for a product media. */ - alt?: InputMaybe; -}; - -export type ProductOrder = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** - * Specifies the channel in which to sort the data. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** - * Sort product by the selected attribute's values. - * Note: this doesn't take translations into account yet. - */ - attributeId?: InputMaybe; - /** Sort products by the selected field. */ - field?: InputMaybe; -}; - -export enum ProductOrderField { - /** Sort products by name. */ - NAME = 'NAME', - /** Sort products by rank. Note: This option is available only with the `search` filter. */ - RANK = 'RANK', - /** - * Sort products by price. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PRICE = 'PRICE', - /** - * Sort products by a minimal price of a product's variant. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - MINIMAL_PRICE = 'MINIMAL_PRICE', - /** Sort products by update date. */ - LAST_MODIFIED = 'LAST_MODIFIED', - /** Sort products by update date. */ - DATE = 'DATE', - /** Sort products by type. */ - TYPE = 'TYPE', - /** - * Sort products by publication status. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED = 'PUBLISHED', - /** - * Sort products by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** - * Sort products by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED_AT = 'PUBLISHED_AT', - /** Sort products by update date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** - * Sort products by collection. Note: This option is available only for the `Collection.products` query. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - COLLECTION = 'COLLECTION', - /** Sort products by rating. */ - RATING = 'RATING', - /** - * Sort products by creation date. - * - * Added in Saleor 3.8. - */ - CREATED_AT = 'CREATED_AT' -} - -export type ProductStockFilterInput = { - warehouseIds?: InputMaybe>; - quantity?: InputMaybe; -}; - -export enum ProductTypeConfigurable { - CONFIGURABLE = 'CONFIGURABLE', - SIMPLE = 'SIMPLE' -} - -export enum ProductTypeEnum { - DIGITAL = 'DIGITAL', - SHIPPABLE = 'SHIPPABLE' -} - -export type ProductTypeFilterInput = { - search?: InputMaybe; - configurable?: InputMaybe; - productType?: InputMaybe; - metadata?: InputMaybe>; - kind?: InputMaybe; - ids?: InputMaybe>; - slugs?: InputMaybe>; -}; - -export type ProductTypeInput = { - /** Name of the product type. */ - name?: InputMaybe; - /** Product type slug. */ - slug?: InputMaybe; - /** The product type kind. */ - kind?: InputMaybe; - /** Determines if product of this type has multiple variants. This option mainly simplifies product management in the dashboard. There is always at least one variant created under the hood. */ - hasVariants?: InputMaybe; - /** List of attributes shared among all product variants. */ - productAttributes?: InputMaybe>; - /** List of attributes used to distinguish between different variants of a product. */ - variantAttributes?: InputMaybe>; - /** Determines if shipping is required for products of this variant. */ - isShippingRequired?: InputMaybe; - /** Determines if products are digital. */ - isDigital?: InputMaybe; - /** Weight of the ProductType items. */ - weight?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * - * DEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type. - */ - taxCode?: InputMaybe; - /** ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. */ - taxClass?: InputMaybe; -}; - -/** An enumeration. */ -export enum ProductTypeKindEnum { - NORMAL = 'NORMAL', - GIFT_CARD = 'GIFT_CARD' -} - -export enum ProductTypeSortField { - /** Sort products by name. */ - NAME = 'NAME', - /** Sort products by type. */ - DIGITAL = 'DIGITAL', - /** Sort products by shipping. */ - SHIPPING_REQUIRED = 'SHIPPING_REQUIRED' -} - -export type ProductTypeSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort product types by the selected field. */ - field: ProductTypeSortField; -}; - -export type ProductVariantBulkCreateInput = { - /** List of attributes specific to this variant. */ - attributes: Array; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Variant name. */ - name?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; - /** - * Determines if variant is in preorder. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - preorder?: InputMaybe; - /** - * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - quantityLimitPerCustomer?: InputMaybe; - /** - * Fields required to update the product variant metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product variant private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product variant. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** Stocks of a product available for sale. */ - stocks?: InputMaybe>; - /** List of prices assigned to channels. */ - channelListings?: InputMaybe>; -}; - -/** An enumeration. */ -export enum ProductVariantBulkErrorCode { - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', - ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_PRICE = 'INVALID_PRICE', - NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL' -} - -/** - * Input fields to update product variants. - * - * Added in Saleor 3.11. - */ -export type ProductVariantBulkUpdateInput = { - /** List of attributes specific to this variant. */ - attributes?: InputMaybe>; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Variant name. */ - name?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; - /** - * Determines if variant is in preorder. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - preorder?: InputMaybe; - /** - * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - quantityLimitPerCustomer?: InputMaybe; - /** - * Fields required to update the product variant metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product variant private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product variant. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** - * Stocks input. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - stocks?: InputMaybe; - /** - * Channel listings input. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - channelListings?: InputMaybe; - /** ID of the product variant to update. */ - id: Scalars['ID']; -}; - -export type ProductVariantChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Price of the particular variant in channel. */ - price: Scalars['PositiveDecimal']; - /** Cost price of the variant in channel. */ - costPrice?: InputMaybe; - /** - * The threshold for preorder variant in channel. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - preorderThreshold?: InputMaybe; -}; - -export type ProductVariantChannelListingUpdateInput = { - /** List of channels to create variant channel listings. */ - create?: InputMaybe>; - /** List of channel listings to update. */ - update?: InputMaybe>; - /** List of channel listings to remove. */ - remove?: InputMaybe>; -}; - -export type ProductVariantCreateInput = { - /** List of attributes specific to this variant. */ - attributes: Array; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Variant name. */ - name?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; - /** - * Determines if variant is in preorder. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - preorder?: InputMaybe; - /** - * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - quantityLimitPerCustomer?: InputMaybe; - /** - * Fields required to update the product variant metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product variant private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product variant. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** Product ID of which type is the variant. */ - product: Scalars['ID']; - /** Stocks of a product available for sale. */ - stocks?: InputMaybe>; -}; - -export type ProductVariantFilterInput = { - search?: InputMaybe; - sku?: InputMaybe>; - metadata?: InputMaybe>; - isPreorder?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type ProductVariantInput = { - /** List of attributes specific to this variant. */ - attributes?: InputMaybe>; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Variant name. */ - name?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; - /** - * Determines if variant is in preorder. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - preorder?: InputMaybe; - /** - * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - quantityLimitPerCustomer?: InputMaybe; - /** - * Fields required to update the product variant metadata. - * - * Added in Saleor 3.8. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the product variant private metadata. - * - * Added in Saleor 3.8. - */ - privateMetadata?: InputMaybe>; - /** - * External ID of this product variant. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; -}; - -export enum ProductVariantSortField { - /** Sort products variants by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' -} - -export type ProductVariantSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort productVariants by the selected field. */ - field: ProductVariantSortField; -}; - -export type ProductVariantStocksUpdateInput = { - /** List of warehouses to create stocks. */ - create?: InputMaybe>; - /** List of stocks to update. */ - update?: InputMaybe>; - /** List of stocks to remove. */ - remove?: InputMaybe>; -}; - -export type PublishableChannelListingInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** - * Publication date time. ISO 8601 standard. - * - * Added in Saleor 3.3. - */ - publishedAt?: InputMaybe; -}; - -export type ReorderInput = { - /** The ID of the item to move. */ - id: Scalars['ID']; - /** The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. */ - sortOrder?: InputMaybe; -}; - -export enum ReportingPeriod { - TODAY = 'TODAY', - THIS_MONTH = 'THIS_MONTH' -} - -export type SaleChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** The value of the discount. */ - discountValue: Scalars['PositiveDecimal']; -}; - -export type SaleChannelListingInput = { - /** List of channels to which the sale should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the sale should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -export type SaleFilterInput = { - status?: InputMaybe>; - saleType?: InputMaybe; - started?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - updatedAt?: InputMaybe; -}; - -export type SaleInput = { - /** Voucher name. */ - name?: InputMaybe; - /** Fixed or percentage. */ - type?: InputMaybe; - /** Value of the voucher. */ - value?: InputMaybe; - /** Products related to the discount. */ - products?: InputMaybe>; - variants?: InputMaybe>; - /** Categories related to the discount. */ - categories?: InputMaybe>; - /** Collections related to the discount. */ - collections?: InputMaybe>; - /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; - /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; -}; - -export enum SaleSortField { - /** Sort sales by name. */ - NAME = 'NAME', - /** Sort sales by start date. */ - START_DATE = 'START_DATE', - /** Sort sales by end date. */ - END_DATE = 'END_DATE', - /** - * Sort sales by value. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - VALUE = 'VALUE', - /** Sort sales by type. */ - TYPE = 'TYPE', - /** Sort sales by created at. */ - CREATED_AT = 'CREATED_AT', - /** Sort sales by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' -} - -export type SaleSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** - * Specifies the channel in which to sort the data. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Sort sales by the selected field. */ - field: SaleSortField; -}; - -export enum SaleType { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE' -} - -export type SeoInput = { - /** SEO title. */ - title?: InputMaybe; - /** SEO description. */ - description?: InputMaybe; -}; - -/** An enumeration. */ -export enum ShippingErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LESS_THAN_MIN = 'MAX_LESS_THAN_MIN', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM' -} - -export type ShippingMethodChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Shipping price of the shipping method in this channel. */ - price?: InputMaybe; - /** Minimum order price to use this shipping method. */ - minimumOrderPrice?: InputMaybe; - /** Maximum order price to use this shipping method. */ - maximumOrderPrice?: InputMaybe; -}; - -export type ShippingMethodChannelListingInput = { - /** List of channels to which the shipping method should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the shipping method should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -/** An enumeration. */ -export enum ShippingMethodTypeEnum { - PRICE = 'PRICE', - WEIGHT = 'WEIGHT' -} - -export type ShippingPostalCodeRulesCreateInputRange = { - /** Start range of the postal code. */ - start: Scalars['String']; - /** End range of the postal code. */ - end?: InputMaybe; -}; - -export type ShippingPriceExcludeProductsInput = { - /** List of products which will be excluded. */ - products: Array; -}; - -export type ShippingPriceInput = { - /** Name of the shipping method. */ - name?: InputMaybe; - /** Shipping method description. */ - description?: InputMaybe; - /** Minimum order weight to use this shipping method. */ - minimumOrderWeight?: InputMaybe; - /** Maximum order weight to use this shipping method. */ - maximumOrderWeight?: InputMaybe; - /** Maximum number of days for delivery. */ - maximumDeliveryDays?: InputMaybe; - /** Minimal number of days for delivery. */ - minimumDeliveryDays?: InputMaybe; - /** Shipping type: price or weight based. */ - type?: InputMaybe; - /** Shipping zone this method belongs to. */ - shippingZone?: InputMaybe; - /** Postal code rules to add. */ - addPostalCodeRules?: InputMaybe>; - /** Postal code rules to delete. */ - deletePostalCodeRules?: InputMaybe>; - /** Inclusion type for currently assigned postal code rules. */ - inclusionType?: InputMaybe; - /** ID of a tax class to assign to this shipping method. If not provided, the default tax class will be used. */ - taxClass?: InputMaybe; -}; - -export type ShippingPriceTranslationInput = { - name?: InputMaybe; - /** - * Translated shipping method description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; -}; - -export type ShippingZoneCreateInput = { - /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; - /** Description of the shipping zone. */ - description?: InputMaybe; - /** List of countries in this shipping zone. */ - countries?: InputMaybe>; - /** Default shipping zone will be used for countries not covered by other zones. */ - default?: InputMaybe; - /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; - /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; -}; - -export type ShippingZoneFilterInput = { - search?: InputMaybe; - channels?: InputMaybe>; -}; - -export type ShippingZoneUpdateInput = { - /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; - /** Description of the shipping zone. */ - description?: InputMaybe; - /** List of countries in this shipping zone. */ - countries?: InputMaybe>; - /** Default shipping zone will be used for countries not covered by other zones. */ - default?: InputMaybe; - /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; - /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; - /** List of warehouses to unassign from a shipping zone */ - removeWarehouses?: InputMaybe>; - /** List of channels to unassign from the shipping zone. */ - removeChannels?: InputMaybe>; -}; - -/** An enumeration. */ -export enum ShopErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - CANNOT_FETCH_TAX_RATES = 'CANNOT_FETCH_TAX_RATES', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type ShopSettingsInput = { - /** Header text. */ - headerText?: InputMaybe; - /** SEO description. */ - description?: InputMaybe; - /** Enable inventory tracking. */ - trackInventoryByDefault?: InputMaybe; - /** Default weight unit. */ - defaultWeightUnit?: InputMaybe; - /** Enable automatic fulfillment for all digital products. */ - automaticFulfillmentDigitalProducts?: InputMaybe; - /** - * Enable automatic approval of all new fulfillments. - * - * Added in Saleor 3.1. - */ - fulfillmentAutoApprove?: InputMaybe; - /** - * Enable ability to approve fulfillments which are unpaid. - * - * Added in Saleor 3.1. - */ - fulfillmentAllowUnpaid?: InputMaybe; - /** Default number of max downloads per digital content URL. */ - defaultDigitalMaxDownloads?: InputMaybe; - /** Default number of days which digital content URL will be valid. */ - defaultDigitalUrlValidDays?: InputMaybe; - /** Default email sender's name. */ - defaultMailSenderName?: InputMaybe; - /** Default email sender's address. */ - defaultMailSenderAddress?: InputMaybe; - /** URL of a view where customers can set their password. */ - customerSetPasswordUrl?: InputMaybe; - /** - * Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable. - * - * Added in Saleor 3.1. - */ - reserveStockDurationAnonymousUser?: InputMaybe; - /** - * Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable. - * - * Added in Saleor 3.1. - */ - reserveStockDurationAuthenticatedUser?: InputMaybe; - /** - * Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - limitQuantityPerCheckout?: InputMaybe; - /** - * Include taxes in prices. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - */ - includeTaxesInPrices?: InputMaybe; - /** - * Display prices with tax in store. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - */ - displayGrossPrices?: InputMaybe; - /** - * Charge taxes on shipping. - * - * DEPRECATED: this field will be removed in Saleor 4.0. To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. - */ - chargeTaxesOnShipping?: InputMaybe; -}; - -export type ShopSettingsTranslationInput = { - headerText?: InputMaybe; - description?: InputMaybe; -}; - -export type SiteDomainInput = { - /** Domain name for shop. */ - domain?: InputMaybe; - /** Shop site name. */ - name?: InputMaybe; -}; - -export type StaffCreateInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** A note about the user. */ - note?: InputMaybe; - /** List of permission group IDs to which user should be assigned. */ - addGroups?: InputMaybe>; - /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; -}; - -export enum StaffMemberStatus { - /** User account has been activated. */ - ACTIVE = 'ACTIVE', - /** User account has not been activated yet. */ - DEACTIVATED = 'DEACTIVATED' -} - -export type StaffNotificationRecipientInput = { - /** The ID of the user subscribed to email notifications.. */ - user?: InputMaybe; - /** Email address of a user subscribed to email notifications. */ - email?: InputMaybe; - /** Determines if a notification active. */ - active?: InputMaybe; -}; - -export type StaffUpdateInput = { - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** A note about the user. */ - note?: InputMaybe; - /** List of permission group IDs to which user should be assigned. */ - addGroups?: InputMaybe>; - /** List of permission group IDs from which user should be unassigned. */ - removeGroups?: InputMaybe>; -}; - -export type StaffUserInput = { - status?: InputMaybe; - search?: InputMaybe; - ids?: InputMaybe>; -}; - -export enum StockAvailability { - IN_STOCK = 'IN_STOCK', - OUT_OF_STOCK = 'OUT_OF_STOCK' -} - -/** An enumeration. */ -export enum StockErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type StockFilterInput = { - quantity?: InputMaybe; - search?: InputMaybe; -}; - -export type StockInput = { - /** Warehouse in which stock is located. */ - warehouse: Scalars['ID']; - /** Quantity of items available for sell. */ - quantity: Scalars['Int']; -}; - -export type StockSettingsInput = { - /** Allocation strategy options. Strategy defines the preference of warehouses for allocations and reservations. */ - allocationStrategy: AllocationStrategyEnum; -}; - -export type StockUpdateInput = { - /** Stock. */ - stock: Scalars['ID']; - /** Quantity of items available for sell. */ - quantity: Scalars['Int']; -}; - -/** Enum representing the type of a payment storage in a gateway. */ -export enum StorePaymentMethodEnum { - /** On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. */ - ON_SESSION = 'ON_SESSION', - /** Off session storage type. The payment is stored to be reused even if the customer is absent. */ - OFF_SESSION = 'OFF_SESSION', - /** Storage is disabled. The payment is not stored. */ - NONE = 'NONE' -} - -/** - * Define the filtering options for string fields. - * - * Added in Saleor 3.11. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ -export type StringFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum TaxCalculationStrategy { - FLAT_RATES = 'FLAT_RATES', - TAX_APP = 'TAX_APP' -} - -/** An enumeration. */ -export enum TaxClassCreateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export type TaxClassCreateInput = { - /** Name of the tax class. */ - name: Scalars['String']; - /** List of country-specific tax rates to create for this tax class. */ - createCountryRates?: InputMaybe>; -}; - -/** An enumeration. */ -export enum TaxClassDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export type TaxClassFilterInput = { - metadata?: InputMaybe>; - ids?: InputMaybe>; - countries?: InputMaybe>; -}; - -export type TaxClassRateInput = { - /** ID of a tax class for which to update the tax rate */ - taxClassId?: InputMaybe; - /** Tax rate value. */ - rate?: InputMaybe; -}; - -export enum TaxClassSortField { - /** Sort tax classes by name. */ - NAME = 'NAME' -} - -export type TaxClassSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort tax classes by the selected field. */ - field: TaxClassSortField; -}; - -/** An enumeration. */ -export enum TaxClassUpdateErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export type TaxClassUpdateInput = { - /** Name of the tax class. */ - name?: InputMaybe; - /** List of country-specific tax rates to create or update for this tax class. */ - updateCountryRates?: InputMaybe>; - /** List of country codes for which to remove the tax class rates. Note: It removes all rates for given country code. */ - removeCountryRates?: InputMaybe>; -}; - -export type TaxConfigurationFilterInput = { - metadata?: InputMaybe>; - ids?: InputMaybe>; -}; - -export type TaxConfigurationPerCountryInput = { - /** Country in which this configuration applies. */ - countryCode: CountryCode; - /** Determines whether taxes are charged in this country. */ - chargeTaxes: Scalars['Boolean']; - /** A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. */ - taxCalculationStrategy?: InputMaybe; - /** Determines whether prices displayed in a storefront should include taxes for this country. */ - displayGrossPrices: Scalars['Boolean']; -}; - -/** An enumeration. */ -export enum TaxConfigurationUpdateErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export type TaxConfigurationUpdateInput = { - /** Determines whether taxes are charged in the given channel. */ - chargeTaxes?: InputMaybe; - /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ - taxCalculationStrategy?: InputMaybe; - /** Determines whether prices displayed in a storefront should include taxes. */ - displayGrossPrices?: InputMaybe; - /** Determines whether prices are entered with the tax included. */ - pricesEnteredWithTax?: InputMaybe; - /** List of tax country configurations to create or update (identified by a country code). */ - updateCountriesConfiguration?: InputMaybe>; - /** List of country codes for which to remove the tax configuration. */ - removeCountriesConfiguration?: InputMaybe>; -}; - -/** An enumeration. */ -export enum TaxCountryConfigurationDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -/** An enumeration. */ -export enum TaxCountryConfigurationUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED = 'ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED', - CANNOT_CREATE_NEGATIVE_RATE = 'CANNOT_CREATE_NEGATIVE_RATE' -} - -/** An enumeration. */ -export enum TaxExemptionManageErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - NOT_EDITABLE_ORDER = 'NOT_EDITABLE_ORDER' -} - -/** An enumeration. */ -export enum ThumbnailFormatEnum { - ORIGINAL = 'ORIGINAL', - AVIF = 'AVIF', - WEBP = 'WEBP' -} - -export type TimePeriodInputType = { - /** The length of the period. */ - amount: Scalars['Int']; - /** The type of the period. */ - type: TimePeriodTypeEnum; -}; - -/** An enumeration. */ -export enum TimePeriodTypeEnum { - DAY = 'DAY', - WEEK = 'WEEK', - MONTH = 'MONTH', - YEAR = 'YEAR' -} - -/** - * Represents possible actions on payment transaction. - * - * The following actions are possible: - * CHARGE - Represents the charge action. - * REFUND - Represents a refund action. - * VOID - Represents a void action. This field will be removed - * in Saleor 3.13 (Preview Feature). Use `CANCEL` instead. - * CANCEL - Represents a cancel action. Added in Saleor 3.12. - * - */ -export enum TransactionActionEnum { - CHARGE = 'CHARGE', - REFUND = 'REFUND', - VOID = 'VOID', - CANCEL = 'CANCEL' -} - -/** An enumeration. */ -export enum TransactionCreateErrorCode { - INVALID = 'INVALID', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type TransactionCreateInput = { - /** - * Status of the transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. - */ - status?: InputMaybe; - /** - * Payment type used for this transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `name` and `message` instead. - */ - type?: InputMaybe; - /** - * Payment name of the transaction. - * - * Added in Saleor 3.12. - */ - name?: InputMaybe; - /** - * The message of the transaction. - * - * Added in Saleor 3.12. - */ - message?: InputMaybe; - /** - * Reference of the transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `pspReference` instead. - */ - reference?: InputMaybe; - /** - * PSP Reference of the transaction. - * - * Added in Saleor 3.12. - */ - pspReference?: InputMaybe; - /** List of all possible actions for the transaction */ - availableActions?: InputMaybe>; - /** Amount authorized by this transaction. */ - amountAuthorized?: InputMaybe; - /** Amount charged by this transaction. */ - amountCharged?: InputMaybe; - /** Amount refunded by this transaction. */ - amountRefunded?: InputMaybe; - /** - * Amount voided by this transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `amountCanceled` instead. - */ - amountVoided?: InputMaybe; - /** - * Amount canceled by this transaction. - * - * Added in Saleor 3.12. - */ - amountCanceled?: InputMaybe; - /** Payment public metadata. */ - metadata?: InputMaybe>; - /** Payment private metadata. */ - privateMetadata?: InputMaybe>; - /** - * The url that will allow to redirect user to payment provider page with transaction event details. - * - * Added in Saleor 3.12. - */ - externalUrl?: InputMaybe; -}; - -export type TransactionEventInput = { - /** - * Current status of the payment transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Status will be calculated by Saleor. - */ - status?: InputMaybe; - /** - * Reference of the transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `pspReference` instead. - */ - reference?: InputMaybe; - /** - * PSP Reference related to this action. - * - * Added in Saleor 3.12. - */ - pspReference?: InputMaybe; - /** - * Name of the transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `message` instead. `name` field will be added to `message`. - */ - name?: InputMaybe; - /** - * The message related to the event. - * - * Added in Saleor 3.12. - */ - message?: InputMaybe; -}; - -/** An enumeration. */ -export enum TransactionEventReportErrorCode { - INVALID = 'INVALID', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - INCORRECT_DETAILS = 'INCORRECT_DETAILS', - ALREADY_EXISTS = 'ALREADY_EXISTS' -} - -/** - * Represents possible event types. - * - * Added in Saleor 3.12. - * - * The following types are possible: - * AUTHORIZATION_SUCCESS - represents success authorization. - * AUTHORIZATION_FAILURE - represents failure authorization. - * AUTHORIZATION_ADJUSTMENT - represents authorization adjustment. - * AUTHORIZATION_REQUEST - represents authorization request. - * CHARGE_SUCCESS - represents success charge. - * CHARGE_FAILURE - represents failure charge. - * CHARGE_BACK - represents chargeback. - * CHARGE_REQUEST - represents charge request. - * REFUND_SUCCESS - represents success refund. - * REFUND_FAILURE - represents failure refund. - * REFUND_REVERSE - represents reverse refund. - * REFUND_REQUEST - represents refund request. - * CANCEL_SUCCESS - represents success cancel. - * CANCEL_FAILURE - represents failure cancel. - * CANCEL_REQUEST - represents cancel request. - * - */ -export enum TransactionEventTypeEnum { - AUTHORIZATION_SUCCESS = 'AUTHORIZATION_SUCCESS', - AUTHORIZATION_FAILURE = 'AUTHORIZATION_FAILURE', - AUTHORIZATION_ADJUSTMENT = 'AUTHORIZATION_ADJUSTMENT', - AUTHORIZATION_REQUEST = 'AUTHORIZATION_REQUEST', - CHARGE_SUCCESS = 'CHARGE_SUCCESS', - CHARGE_FAILURE = 'CHARGE_FAILURE', - CHARGE_BACK = 'CHARGE_BACK', - CHARGE_REQUEST = 'CHARGE_REQUEST', - REFUND_SUCCESS = 'REFUND_SUCCESS', - REFUND_FAILURE = 'REFUND_FAILURE', - REFUND_REVERSE = 'REFUND_REVERSE', - REFUND_REQUEST = 'REFUND_REQUEST', - CANCEL_SUCCESS = 'CANCEL_SUCCESS', - CANCEL_FAILURE = 'CANCEL_FAILURE', - CANCEL_REQUEST = 'CANCEL_REQUEST' -} - -/** An enumeration. */ -export enum TransactionKind { - EXTERNAL = 'EXTERNAL', - AUTH = 'AUTH', - PENDING = 'PENDING', - ACTION_TO_CONFIRM = 'ACTION_TO_CONFIRM', - REFUND = 'REFUND', - REFUND_ONGOING = 'REFUND_ONGOING', - CAPTURE = 'CAPTURE', - VOID = 'VOID', - CONFIRM = 'CONFIRM', - CANCEL = 'CANCEL' -} - -/** An enumeration. */ -export enum TransactionRequestActionErrorCode { - INVALID = 'INVALID', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK = 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK' -} - -/** - * Represents a status of payment transaction. - * - * The following statuses are possible: - * SUCCESS - Represents a sucess action. - * FAILURE - Represents a failure action. - * PENDING - Represents a pending action. - * - */ -export enum TransactionStatus { - PENDING = 'PENDING', - SUCCESS = 'SUCCESS', - FAILURE = 'FAILURE' -} - -/** An enumeration. */ -export enum TransactionUpdateErrorCode { - INVALID = 'INVALID', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type TransactionUpdateInput = { - /** - * Status of the transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. - */ - status?: InputMaybe; - /** - * Payment type used for this transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `name` and `message` instead. - */ - type?: InputMaybe; - /** - * Payment name of the transaction. - * - * Added in Saleor 3.12. - */ - name?: InputMaybe; - /** - * The message of the transaction. - * - * Added in Saleor 3.12. - */ - message?: InputMaybe; - /** - * Reference of the transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `pspReference` instead. - */ - reference?: InputMaybe; - /** - * PSP Reference of the transaction. - * - * Added in Saleor 3.12. - */ - pspReference?: InputMaybe; - /** List of all possible actions for the transaction */ - availableActions?: InputMaybe>; - /** Amount authorized by this transaction. */ - amountAuthorized?: InputMaybe; - /** Amount charged by this transaction. */ - amountCharged?: InputMaybe; - /** Amount refunded by this transaction. */ - amountRefunded?: InputMaybe; - /** - * Amount voided by this transaction. - * - * DEPRECATED: this field will be removed in Saleor 3.13 (Preview Feature). Use `amountCanceled` instead. - */ - amountVoided?: InputMaybe; - /** - * Amount canceled by this transaction. - * - * Added in Saleor 3.12. - */ - amountCanceled?: InputMaybe; - /** Payment public metadata. */ - metadata?: InputMaybe>; - /** Payment private metadata. */ - privateMetadata?: InputMaybe>; - /** - * The url that will allow to redirect user to payment provider page with transaction event details. - * - * Added in Saleor 3.12. - */ - externalUrl?: InputMaybe; -}; - -export enum TranslatableKinds { - ATTRIBUTE = 'ATTRIBUTE', - ATTRIBUTE_VALUE = 'ATTRIBUTE_VALUE', - CATEGORY = 'CATEGORY', - COLLECTION = 'COLLECTION', - MENU_ITEM = 'MENU_ITEM', - PAGE = 'PAGE', - PRODUCT = 'PRODUCT', - SALE = 'SALE', - SHIPPING_METHOD = 'SHIPPING_METHOD', - VARIANT = 'VARIANT', - VOUCHER = 'VOUCHER' -} - -/** An enumeration. */ -export enum TranslationErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export type TranslationInput = { - seoTitle?: InputMaybe; - seoDescription?: InputMaybe; - name?: InputMaybe; - /** - * Translated description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; -}; - -export type UpdateInvoiceInput = { - /** Invoice number */ - number?: InputMaybe; - /** URL of an invoice to download. */ - url?: InputMaybe; -}; - -/** An enumeration. */ -export enum UploadErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR' -} - -export type UserCreateInput = { - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** A note about the user. */ - note?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** - * External ID of the customer. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; - /** Slug of a channel which will be used for notify user. Optional when only one channel exists. */ - channel?: InputMaybe; -}; - -export enum UserSortField { - /** Sort users by first name. */ - FIRST_NAME = 'FIRST_NAME', - /** Sort users by last name. */ - LAST_NAME = 'LAST_NAME', - /** Sort users by email. */ - EMAIL = 'EMAIL', - /** Sort users by order count. */ - ORDER_COUNT = 'ORDER_COUNT', - /** Sort users by created at. */ - CREATED_AT = 'CREATED_AT', - /** Sort users by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' -} - -export type UserSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort users by the selected field. */ - field: UserSortField; -}; - -export enum VariantAttributeScope { - ALL = 'ALL', - VARIANT_SELECTION = 'VARIANT_SELECTION', - NOT_VARIANT_SELECTION = 'NOT_VARIANT_SELECTION' -} - -/** An enumeration. */ -export enum VolumeUnitsEnum { - CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', - CUBIC_CENTIMETER = 'CUBIC_CENTIMETER', - CUBIC_DECIMETER = 'CUBIC_DECIMETER', - CUBIC_METER = 'CUBIC_METER', - LITER = 'LITER', - CUBIC_FOOT = 'CUBIC_FOOT', - CUBIC_INCH = 'CUBIC_INCH', - CUBIC_YARD = 'CUBIC_YARD', - QT = 'QT', - PINT = 'PINT', - FL_OZ = 'FL_OZ', - ACRE_IN = 'ACRE_IN', - ACRE_FT = 'ACRE_FT' -} - -export type VoucherChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Value of the voucher. */ - discountValue?: InputMaybe; - /** Min purchase amount required to apply the voucher. */ - minAmountSpent?: InputMaybe; -}; - -export type VoucherChannelListingInput = { - /** List of channels to which the voucher should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the voucher should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -export enum VoucherDiscountType { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE', - SHIPPING = 'SHIPPING' -} - -export type VoucherFilterInput = { - status?: InputMaybe>; - timesUsed?: InputMaybe; - discountType?: InputMaybe>; - started?: InputMaybe; - search?: InputMaybe; - metadata?: InputMaybe>; - ids?: InputMaybe>; -}; - -export type VoucherInput = { - /** Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. */ - type?: InputMaybe; - /** Voucher name. */ - name?: InputMaybe; - /** Code to use the voucher. */ - code?: InputMaybe; - /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; - /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; - /** Choices: fixed or percentage. */ - discountValueType?: InputMaybe; - /** Products discounted by the voucher. */ - products?: InputMaybe>; - /** - * Variants discounted by the voucher. - * - * Added in Saleor 3.1. - */ - variants?: InputMaybe>; - /** Collections discounted by the voucher. */ - collections?: InputMaybe>; - /** Categories discounted by the voucher. */ - categories?: InputMaybe>; - /** Minimal quantity of checkout items required to apply the voucher. */ - minCheckoutItemsQuantity?: InputMaybe; - /** Country codes that can be used with the shipping voucher. */ - countries?: InputMaybe>; - /** Voucher should be applied to the cheapest item or entire order. */ - applyOncePerOrder?: InputMaybe; - /** Voucher should be applied once per customer. */ - applyOncePerCustomer?: InputMaybe; - /** Voucher can be used only by staff user. */ - onlyForStaff?: InputMaybe; - /** Limit number of times this voucher can be used in total. */ - usageLimit?: InputMaybe; -}; - -export enum VoucherSortField { - /** Sort vouchers by code. */ - CODE = 'CODE', - /** Sort vouchers by start date. */ - START_DATE = 'START_DATE', - /** Sort vouchers by end date. */ - END_DATE = 'END_DATE', - /** - * Sort vouchers by value. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - VALUE = 'VALUE', - /** Sort vouchers by type. */ - TYPE = 'TYPE', - /** Sort vouchers by usage limit. */ - USAGE_LIMIT = 'USAGE_LIMIT', - /** - * Sort vouchers by minimum spent amount. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - MINIMUM_SPENT_AMOUNT = 'MINIMUM_SPENT_AMOUNT' -} - -export type VoucherSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** - * Specifies the channel in which to sort the data. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Sort vouchers by the selected field. */ - field: VoucherSortField; -}; - -export enum VoucherTypeEnum { - SHIPPING = 'SHIPPING', - ENTIRE_ORDER = 'ENTIRE_ORDER', - SPECIFIC_PRODUCT = 'SPECIFIC_PRODUCT' -} - -/** An enumeration. */ -export enum WarehouseClickAndCollectOptionEnum { - DISABLED = 'DISABLED', - LOCAL = 'LOCAL', - ALL = 'ALL' -} - -export type WarehouseCreateInput = { - /** Warehouse slug. */ - slug?: InputMaybe; - /** The email address of the warehouse. */ - email?: InputMaybe; - /** - * External ID of the warehouse. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** Warehouse name. */ - name: Scalars['String']; - /** Address of the warehouse. */ - address: AddressInput; - /** - * Shipping zones supported by the warehouse. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Providing the zone ids will raise a ValidationError. - */ - shippingZones?: InputMaybe>; -}; - -/** An enumeration. */ -export enum WarehouseErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type WarehouseFilterInput = { - clickAndCollectOption?: InputMaybe; - search?: InputMaybe; - ids?: InputMaybe>; - isPrivate?: InputMaybe; - channels?: InputMaybe>; - slugs?: InputMaybe>; -}; - -export enum WarehouseSortField { - /** Sort warehouses by name. */ - NAME = 'NAME' -} - -export type WarehouseSortingInput = { - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort warehouses by the selected field. */ - field: WarehouseSortField; -}; - -export type WarehouseUpdateInput = { - /** Warehouse slug. */ - slug?: InputMaybe; - /** The email address of the warehouse. */ - email?: InputMaybe; - /** - * External ID of the warehouse. - * - * Added in Saleor 3.10. - */ - externalReference?: InputMaybe; - /** Warehouse name. */ - name?: InputMaybe; - /** Address of the warehouse. */ - address?: InputMaybe; - /** - * Click and collect options: local, all or disabled. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - clickAndCollectOption?: InputMaybe; - /** - * Visibility of warehouse stocks. - * - * Added in Saleor 3.1. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - isPrivate?: InputMaybe; -}; - -export type WebhookCreateInput = { - /** The name of the webhook. */ - name?: InputMaybe; - /** The url to receive the payload. */ - targetUrl?: InputMaybe; - /** - * The events that webhook wants to subscribe. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. - */ - events?: InputMaybe>; - /** The asynchronous events that webhook wants to subscribe. */ - asyncEvents?: InputMaybe>; - /** The synchronous events that webhook wants to subscribe. */ - syncEvents?: InputMaybe>; - /** ID of the app to which webhook belongs. */ - app?: InputMaybe; - /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; - /** - * The secret key used to create a hash signature with each payload. - * - * DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - */ - secretKey?: InputMaybe; - /** - * Subscription query used to define a webhook payload. - * - * Added in Saleor 3.2. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - query?: InputMaybe; - /** - * Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only "X-*" and "Authorization*" keys are allowed. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - customHeaders?: InputMaybe; -}; - -/** An enumeration. */ -export enum WebhookDryRunErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - INVALID_ID = 'INVALID_ID', - MISSING_PERMISSION = 'MISSING_PERMISSION', - TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', - SYNTAX = 'SYNTAX', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE', - MISSING_EVENT = 'MISSING_EVENT' -} - -/** An enumeration. */ -export enum WebhookErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - DELETE_FAILED = 'DELETE_FAILED', - SYNTAX = 'SYNTAX', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE', - MISSING_EVENT = 'MISSING_EVENT', - INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeAsyncEnum { - /** All the events. */ - ANY_EVENTS = 'ANY_EVENTS', - /** A new address created. */ - ADDRESS_CREATED = 'ADDRESS_CREATED', - /** An address updated. */ - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - /** An address deleted. */ - ADDRESS_DELETED = 'ADDRESS_DELETED', - /** A new app installed. */ - APP_INSTALLED = 'APP_INSTALLED', - /** An app updated. */ - APP_UPDATED = 'APP_UPDATED', - /** An app deleted. */ - APP_DELETED = 'APP_DELETED', - /** An app status is changed. */ - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - /** A new attribute is created. */ - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - /** An attribute is updated. */ - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - /** An attribute is deleted. */ - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - /** A new attribute value is created. */ - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - /** An attribute value is updated. */ - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - /** An attribute value is deleted. */ - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - /** A new category created. */ - CATEGORY_CREATED = 'CATEGORY_CREATED', - /** A category is updated. */ - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - /** A category is deleted. */ - CATEGORY_DELETED = 'CATEGORY_DELETED', - /** A new channel created. */ - CHANNEL_CREATED = 'CHANNEL_CREATED', - /** A channel is updated. */ - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - /** A channel is deleted. */ - CHANNEL_DELETED = 'CHANNEL_DELETED', - /** A channel status is changed. */ - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - /** A new gift card created. */ - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - /** A gift card is updated. */ - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - /** A gift card is deleted. */ - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - /** A gift card status is changed. */ - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - /** - * A gift card metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - /** A new menu created. */ - MENU_CREATED = 'MENU_CREATED', - /** A menu is updated. */ - MENU_UPDATED = 'MENU_UPDATED', - /** A menu is deleted. */ - MENU_DELETED = 'MENU_DELETED', - /** A new menu item created. */ - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - /** A menu item is updated. */ - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - /** A menu item is deleted. */ - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - /** A new order is placed. */ - ORDER_CREATED = 'ORDER_CREATED', - /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - /** Payment is made and an order is fully paid. */ - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - ORDER_UPDATED = 'ORDER_UPDATED', - /** An order is cancelled. */ - ORDER_CANCELLED = 'ORDER_CANCELLED', - /** An order is fulfilled. */ - ORDER_FULFILLED = 'ORDER_FULFILLED', - /** - * An order metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - /** A draft order is created. */ - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - /** A draft order is updated. */ - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - /** A draft order is deleted. */ - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - /** A sale is created. */ - SALE_CREATED = 'SALE_CREATED', - /** A sale is updated. */ - SALE_UPDATED = 'SALE_UPDATED', - /** A sale is deleted. */ - SALE_DELETED = 'SALE_DELETED', - /** A sale is activated or deactivated. */ - SALE_TOGGLE = 'SALE_TOGGLE', - /** An invoice for order requested. */ - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - /** An invoice is deleted. */ - INVOICE_DELETED = 'INVOICE_DELETED', - /** Invoice has been sent. */ - INVOICE_SENT = 'INVOICE_SENT', - /** A new customer account is created. */ - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - /** A customer account is updated. */ - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - /** A customer account is deleted. */ - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - /** - * A customer account metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - /** A new collection is created. */ - COLLECTION_CREATED = 'COLLECTION_CREATED', - /** A collection is updated. */ - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - /** A collection is deleted. */ - COLLECTION_DELETED = 'COLLECTION_DELETED', - /** - * A collection metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - /** A new product is created. */ - PRODUCT_CREATED = 'PRODUCT_CREATED', - /** A product is updated. */ - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - /** A product is deleted. */ - PRODUCT_DELETED = 'PRODUCT_DELETED', - /** - * A new product media is created. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - /** - * A product media is updated. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - /** - * A product media is deleted. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - /** - * A product metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - /** A new product variant is created. */ - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - /** A product variant is updated. */ - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - /** A product variant is deleted. */ - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - /** A product variant is out of stock. */ - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - /** A product variant is back in stock. */ - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - /** A product variant stock is updated */ - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - /** - * A product variant metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - /** A new checkout is created. */ - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - /** A checkout is updated. It also triggers all updates related to the checkout. */ - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - /** - * A checkout metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - /** A new fulfillment is created. */ - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - /** A fulfillment is cancelled. */ - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - /** A fulfillment is approved. */ - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - /** - * A fulfillment metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - /** User notification triggered. */ - NOTIFY_USER = 'NOTIFY_USER', - /** A new page is created. */ - PAGE_CREATED = 'PAGE_CREATED', - /** A page is updated. */ - PAGE_UPDATED = 'PAGE_UPDATED', - /** A page is deleted. */ - PAGE_DELETED = 'PAGE_DELETED', - /** A new page type is created. */ - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - /** A page type is updated. */ - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - /** A page type is deleted. */ - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - /** A new permission group is created. */ - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - /** A permission group is updated. */ - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - /** A permission group is deleted. */ - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - /** A new shipping price is created. */ - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - /** A shipping price is updated. */ - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - /** A shipping price is deleted. */ - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - /** A new shipping zone is created. */ - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - /** A shipping zone is updated. */ - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - /** A shipping zone is deleted. */ - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - /** - * A shipping zone metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - /** A new staff user is created. */ - STAFF_CREATED = 'STAFF_CREATED', - /** A staff user is updated. */ - STAFF_UPDATED = 'STAFF_UPDATED', - /** A staff user is deleted. */ - STAFF_DELETED = 'STAFF_DELETED', - /** - * An action requested for transaction. - * - * DEPRECATED: this subscription will be removed in Saleor 3.13 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead. - */ - TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', - /** - * Transaction item metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - /** A new translation is created. */ - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - /** A translation is updated. */ - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - /** A new warehouse created. */ - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - /** A warehouse is updated. */ - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED', - /** A warehouse is deleted. */ - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - /** - * A warehouse metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - /** A new voucher created. */ - VOUCHER_CREATED = 'VOUCHER_CREATED', - /** A voucher is updated. */ - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - /** A voucher is deleted. */ - VOUCHER_DELETED = 'VOUCHER_DELETED', - /** - * A voucher metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - /** An observability event is created. */ - OBSERVABILITY = 'OBSERVABILITY', - /** - * A thumbnail is created. - * - * Added in Saleor 3.12. - */ - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeEnum { - /** All the events. */ - ANY_EVENTS = 'ANY_EVENTS', - /** A new address created. */ - ADDRESS_CREATED = 'ADDRESS_CREATED', - /** An address updated. */ - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - /** An address deleted. */ - ADDRESS_DELETED = 'ADDRESS_DELETED', - /** A new app installed. */ - APP_INSTALLED = 'APP_INSTALLED', - /** An app updated. */ - APP_UPDATED = 'APP_UPDATED', - /** An app deleted. */ - APP_DELETED = 'APP_DELETED', - /** An app status is changed. */ - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - /** A new attribute is created. */ - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - /** An attribute is updated. */ - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - /** An attribute is deleted. */ - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - /** A new attribute value is created. */ - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - /** An attribute value is updated. */ - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - /** An attribute value is deleted. */ - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - /** A new category created. */ - CATEGORY_CREATED = 'CATEGORY_CREATED', - /** A category is updated. */ - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - /** A category is deleted. */ - CATEGORY_DELETED = 'CATEGORY_DELETED', - /** A new channel created. */ - CHANNEL_CREATED = 'CHANNEL_CREATED', - /** A channel is updated. */ - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - /** A channel is deleted. */ - CHANNEL_DELETED = 'CHANNEL_DELETED', - /** A channel status is changed. */ - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - /** A new gift card created. */ - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - /** A gift card is updated. */ - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - /** A gift card is deleted. */ - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - /** A gift card status is changed. */ - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - /** - * A gift card metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - /** A new menu created. */ - MENU_CREATED = 'MENU_CREATED', - /** A menu is updated. */ - MENU_UPDATED = 'MENU_UPDATED', - /** A menu is deleted. */ - MENU_DELETED = 'MENU_DELETED', - /** A new menu item created. */ - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - /** A menu item is updated. */ - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - /** A menu item is deleted. */ - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - /** A new order is placed. */ - ORDER_CREATED = 'ORDER_CREATED', - /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - /** Payment is made and an order is fully paid. */ - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - ORDER_UPDATED = 'ORDER_UPDATED', - /** An order is cancelled. */ - ORDER_CANCELLED = 'ORDER_CANCELLED', - /** An order is fulfilled. */ - ORDER_FULFILLED = 'ORDER_FULFILLED', - /** - * An order metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - /** A draft order is created. */ - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - /** A draft order is updated. */ - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - /** A draft order is deleted. */ - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - /** A sale is created. */ - SALE_CREATED = 'SALE_CREATED', - /** A sale is updated. */ - SALE_UPDATED = 'SALE_UPDATED', - /** A sale is deleted. */ - SALE_DELETED = 'SALE_DELETED', - /** A sale is activated or deactivated. */ - SALE_TOGGLE = 'SALE_TOGGLE', - /** An invoice for order requested. */ - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - /** An invoice is deleted. */ - INVOICE_DELETED = 'INVOICE_DELETED', - /** Invoice has been sent. */ - INVOICE_SENT = 'INVOICE_SENT', - /** A new customer account is created. */ - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - /** A customer account is updated. */ - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - /** A customer account is deleted. */ - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - /** - * A customer account metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - /** A new collection is created. */ - COLLECTION_CREATED = 'COLLECTION_CREATED', - /** A collection is updated. */ - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - /** A collection is deleted. */ - COLLECTION_DELETED = 'COLLECTION_DELETED', - /** - * A collection metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - /** A new product is created. */ - PRODUCT_CREATED = 'PRODUCT_CREATED', - /** A product is updated. */ - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - /** A product is deleted. */ - PRODUCT_DELETED = 'PRODUCT_DELETED', - /** - * A new product media is created. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - /** - * A product media is updated. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - /** - * A product media is deleted. - * - * Added in Saleor 3.12. - */ - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - /** - * A product metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - /** A new product variant is created. */ - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - /** A product variant is updated. */ - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - /** A product variant is deleted. */ - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - /** A product variant is out of stock. */ - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - /** A product variant is back in stock. */ - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - /** A product variant stock is updated */ - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - /** - * A product variant metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - /** A new checkout is created. */ - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - /** A checkout is updated. It also triggers all updates related to the checkout. */ - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - /** - * A checkout metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - /** A new fulfillment is created. */ - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - /** A fulfillment is cancelled. */ - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - /** A fulfillment is approved. */ - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - /** - * A fulfillment metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - /** User notification triggered. */ - NOTIFY_USER = 'NOTIFY_USER', - /** A new page is created. */ - PAGE_CREATED = 'PAGE_CREATED', - /** A page is updated. */ - PAGE_UPDATED = 'PAGE_UPDATED', - /** A page is deleted. */ - PAGE_DELETED = 'PAGE_DELETED', - /** A new page type is created. */ - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - /** A page type is updated. */ - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - /** A page type is deleted. */ - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - /** A new permission group is created. */ - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - /** A permission group is updated. */ - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - /** A permission group is deleted. */ - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - /** A new shipping price is created. */ - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - /** A shipping price is updated. */ - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - /** A shipping price is deleted. */ - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - /** A new shipping zone is created. */ - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - /** A shipping zone is updated. */ - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - /** A shipping zone is deleted. */ - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - /** - * A shipping zone metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - /** A new staff user is created. */ - STAFF_CREATED = 'STAFF_CREATED', - /** A staff user is updated. */ - STAFF_UPDATED = 'STAFF_UPDATED', - /** A staff user is deleted. */ - STAFF_DELETED = 'STAFF_DELETED', - /** - * An action requested for transaction. - * - * DEPRECATED: this subscription will be removed in Saleor 3.13 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED`, `TRANSACTION_REFUND_REQUESTED`, `TRANSACTION_CANCELATION_REQUESTED` instead. - */ - TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', - /** - * Transaction item metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - /** A new translation is created. */ - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - /** A translation is updated. */ - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - /** A new warehouse created. */ - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - /** A warehouse is updated. */ - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED', - /** A warehouse is deleted. */ - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - /** - * A warehouse metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - /** A new voucher created. */ - VOUCHER_CREATED = 'VOUCHER_CREATED', - /** A voucher is updated. */ - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - /** A voucher is deleted. */ - VOUCHER_DELETED = 'VOUCHER_DELETED', - /** - * A voucher metadata is updated. - * - * Added in Saleor 3.8. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - /** An observability event is created. */ - OBSERVABILITY = 'OBSERVABILITY', - /** - * A thumbnail is created. - * - * Added in Saleor 3.12. - */ - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', - /** Authorize payment. */ - PAYMENT_AUTHORIZE = 'PAYMENT_AUTHORIZE', - /** Capture payment. */ - PAYMENT_CAPTURE = 'PAYMENT_CAPTURE', - /** Confirm payment. */ - PAYMENT_CONFIRM = 'PAYMENT_CONFIRM', - /** Listing available payment gateways. */ - PAYMENT_LIST_GATEWAYS = 'PAYMENT_LIST_GATEWAYS', - /** Process payment. */ - PAYMENT_PROCESS = 'PAYMENT_PROCESS', - /** Refund payment. */ - PAYMENT_REFUND = 'PAYMENT_REFUND', - /** Void payment. */ - PAYMENT_VOID = 'PAYMENT_VOID', - /** - * Event called when charge has been requested for transaction. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - /** - * Event called when refund has been requested for transaction. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', - /** - * Event called when cancel has been requested for transaction. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_CANCELATION_REQUESTED = 'TRANSACTION_CANCELATION_REQUESTED', - /** - * Event called for checkout tax calculation. - * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', - /** - * Event called for order tax calculation. - * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', - /** Fetch external shipping methods for checkout. */ - SHIPPING_LIST_METHODS_FOR_CHECKOUT = 'SHIPPING_LIST_METHODS_FOR_CHECKOUT', - /** Filter shipping methods for order. */ - ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', - /** Filter shipping methods for checkout. */ - CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeSyncEnum { - /** Authorize payment. */ - PAYMENT_AUTHORIZE = 'PAYMENT_AUTHORIZE', - /** Capture payment. */ - PAYMENT_CAPTURE = 'PAYMENT_CAPTURE', - /** Confirm payment. */ - PAYMENT_CONFIRM = 'PAYMENT_CONFIRM', - /** Listing available payment gateways. */ - PAYMENT_LIST_GATEWAYS = 'PAYMENT_LIST_GATEWAYS', - /** Process payment. */ - PAYMENT_PROCESS = 'PAYMENT_PROCESS', - /** Refund payment. */ - PAYMENT_REFUND = 'PAYMENT_REFUND', - /** Void payment. */ - PAYMENT_VOID = 'PAYMENT_VOID', - /** - * Event called when charge has been requested for transaction. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - /** - * Event called when refund has been requested for transaction. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', - /** - * Event called when cancel has been requested for transaction. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - TRANSACTION_CANCELATION_REQUESTED = 'TRANSACTION_CANCELATION_REQUESTED', - /** - * Event called for checkout tax calculation. - * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', - /** - * Event called for order tax calculation. - * - * Added in Saleor 3.6. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', - /** Fetch external shipping methods for checkout. */ - SHIPPING_LIST_METHODS_FOR_CHECKOUT = 'SHIPPING_LIST_METHODS_FOR_CHECKOUT', - /** Filter shipping methods for order. */ - ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', - /** Filter shipping methods for checkout. */ - CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS' -} - -/** An enumeration. */ -export enum WebhookSampleEventTypeEnum { - ADDRESS_CREATED = 'ADDRESS_CREATED', - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - ADDRESS_DELETED = 'ADDRESS_DELETED', - APP_INSTALLED = 'APP_INSTALLED', - APP_UPDATED = 'APP_UPDATED', - APP_DELETED = 'APP_DELETED', - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - CATEGORY_CREATED = 'CATEGORY_CREATED', - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - CATEGORY_DELETED = 'CATEGORY_DELETED', - CHANNEL_CREATED = 'CHANNEL_CREATED', - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - CHANNEL_DELETED = 'CHANNEL_DELETED', - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - MENU_CREATED = 'MENU_CREATED', - MENU_UPDATED = 'MENU_UPDATED', - MENU_DELETED = 'MENU_DELETED', - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - ORDER_CREATED = 'ORDER_CREATED', - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - ORDER_UPDATED = 'ORDER_UPDATED', - ORDER_CANCELLED = 'ORDER_CANCELLED', - ORDER_FULFILLED = 'ORDER_FULFILLED', - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - SALE_CREATED = 'SALE_CREATED', - SALE_UPDATED = 'SALE_UPDATED', - SALE_DELETED = 'SALE_DELETED', - SALE_TOGGLE = 'SALE_TOGGLE', - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - INVOICE_DELETED = 'INVOICE_DELETED', - INVOICE_SENT = 'INVOICE_SENT', - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - COLLECTION_CREATED = 'COLLECTION_CREATED', - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - COLLECTION_DELETED = 'COLLECTION_DELETED', - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - PRODUCT_CREATED = 'PRODUCT_CREATED', - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - PRODUCT_DELETED = 'PRODUCT_DELETED', - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - NOTIFY_USER = 'NOTIFY_USER', - PAGE_CREATED = 'PAGE_CREATED', - PAGE_UPDATED = 'PAGE_UPDATED', - PAGE_DELETED = 'PAGE_DELETED', - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - STAFF_CREATED = 'STAFF_CREATED', - STAFF_UPDATED = 'STAFF_UPDATED', - STAFF_DELETED = 'STAFF_DELETED', - TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED', - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - VOUCHER_CREATED = 'VOUCHER_CREATED', - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - VOUCHER_DELETED = 'VOUCHER_DELETED', - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - OBSERVABILITY = 'OBSERVABILITY', - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED' -} - -/** An enumeration. */ -export enum WebhookTriggerErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - INVALID_ID = 'INVALID_ID', - MISSING_PERMISSION = 'MISSING_PERMISSION', - TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', - SYNTAX = 'SYNTAX', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE', - MISSING_QUERY = 'MISSING_QUERY', - MISSING_EVENT = 'MISSING_EVENT' -} - -export type WebhookUpdateInput = { - /** The new name of the webhook. */ - name?: InputMaybe; - /** The url to receive the payload. */ - targetUrl?: InputMaybe; - /** - * The events that webhook wants to subscribe. - * - * DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. - */ - events?: InputMaybe>; - /** The asynchronous events that webhook wants to subscribe. */ - asyncEvents?: InputMaybe>; - /** The synchronous events that webhook wants to subscribe. */ - syncEvents?: InputMaybe>; - /** ID of the app to which webhook belongs. */ - app?: InputMaybe; - /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; - /** - * Use to create a hash signature with each payload. - * - * DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - */ - secretKey?: InputMaybe; - /** - * Subscription query used to define a webhook payload. - * - * Added in Saleor 3.2. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - query?: InputMaybe; - /** - * Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only "X-*" and "Authorization*" keys are allowed. - * - * Added in Saleor 3.12. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - customHeaders?: InputMaybe; -}; - -/** An enumeration. */ -export enum WeightUnitsEnum { - G = 'G', - LB = 'LB', - OZ = 'OZ', - KG = 'KG', - TONNE = 'TONNE' -} - -export type ChannelOrderSettingsUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: ChannelUpdateInput; -}>; - - -export type ChannelOrderSettingsUpdateMutation = { __typename: 'Mutation', channelUpdate: { __typename: 'ChannelUpdate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type ChannelCreateWithSettingsMutationVariables = Exact<{ - input: ChannelCreateInput; -}>; - - -export type ChannelCreateWithSettingsMutation = { __typename: 'Mutation', channelCreate: { __typename: 'ChannelCreate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type ChannelOrderSettingsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type ChannelOrderSettingsQuery = { __typename: 'Query', channel: { __typename: 'Channel', orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } } | null }; - -export type AddressFragment = { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }; - -export type AppManifestFragment = { __typename: 'Manifest', identifier: string, version: string, about: string | null, name: string, appUrl: string | null, configurationUrl: string | null, tokenTargetUrl: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, homepageUrl: string | null, supportUrl: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null }; - -export type AppFragment = { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null }; - -export type AppInstallationFragment = { __typename: 'AppInstallation', status: JobStatusEnum, message: string | null, appName: string, manifestUrl: string, id: string }; - -export type AppListItemFragment = { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, version: string | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null }; - -export type AppPermissionFragment = { __typename: 'Permission', name: string, code: PermissionEnum }; - -export type AppAvatarFragment = { __typename: 'App', id: string, name: string | null }; - -export type AttributeValueFragment = { __typename: 'AttributeValue', id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }; - -export type AttributeValueDetailsFragment = { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }; - -export type AttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }; - -export type AttributeDetailsFragment = { __typename: 'Attribute', availableInGrid: boolean, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, unit: MeasurementUnitsEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type AttributeValueListFragment = { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> }; - -export type AvailableAttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null }; - -export type UserPermissionFragment = { __typename: 'UserPermission', code: PermissionEnum, name: string }; - -export type UserFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string, isStaff: boolean, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null }; - -export type UserBaseFragment = { __typename: 'User', id: string, firstName: string, lastName: string }; - -export type UserBaseAvatarFragment = { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null }; - -export type CategoryFragment = { __typename: 'Category', id: string, name: string, children: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; - -export type CategoryDetailsFragment = { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type ChannelOrderSettingsFragment = { __typename: 'Channel', orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }; - -export type ChannelErrorFragment = { __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }; - -export type ChannelFragment = { __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; - -export type ChannelDetailsFragment = { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; - -export type CollectionFragment = { __typename: 'Collection', id: string, name: string, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publicationDate: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null }; - -export type CollectionDetailsFragment = { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publicationDate: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type CollectionProductFragment = { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', isPublished: boolean, publicationDate: any | null, isAvailableForPurchase: boolean | null, availableForPurchase: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null }; - -export type CustomerFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string }; - -export type CustomerDetailsFragment = { __typename: 'User', dateJoined: any, lastLogin: any | null, note: string | null, isActive: boolean, id: string, email: string, firstName: string, lastName: string, defaultShippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, defaultBillingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type CustomerAddressesFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null }; - -export type SaleFragment = { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type SaleDetailsFragment = { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', isPublished: boolean, publicationDate: any | null, isAvailableForPurchase: boolean | null, availableForPurchase: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', isPublished: boolean, publicationDate: any | null, isAvailableForPurchase: boolean | null, availableForPurchase: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type VoucherFragment = { __typename: 'Voucher', id: string, code: string, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type VoucherDetailsFragment = { __typename: 'Voucher', code: string, usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, id: string, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', isPublished: boolean, publicationDate: any | null, isAvailableForPurchase: boolean | null, availableForPurchase: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type TransactionRequestActionErrorFragment = { __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }; - -export type TransactionCreateErrorFragment = { __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }; - -export type OrderGrantRefundCreateErrorFragment = { __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode }; - -export type OrderGrantRefundUpdateErrorFragment = { __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode }; - -export type AttributeErrorFragment = { __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }; - -export type ProductErrorFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductErrorWithAttributesFragment = { __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductChannelListingErrorFragment = { __typename: 'ProductChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }; - -export type CollectionChannelListingErrorFragment = { __typename: 'CollectionChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }; - -export type AccountErrorFragment = { __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }; - -export type DiscountErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }; - -export type MenuErrorFragment = { __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }; - -export type OrderErrorFragment = { __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }; - -export type OrderSettingsErrorFragment = { __typename: 'OrderSettingsError', code: OrderSettingsErrorCode, field: string | null, message: string | null }; - -export type PageErrorFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; - -export type PageErrorWithAttributesFragment = { __typename: 'PageError', attributes: Array | null, code: PageErrorCode, field: string | null, message: string | null }; - -export type PermissionGroupErrorFragment = { __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }; - -export type BulkProductErrorFragment = { __typename: 'BulkProductError', field: string | null, code: ProductErrorCode, index: number | null, channels: Array | null, message: string | null }; - -export type ProductVariantBulkErrorFragment = { __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }; - -export type BulkStockErrorFragment = { __typename: 'BulkStockError', code: ProductErrorCode, field: string | null, index: number | null, message: string | null }; - -export type StockErrorFragment = { __typename: 'StockError', code: StockErrorCode, field: string | null, message: string | null }; - -export type ShippingChannelsErrorFragment = { __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, channels: Array | null, message: string | null }; - -export type ShippingErrorFragment = { __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }; - -export type ShopErrorFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; - -export type StaffErrorFragment = { __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }; - -export type WarehouseErrorFragment = { __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }; - -export type WebhookErrorFragment = { __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }; - -export type InvoiceErrorFragment = { __typename: 'InvoiceError', code: InvoiceErrorCode, field: string | null, message: string | null }; - -export type AppErrorFragment = { __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }; - -export type ExportErrorFragment = { __typename: 'ExportError', code: ExportErrorCode, field: string | null, message: string | null }; - -export type PluginErrorFragment = { __typename: 'PluginError', code: PluginErrorCode, field: string | null, message: string | null }; - -export type MetadataErrorFragment = { __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }; - -export type CollectionErrorFragment = { __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }; - -export type UploadErrorFragment = { __typename: 'UploadError', code: UploadErrorCode, field: string | null, message: string | null }; - -export type GiftCardErrorFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; - -export type GiftCardSettingsErrorFragment = { __typename: 'GiftCardSettingsError', code: GiftCardSettingsErrorCode, field: string | null, message: string | null }; - -export type SaleBulkDeleteErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, message: string | null }; - -export type VoucherBulkDeleteErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, message: string | null }; - -export type GiftCardBulkCreateErrorFragmentFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; - -export type GiftCardCreateErrorFragmentFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; - -export type PageBulkPublishErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; - -export type PageBulkRemoveErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; - -export type PageTypeDeleteErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; - -export type ProductVariantStocksDeleteErrorFragment = { __typename: 'StockError', code: StockErrorCode, field: string | null, message: string | null }; - -export type ProductTypeDeleteErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductTypeBulkDeleteErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductTypeBulkUpdateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductAttributeAssignErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductAttributeUnassignErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductTypeCreateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductTypeReorderAttributesErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; - -export type ProductAttributeAssignmentUpdateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null, attributes: Array | null }; - -export type ShopSettingsUpdateErrorFragmentFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; - -export type ShopFetchTaxRatesErrorFragmentFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; - -export type ProductTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type ProductVariantTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type CategoryTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type CollectionTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type PageTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type VoucherTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type SaleTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type AttributeTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type AttributeValueTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type ShippingPriceTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; - -export type TaxConfigurationUpdateErrorFragment = { __typename: 'TaxConfigurationUpdateError', field: string | null, code: TaxConfigurationUpdateErrorCode, message: string | null }; - -export type TaxCountryConfigurationUpdateErrorFragment = { __typename: 'TaxCountryConfigurationUpdateError', field: string | null, code: TaxCountryConfigurationUpdateErrorCode, message: string | null }; - -export type TaxCountryConfigurationDeleteErrorFragment = { __typename: 'TaxCountryConfigurationDeleteError', field: string | null, code: TaxCountryConfigurationDeleteErrorCode, message: string | null }; - -export type TaxClassUpdateErrorFragment = { __typename: 'TaxClassUpdateError', field: string | null, code: TaxClassUpdateErrorCode, message: string | null }; - -export type TaxClassCreateErrorFragment = { __typename: 'TaxClassCreateError', field: string | null, code: TaxClassCreateErrorCode, message: string | null }; - -export type TaxClassDeleteErrorFragment = { __typename: 'TaxClassDeleteError', field: string | null, code: TaxClassDeleteErrorCode, message: string | null }; - -export type FileFragment = { __typename: 'File', url: string, contentType: string | null }; - -export type GiftCardsSettingsFragment = { __typename: 'GiftCardSettings', expiryType: GiftCardSettingsExpiryTypeEnum, expiryPeriod: { __typename: 'TimePeriod', type: TimePeriodTypeEnum, amount: number } | null }; - -export type GiftCardEventFragment = { __typename: 'GiftCardEvent', expiryDate: any | null, oldExpiryDate: any | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, user: { __typename: 'User', email: string, id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }; - -export type GiftCardDataFragment = { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: any | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type CustomerGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: any | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } }; - -export type MetadataItemFragment = { __typename: 'MetadataItem', key: string, value: string }; - -type Metadata_Address_Fragment = { __typename: 'Address', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_App_Fragment = { __typename: 'App', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Attribute_Fragment = { __typename: 'Attribute', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Category_Fragment = { __typename: 'Category', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Checkout_Fragment = { __typename: 'Checkout', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_CheckoutLine_Fragment = { __typename: 'CheckoutLine', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Collection_Fragment = { __typename: 'Collection', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_DigitalContent_Fragment = { __typename: 'DigitalContent', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Fulfillment_Fragment = { __typename: 'Fulfillment', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_GiftCard_Fragment = { __typename: 'GiftCard', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Invoice_Fragment = { __typename: 'Invoice', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Menu_Fragment = { __typename: 'Menu', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_MenuItem_Fragment = { __typename: 'MenuItem', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Order_Fragment = { __typename: 'Order', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_OrderLine_Fragment = { __typename: 'OrderLine', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Page_Fragment = { __typename: 'Page', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_PageType_Fragment = { __typename: 'PageType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Payment_Fragment = { __typename: 'Payment', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Product_Fragment = { __typename: 'Product', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_ProductMedia_Fragment = { __typename: 'ProductMedia', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_ProductType_Fragment = { __typename: 'ProductType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_ProductVariant_Fragment = { __typename: 'ProductVariant', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Sale_Fragment = { __typename: 'Sale', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_ShippingMethod_Fragment = { __typename: 'ShippingMethod', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_ShippingMethodType_Fragment = { __typename: 'ShippingMethodType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_ShippingZone_Fragment = { __typename: 'ShippingZone', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_TaxClass_Fragment = { __typename: 'TaxClass', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_TaxConfiguration_Fragment = { __typename: 'TaxConfiguration', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_TransactionItem_Fragment = { __typename: 'TransactionItem', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_User_Fragment = { __typename: 'User', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Voucher_Fragment = { __typename: 'Voucher', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -type Metadata_Warehouse_Fragment = { __typename: 'Warehouse', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type MetadataFragment = Metadata_Address_Fragment | Metadata_App_Fragment | Metadata_Attribute_Fragment | Metadata_Category_Fragment | Metadata_Checkout_Fragment | Metadata_CheckoutLine_Fragment | Metadata_Collection_Fragment | Metadata_DigitalContent_Fragment | Metadata_Fulfillment_Fragment | Metadata_GiftCard_Fragment | Metadata_Invoice_Fragment | Metadata_Menu_Fragment | Metadata_MenuItem_Fragment | Metadata_Order_Fragment | Metadata_OrderLine_Fragment | Metadata_Page_Fragment | Metadata_PageType_Fragment | Metadata_Payment_Fragment | Metadata_Product_Fragment | Metadata_ProductMedia_Fragment | Metadata_ProductType_Fragment | Metadata_ProductVariant_Fragment | Metadata_Sale_Fragment | Metadata_ShippingMethod_Fragment | Metadata_ShippingMethodType_Fragment | Metadata_ShippingZone_Fragment | Metadata_TaxClass_Fragment | Metadata_TaxConfiguration_Fragment | Metadata_TransactionItem_Fragment | Metadata_User_Fragment | Metadata_Voucher_Fragment | Metadata_Warehouse_Fragment; - -export type MenuFragment = { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string }> | null }; - -export type MenuItemFragment = { __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }; - -export type MenuItemNestedFragment = { __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }; - -export type MenuDetailsFragment = { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null }; - -export type TransactionEventFragment = { __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | { __typename: 'App', id: string, name: string | null } | null }; - -export type TransactionItemFragment = { __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | { __typename: 'App', id: string, name: string | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }; - -export type OrderPaymentFragment = { __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }; - -export type OrderGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }; - -export type OrderGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }; - -export type OrderLineGrantRefundFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }; - -export type OrderFulfillmentGrantRefundFragment = { __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }; - -export type OrderDetailsGrantRefundFragment = { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }; - -export type OrderDetailsWithTransactionsFragment = { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | { __typename: 'App', id: string, name: string | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type OrderEventFragment = { __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }; - -export type OrderLineFragment = { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }; - -export type RefundOrderLineFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }; - -export type FulfillmentFragment = { __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }; - -export type InvoiceFragment = { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }; - -export type OrderDetailsFragment = { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string }>, giftCards: Array<{ __typename: 'GiftCard', events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type OrderSettingsFragment = { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean }; - -export type ShopOrderSettingsFragment = { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean }; - -export type OrderFulfillLineFragment = { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, quantity: number, quantityFulfilled: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, preorder: { __typename: 'PreorderData', endDate: any | null } | null, attributes: Array<{ __typename: 'SelectedAttribute', values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null, thumbnail: { __typename: 'Image', url: string } | null }; - -export type OrderLineStockDataFragment = { __typename: 'OrderLine', id: string, quantity: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', quantity: number, warehouse: { __typename: 'Warehouse', id: string } }> | null, variant: { __typename: 'ProductVariant', stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null }; - -export type PageInfoFragment = { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }; - -export type PageTypeFragment = { __typename: 'PageType', id: string, name: string, hasPages: boolean | null }; - -export type PageTypeDetailsFragment = { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type PageFragment = { __typename: 'Page', id: string, title: string, slug: string, isPublished: boolean }; - -export type PageSelectedAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, slug: string | null, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; - -export type PageAttributesFragment = { __typename: 'Page', attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, slug: string | null, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null } }; - -export type PageDetailsFragment = { __typename: 'Page', content: any | null, seoTitle: string | null, seoDescription: string | null, publicationDate: any | null, id: string, title: string, slug: string, isPublished: boolean, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, slug: string | null, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type PermissionGroupFragment = { __typename: 'Group', id: string, name: string, userCanManage: boolean, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string }> | null }; - -export type PermissionFragment = { __typename: 'Permission', code: PermissionEnum, name: string }; - -export type PermissionGroupMemberFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null }; - -export type PermissionGroupDetailsFragment = { __typename: 'Group', id: string, name: string, userCanManage: boolean, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null }; - -export type ConfigurationItemFragment = { __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }; - -export type PluginConfigurationBaseFragment = { __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }; - -export type PluginConfigurationExtendedFragment = { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }; - -export type PluginBaseFragment = { __typename: 'Plugin', id: string, name: string, description: string, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }>, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null }; - -export type PluginsDetailsFragment = { __typename: 'Plugin', id: string, name: string, description: string, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }> }; - -export type PaymentGatewayFragment = { __typename: 'PaymentGateway', name: string, id: string }; - -export type ProductTypeFragment = { __typename: 'ProductType', id: string, name: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }; - -export type ProductTypeDetailsFragment = { __typename: 'ProductType', id: string, name: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type StockFragment = { __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }; - -export type MoneyFragment = { __typename: 'Money', amount: number, currency: string }; - -export type PreorderFragment = { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null }; - -export type PriceRangeFragment = { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null }; - -export type ProductMediaFragment = { __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }; - -export type ChannelListingProductWithoutPricingFragment = { __typename: 'ProductChannelListing', isPublished: boolean, publicationDate: any | null, isAvailableForPurchase: boolean | null, availableForPurchase: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }; - -export type ChannelListingProductFragment = { __typename: 'ProductChannelListing', isPublished: boolean, publicationDate: any | null, isAvailableForPurchase: boolean | null, availableForPurchase: any | null, visibleInListings: boolean, pricing: { __typename: 'ProductPricingInfo', priceRange: { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null } | null } | null, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }; - -export type ChannelListingProductVariantFragment = { __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }; - -export type ProductWithChannelListingsFragment = { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', isPublished: boolean, publicationDate: any | null, isAvailableForPurchase: boolean | null, availableForPurchase: any | null, visibleInListings: boolean, pricing?: { __typename: 'ProductPricingInfo', priceRange: { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null } | null } | null, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null }; - -export type ProductVariantAttributesFragment = { __typename: 'Product', id: string, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, slug: string | null, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, productType: { __typename: 'ProductType', id: string, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, channelListings: Array<{ __typename: 'ProductChannelListing', channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null }; - -export type ProductDetailsVariantFragment = { __typename: 'ProductVariant', id: string, sku: string | null, name: string, trackInventory: boolean, quantityLimitPerCustomer: number | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null }, values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, media: Array<{ __typename: 'ProductMedia', url: string }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null }; - -export type ProductFragment = { __typename: 'Product', name: string, slug: string, description: any | null, seoTitle: string | null, seoDescription: string | null, rating: number | null, isAvailable: boolean | null, id: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, category: { __typename: 'Category', id: string, name: string } | null, collections: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', isPublished: boolean, publicationDate: any | null, isAvailableForPurchase: boolean | null, availableForPurchase: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, sku: string | null, name: string, trackInventory: boolean, quantityLimitPerCustomer: number | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null }, values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, media: Array<{ __typename: 'ProductMedia', url: string }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null }> | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, slug: string | null, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type VariantAttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }; - -export type SelectedVariantAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; - -export type ProductVariantFragment = { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publicationDate: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type ExportFileFragment = { __typename: 'ExportFile', id: string, status: JobStatusEnum, url: string | null }; - -export type ProductListAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string }, values: Array<{ __typename: 'AttributeValue', id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: any | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; - -export type ShippingZoneFragment = { __typename: 'ShippingZone', id: string, name: string, description: string | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type ShippingMethodWithPostalCodesFragment = { __typename: 'ShippingMethodType', id: string, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null }; - -export type ShippingMethodTypeFragment = { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type ShippingMethodWithExcludedProductsFragment = { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, excludedProducts: { __typename: 'ProductCountableConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor: string | null, startCursor: string | null }, edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null } }> } | null, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type ShippingZoneDetailsFragment = { __typename: 'ShippingZone', id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type CountryWithCodeFragment = { __typename: 'CountryDisplay', country: string, code: string }; - -export type LanguageFragment = { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string }; - -export type LimitInfoFragment = { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null }; - -export type ShopLimitFragment = { __typename: 'Shop', limits: { __typename: 'LimitInfo', currentUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null }, allowedUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null } } }; - -export type ShopFragment = { __typename: 'Shop', customerSetPasswordUrl: string | null, defaultMailSenderAddress: string | null, defaultMailSenderName: string | null, description: string | null, name: string, reserveStockDurationAnonymousUser: number | null, reserveStockDurationAuthenticatedUser: number | null, limitQuantityPerCheckout: number | null, companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, domain: { __typename: 'Domain', host: string } }; - -export type StaffMemberFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string }; - -export type StaffMemberDetailsFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null }; - -export type StaffMemberAvatarFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null }; - -export type TaxedMoneyFragment = { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }; - -export type CountryFragment = { __typename: 'CountryDisplay', country: string, code: string }; - -export type TaxConfigurationPerCountryFragment = { __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }; - -export type TaxConfigurationFragment = { __typename: 'TaxConfiguration', id: string, displayGrossPrices: boolean, pricesEnteredWithTax: boolean, chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, channel: { __typename: 'Channel', id: string, name: string }, countries: Array<{ __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }> }; - -export type TaxCountryConfigurationFragment = { __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> }; - -export type TaxRateFragment = { __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }; - -export type TaxClassBaseFragment = { __typename: 'TaxClass', id: string, name: string }; - -export type TaxClassFragment = { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; - -export type TimePeriodFragment = { __typename: 'TimePeriod', amount: number, type: TimePeriodTypeEnum }; - -export type AttributeValueTranslatableFragment = { __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; - -export type CategoryTranslationFragment = { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null }; - -export type CollectionTranslationFragment = { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null }; - -export type ProductTranslationFragment = { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; - -export type ProductVariantTranslationFragment = { __typename: 'ProductVariantTranslatableContent', name: string, productVariant: { __typename: 'ProductVariant', id: string } | null, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; - -export type SaleTranslationFragment = { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; - -export type VoucherTranslationFragment = { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; - -export type ShippingMethodTranslationFragment = { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; - -export type PageTranslationFragment = { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; - -export type PageTranslatableFragment = { __typename: 'PageTranslatableContent', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; - -export type AttributeChoicesTranslationFragment = { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> }; - -export type AttributeTranslationFragment = { __typename: 'AttributeTranslatableContent', id: string, name: string, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null } | null }; - -export type AttributeTranslationDetailsFragment = { __typename: 'AttributeTranslatableContent', translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, withChoices: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> } | null } | null }; - -export type MenuItemTranslationFragment = { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null }; - -export type WarehouseFragment = { __typename: 'Warehouse', id: string, name: string }; - -export type WarehouseWithShippingFragment = { __typename: 'Warehouse', id: string, name: string, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; - -export type WarehouseDetailsFragment = { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; - -export type WebhookFragment = { __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }; - -export type WebhookDetailsFragment = { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } }; - -export type WeightFragment = { __typename: 'Weight', unit: WeightUnitsEnum, value: number }; - -export type OrderTransactionRequestActionMutationVariables = Exact<{ - action: TransactionActionEnum; - transactionId: Scalars['ID']; -}>; - - -export type OrderTransactionRequestActionMutation = { __typename: 'Mutation', transactionRequestAction: { __typename: 'TransactionRequestAction', errors: Array<{ __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }> } | null }; - -export type OrderGrantRefundAddMutationVariables = Exact<{ - orderId: Scalars['ID']; - amount: Scalars['Decimal']; - reason?: InputMaybe; -}>; - - -export type OrderGrantRefundAddMutation = { __typename: 'Mutation', orderGrantRefundCreate: { __typename: 'OrderGrantRefundCreate', errors: Array<{ __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode }> } | null }; - -export type OrderGrantRefundEditMutationVariables = Exact<{ - refundId: Scalars['ID']; - amount: Scalars['Decimal']; - reason?: InputMaybe; -}>; - - -export type OrderGrantRefundEditMutation = { __typename: 'Mutation', orderGrantRefundUpdate: { __typename: 'OrderGrantRefundUpdate', errors: Array<{ __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode }> } | null }; - -export type OrderSendRefundMutationVariables = Exact<{ - amount: Scalars['PositiveDecimal']; - transactionId: Scalars['ID']; -}>; - - -export type OrderSendRefundMutation = { __typename: 'Mutation', transactionRequestAction: { __typename: 'TransactionRequestAction', transaction: { __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | { __typename: 'App', id: string, name: string | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }> } | null }; - -export type CreateManualTransactionCaptureMutationVariables = Exact<{ - orderId: Scalars['ID']; - amount: Scalars['PositiveDecimal']; - currency: Scalars['String']; - description?: InputMaybe; - pspReference?: InputMaybe; -}>; - - -export type CreateManualTransactionCaptureMutation = { __typename: 'Mutation', transactionCreate: { __typename: 'TransactionCreate', transaction: { __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | { __typename: 'App', id: string, name: string | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }> } | null }; - -export type CreateManualTransactionRefundMutationVariables = Exact<{ - orderId: Scalars['ID']; - amount: Scalars['PositiveDecimal']; - currency: Scalars['String']; - description?: InputMaybe; - pspReference?: InputMaybe; -}>; - - -export type CreateManualTransactionRefundMutation = { __typename: 'Mutation', transactionCreate: { __typename: 'TransactionCreate', transaction: { __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | { __typename: 'App', id: string, name: string | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }> } | null }; - -export type OrderDetailsWithTransactionsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type OrderDetailsWithTransactionsQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, token: string, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', id: string, type: string, pspReference: string, actions: Array, status: string, externalUrl: string, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, externalUrl: string, amount: { __typename: 'Money', amount: number, currency: string }, createdBy: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | { __typename: 'App', id: string, name: string | null } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null } | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | { __typename: 'ShippingMethod', id: string } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; - -export type OrderDetailsGrantRefundQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type OrderDetailsGrantRefundQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }; - -export type OrderDetailsGrantRefundEditQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type OrderDetailsGrantRefundEditQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, amount: { __typename: 'Money', amount: number, currency: string } }>, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }; diff --git a/src/orders/components/OrderAddTransaction/OrderAddTransaction.test.tsx b/src/orders/components/OrderAddTransaction/OrderAddTransaction.test.tsx index 67d01e4f3..eef0598af 100644 --- a/src/orders/components/OrderAddTransaction/OrderAddTransaction.test.tsx +++ b/src/orders/components/OrderAddTransaction/OrderAddTransaction.test.tsx @@ -1,4 +1,4 @@ -import { orderWithTransactions } from "@dashboard/orders/fixtures"; +import { order } from "@dashboard/orders/fixtures"; import Wrapper from "@test/wrapper"; import { render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; @@ -22,10 +22,7 @@ describe("OrderAddTransaction", () => { render( - + , ); const button = await screen.findByRole("button"); diff --git a/src/orders/components/OrderAddTransaction/OrderAddTransaction.tsx b/src/orders/components/OrderAddTransaction/OrderAddTransaction.tsx index f5b154fa0..8ce597110 100644 --- a/src/orders/components/OrderAddTransaction/OrderAddTransaction.tsx +++ b/src/orders/components/OrderAddTransaction/OrderAddTransaction.tsx @@ -1,5 +1,5 @@ import Skeleton from "@dashboard/components/Skeleton"; -import { OrderDetailsFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsFragment } from "@dashboard/graphql"; import { Button, makeStyles } from "@saleor/macaw-ui"; import React from "react"; import { FormattedMessage } from "react-intl"; diff --git a/src/orders/components/OrderCustomer/AddrssTextError.tsx b/src/orders/components/OrderCustomer/AddrssTextError.tsx index bf6b0ed0a..fa4cfde98 100644 --- a/src/orders/components/OrderCustomer/AddrssTextError.tsx +++ b/src/orders/components/OrderCustomer/AddrssTextError.tsx @@ -1,5 +1,5 @@ import FormSpacer from "@dashboard/components/FormSpacer"; -import { OrderErrorFragment } from "@dashboard/orders/types"; +import { OrderErrorFragment } from "@dashboard/graphql"; import getOrderErrorMessage from "@dashboard/utils/errors/order"; import { Typography } from "@material-ui/core"; import React from "react"; diff --git a/src/orders/components/OrderCustomer/OrderCustomer.tsx b/src/orders/components/OrderCustomer/OrderCustomer.tsx index fb8c55f0f..0de0aa52b 100644 --- a/src/orders/components/OrderCustomer/OrderCustomer.tsx +++ b/src/orders/components/OrderCustomer/OrderCustomer.tsx @@ -8,14 +8,15 @@ import Link from "@dashboard/components/Link"; import RequirePermissions from "@dashboard/components/RequirePermissions"; import SingleAutocompleteSelectField from "@dashboard/components/SingleAutocompleteSelectField"; import Skeleton from "@dashboard/components/Skeleton"; -import { PermissionEnum, SearchCustomersQuery } from "@dashboard/graphql"; -import useStateFromProps from "@dashboard/hooks/useStateFromProps"; -import { buttonMessages } from "@dashboard/intl"; import { + OrderDetailsFragment, OrderErrorCode, OrderErrorFragment, - OrderSharedType, -} from "@dashboard/orders/types"; + PermissionEnum, + SearchCustomersQuery, +} from "@dashboard/graphql"; +import useStateFromProps from "@dashboard/hooks/useStateFromProps"; +import { buttonMessages } from "@dashboard/intl"; import { FetchMoreProps, RelayToFlat } from "@dashboard/types"; import createSingleAutocompleteSelectHandler from "@dashboard/utils/handlers/singleAutocompleteSelectChangeHandler"; import { Card, CardContent, Typography } from "@material-ui/core"; @@ -36,7 +37,7 @@ export interface CustomerEditData { } export interface OrderCustomerProps extends Partial { - order: OrderSharedType; + order: OrderDetailsFragment; users?: RelayToFlat; loading?: boolean; errors: OrderErrorFragment[]; diff --git a/src/orders/components/OrderCustomer/PickupAnnotation.tsx b/src/orders/components/OrderCustomer/PickupAnnotation.tsx index dbd12a25e..eb33aea07 100644 --- a/src/orders/components/OrderCustomer/PickupAnnotation.tsx +++ b/src/orders/components/OrderCustomer/PickupAnnotation.tsx @@ -1,6 +1,8 @@ import FormSpacer from "@dashboard/components/FormSpacer"; -import { WarehouseClickAndCollectOptionEnum } from "@dashboard/graphql"; -import { OrderSharedType } from "@dashboard/orders/types"; +import { + OrderDetailsFragment, + WarehouseClickAndCollectOptionEnum, +} from "@dashboard/graphql"; import { Typography } from "@material-ui/core"; import React from "react"; import { FormattedMessage } from "react-intl"; @@ -8,7 +10,7 @@ import { FormattedMessage } from "react-intl"; import messages from "./messages"; interface PickupAnnotationProps { - order?: OrderSharedType; + order?: OrderDetailsFragment; } export const PickupAnnotation: React.FC = ({ diff --git a/src/orders/components/OrderDetailsPage/OrderDetailsPage.stories.tsx b/src/orders/components/OrderDetailsPage/OrderDetailsPage.stories.tsx index 5a43eb658..561b4629e 100644 --- a/src/orders/components/OrderDetailsPage/OrderDetailsPage.stories.tsx +++ b/src/orders/components/OrderDetailsPage/OrderDetailsPage.stories.tsx @@ -1,19 +1,19 @@ import { FulfillmentStatus, GiftCardEventsEnum, + OrderDetailsFragment, OrderStatus, PaymentChargeStatusEnum, } from "@dashboard/graphql"; import { grantedRefunds, + order, ORDER_AMOUNT, - orderWithTransactions as order, payments, prepareMoney, - shopWithTransactions, + shop, transactions, } from "@dashboard/orders/fixtures"; -import { OrderBothTypes } from "@dashboard/orders/types"; import Decorator from "@dashboard/storybook/Decorator"; import { storiesOf } from "@storybook/react"; import React from "react"; @@ -43,9 +43,9 @@ const props: Omit = { onShippingAddressEdit: undefined, onSubmit: () => undefined, onAddManualTransaction: () => undefined, - order, + order: order(null), errors: [], - shop: shopWithTransactions, + shop, saveButtonBarState: "default", }; @@ -304,7 +304,7 @@ storiesOf("Views / Orders / Order details / transactions", module) ], }, ], - } as OrderBothTypes + } as OrderDetailsFragment } /> )); diff --git a/src/orders/components/OrderDetailsPage/OrderDetailsPage.tsx b/src/orders/components/OrderDetailsPage/OrderDetailsPage.tsx index 23b1e6b1a..19a7bbd5d 100644 --- a/src/orders/components/OrderDetailsPage/OrderDetailsPage.tsx +++ b/src/orders/components/OrderDetailsPage/OrderDetailsPage.tsx @@ -11,17 +11,16 @@ import Form from "@dashboard/components/Form"; import { DetailPageLayout } from "@dashboard/components/Layouts"; import Metadata, { MetadataFormData } from "@dashboard/components/Metadata"; import Savebar from "@dashboard/components/Savebar"; -import { OrderDetailsFragment, OrderDetailsQuery } from "@dashboard/graphql"; import { - OrderDetailsWithTransactionsFragment, - OrderDetailsWithTransactionsQuery, + OrderDetailsFragment, + OrderDetailsQuery, + OrderErrorFragment, OrderStatus, TransactionActionEnum, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import { SubmitPromise } from "@dashboard/hooks/useForm"; import useNavigator from "@dashboard/hooks/useNavigator"; import { defaultGraphiQLQuery } from "@dashboard/orders/queries"; -import { OrderErrorFragment, OrderSharedType } from "@dashboard/orders/types"; import { orderListUrl } from "@dashboard/orders/urls"; import { mapMetadataItemToInput } from "@dashboard/utils/maps"; import useMetadataChangeTrigger from "@dashboard/utils/metadata/useMetadataChangeTrigger"; @@ -45,8 +44,8 @@ import Title from "./Title"; import { filteredConditionalItems, hasAnyItemsReplaceable } from "./utils"; export interface OrderDetailsPageProps { - order: OrderDetailsFragment | OrderDetailsWithTransactionsFragment; - shop: OrderDetailsQuery["shop"] | OrderDetailsWithTransactionsQuery["shop"]; + order: OrderDetailsFragment | OrderDetailsFragment; + shop: OrderDetailsQuery["shop"]; shippingMethods?: Array<{ id: string; name: string; @@ -183,7 +182,7 @@ const OrderDetailsPage: React.FC = props => { label: intl.formatMessage(messages.returnOrder), onSelect: onOrderReturn, }, - shouldExist: hasAnyItemsReplaceable(order as OrderSharedType), + shouldExist: hasAnyItemsReplaceable(order), }, ]); @@ -211,10 +210,7 @@ const OrderDetailsPage: React.FC = props => { return ( - } - > + }> = props => { ) : ( <> = props => { onFulfillmentCancel(fulfillment.id) } @@ -288,7 +284,7 @@ const OrderDetailsPage: React.FC = props => { { +export const hasAnyItemsReplaceable = (order?: OrderDetailsFragment) => { if (!order) { return false; } diff --git a/src/orders/components/OrderDraftDetails/OrderDraftDetails.tsx b/src/orders/components/OrderDraftDetails/OrderDraftDetails.tsx index 6bad878b2..352a438bc 100644 --- a/src/orders/components/OrderDraftDetails/OrderDraftDetails.tsx +++ b/src/orders/components/OrderDraftDetails/OrderDraftDetails.tsx @@ -1,7 +1,11 @@ import { Button } from "@dashboard/components/Button"; import CardTitle from "@dashboard/components/CardTitle"; -import { ChannelUsabilityDataQuery, OrderLineInput } from "@dashboard/graphql"; -import { OrderErrorFragment, OrderSharedType } from "@dashboard/orders/types"; +import { + ChannelUsabilityDataQuery, + OrderDetailsFragment, + OrderErrorFragment, + OrderLineInput, +} from "@dashboard/graphql"; import { OrderDiscountContext, OrderDiscountContextConsumerProps, @@ -15,7 +19,7 @@ import OrderDraftDetailsProducts from "../OrderDraftDetailsProducts"; import OrderDraftDetailsSummary from "../OrderDraftDetailsSummary"; interface OrderDraftDetailsProps { - order: OrderSharedType; + order: OrderDetailsFragment; channelUsabilityData?: ChannelUsabilityDataQuery; errors: OrderErrorFragment[]; onOrderLineAdd: () => void; diff --git a/src/orders/components/OrderDraftDetailsProducts/OrderDraftDetailsProducts.tsx b/src/orders/components/OrderDraftDetailsProducts/OrderDraftDetailsProducts.tsx index de433c2c0..58b9f85cd 100644 --- a/src/orders/components/OrderDraftDetailsProducts/OrderDraftDetailsProducts.tsx +++ b/src/orders/components/OrderDraftDetailsProducts/OrderDraftDetailsProducts.tsx @@ -1,7 +1,7 @@ import ResponsiveTable from "@dashboard/components/ResponsiveTable"; import Skeleton from "@dashboard/components/Skeleton"; import TableRowLink from "@dashboard/components/TableRowLink"; -import { OrderErrorFragment, OrderSharedType } from "@dashboard/orders/types"; +import { OrderDetailsFragment, OrderErrorFragment } from "@dashboard/graphql"; import { OrderLineDiscountConsumer, OrderLineDiscountContextConsumerProps, @@ -56,7 +56,7 @@ const useStyles = makeStyles( ); interface OrderDraftDetailsProductsProps { - order?: OrderSharedType; + order?: OrderDetailsFragment; errors: OrderErrorFragment[]; onOrderLineChange: (id: string, data: FormData) => void; onOrderLineRemove: (id: string) => void; diff --git a/src/orders/components/OrderDraftDetailsProducts/TableLine.tsx b/src/orders/components/OrderDraftDetailsProducts/TableLine.tsx index 0b4a1cbd8..aa5e57a65 100644 --- a/src/orders/components/OrderDraftDetailsProducts/TableLine.tsx +++ b/src/orders/components/OrderDraftDetailsProducts/TableLine.tsx @@ -3,8 +3,11 @@ import Money from "@dashboard/components/Money"; import TableCellAvatar from "@dashboard/components/TableCellAvatar"; import { AVATAR_MARGIN } from "@dashboard/components/TableCellAvatar/Avatar"; import TableRowLink from "@dashboard/components/TableRowLink"; -import { OrderLineFragment, OrderLineInput } from "@dashboard/graphql"; -import { OrderErrorFragment } from "@dashboard/orders/types"; +import { + OrderErrorFragment, + OrderLineFragment, + OrderLineInput, +} from "@dashboard/graphql"; import { OrderLineDiscountContextConsumerProps } from "@dashboard/products/components/OrderDiscountProviders/OrderLineDiscountProvider"; import { TableCell, Typography } from "@material-ui/core"; import { DeleteIcon, IconButton, makeStyles } from "@saleor/macaw-ui"; diff --git a/src/orders/components/OrderDraftDetailsProducts/useLineAlerts.ts b/src/orders/components/OrderDraftDetailsProducts/useLineAlerts.ts index e3f918dab..c330ebffb 100644 --- a/src/orders/components/OrderDraftDetailsProducts/useLineAlerts.ts +++ b/src/orders/components/OrderDraftDetailsProducts/useLineAlerts.ts @@ -1,5 +1,4 @@ -import { OrderLineFragment } from "@dashboard/graphql"; -import { OrderErrorFragment } from "@dashboard/orders/types"; +import { OrderErrorFragment, OrderLineFragment } from "@dashboard/graphql"; import getOrderErrorMessage from "@dashboard/utils/errors/order"; import { useMemo } from "react"; import { useIntl } from "react-intl"; diff --git a/src/orders/components/OrderDraftDetailsSummary/OrderDraftDetailsSummary.tsx b/src/orders/components/OrderDraftDetailsSummary/OrderDraftDetailsSummary.tsx index 2f56bd3e7..adf6df24a 100644 --- a/src/orders/components/OrderDraftDetailsSummary/OrderDraftDetailsSummary.tsx +++ b/src/orders/components/OrderDraftDetailsSummary/OrderDraftDetailsSummary.tsx @@ -1,8 +1,11 @@ import HorizontalSpacer from "@dashboard/components/HorizontalSpacer"; import Link from "@dashboard/components/Link"; import Money from "@dashboard/components/Money"; -import { DiscountValueTypeEnum } from "@dashboard/graphql"; -import { OrderErrorFragment, OrderSharedType } from "@dashboard/orders/types"; +import { + DiscountValueTypeEnum, + OrderDetailsFragment, + OrderErrorFragment, +} from "@dashboard/graphql"; import { OrderDiscountContextConsumerProps } from "@dashboard/products/components/OrderDiscountProviders/OrderDiscountProvider"; import { OrderDiscountData } from "@dashboard/products/components/OrderDiscountProviders/types"; import { getFormErrors } from "@dashboard/utils/errors"; @@ -58,7 +61,7 @@ const PRICE_PLACEHOLDER = "---"; interface OrderDraftDetailsSummaryProps extends OrderDiscountContextConsumerProps { disabled?: boolean; - order: OrderSharedType; + order: OrderDetailsFragment; errors: OrderErrorFragment[]; onShippingMethodEdit: () => void; } diff --git a/src/orders/components/OrderDraftPage/OrderDraftAlert.tsx b/src/orders/components/OrderDraftPage/OrderDraftAlert.tsx index ae11a6786..0b6fbc068 100644 --- a/src/orders/components/OrderDraftPage/OrderDraftAlert.tsx +++ b/src/orders/components/OrderDraftPage/OrderDraftAlert.tsx @@ -1,5 +1,7 @@ -import { ChannelUsabilityDataQuery } from "@dashboard/graphql"; -import { OrderSharedType } from "@dashboard/orders/types"; +import { + ChannelUsabilityDataQuery, + OrderDetailsFragment, +} from "@dashboard/graphql"; import { Alert, AlertProps } from "@saleor/macaw-ui"; import clsx from "clsx"; import React from "react"; @@ -10,7 +12,7 @@ import { alertMessages } from "./messages"; import { useAlertStyles } from "./styles"; const getAlerts = ( - order?: OrderSharedType, + order?: OrderDetailsFragment, channelUsabilityData?: ChannelUsabilityDataQuery, ) => { const canDetermineShippingMethods = @@ -37,7 +39,7 @@ const getAlerts = ( }; export type OrderDraftAlertProps = Omit & { - order?: OrderSharedType; + order?: OrderDetailsFragment; channelUsabilityData?: ChannelUsabilityDataQuery; }; diff --git a/src/orders/components/OrderDraftPage/OrderDraftPage.tsx b/src/orders/components/OrderDraftPage/OrderDraftPage.tsx index c30b78115..497dea73a 100644 --- a/src/orders/components/OrderDraftPage/OrderDraftPage.tsx +++ b/src/orders/components/OrderDraftPage/OrderDraftPage.tsx @@ -7,17 +7,14 @@ import Savebar from "@dashboard/components/Savebar"; import Skeleton from "@dashboard/components/Skeleton"; import { ChannelUsabilityDataQuery, + OrderDetailsFragment, + OrderErrorFragment, OrderLineInput, SearchCustomersQuery, } from "@dashboard/graphql"; import { SubmitPromise } from "@dashboard/hooks/useForm"; import useNavigator from "@dashboard/hooks/useNavigator"; import OrderChannelSectionCard from "@dashboard/orders/components/OrderChannelSectionCard"; -import { - OrderBothTypes, - OrderErrorFragment, - OrderSharedType, -} from "@dashboard/orders/types"; import { orderDraftListUrl } from "@dashboard/orders/urls"; import { FetchMoreProps, RelayToFlat } from "@dashboard/types"; import { Typography } from "@material-ui/core"; @@ -33,7 +30,7 @@ import OrderDraftAlert from "./OrderDraftAlert"; export interface OrderDraftPageProps extends FetchMoreProps { disabled: boolean; - order?: OrderBothTypes; + order?: OrderDetailsFragment; channelUsabilityData?: ChannelUsabilityDataQuery; users: RelayToFlat; usersLoading: boolean; @@ -116,11 +113,11 @@ const OrderDraftPage: React.FC = props => { = props => { hasMore={hasMore} loading={usersLoading} errors={errors} - order={order as OrderSharedType} + order={order as OrderDetailsFragment} users={users} onBillingAddressEdit={onBillingAddressEdit} onCustomerEdit={onCustomerEdit} diff --git a/src/orders/components/OrderFulfilledProductsCard/OrderFulfilledProductsCard.tsx b/src/orders/components/OrderFulfilledProductsCard/OrderFulfilledProductsCard.tsx index 10b6727ae..e519a9951 100644 --- a/src/orders/components/OrderFulfilledProductsCard/OrderFulfilledProductsCard.tsx +++ b/src/orders/components/OrderFulfilledProductsCard/OrderFulfilledProductsCard.tsx @@ -1,9 +1,8 @@ import CardSpacer from "@dashboard/components/CardSpacer"; import ResponsiveTable from "@dashboard/components/ResponsiveTable"; import { FulfillmentStatus, OrderDetailsFragment } from "@dashboard/graphql"; -import { useFlags } from "@dashboard/hooks/useFlags"; import TrashIcon from "@dashboard/icons/Trash"; -import { orderHasTransactions, OrderSharedType } from "@dashboard/orders/types"; +import { orderHasTransactions } from "@dashboard/orders/types"; import { mergeRepeatedOrderLines } from "@dashboard/orders/utils/data"; import { Card, CardContent, TableBody } from "@material-ui/core"; import { IconButton } from "@saleor/macaw-ui"; @@ -20,7 +19,7 @@ import useStyles from "./styles"; interface OrderFulfilledProductsCardProps { fulfillment: OrderDetailsFragment["fulfillments"][0]; fulfillmentAllowUnpaid: boolean; - order?: OrderSharedType; + order?: OrderDetailsFragment; onOrderFulfillmentApprove: () => void; onOrderFulfillmentCancel: () => void; onTrackingCodeAdd: () => void; @@ -49,9 +48,6 @@ const OrderFulfilledProductsCard: React.FC< onTrackingCodeAdd, } = props; const classes = useStyles(props); - const { orderTransactions: transactionsFeatureFlag } = useFlags([ - "orderTransactions", - ]); if (!fulfillment) { return null; @@ -106,10 +102,7 @@ const OrderFulfilledProductsCard: React.FC< fulfillmentAllowUnpaid={fulfillmentAllowUnpaid} onTrackingCodeAdd={onTrackingCodeAdd} onApprove={onOrderFulfillmentApprove} - hasTransactions={orderHasTransactions( - order, - transactionsFeatureFlag.enabled, - )} + hasTransactions={orderHasTransactions(order)} /> diff --git a/src/orders/components/OrderGrantRefundPage/OrderGrantRefundPage.tsx b/src/orders/components/OrderGrantRefundPage/OrderGrantRefundPage.tsx index 0cd41bbd6..56a4a044d 100644 --- a/src/orders/components/OrderGrantRefundPage/OrderGrantRefundPage.tsx +++ b/src/orders/components/OrderGrantRefundPage/OrderGrantRefundPage.tsx @@ -2,7 +2,7 @@ import { TopNav } from "@dashboard/components/AppLayout/TopNav"; import CardSpacer from "@dashboard/components/CardSpacer"; import { DetailPageLayout } from "@dashboard/components/Layouts"; import Skeleton from "@dashboard/components/Skeleton"; -import { OrderDetailsGrantRefundFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsGrantRefundFragment } from "@dashboard/graphql"; import { orderUrl } from "@dashboard/orders/urls"; import { Card, CardContent, TextField, Typography } from "@material-ui/core"; import { ConfirmButtonTransitionState } from "@saleor/macaw-ui"; @@ -61,7 +61,7 @@ const OrderGrantRefundPage: React.FC = ({ } }, [order]); - const { set, change, data, submit } = useGrantRefundForm({ + const { set, change, data, submit, setIsDirty } = useGrantRefundForm({ onSubmit, initialData, }); @@ -92,7 +92,10 @@ const OrderGrantRefundPage: React.FC = ({
{ + setIsDirty(true); + dispatch(...args); + }, state, form: { change, data, set }, totalSelectedPrice, diff --git a/src/orders/components/OrderGrantRefundPage/components/ProductCard.tsx b/src/orders/components/OrderGrantRefundPage/components/ProductCard.tsx index 9b0a9087b..7356a5f59 100644 --- a/src/orders/components/OrderGrantRefundPage/components/ProductCard.tsx +++ b/src/orders/components/OrderGrantRefundPage/components/ProductCard.tsx @@ -2,7 +2,7 @@ import { Button } from "@dashboard/components/Button"; import CardTitle from "@dashboard/components/CardTitle"; import TableCellAvatar from "@dashboard/components/TableCellAvatar"; import TableRowLink from "@dashboard/components/TableRowLink"; -import { OrderLineGrantRefundFragment } from "@dashboard/graphql/transactions"; +import { OrderLineGrantRefundFragment } from "@dashboard/graphql"; import { renderCollection } from "@dashboard/misc"; import { Card, diff --git a/src/orders/components/OrderGrantRefundPage/components/RefundCard.tsx b/src/orders/components/OrderGrantRefundPage/components/RefundCard.tsx index 52739a9e1..fdbeeadc2 100644 --- a/src/orders/components/OrderGrantRefundPage/components/RefundCard.tsx +++ b/src/orders/components/OrderGrantRefundPage/components/RefundCard.tsx @@ -4,12 +4,13 @@ import ConfirmButton from "@dashboard/components/ConfirmButton"; import { formatMoneyAmount } from "@dashboard/components/Money"; import PriceField from "@dashboard/components/PriceField"; import Skeleton from "@dashboard/components/Skeleton"; -import { OrderDetailsGrantRefundFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsGrantRefundFragment } from "@dashboard/graphql"; import useLocale from "@dashboard/hooks/useLocale"; import { buttonMessages } from "@dashboard/intl"; import { Card, CardContent, Typography } from "@material-ui/core"; import { useId } from "@reach/auto-id"; -import { ConfirmButtonTransitionState, LayoutButton } from "@saleor/macaw-ui"; +import { ConfirmButtonTransitionState } from "@saleor/macaw-ui"; +import { Button } from "@saleor/macaw-ui/next"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; @@ -98,14 +99,14 @@ export const RefundCard = ({ locale, )} - form.set({ amount: totalSelectedPrice.toString() })} > - +
diff --git a/src/orders/components/OrderGrantRefundPage/form.ts b/src/orders/components/OrderGrantRefundPage/form.ts index 23c5a0202..cbb7fd5cb 100644 --- a/src/orders/components/OrderGrantRefundPage/form.ts +++ b/src/orders/components/OrderGrantRefundPage/form.ts @@ -30,7 +30,7 @@ export const useGrantRefundForm = ({ }, ); - const { setExitDialogSubmitRef } = useExitFormDialog({ + const { setExitDialogSubmitRef, setIsDirty } = useExitFormDialog({ formId, }); @@ -43,5 +43,5 @@ export const useGrantRefundForm = ({ React.useEffect(() => setExitDialogSubmitRef(submit), [submit]); - return { set, change, data, submit }; + return { set, change, data, submit, setIsDirty }; }; diff --git a/src/orders/components/OrderGrantRefundPage/reducer.ts b/src/orders/components/OrderGrantRefundPage/reducer.ts index 0b072853f..9e5598784 100644 --- a/src/orders/components/OrderGrantRefundPage/reducer.ts +++ b/src/orders/components/OrderGrantRefundPage/reducer.ts @@ -1,4 +1,4 @@ -import { OrderDetailsGrantRefundFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsGrantRefundFragment } from "@dashboard/graphql"; import { exhaustiveCheck } from "@dashboard/utils/ts"; export interface ReducerOrderLine { diff --git a/src/orders/components/OrderGrantRefundPage/styles.ts b/src/orders/components/OrderGrantRefundPage/styles.ts index c19846a4f..0359a4c83 100644 --- a/src/orders/components/OrderGrantRefundPage/styles.ts +++ b/src/orders/components/OrderGrantRefundPage/styles.ts @@ -13,7 +13,6 @@ export const useStyles = makeStyles( }, cardLoading: { height: "20em", - background: "white", }, form: { display: "contents", diff --git a/src/orders/components/OrderGrantRefundPage/utils.ts b/src/orders/components/OrderGrantRefundPage/utils.ts index 590aee856..4602f3615 100644 --- a/src/orders/components/OrderGrantRefundPage/utils.ts +++ b/src/orders/components/OrderGrantRefundPage/utils.ts @@ -1,4 +1,4 @@ -import { OrderDetailsGrantRefundFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsGrantRefundFragment } from "@dashboard/graphql"; import currency from "currency.js"; import { GrantRefundState } from "./reducer"; diff --git a/src/orders/components/OrderGrantedRefunds/OrderGrantedRefunds.tsx b/src/orders/components/OrderGrantedRefunds/OrderGrantedRefunds.tsx index a4c605d6b..8bc70ef96 100644 --- a/src/orders/components/OrderGrantedRefunds/OrderGrantedRefunds.tsx +++ b/src/orders/components/OrderGrantedRefunds/OrderGrantedRefunds.tsx @@ -5,7 +5,7 @@ import Money, { formatMoney } from "@dashboard/components/Money"; import OverflowTooltip from "@dashboard/components/OverflowTooltip"; import { Pill } from "@dashboard/components/Pill"; import ResponsiveTable from "@dashboard/components/ResponsiveTable"; -import { OrderDetailsFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsFragment } from "@dashboard/graphql"; import useLocale from "@dashboard/hooks/useLocale"; import { buttonMessages } from "@dashboard/intl"; import { getUserInitials, renderCollection } from "@dashboard/misc"; diff --git a/src/orders/components/OrderHistory/ExtendedDiscountTimelineEvent/ExtendedDiscountTimelineEvent.tsx b/src/orders/components/OrderHistory/ExtendedDiscountTimelineEvent/ExtendedDiscountTimelineEvent.tsx index ca296ce80..6c0a6c52e 100644 --- a/src/orders/components/OrderHistory/ExtendedDiscountTimelineEvent/ExtendedDiscountTimelineEvent.tsx +++ b/src/orders/components/OrderHistory/ExtendedDiscountTimelineEvent/ExtendedDiscountTimelineEvent.tsx @@ -2,7 +2,7 @@ import CardSpacer from "@dashboard/components/CardSpacer"; import HorizontalSpacer from "@dashboard/components/HorizontalSpacer"; import { TimelineEvent } from "@dashboard/components/Timeline"; import { TitleElement } from "@dashboard/components/Timeline/TimelineEventHeader"; -import { OrderEventFragment, OrderEventsEnum } from "@dashboard/orders/types"; +import { OrderEventFragment, OrderEventsEnum } from "@dashboard/graphql"; import { Typography } from "@material-ui/core"; import { makeStyles } from "@saleor/macaw-ui"; import React from "react"; diff --git a/src/orders/components/OrderHistory/ExtendedTimelineEvent.tsx b/src/orders/components/OrderHistory/ExtendedTimelineEvent.tsx index 6b3358c0f..89fe174da 100644 --- a/src/orders/components/OrderHistory/ExtendedTimelineEvent.tsx +++ b/src/orders/components/OrderHistory/ExtendedTimelineEvent.tsx @@ -1,6 +1,6 @@ import Money from "@dashboard/components/Money"; import { TimelineEvent } from "@dashboard/components/Timeline"; -import { OrderEventFragment, OrderEventsEnum } from "@dashboard/orders/types"; +import { OrderEventFragment, OrderEventsEnum } from "@dashboard/graphql"; import { Typography } from "@material-ui/core"; import { makeStyles } from "@saleor/macaw-ui"; import camelCase from "lodash/camelCase"; diff --git a/src/orders/components/OrderHistory/LinkedTimelineEvent.tsx b/src/orders/components/OrderHistory/LinkedTimelineEvent.tsx index 8d7975be1..ff5671d4f 100644 --- a/src/orders/components/OrderHistory/LinkedTimelineEvent.tsx +++ b/src/orders/components/OrderHistory/LinkedTimelineEvent.tsx @@ -1,9 +1,6 @@ import { TimelineEvent } from "@dashboard/components/Timeline"; import { TitleElement } from "@dashboard/components/Timeline/TimelineEventHeader"; -import { - OrderEventFragment, - OrderEventsEnum, -} from "@dashboard/graphql/transactions"; +import { OrderEventFragment, OrderEventsEnum } from "@dashboard/graphql"; import { orderUrl } from "@dashboard/orders/urls"; import React from "react"; import { defineMessages, useIntl } from "react-intl"; diff --git a/src/orders/components/OrderHistory/OrderHistory.tsx b/src/orders/components/OrderHistory/OrderHistory.tsx index d98954d49..4bc86a27b 100644 --- a/src/orders/components/OrderHistory/OrderHistory.tsx +++ b/src/orders/components/OrderHistory/OrderHistory.tsx @@ -8,8 +8,8 @@ import { TimelineEventProps, TimelineNote, } from "@dashboard/components/Timeline"; +import { OrderEventFragment } from "@dashboard/graphql"; import { SubmitPromise } from "@dashboard/hooks/useForm"; -import { OrderEventFragment } from "@dashboard/orders/types"; import { Typography } from "@material-ui/core"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; diff --git a/src/orders/components/OrderHistory/messages.ts b/src/orders/components/OrderHistory/messages.ts index 27b5655a7..a32c9388b 100644 --- a/src/orders/components/OrderHistory/messages.ts +++ b/src/orders/components/OrderHistory/messages.ts @@ -1,5 +1,8 @@ -import { OrderEventsEmailsEnum } from "@dashboard/graphql"; -import { OrderEventFragment, OrderEventsEnum } from "@dashboard/orders/types"; +import { + OrderEventFragment, + OrderEventsEmailsEnum, + OrderEventsEnum, +} from "@dashboard/graphql"; import { IntlShape } from "react-intl"; const getUserOrApp = (event: OrderEventFragment) => { diff --git a/src/orders/components/OrderHistory/utils.tsx b/src/orders/components/OrderHistory/utils.tsx index da58365db..1fdda1d87 100644 --- a/src/orders/components/OrderHistory/utils.tsx +++ b/src/orders/components/OrderHistory/utils.tsx @@ -1,7 +1,4 @@ -import { - OrderEventFragment, - OrderEventsEnum, -} from "@dashboard/graphql/transactions"; +import { OrderEventFragment, OrderEventsEnum } from "@dashboard/graphql"; import { getFullName } from "@dashboard/misc"; import { orderUrl } from "@dashboard/orders/urls"; import { staffMemberDetailsUrl } from "@dashboard/staff/urls"; diff --git a/src/orders/components/OrderManualTransactionForm/components/DescriptionField.tsx b/src/orders/components/OrderManualTransactionForm/components/DescriptionField.tsx index 302922e8b..cf04e78aa 100644 --- a/src/orders/components/OrderManualTransactionForm/components/DescriptionField.tsx +++ b/src/orders/components/OrderManualTransactionForm/components/DescriptionField.tsx @@ -16,6 +16,7 @@ export const DescriptionField: React.FC< disabled={submitState === "loading" || disabled} onChange={handleChangeDescription} value={description} + inputProps={{ ...props.inputProps, maxLength: 512 }} /> ); }; diff --git a/src/orders/components/OrderManualTransactionForm/components/PspReferenceField.tsx b/src/orders/components/OrderManualTransactionForm/components/PspReferenceField.tsx index 3df9ba123..6639ed062 100644 --- a/src/orders/components/OrderManualTransactionForm/components/PspReferenceField.tsx +++ b/src/orders/components/OrderManualTransactionForm/components/PspReferenceField.tsx @@ -16,6 +16,7 @@ export const PspReferenceField: React.FC< disabled={submitState === "loading" || disabled} onChange={handleChangePspReference} value={pspReference} + inputProps={{ ...props.inputProps, maxLength: 512 }} /> ); }; diff --git a/src/orders/components/OrderPaymentOrTransaction/OrderPaymentOrTransaction.test.tsx b/src/orders/components/OrderPaymentOrTransaction/OrderPaymentOrTransaction.test.tsx index 95336e0d8..20a73b7f4 100644 --- a/src/orders/components/OrderPaymentOrTransaction/OrderPaymentOrTransaction.test.tsx +++ b/src/orders/components/OrderPaymentOrTransaction/OrderPaymentOrTransaction.test.tsx @@ -1,14 +1,16 @@ -import { useFlags } from "@dashboard/hooks/useFlags"; +import { MarkAsPaidStrategyEnum } from "@dashboard/graphql"; import { - order, - orderWithTransactions, + order as orderFixture, + payments, shop, - shopWithTransactions, } from "@dashboard/orders/fixtures"; import { render, screen } from "@testing-library/react"; import React from "react"; -import { OrderPaymentOrTransaction } from "./OrderPaymentOrTransaction"; +import { + OrderPaymentOrTransaction, + OrderPaymentOrTransactionProps, +} from "./OrderPaymentOrTransaction"; jest.mock("react-intl", () => ({ useIntl: jest.fn(() => ({ @@ -44,52 +46,77 @@ jest.mock("@saleor/macaw-ui/next", () => ({ }, })); -jest.mock("@dashboard/hooks/useFlags", () => ({ - useFlags: jest.fn(() => ({ orderTransactions: { enabled: false } })), -})); - jest.mock("react-router-dom", () => ({ Link: jest.fn(({ to, ...props }) => ), })); -const mockedUseFlags = useFlags as jest.MockedFunction; - describe("OrderPaymentOrTransaction", () => { - it("renders OrderPayment when transactions are disabled", () => { + const order = orderFixture(undefined); + const sharedProps = { + order, + shop, + onMarkAsPaid: () => undefined, + onPaymentRefund: () => undefined, + onAddManualTransaction: () => undefined, + onPaymentCapture: () => undefined, + onTransactionAction: () => undefined, + onPaymentVoid: () => undefined, + } as OrderPaymentOrTransactionProps; + + it("renders OrderPayment when transactions are disabled in channel", () => { render( undefined} - onPaymentRefund={() => undefined} - onAddManualTransaction={() => undefined} - onPaymentCapture={() => undefined} - onTransactionAction={() => undefined} - onPaymentVoid={() => undefined} + {...sharedProps} + order={{ + ...order, + transactions: [], + payments: [], + channel: { + ...order.channel, + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.PAYMENT_FLOW, + __typename: "OrderSettings", + }, + }, + }} />, ); expect(screen.queryByTestId("OrderPayment")).toBeInTheDocument(); }); - it("renders OrderTransaction when transactions are enabled", () => { - mockedUseFlags.mockImplementationOnce(() => ({ - orderTransactions: { enabled: true, value: "true" }, - })); - + it("renders OrderPayment when payments are used in order", () => { render( undefined} - onPaymentRefund={() => undefined} - onAddManualTransaction={() => undefined} - onPaymentCapture={() => undefined} - onTransactionAction={() => undefined} - onPaymentVoid={() => undefined} + {...sharedProps} + order={{ + ...order, + transactions: [], + payments: [payments.pending], + }} + />, + ); + + expect(screen.queryByTestId("OrderPayment")).toBeInTheDocument(); + }); + + it("renders OrderTransaction when transactions are enabled in channel", () => { + render( + , ); expect(screen.queryByTestId("OrderSummaryCard")).toBeInTheDocument(); }); + + it("renders OrderTransaction when transactions are used in order", () => { + render(); + + expect(screen.queryByTestId("OrderSummaryCard")).toBeInTheDocument(); + }); }); diff --git a/src/orders/components/OrderPaymentOrTransaction/OrderPaymentOrTransaction.tsx b/src/orders/components/OrderPaymentOrTransaction/OrderPaymentOrTransaction.tsx index 68b17a9b7..76fec2a7a 100644 --- a/src/orders/components/OrderPaymentOrTransaction/OrderPaymentOrTransaction.tsx +++ b/src/orders/components/OrderPaymentOrTransaction/OrderPaymentOrTransaction.tsx @@ -1,20 +1,18 @@ import CardSpacer from "@dashboard/components/CardSpacer"; -import { TransactionActionEnum } from "@dashboard/graphql/transactions"; -import { useFlags } from "@dashboard/hooks/useFlags"; import { - OrderBothTypes, - orderChannelUseTransactions, - ShopBothTypes, - ShopWithTransactions, -} from "@dashboard/orders/types"; + OrderDetailsFragment, + OrderDetailsQuery, + TransactionActionEnum, +} from "@dashboard/graphql"; +import { orderShouldUseTransactions } from "@dashboard/orders/types"; import React from "react"; import OrderPayment from "../OrderPayment/OrderPayment"; import { OrderTransactionsWrapper } from "./OrderTransactionsWrapper"; -interface OrderPaymentOrTransactionProps { - order: OrderBothTypes; - shop: ShopBothTypes; +export interface OrderPaymentOrTransactionProps { + order: OrderDetailsFragment; + shop: OrderDetailsQuery["shop"]; onTransactionAction(transactionId: string, actionType: TransactionActionEnum); onPaymentCapture(); onPaymentVoid(); @@ -35,13 +33,11 @@ export const OrderPaymentOrTransaction: React.FC< onMarkAsPaid, onAddManualTransaction, }) => { - const { orderTransactions } = useFlags(["orderTransactions"]); - - if (orderChannelUseTransactions(order, orderTransactions.enabled)) { + if (orderShouldUseTransactions(order)) { return ( { +describe("getFilteredPayments", () => { + const order = orderFixture(null); it("returns empty when there is no order", () => { expect(getFilteredPayments(null)).toStrictEqual([]); }); it("returns empty when there are no payments", () => { - expect( - getFilteredPayments({ ...orderWithTransactions, payments: [] }), - ).toStrictEqual([]); + expect(getFilteredPayments(order)).toStrictEqual([]); }); it("returns payments that are active and have transactions attached", () => { expect( - // @ts-expect-error types mistmatch in generated types getFilteredPayments({ ...order, payments: [payments.authorized] }), ).toStrictEqual([payments.authorized]); }); diff --git a/src/orders/components/OrderPaymentOrTransaction/utils.ts b/src/orders/components/OrderPaymentOrTransaction/utils.ts index fd58adbc8..633ba5039 100644 --- a/src/orders/components/OrderPaymentOrTransaction/utils.ts +++ b/src/orders/components/OrderPaymentOrTransaction/utils.ts @@ -1,4 +1,4 @@ -import { OrderDetailsFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsFragment } from "@dashboard/graphql"; /** Returns paymetns from order that were used to pay for the order */ export function getFilteredPayments(order: OrderDetailsFragment) { diff --git a/src/orders/components/OrderPaymentSummaryCard/OrderPaymentSummaryCard.tsx b/src/orders/components/OrderPaymentSummaryCard/OrderPaymentSummaryCard.tsx index 561d9177f..95b3dc17d 100644 --- a/src/orders/components/OrderPaymentSummaryCard/OrderPaymentSummaryCard.tsx +++ b/src/orders/components/OrderPaymentSummaryCard/OrderPaymentSummaryCard.tsx @@ -3,10 +3,7 @@ import CardTitle from "@dashboard/components/CardTitle"; import { Hr } from "@dashboard/components/Hr"; import { Pill } from "@dashboard/components/Pill"; import Skeleton from "@dashboard/components/Skeleton"; -import { - OrderAction, - OrderDetailsFragment, -} from "@dashboard/graphql/transactions"; +import { OrderAction, OrderDetailsFragment } from "@dashboard/graphql"; import { transformPaymentStatus } from "@dashboard/misc"; import { orderGrantRefundUrl, @@ -69,6 +66,7 @@ const OrderPaymentSummaryCard: React.FC = ({ { + const order = orderFixture(null); + it("hides everything when no order is passed", () => { expect(getShouldDisplayAmounts(undefined)).toStrictEqual( expect.objectContaining({ @@ -20,7 +22,7 @@ describe("PaymentSummary / getShouldDisplayAmounts", () => { it("displays everything, but authorized if there's a pending value", () => { expect( getShouldDisplayAmounts({ - ...orderWithTransactions, + ...order, totalAuthorized: prepareMoney(0), totalAuthorizePending: prepareMoney(0), totalCharged: prepareMoney(1), @@ -38,14 +40,14 @@ describe("PaymentSummary / getShouldDisplayAmounts", () => { it("displays everything with authorized if there's a pending value", () => { const result1 = getShouldDisplayAmounts({ - ...orderWithTransactions, + ...order, totalAuthorized: prepareMoney(12), totalAuthorizePending: prepareMoney(0), totalChargePending: prepareMoney(1), }); const result2 = getShouldDisplayAmounts({ - ...orderWithTransactions, + ...order, totalAuthorized: prepareMoney(12), totalAuthorizePending: prepareMoney(12), }); @@ -64,7 +66,7 @@ describe("PaymentSummary / getShouldDisplayAmounts", () => { it("displays capture and authorize amount when they are different", () => { expect( getShouldDisplayAmounts({ - ...orderWithTransactions, + ...order, totalAuthorized: prepareMoney(10), totalCharged: prepareMoney(12), }), @@ -81,7 +83,7 @@ describe("PaymentSummary / getShouldDisplayAmounts", () => { it("displays capoture amount when it's not equal to total amount", () => { expect( getShouldDisplayAmounts({ - ...orderWithTransactions, + ...order, totalAuthorized: prepareMoney(0), totalCharged: prepareMoney(12), total: { @@ -104,7 +106,7 @@ describe("PaymentSummary / getShouldDisplayAmounts", () => { it("displays authorized if there is authorized amount", () => { expect( getShouldDisplayAmounts({ - ...orderWithTransactions, + ...order, totalAuthorized: prepareMoney(10), totalCharged: prepareMoney(0), }), @@ -123,7 +125,7 @@ describe("PaymentSummary / getShouldDisplayAmounts", () => { it("hides everything if order is fully settled", () => { expect( getShouldDisplayAmounts({ - ...orderWithTransactions, + ...order, totalCharged: prepareMoney(1), total: { tax: prepareMoney(0), diff --git a/src/orders/components/OrderPaymentSummaryCard/components/PaymentsSummary/utils.ts b/src/orders/components/OrderPaymentSummaryCard/components/PaymentsSummary/utils.ts index b2fea41ef..ff05e7be4 100644 --- a/src/orders/components/OrderPaymentSummaryCard/components/PaymentsSummary/utils.ts +++ b/src/orders/components/OrderPaymentSummaryCard/components/PaymentsSummary/utils.ts @@ -1,4 +1,4 @@ -import { OrderDetailsFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsFragment } from "@dashboard/graphql"; import { PaymentState } from "./types"; diff --git a/src/orders/components/OrderPaymentSummaryCard/components/RefundsSummary.tsx b/src/orders/components/OrderPaymentSummaryCard/components/RefundsSummary.tsx index 4fb759a2a..de14f488b 100644 --- a/src/orders/components/OrderPaymentSummaryCard/components/RefundsSummary.tsx +++ b/src/orders/components/OrderPaymentSummaryCard/components/RefundsSummary.tsx @@ -1,4 +1,4 @@ -import { OrderDetailsFragment } from "@dashboard/graphql/transactions"; +import { OrderDetailsFragment } from "@dashboard/graphql"; import { Typography } from "@material-ui/core"; import React from "react"; import { FormattedMessage } from "react-intl"; diff --git a/src/orders/components/OrderPaymentSummaryCard/utils.ts b/src/orders/components/OrderPaymentSummaryCard/utils.ts index 8608907b0..e81d655bc 100644 --- a/src/orders/components/OrderPaymentSummaryCard/utils.ts +++ b/src/orders/components/OrderPaymentSummaryCard/utils.ts @@ -1,15 +1,17 @@ -import { PaymentChargeStatusEnum } from "@dashboard/graphql"; -import { OrderBothTypes, OrderSharedType } from "@dashboard/orders/types"; +import { + OrderDetailsFragment, + PaymentChargeStatusEnum, +} from "@dashboard/graphql"; import { IMoney } from "@dashboard/utils/intl"; import { extractOutstandingBalance } from "../OrderSummaryCard/utils"; -export const extractRefundedAmount = (order: OrderSharedType): IMoney => { +export const extractRefundedAmount = (order: OrderDetailsFragment): IMoney => { if (order?.paymentStatus === PaymentChargeStatusEnum.FULLY_REFUNDED) { return order?.total?.gross; } if (order?.paymentStatus === PaymentChargeStatusEnum.PARTIALLY_REFUNDED) { - return extractOutstandingBalance(order as OrderBothTypes); + return extractOutstandingBalance(order); } return ( order?.total?.gross && { diff --git a/src/orders/components/OrderRefundReturnAmount/utils.ts b/src/orders/components/OrderRefundReturnAmount/utils.ts index e10363ca1..66c1dedaf 100644 --- a/src/orders/components/OrderRefundReturnAmount/utils.ts +++ b/src/orders/components/OrderRefundReturnAmount/utils.ts @@ -1,9 +1,6 @@ +import { OrderDetailsFragment } from "@dashboard/graphql"; import { FormsetData } from "@dashboard/hooks/useFormset"; -import { - OrderBothTypes, - OrderRefundSharedType, - OrderSharedType, -} from "@dashboard/orders/types"; +import { OrderRefundSharedType } from "@dashboard/orders/types"; import { getAllFulfillmentLinesPriceSum, getOrderCharged, @@ -23,7 +20,7 @@ export const getMiscellaneousAmountValues = ( ): OrderRefundAmountValuesProps => { const authorizedAmount = order?.total?.gross; const previouslyRefunded = getPreviouslyRefundedPrice(order); - const maxRefund = getOrderCharged(order); + const maxRefund = getOrderCharged(order as OrderDetailsFragment); return { authorizedAmount, @@ -59,7 +56,7 @@ export const getProductsAmountValues = ({ const shipmentCost = getShipmentCost(order); const previouslyRefunded = getPreviouslyRefundedPrice(order); - const maxRefund = getOrderCharged(order); + const maxRefund = getOrderCharged(order as OrderDetailsFragment); const refundedLinesSum = getRefundedLinesPriceSum( order?.lines, unfulfilledItemsQuantities as FormsetData, @@ -138,7 +135,7 @@ const getReturnTotalAmount = ({ order, maxRefund, }: { - order: OrderBothTypes; + order: OrderDetailsFragment; selectedProductsValue: IMoney; refundShipmentCosts: boolean; maxRefund: IMoney; @@ -157,7 +154,7 @@ const getReturnTotalAmount = ({ }; export const getReturnProductsAmountValues = ( - order: OrderBothTypes, + order: OrderDetailsFragment, formData: OrderReturnFormData, ) => { const authorizedAmount = getAuthorizedAmount(order); @@ -170,12 +167,15 @@ export const getReturnProductsAmountValues = ( } = formData; const replacedProductsValue = authorizedAmount?.currency && { - amount: getReplacedProductsAmount(order as OrderSharedType, formData), + amount: getReplacedProductsAmount(order as OrderDetailsFragment, formData), currency: authorizedAmount.currency, }; const selectedProductsValue = authorizedAmount?.currency && { - amount: getReturnSelectedProductsAmount(order as OrderSharedType, formData), + amount: getReturnSelectedProductsAmount( + order as OrderDetailsFragment, + formData, + ), currency: authorizedAmount.currency, }; diff --git a/src/orders/components/OrderReturnPage/OrderReturnPage.tsx b/src/orders/components/OrderReturnPage/OrderReturnPage.tsx index 1c8d3bc04..f01da9199 100644 --- a/src/orders/components/OrderReturnPage/OrderReturnPage.tsx +++ b/src/orders/components/OrderReturnPage/OrderReturnPage.tsx @@ -1,15 +1,10 @@ import { TopNav } from "@dashboard/components/AppLayout/TopNav"; import CardSpacer from "@dashboard/components/CardSpacer"; import { DetailPageLayout } from "@dashboard/components/Layouts"; -import { OrderErrorFragment } from "@dashboard/graphql"; -import { useFlags } from "@dashboard/hooks/useFlags"; +import { OrderDetailsFragment, OrderErrorFragment } from "@dashboard/graphql"; import { SubmitPromise } from "@dashboard/hooks/useForm"; import { renderCollection } from "@dashboard/misc"; -import { - OrderBothTypes, - orderHasTransactions, - OrderSharedType, -} from "@dashboard/orders/types"; +import { orderHasTransactions } from "@dashboard/orders/types"; import { orderUrl } from "@dashboard/orders/urls"; import { ConfirmButtonTransitionState } from "@saleor/macaw-ui"; import React from "react"; @@ -29,7 +24,7 @@ import { } from "./utils"; export interface OrderReturnPageProps { - order: OrderBothTypes; + order: OrderDetailsFragment; loading: boolean; errors?: OrderErrorFragment[]; onSubmit: (data: OrderRefundSubmitData) => SubmitPromise; @@ -39,8 +34,6 @@ export interface OrderReturnPageProps { const OrderRefundPage: React.FC = props => { const { order, loading, errors = [], onSubmit, submitStatus } = props; - const { orderTransactions } = useFlags(["orderTransactions"]); - const intl = useIntl(); return ( @@ -58,7 +51,7 @@ const OrderRefundPage: React.FC = props => { = props => { )} {renderCollection( - getWaitingFulfillments(order as OrderSharedType), + getWaitingFulfillments(order as OrderDetailsFragment), ({ id, lines }) => ( = props => { ), )} {renderCollection( - getFulfilledFulfillemnts(order as OrderSharedType), + getFulfilledFulfillemnts(order as OrderDetailsFragment), ({ id, lines }) => ( = props => { )} - {orderHasTransactions(order, orderTransactions.enabled) ? ( + {orderHasTransactions(order) ? ( ; diff --git a/src/orders/components/OrderReturnPage/form.tsx b/src/orders/components/OrderReturnPage/form.tsx index 3e77a4a82..370f6c5b7 100644 --- a/src/orders/components/OrderReturnPage/form.tsx +++ b/src/orders/components/OrderReturnPage/form.tsx @@ -1,5 +1,5 @@ import { useExitFormDialog } from "@dashboard/components/Form/useExitFormDialog"; -import { FulfillmentStatus } from "@dashboard/graphql"; +import { FulfillmentStatus, OrderDetailsFragment } from "@dashboard/graphql"; import useForm, { CommonUseFormResultWithHandlers, SubmitPromise, @@ -10,7 +10,6 @@ import useFormset, { } from "@dashboard/hooks/useFormset"; import useHandleFormSubmit from "@dashboard/hooks/useHandleFormSubmit"; import { getById } from "@dashboard/misc"; -import { OrderBothTypes, OrderSharedType } from "@dashboard/orders/types"; import React, { useEffect } from "react"; import { OrderRefundAmountCalculationMode } from "../OrderRefundPage/form"; @@ -66,7 +65,7 @@ export type UseOrderRefundFormResult = CommonUseFormResultWithHandlers< interface OrderReturnProps { children: (props: UseOrderRefundFormResult) => React.ReactNode; - order: OrderBothTypes; + order: OrderDetailsFragment; onSubmit: (data: OrderRefundSubmitData) => SubmitPromise; } @@ -77,7 +76,7 @@ const getOrderRefundPageFormData = (): OrderReturnData => ({ }); function useOrderReturnForm( - order: OrderSharedType, + order: OrderDetailsFragment, onSubmit: (data: OrderRefundSubmitData) => SubmitPromise, ): UseOrderRefundFormResult { const { @@ -276,7 +275,7 @@ const OrderReturnForm: React.FC = ({ order, onSubmit, }) => { - const props = useOrderReturnForm(order as OrderSharedType, onSubmit); + const props = useOrderReturnForm(order as OrderDetailsFragment, onSubmit); return {children(props)}; }; diff --git a/src/orders/components/OrderReturnPage/utils.tsx b/src/orders/components/OrderReturnPage/utils.tsx index 3b47afd13..942fecb0b 100644 --- a/src/orders/components/OrderReturnPage/utils.tsx +++ b/src/orders/components/OrderReturnPage/utils.tsx @@ -1,6 +1,5 @@ -import { FulfillmentStatus } from "@dashboard/graphql"; +import { FulfillmentStatus, OrderDetailsFragment } from "@dashboard/graphql"; import { getById } from "@dashboard/misc"; -import { OrderSharedType } from "@dashboard/orders/types"; import { Node } from "@dashboard/types"; import { @@ -14,30 +13,31 @@ const fulfiledStatuses = [ FulfillmentStatus.REFUNDED, ]; -export const getOrderUnfulfilledLines = (order: OrderSharedType) => +export const getOrderUnfulfilledLines = (order: OrderDetailsFragment) => order?.lines.filter(line => line.quantityToFulfill > 0) || []; -export const getFulfilledFulfillment = fulfillment => - fulfiledStatuses.includes(fulfillment.status); +export const getFulfilledFulfillment = ( + fulfillment: OrderDetailsFragment["fulfillments"][0], +) => fulfiledStatuses.includes(fulfillment.status); -export const getFulfilledFulfillemnts = (order?: OrderSharedType) => +export const getFulfilledFulfillemnts = (order?: OrderDetailsFragment) => order?.fulfillments.filter(getFulfilledFulfillment) || []; -export const getWaitingFulfillments = (order: OrderSharedType) => +export const getWaitingFulfillments = (order: OrderDetailsFragment) => order?.fulfillments.filter( f => f.status === FulfillmentStatus.WAITING_FOR_APPROVAL, ) || []; -export const getUnfulfilledLines = (order?: OrderSharedType) => +export const getUnfulfilledLines = (order?: OrderDetailsFragment) => order?.lines.filter(line => line.quantityToFulfill > 0) || []; -export const getAllOrderFulfilledLines = (order?: OrderSharedType) => +export const getAllOrderFulfilledLines = (order?: OrderDetailsFragment) => getFulfilledFulfillemnts(order).reduce( (result, { lines }) => [...result, ...getParsedLines(lines)], [], ); -export const getAllOrderWaitingLines = (order?: OrderSharedType) => +export const getAllOrderWaitingLines = (order?: OrderDetailsFragment) => getWaitingFulfillments(order).reduce( (result, { lines }) => [...result, ...getParsedLines(lines)], [], @@ -69,7 +69,7 @@ export function getParsedLineData({ } export function getParsedLineDataForFulfillmentStatus( - order: OrderSharedType, + order: OrderDetailsFragment, fulfillmentStatus: FulfillmentStatus, lineItemOptions: LineItemOptions, ) { @@ -79,14 +79,14 @@ export function getParsedLineDataForFulfillmentStatus( } export const getFulfillmentsWithStatus = ( - order: OrderSharedType, + order: OrderDetailsFragment, fulfillmentStatus: FulfillmentStatus, ) => order?.fulfillments.filter(({ status }) => status === fulfillmentStatus) || []; export const getParsedLinesOfFulfillments = ( - fullfillments: OrderSharedType["fulfillments"], + fullfillments: OrderDetailsFragment["fulfillments"], ) => fullfillments.reduce( (result, { lines }) => [...result, ...getParsedLines(lines)], @@ -94,7 +94,7 @@ export const getParsedLinesOfFulfillments = ( ); export const getParsedLines = ( - lines: OrderSharedType["fulfillments"][0]["lines"], + lines: OrderDetailsFragment["fulfillments"][0]["lines"], ) => lines.map(({ id, quantity, orderLine }) => ({ ...orderLine, diff --git a/src/orders/components/OrderSendRefundPage/OrderSendRefund.stories.tsx b/src/orders/components/OrderSendRefundPage/OrderSendRefund.stories.tsx index 1b59de223..d36b7b789 100644 --- a/src/orders/components/OrderSendRefundPage/OrderSendRefund.stories.tsx +++ b/src/orders/components/OrderSendRefundPage/OrderSendRefund.stories.tsx @@ -2,11 +2,11 @@ import Decorator from "@dashboard/storybook/Decorator"; import { storiesOf } from "@storybook/react"; import React from "react"; -import { orderWithTransactions, prepareMoney } from "../../fixtures"; +import { order as orderFixture, prepareMoney } from "../../fixtures"; import OrderSendRefund, { OrderSendRefundPageProps } from "./OrderSendRefund"; const props: OrderSendRefundPageProps = { - order: orderWithTransactions, + order: orderFixture(null), loading: false, onAddManualRefund: () => undefined, addManualRefundState: "default", @@ -20,7 +20,7 @@ storiesOf("Views / Orders / Send refund order", module) +export const extractOutstandingBalance = ( + order: OrderDetailsFragment, +): IMoney => getOrderCharged(order) && order?.total?.gross && subtractMoney(order.total.gross, getOrderCharged(order)); diff --git a/src/orders/components/OrderTransaction.stories.tsx b/src/orders/components/OrderTransaction.stories.tsx index 12d377cf6..6314a5e1f 100644 --- a/src/orders/components/OrderTransaction.stories.tsx +++ b/src/orders/components/OrderTransaction.stories.tsx @@ -1,7 +1,7 @@ import { TransactionActionEnum, TransactionEventTypeEnum, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import OrderTransaction, { OrderTransactionProps, } from "@dashboard/orders/components/OrderTransaction"; diff --git a/src/orders/components/OrderTransaction/OrderTransaction.tsx b/src/orders/components/OrderTransaction/OrderTransaction.tsx index 851ed05a3..77d0b6188 100644 --- a/src/orders/components/OrderTransaction/OrderTransaction.tsx +++ b/src/orders/components/OrderTransaction/OrderTransaction.tsx @@ -1,7 +1,7 @@ import { TransactionActionEnum, TransactionItemFragment, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import { FakeTransaction, TransactionFakeEvent } from "@dashboard/orders/types"; import { Card } from "@material-ui/core"; import clsx from "clsx"; diff --git a/src/orders/components/OrderTransaction/components/CardTitle/CardTitle.tsx b/src/orders/components/OrderTransaction/components/CardTitle/CardTitle.tsx index b857b32a5..bb5532dad 100644 --- a/src/orders/components/OrderTransaction/components/CardTitle/CardTitle.tsx +++ b/src/orders/components/OrderTransaction/components/CardTitle/CardTitle.tsx @@ -2,7 +2,7 @@ import DefaultCardTitle from "@dashboard/components/CardTitle"; import { TransactionActionEnum, TransactionItemFragment, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import { FakeTransaction } from "@dashboard/orders/types"; import { IconButton } from "@material-ui/core"; import { Button, LinkIcon } from "@saleor/macaw-ui"; diff --git a/src/orders/components/OrderTransaction/components/TransactionEvents/TransactionEvents.tsx b/src/orders/components/OrderTransaction/components/TransactionEvents/TransactionEvents.tsx index bdd20c379..17ec5dd74 100644 --- a/src/orders/components/OrderTransaction/components/TransactionEvents/TransactionEvents.tsx +++ b/src/orders/components/OrderTransaction/components/TransactionEvents/TransactionEvents.tsx @@ -1,4 +1,4 @@ -import { TransactionEventFragment } from "@dashboard/graphql/transactions"; +import { TransactionEventFragment } from "@dashboard/graphql"; import { renderCollection } from "@dashboard/misc"; import { TransactionFakeEvent } from "@dashboard/orders/types"; import { TableCell, TableRow } from "@material-ui/core"; @@ -63,6 +63,7 @@ export const TransactionEvents: React.FC = ({ events, transactionEvent => ( = ({ const classes = useStyles(); const { type, status } = mapTransactionEvent(event); - const isHovered = event.pspReference === hoveredPspReference; + const isHovered = + event.pspReference && event.pspReference === hoveredPspReference; return ( = ({ {event.amount?.currency && } - + - {event.pspReference && ( - + + {event.pspReference ? ( - - )} + ) : ( +
+ )} + diff --git a/src/orders/components/OrderTransaction/components/TransactionEvents/components/EventType.tsx b/src/orders/components/OrderTransaction/components/TransactionEvents/components/EventType.tsx index 2fc77cc21..cb623c798 100644 --- a/src/orders/components/OrderTransaction/components/TransactionEvents/components/EventType.tsx +++ b/src/orders/components/OrderTransaction/components/TransactionEvents/components/EventType.tsx @@ -28,12 +28,12 @@ export const EventType = ({ type, message }: EventTypeProps) => { const displayType = mapEventToMessage ? intl.formatMessage(mapEventToMessage) - : type ?? message; + : message || type; return ( {displayType} - {type !== null && message && ( + {displayType !== message && message && (
diff --git a/src/orders/components/OrderTransaction/components/TransactionEvents/components/PspReference.tsx b/src/orders/components/OrderTransaction/components/TransactionEvents/components/PspReference.tsx index 1575822c3..751adb8cf 100644 --- a/src/orders/components/OrderTransaction/components/TransactionEvents/components/PspReference.tsx +++ b/src/orders/components/OrderTransaction/components/TransactionEvents/components/PspReference.tsx @@ -15,12 +15,15 @@ const useStyles = makeStyles( gap: theme.spacing(1), }, pill: { - // TODO: change to new dashboard monospace font - fontFamily: "monospace", + fontFamily: + "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace", fontWeight: 600, fontSize: "12px", borderRadius: "4px", - background: "#F5F5F5", + background: + theme.palette.type === "light" + ? theme.palette.grey[100] + : theme.palette.background.paper, padding: "4px", cursor: "default", whiteSpace: "nowrap", diff --git a/src/orders/components/OrderTransaction/utils.test.ts b/src/orders/components/OrderTransaction/utils.test.ts index 7193089e0..594198e2f 100644 --- a/src/orders/components/OrderTransaction/utils.test.ts +++ b/src/orders/components/OrderTransaction/utils.test.ts @@ -1,4 +1,4 @@ -import { TransactionEventFragment } from "@dashboard/graphql/transactions"; +import { TransactionEventFragment } from "@dashboard/graphql"; import { TransactionFakeEvent, TransactionMappingResult, diff --git a/src/orders/components/OrderTransaction/utils.ts b/src/orders/components/OrderTransaction/utils.ts index cfdbd267b..97b0b85ea 100644 --- a/src/orders/components/OrderTransaction/utils.ts +++ b/src/orders/components/OrderTransaction/utils.ts @@ -3,7 +3,7 @@ import { TransactionEventFragment, TransactionEventTypeEnum, TransactionItemFragment, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import { FakeTransaction, TransactionFakeEvent, @@ -24,10 +24,15 @@ export const mapActionToMessage: Record< VOID: transactionActionMessages.void, CHARGE: transactionActionMessages.capture, CANCEL: transactionActionMessages.cancel, + // refund is handled in "Send refund" view not in Transactions list REFUND: null, }; const typeMap: Record = { + INFO: { + type: "INFO", + status: "INFO", + }, CHARGE_BACK: { type: "CHARGEBACK", status: "INFO", @@ -46,6 +51,10 @@ const typeMap: Record = { type: "AUTHORIZATION", status: "FAILED", }, + AUTHORIZATION_ACTION_REQUIRED: { + type: "AUTHORIZATION", + status: "INFO", + }, AUTHORIZATION_REQUEST: { type: "AUTHORIZATION", status: "REQUEST", @@ -60,6 +69,10 @@ const typeMap: Record = { type: "CHARGE", status: "FAILED", }, + CHARGE_ACTION_REQUIRED: { + type: "CHARGE", + status: "INFO", + }, CHARGE_REQUEST: { type: "CHARGE", status: "REQUEST", diff --git a/src/orders/components/OrderTransactionActionDialog/OrderTransactionActionDialog.tsx b/src/orders/components/OrderTransactionActionDialog/OrderTransactionActionDialog.tsx index 0c3f6949a..e1673263a 100644 --- a/src/orders/components/OrderTransactionActionDialog/OrderTransactionActionDialog.tsx +++ b/src/orders/components/OrderTransactionActionDialog/OrderTransactionActionDialog.tsx @@ -1,5 +1,5 @@ import ConfirmButton from "@dashboard/components/ConfirmButton"; -import { TransactionActionEnum } from "@dashboard/graphql/transactions"; +import { TransactionActionEnum } from "@dashboard/graphql"; import { buttonMessages } from "@dashboard/intl"; import { Dialog, diff --git a/src/orders/components/OrderTransactionGiftCard/OrderTransactionGiftCard.tsx b/src/orders/components/OrderTransactionGiftCard/OrderTransactionGiftCard.tsx index a1df9680d..272020904 100644 --- a/src/orders/components/OrderTransactionGiftCard/OrderTransactionGiftCard.tsx +++ b/src/orders/components/OrderTransactionGiftCard/OrderTransactionGiftCard.tsx @@ -3,7 +3,7 @@ import { OrderDetailsFragment, OrderGiftCardFragment, TransactionEventTypeEnum, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import { FakeTransaction, TransactionFakeEvent } from "@dashboard/orders/types"; import { prepareMoney } from "@dashboard/orders/utils/data"; import React from "react"; diff --git a/src/orders/components/OrderTransactionGiftCard/utils.ts b/src/orders/components/OrderTransactionGiftCard/utils.ts index 737f223f8..733185295 100644 --- a/src/orders/components/OrderTransactionGiftCard/utils.ts +++ b/src/orders/components/OrderTransactionGiftCard/utils.ts @@ -1,7 +1,4 @@ -import { - GiftCardEventsEnum, - OrderGiftCardFragment, -} from "@dashboard/graphql/transactions"; +import { GiftCardEventsEnum, OrderGiftCardFragment } from "@dashboard/graphql"; export const getUsedInGiftCardEvents = ( giftCard: OrderGiftCardFragment, diff --git a/src/orders/components/OrderTransactionPayment/OrderTransactionPayment.tsx b/src/orders/components/OrderTransactionPayment/OrderTransactionPayment.tsx index b1b2742fb..68b990e82 100644 --- a/src/orders/components/OrderTransactionPayment/OrderTransactionPayment.tsx +++ b/src/orders/components/OrderTransactionPayment/OrderTransactionPayment.tsx @@ -2,7 +2,7 @@ import { OrderPaymentFragment, PaymentGatewayFragment, TransactionActionEnum, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import { OrderTransactionProps } from "@dashboard/orders/components/OrderTransaction/OrderTransaction"; import { FakeTransaction } from "@dashboard/orders/types"; import { prepareMoney } from "@dashboard/orders/utils/data"; diff --git a/src/orders/components/OrderTransactionPayment/utils.ts b/src/orders/components/OrderTransactionPayment/utils.ts index 55282a369..e3e8d583c 100644 --- a/src/orders/components/OrderTransactionPayment/utils.ts +++ b/src/orders/components/OrderTransactionPayment/utils.ts @@ -4,7 +4,7 @@ import { PaymentGatewayFragment, TransactionActionEnum, TransactionKind, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import { TransactionEventStatus, TransactionFakeEvent, diff --git a/src/orders/containers/OrderOperations.tsx b/src/orders/containers/OrderOperations.tsx index 4f8581c44..e51bd4b98 100644 --- a/src/orders/containers/OrderOperations.tsx +++ b/src/orders/containers/OrderOperations.tsx @@ -1,4 +1,6 @@ import { + CreateManualTransactionCaptureMutation, + CreateManualTransactionCaptureMutationVariables, InvoiceEmailSendMutation, InvoiceEmailSendMutationVariables, InvoiceRequestMutation, @@ -31,10 +33,13 @@ import { OrderMarkAsPaidMutationVariables, OrderShippingMethodUpdateMutation, OrderShippingMethodUpdateMutationVariables, + OrderTransactionRequestActionMutation, + OrderTransactionRequestActionMutationVariables, OrderUpdateMutation, OrderUpdateMutationVariables, OrderVoidMutation, OrderVoidMutationVariables, + useCreateManualTransactionCaptureMutation, useInvoiceEmailSendMutation, useInvoiceRequestMutation, useOrderAddNoteMutation, @@ -51,17 +56,10 @@ import { useOrderLineUpdateMutation, useOrderMarkAsPaidMutation, useOrderShippingMethodUpdateMutation, + useOrderTransactionRequestActionMutation, useOrderUpdateMutation, useOrderVoidMutation, } from "@dashboard/graphql"; -import { - CreateManualTransactionCaptureMutation, - CreateManualTransactionCaptureMutationVariables, - OrderTransactionRequestActionMutation, - OrderTransactionRequestActionMutationVariables, - useCreateManualTransactionCaptureMutation, - useOrderTransactionRequestActionMutation, -} from "@dashboard/graphql/transactions"; import React from "react"; import { getMutationProviderData } from "../../misc"; diff --git a/src/orders/fixtures.ts b/src/orders/fixtures.ts index a88b99e58..a2c55ab42 100644 --- a/src/orders/fixtures.ts +++ b/src/orders/fixtures.ts @@ -5,33 +5,31 @@ import { FulfillmentStatus, InvoiceFragment, JobStatusEnum, + MarkAsPaidStrategyEnum, OrderAction, OrderDetailsFragment, OrderDetailsQuery, OrderEventsEmailsEnum, OrderEventsEnum, OrderFulfillLineFragment, + OrderGrantedRefundFragment, OrderListQuery, + OrderPaymentFragment, OrderSettingsFragment, OrderStatus, PaymentChargeStatusEnum, + PaymentGatewayFragment, SearchCustomersQuery, SearchOrderVariantQuery, SearchWarehousesQuery, ShopOrderSettingsFragment, TransactionActionEnum, - TransactionKind, - WeightUnitsEnum, -} from "@dashboard/graphql"; -import { - OrderDetailsWithTransactionsFragment, - OrderDetailsWithTransactionsQuery, - OrderGrantedRefundFragment, - OrderPaymentFragment, TransactionEventFragment, TransactionEventTypeEnum, TransactionItemFragment, -} from "@dashboard/graphql/transactions"; + TransactionKind, + WeightUnitsEnum, +} from "@dashboard/graphql"; import { staffMember } from "@dashboard/staff/fixtures"; import { RelayToFlat } from "@dashboard/types"; import { @@ -59,23 +57,23 @@ export const countries: CountryWithCodeFragment[] = [ { __typename: "CountryDisplay", code: "DZ", country: "Algeria" }, { __typename: "CountryDisplay", code: "AS", country: "American Samoa" }, ]; + +const paymentGateways: PaymentGatewayFragment[] = [ + { __typename: "PaymentGateway", id: "app.saleor.adyen", name: "Adyen" }, + { + id: MOCK_PAYMENT_GATEWAY_ID, + name: "Mock Payment Gateway", + __typename: "PaymentGateway", + }, +]; + export const shop: OrderDetailsQuery["shop"] = { __typename: "Shop", countries, defaultWeightUnit: WeightUnitsEnum.KG, fulfillmentAllowUnpaid: true, fulfillmentAutoApprove: true, -}; - -export const shopWithTransactions: OrderDetailsWithTransactionsQuery["shop"] = { - ...shop, - availablePaymentGateways: [ - { - id: MOCK_PAYMENT_GATEWAY_ID, - name: "Mock Payment Gateway", - __typename: "PaymentGateway", - }, - ], + availablePaymentGateways: paymentGateways, }; export const clients: RelayToFlat = [ @@ -108,6 +106,108 @@ export const clients: RelayToFlat = [ lastName: "Jonas", }, ]; + +export const orderTransactions: TransactionItemFragment[] = [ + { + id: "VHJhbnNhY3Rpb25JdGVtOjE=", + type: "mollie-creditcard", + pspReference: "ord_3d41ih", + actions: [], + status: "Paid", + externalUrl: null, + events: [ + { + id: "VHJhbnNhY3Rpb25FdmVudDox", + pspReference: "XCFDSDXCDF232332DFGS", + createdAt: "2022-08-12T14:22:22.226875+00:00", + type: TransactionEventTypeEnum.CHARGE_SUCCESS, + createdBy: null, + externalUrl: null, + message: null, + amount: { + amount: 58.98, + currency: "USD", + __typename: "Money", + }, + __typename: "TransactionEvent", + }, + ], + authorizedAmount: prepareMoney(0), + authorizePendingAmount: prepareMoney(0), + chargedAmount: prepareMoney(58.98), + chargePendingAmount: prepareMoney(0), + refundedAmount: prepareMoney(0), + refundPendingAmount: prepareMoney(0), + canceledAmount: prepareMoney(0), + cancelPendingAmount: prepareMoney(0), + __typename: "TransactionItem", + }, + { + id: "VHJhbnNhY3Rpb25JdGVtOjI=", + type: "test", + pspReference: "123", + externalUrl: null, + status: "Partially refunded", + actions: [], + events: [ + { + id: "VHJhbnNhY3Rpb25FdmVudDoy", + pspReference: "SDFDS34543SDDFS", + createdAt: "2022-08-12T14:14:27.119138+00:00", + type: TransactionEventTypeEnum.CHARGE_SUCCESS, + createdBy: null, + externalUrl: null, + message: null, + amount: { + amount: 35.42, + currency: "USD", + __typename: "Money", + }, + __typename: "TransactionEvent", + }, + { + id: "VHJhbnNhY3Rpb25FdmVudDoy", + pspReference: "SDFDS34543SS", + createdAt: "2022-08-12T16:14:27.119138+00:00", + type: TransactionEventTypeEnum.REFUND_REQUEST, + createdBy: null, + externalUrl: null, + message: null, + amount: { + amount: 33.21, + currency: "USD", + __typename: "Money", + }, + __typename: "TransactionEvent", + }, + { + id: "VHJhbnNhY3Rpb25FdmVudDoy", + pspReference: "SDFDS34543SS", + createdAt: "2022-08-12T16:14:29.119138+00:00", + type: TransactionEventTypeEnum.REFUND_SUCCESS, + createdBy: null, + externalUrl: null, + message: null, + amount: { + amount: 33.21, + currency: "USD", + __typename: "Money", + }, + __typename: "TransactionEvent", + }, + ], + authorizedAmount: prepareMoney(1.21), + authorizePendingAmount: prepareMoney(0), + chargedAmount: prepareMoney(0), + chargePendingAmount: prepareMoney(0), + refundedAmount: prepareMoney(34.21), + refundPendingAmount: prepareMoney(0), + canceledAmount: prepareMoney(0), + cancelPendingAmount: prepareMoney(0), + __typename: "TransactionItem", + }, +]; + export const orders: RelayToFlat = [ { __typename: "Order", @@ -814,6 +914,7 @@ export const orders: RelayToFlat = [ ]; export const ORDER_AMOUNT = 234.93; + export const order = (placeholder: string): OrderDetailsFragment => ({ __typename: "Order", giftCards: [], @@ -823,7 +924,6 @@ export const order = (placeholder: string): OrderDetailsFragment => ({ OrderAction.REFUND, OrderAction.VOID, ], - transactions: [{ id: "1234", __typename: "TransactionItem" }], shippingMethods: [ { __typename: "ShippingMethod", @@ -889,6 +989,10 @@ export const order = (placeholder: string): OrderDetailsFragment => ({ id: "123454", isActive: true, name: "Default Channel", + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, defaultCountry: { code: "CA", __typename: "CountryDisplay", @@ -1677,10 +1781,6 @@ export const order = (placeholder: string): OrderDetailsFragment => ({ }, user: null, userEmail: "melissa.simon@example.com", -}); - -export const orderWithTransactions: OrderDetailsWithTransactionsFragment = { - ...(order(undefined) as unknown as OrderDetailsWithTransactionsFragment), payments: [], grantedRefunds: [], totalGrantedRefund: prepareMoney(0), @@ -1692,107 +1792,8 @@ export const orderWithTransactions: OrderDetailsWithTransactionsFragment = { totalCanceled: prepareMoney(0), totalCancelPending: prepareMoney(0), totalRemainingGrant: prepareMoney(0), - transactions: [ - { - id: "VHJhbnNhY3Rpb25JdGVtOjE=", - type: "mollie-creditcard", - pspReference: "ord_3d41ih", - actions: [], - status: "Paid", - externalUrl: null, - events: [ - { - id: "VHJhbnNhY3Rpb25FdmVudDox", - pspReference: "XCFDSDXCDF232332DFGS", - createdAt: "2022-08-12T14:22:22.226875+00:00", - type: TransactionEventTypeEnum.CHARGE_SUCCESS, - createdBy: null, - externalUrl: null, - message: null, - amount: { - amount: 58.98, - currency: "USD", - __typename: "Money", - }, - __typename: "TransactionEvent", - }, - ], - authorizedAmount: prepareMoney(0), - authorizePendingAmount: prepareMoney(0), - chargedAmount: prepareMoney(58.98), - chargePendingAmount: prepareMoney(0), - refundedAmount: prepareMoney(0), - refundPendingAmount: prepareMoney(0), - canceledAmount: prepareMoney(0), - cancelPendingAmount: prepareMoney(0), - __typename: "TransactionItem", - }, - { - id: "VHJhbnNhY3Rpb25JdGVtOjI=", - type: "test", - pspReference: "123", - externalUrl: null, - status: "Partially refunded", - actions: [], - events: [ - { - id: "VHJhbnNhY3Rpb25FdmVudDoy", - pspReference: "SDFDS34543SDDFS", - createdAt: "2022-08-12T14:14:27.119138+00:00", - type: TransactionEventTypeEnum.CHARGE_SUCCESS, - createdBy: null, - externalUrl: null, - message: null, - amount: { - amount: 35.42, - currency: "USD", - __typename: "Money", - }, - __typename: "TransactionEvent", - }, - { - id: "VHJhbnNhY3Rpb25FdmVudDoy", - pspReference: "SDFDS34543SS", - createdAt: "2022-08-12T16:14:27.119138+00:00", - type: TransactionEventTypeEnum.REFUND_REQUEST, - createdBy: null, - externalUrl: null, - message: null, - amount: { - amount: 33.21, - currency: "USD", - __typename: "Money", - }, - __typename: "TransactionEvent", - }, - { - id: "VHJhbnNhY3Rpb25FdmVudDoy", - pspReference: "SDFDS34543SS", - createdAt: "2022-08-12T16:14:29.119138+00:00", - type: TransactionEventTypeEnum.REFUND_SUCCESS, - createdBy: null, - externalUrl: null, - message: null, - amount: { - amount: 33.21, - currency: "USD", - __typename: "Money", - }, - __typename: "TransactionEvent", - }, - ], - authorizedAmount: prepareMoney(1.21), - authorizePendingAmount: prepareMoney(0), - chargedAmount: prepareMoney(0), - chargePendingAmount: prepareMoney(0), - refundedAmount: prepareMoney(34.21), - refundPendingAmount: prepareMoney(0), - canceledAmount: prepareMoney(0), - cancelPendingAmount: prepareMoney(0), - __typename: "TransactionItem", - }, - ], -}; + transactions: orderTransactions, +}); export const draftOrder = (placeholder: string): OrderDetailsFragment => ({ __typename: "Order" as "Order", @@ -1801,7 +1802,18 @@ export const draftOrder = (placeholder: string): OrderDetailsFragment => ({ shippingMethods: [], billingAddress: null, canFinalize: true, - transactions: [{ id: "1234", __typename: "TransactionItem" }], + grantedRefunds: [], + totalGrantedRefund: prepareMoney(0), + totalAuthorizePending: prepareMoney(0), + totalCharged: prepareMoney(0), + totalChargePending: prepareMoney(0), + totalRefunded: prepareMoney(0), + totalRefundPending: prepareMoney(0), + totalCanceled: prepareMoney(0), + totalCancelPending: prepareMoney(0), + totalRemainingGrant: prepareMoney(0), + transactions: orderTransactions, + payments: [], channel: { __typename: "Channel", slug: "channel-default", @@ -1809,6 +1821,10 @@ export const draftOrder = (placeholder: string): OrderDetailsFragment => ({ id: "123454", isActive: true, name: "Default Channel", + orderSettings: { + markAsPaidStrategy: MarkAsPaidStrategyEnum.TRANSACTION_FLOW, + __typename: "OrderSettings", + }, defaultCountry: { code: "CA", __typename: "CountryDisplay", @@ -2126,24 +2142,21 @@ export const draftOrder = (placeholder: string): OrderDetailsFragment => ({ userEmail: null, }); -export const draftOrderWithTransactions: OrderDetailsWithTransactionsFragment = - { - ...(draftOrder( - undefined, - ) as unknown as OrderDetailsWithTransactionsFragment), - payments: [], - transactions: [], - grantedRefunds: [], - totalRemainingGrant: prepareMoney(0), - totalGrantedRefund: prepareMoney(0), - totalAuthorizePending: prepareMoney(0), - totalCharged: prepareMoney(0), - totalChargePending: prepareMoney(0), - totalRefunded: prepareMoney(0), - totalRefundPending: prepareMoney(0), - totalCanceled: prepareMoney(0), - totalCancelPending: prepareMoney(0), - }; +export const draftOrderWithTransactions: OrderDetailsFragment = { + ...(draftOrder(undefined) as unknown as OrderDetailsFragment), + payments: [], + transactions: [], + grantedRefunds: [], + totalRemainingGrant: prepareMoney(0), + totalGrantedRefund: prepareMoney(0), + totalAuthorizePending: prepareMoney(0), + totalCharged: prepareMoney(0), + totalChargePending: prepareMoney(0), + totalRefunded: prepareMoney(0), + totalRefundPending: prepareMoney(0), + totalCanceled: prepareMoney(0), + totalCancelPending: prepareMoney(0), +}; export const flatOrders = orders.map(order => ({ ...order, diff --git a/src/orders/index.tsx b/src/orders/index.tsx index 1440655a2..2d375e606 100644 --- a/src/orders/index.tsx +++ b/src/orders/index.tsx @@ -1,4 +1,3 @@ -import { useFlags } from "@dashboard/hooks/useFlags"; import { sectionNames } from "@dashboard/intl"; import { asSortParams } from "@dashboard/utils/sort"; import { parse as parseQs } from "qs"; @@ -110,7 +109,6 @@ const OrderGrantRefundEdit: React.FC> = ({ const Component = () => { const intl = useIntl(); - const { orderTransactions } = useFlags(["orderTransactions"]); return ( <> @@ -125,24 +123,15 @@ const Component = () => { path={orderPaymentRefundPath(":id")} component={OrderPaymentRefund} /> - {orderTransactions.enabled && ( - - )} - {orderTransactions.enabled && ( - - )} - {orderTransactions.enabled && ( - - )} + + + diff --git a/src/orders/messages.ts b/src/orders/messages.ts index 29bfa1a9d..442037439 100644 --- a/src/orders/messages.ts +++ b/src/orders/messages.ts @@ -19,7 +19,9 @@ export const orderMessages = defineMessages({ }, }); -export const transactionEventTypeMap = defineMessages({ +export const transactionEventTypeMap = defineMessages< + Exclude +>({ AUTHORIZATION: { defaultMessage: "Authorization", id: "qtF0Ft", diff --git a/src/orders/mutations.transactions.ts b/src/orders/mutations.transactions.ts deleted file mode 100644 index 8da6e0300..000000000 --- a/src/orders/mutations.transactions.ts +++ /dev/null @@ -1,129 +0,0 @@ -import { gql } from "@apollo/client"; - -export const orderTransactionRequestActionMutation = gql` - mutation OrderTransactionRequestAction( - $action: TransactionActionEnum! - $transactionId: ID! - ) { - transactionRequestAction(actionType: $action, id: $transactionId) { - errors { - ...TransactionRequestActionError - } - } - } -`; - -export const orderGrantRefundAddMutation = gql` - mutation OrderGrantRefundAdd( - $orderId: ID! - $amount: Decimal! - $reason: String - ) { - orderGrantRefundCreate( - id: $orderId - input: { amount: $amount, reason: $reason } - ) { - errors { - ...OrderGrantRefundCreateError - } - } - } -`; - -export const orderGrantRefundEditMutation = gql` - mutation OrderGrantRefundEdit( - $refundId: ID! - $amount: Decimal! - $reason: String - ) { - orderGrantRefundUpdate( - id: $refundId - input: { amount: $amount, reason: $reason } - ) { - errors { - ...OrderGrantRefundUpdateError - } - } - } -`; - -export const orderSendRefundMutation = gql` - mutation OrderSendRefund($amount: PositiveDecimal!, $transactionId: ID!) { - transactionRequestAction( - actionType: REFUND - amount: $amount - id: $transactionId - ) { - transaction { - ...TransactionItem - } - errors { - ...TransactionRequestActionError - } - } - } -`; - -export const createManualTransactionCapture = gql` - mutation CreateManualTransactionCapture( - $orderId: ID! - $amount: PositiveDecimal! - $currency: String! - $description: String - $pspReference: String - ) { - transactionCreate( - id: $orderId - transaction: { - type: "Manual capture" - status: "Success" - pspReference: $pspReference - amountCharged: { amount: $amount, currency: $currency } - } - transactionEvent: { - status: SUCCESS - pspReference: $pspReference - name: $description - } - ) { - transaction { - ...TransactionItem - } - errors { - ...TransactionCreateError - } - } - } -`; - -export const createManualTransactionRefund = gql` - mutation CreateManualTransactionRefund( - $orderId: ID! - $amount: PositiveDecimal! - $currency: String! - $description: String - $pspReference: String - ) { - transactionCreate( - id: $orderId - transaction: { - type: "Manual refund" - status: "Success" - pspReference: $pspReference - amountRefunded: { amount: $amount, currency: $currency } - } - transactionEvent: { - status: SUCCESS - pspReference: $pspReference - name: $description - } - ) { - transaction { - ...TransactionItem - } - errors { - ...TransactionCreateError - } - } - } -`; diff --git a/src/orders/mutations.ts b/src/orders/mutations.ts index 18154f9dc..b91c1875e 100644 --- a/src/orders/mutations.ts +++ b/src/orders/mutations.ts @@ -491,3 +491,133 @@ export const orderSettingsUpdateMutation = gql` } } `; + +// Transactions + +export const orderTransactionRequestActionMutation = gql` + mutation OrderTransactionRequestAction( + $action: TransactionActionEnum! + $transactionId: ID! + ) { + transactionRequestAction(actionType: $action, id: $transactionId) { + errors { + ...TransactionRequestActionError + } + } + } +`; + +export const orderGrantRefundAddMutation = gql` + mutation OrderGrantRefundAdd( + $orderId: ID! + $amount: Decimal! + $reason: String + ) { + orderGrantRefundCreate( + id: $orderId + input: { amount: $amount, reason: $reason } + ) { + errors { + ...OrderGrantRefundCreateError + } + } + } +`; + +export const orderGrantRefundEditMutation = gql` + mutation OrderGrantRefundEdit( + $refundId: ID! + $amount: Decimal! + $reason: String + ) { + orderGrantRefundUpdate( + id: $refundId + input: { amount: $amount, reason: $reason } + ) { + errors { + ...OrderGrantRefundUpdateError + } + } + } +`; + +export const orderSendRefundMutation = gql` + mutation OrderSendRefund($amount: PositiveDecimal!, $transactionId: ID!) { + transactionRequestAction( + actionType: REFUND + amount: $amount + id: $transactionId + ) { + transaction { + ...TransactionItem + } + errors { + ...TransactionRequestActionError + } + } + } +`; + +export const createManualTransactionCapture = gql` + mutation CreateManualTransactionCapture( + $orderId: ID! + $amount: PositiveDecimal! + $currency: String! + $description: String + $pspReference: String + ) { + transactionCreate( + id: $orderId + transaction: { + type: "Manual capture" + status: "Success" + pspReference: $pspReference + amountCharged: { amount: $amount, currency: $currency } + } + transactionEvent: { + status: SUCCESS + pspReference: $pspReference + name: $description + } + ) { + transaction { + ...TransactionItem + } + errors { + ...TransactionCreateError + } + } + } +`; + +export const createManualTransactionRefund = gql` + mutation CreateManualTransactionRefund( + $orderId: ID! + $amount: PositiveDecimal! + $currency: String! + $description: String + $pspReference: String + ) { + transactionCreate( + id: $orderId + transaction: { + type: "Manual refund" + status: "Success" + pspReference: $pspReference + amountRefunded: { amount: $amount, currency: $currency } + } + transactionEvent: { + status: SUCCESS + pspReference: $pspReference + name: $description + } + ) { + transaction { + ...TransactionItem + } + errors { + ...TransactionCreateError + } + } + } +`; diff --git a/src/orders/queries.transactions.ts b/src/orders/queries.transactions.ts deleted file mode 100644 index 6691000b2..000000000 --- a/src/orders/queries.transactions.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { gql } from "@apollo/client"; - -export const orderDetailsWithTransactionsQuery = gql` - query OrderDetailsWithTransactions($id: ID!) { - order(id: $id) { - ...OrderDetailsWithTransactions - } - - shop { - countries { - code - country - } - defaultWeightUnit - fulfillmentAllowUnpaid - fulfillmentAutoApprove - availablePaymentGateways { - ...PaymentGateway - } - } - } -`; - -export const orderDetailsGrantedRefund = gql` - query OrderDetailsGrantRefund($id: ID!) { - order(id: $id) { - ...OrderDetailsGrantRefund - } - } -`; - -export const orderDetailsGrantedRefundEdit = gql` - query OrderDetailsGrantRefundEdit($id: ID!) { - order(id: $id) { - ...OrderDetailsGrantRefund - grantedRefunds { - id - reason - amount { - ...Money - } - } - } - } -`; diff --git a/src/orders/queries.ts b/src/orders/queries.ts index 01a831a2d..d25cc766b 100644 --- a/src/orders/queries.ts +++ b/src/orders/queries.ts @@ -110,6 +110,32 @@ export const orderDetailsQuery = gql` defaultWeightUnit fulfillmentAllowUnpaid fulfillmentAutoApprove + availablePaymentGateways { + ...PaymentGateway + } + } + } +`; + +export const orderDetailsGrantedRefund = gql` + query OrderDetailsGrantRefund($id: ID!) { + order(id: $id) { + ...OrderDetailsGrantRefund + } + } +`; + +export const orderDetailsGrantedRefundEdit = gql` + query OrderDetailsGrantRefundEdit($id: ID!) { + order(id: $id) { + ...OrderDetailsGrantRefund + grantedRefunds { + id + reason + amount { + ...Money + } + } } } `; diff --git a/src/orders/types.ts b/src/orders/types.ts index 28c6d50f2..2c9ed0e44 100644 --- a/src/orders/types.ts +++ b/src/orders/types.ts @@ -1,105 +1,40 @@ -import { - OrderDetailsFragment, - OrderDetailsQuery, - OrderErrorCode as OrderErrorCodeWithoutTransactions, - OrderErrorFragment as OrderErrorFragmentWithoutTransactions, - OrderEventFragment as OrderEventFragmentWithoutTransactions, - OrderEventsEnum as OrderEventsEnumWithoutTransactions, - OrderRefundDataQuery, -} from "@dashboard/graphql"; import { MarkAsPaidStrategyEnum, - OrderDetailsWithTransactionsFragment, - OrderDetailsWithTransactionsQuery, - OrderErrorCode as OrderErrorCodeWithTransactions, - OrderEventFragment as OrderEventFragmentWithTransactions, - OrderEventsEnum as OrderEventsEnumWithTransactions, + OrderDetailsFragment, + OrderRefundDataQuery, TransactionEventFragment, TransactionItemFragment, -} from "@dashboard/graphql/transactions"; - -export type ShopWithTransactions = OrderDetailsWithTransactionsQuery["shop"]; -export type ShopBothTypes = OrderDetailsQuery["shop"] | ShopWithTransactions; - -export type OrderBothTypes = - | OrderDetailsFragment - | OrderDetailsWithTransactionsFragment; - -/** use type from WithTransactions, exclude fields not available on old OrderDetails */ -export type OrderSharedType = Pick< - OrderDetailsWithTransactionsFragment, - keyof OrderDetailsFragment & keyof OrderDetailsWithTransactionsFragment ->; - -// convert TS enum to string union -type OrderErrorCodeWithoutTransactionsUnion = - OrderErrorCodeWithoutTransactions[keyof OrderErrorCodeWithoutTransactions]; -type OrderErrorCodeWithTransactionsUnion = - OrderErrorCodeWithTransactions[keyof OrderErrorCodeWithTransactions]; -export type OrderErrorCode = OrderErrorCodeWithoutTransactionsUnion & - OrderErrorCodeWithTransactionsUnion; -export const OrderErrorCode = { - ...OrderErrorCodeWithTransactions, - ...OrderErrorCodeWithoutTransactions, -}; - -export type OrderErrorFragment = Omit< - OrderErrorFragmentWithoutTransactions, - "code" -> & { - code: OrderErrorCode; -}; - -export type OrderEventFragment = - | OrderEventFragmentWithTransactions - | OrderEventFragmentWithoutTransactions; - -export const OrderEventsEnum = { - ...OrderEventsEnumWithTransactions, - ...OrderEventsEnumWithoutTransactions, -}; - -/** Type guard for order with transactions */ -export const isOrderWithTransactions = ( - _order: unknown, - featureFlag: boolean, -): _order is OrderDetailsWithTransactionsFragment => featureFlag; +} from "@dashboard/graphql"; /** Check if order has transactions & feature flag enabled */ -export const orderHasTransactions = ( - order: unknown, - featureFlag: boolean, -): order is OrderDetailsWithTransactionsFragment => { - if (isOrderWithTransactions(order, featureFlag)) { - return order?.transactions?.length > 0; - } +export const orderHasTransactions = (order: OrderDetailsFragment): boolean => + order?.transactions?.length > 0; - return false; -}; +export const orderHasPayments = (order: OrderDetailsFragment): boolean => + order?.payments?.length > 0; -export const orderChannelUseTransactions = ( - order: any, - featureFlag: boolean, -): order is OrderDetailsWithTransactionsFragment => { - if (orderHasTransactions(order, featureFlag)) { +export const orderShouldUseTransactions = ( + order: OrderDetailsFragment, +): boolean => { + if (orderHasTransactions(order)) { return true; } - if (isOrderWithTransactions(order, featureFlag)) { - return ( - order?.channel?.orderSettings?.markAsPaidStrategy === - MarkAsPaidStrategyEnum.TRANSACTION_FLOW - ); + if (orderHasPayments(order)) { + return false; } - return false; + return ( + order?.channel?.orderSettings?.markAsPaidStrategy === + MarkAsPaidStrategyEnum.TRANSACTION_FLOW + ); }; export type OrderRefundData = OrderRefundDataQuery["order"]; export type OrderRefundSharedType = Pick< OrderRefundData, keyof OrderDetailsFragment & - keyof OrderDetailsWithTransactionsFragment & + keyof OrderDetailsFragment & keyof OrderRefundData >; @@ -111,7 +46,8 @@ export type TransactionEventType = | "CANCEL" | "CHARGEBACK" | "AUTHORIZATION_ADJUSTMENT" - | "REFUND_REVERSED"; + | "REFUND_REVERSED" + | "INFO"; /** Status of the transaction (e.g. CHARGE_SUCCESS -> SUCCESS) */ export type TransactionEventStatus = diff --git a/src/orders/urls.ts b/src/orders/urls.ts index 9762e1982..c5733b810 100644 --- a/src/orders/urls.ts +++ b/src/orders/urls.ts @@ -1,4 +1,4 @@ -import { TransactionActionEnum } from "@dashboard/graphql/transactions"; +import { TransactionActionEnum } from "@dashboard/graphql"; import { stringifyQs } from "@dashboard/utils/urls"; import urlJoin from "url-join"; diff --git a/src/orders/utils/data.test.ts b/src/orders/utils/data.test.ts index d9a8ac81c..72839f3dd 100644 --- a/src/orders/utils/data.test.ts +++ b/src/orders/utils/data.test.ts @@ -9,7 +9,7 @@ import { import { FormsetData } from "@dashboard/hooks/useFormset"; import { LineItemData } from "../components/OrderReturnPage/form"; -import { OrderRefundSharedType, OrderSharedType } from "../types"; +import { OrderRefundSharedType } from "../types"; import { getAllFulfillmentLinesPriceSum, getPreviouslyRefundedPrice, @@ -1543,7 +1543,7 @@ describe("Get the total value of all replaced products", () => { __typename: "Fulfillment", }, ], - } as unknown as OrderSharedType, + } as unknown as OrderDetailsFragment, { itemsToBeReplaced, unfulfilledItemsQuantities, @@ -2342,7 +2342,7 @@ describe("Get the total value of all selected products", () => { __typename: "Fulfillment", }, ], - } as unknown as OrderSharedType, + } as unknown as OrderDetailsFragment, { itemsToBeReplaced, waitingItemsQuantities, diff --git a/src/orders/utils/data.ts b/src/orders/utils/data.ts index a44f90450..d0d1290a4 100644 --- a/src/orders/utils/data.ts +++ b/src/orders/utils/data.ts @@ -14,7 +14,6 @@ import { StockFragment, WarehouseFragment, } from "@dashboard/graphql"; -import { OrderDetailsWithTransactionsFragment } from "@dashboard/graphql/types.transactions.generated"; import { FormsetData } from "@dashboard/hooks/useFormset"; import { findInEnum, getById } from "@dashboard/misc"; import { IMoney } from "@dashboard/utils/intl"; @@ -27,7 +26,7 @@ import { getAllOrderFulfilledLines, getAllOrderWaitingLines, } from "../components/OrderReturnPage/utils"; -import { OrderRefundSharedType, OrderSharedType } from "../types"; +import { OrderRefundSharedType } from "../types"; export type OrderWithTotalAndTotalCaptured = Pick< OrderRefundDataQuery["order"], @@ -40,11 +39,11 @@ export interface OrderLineWithStockWarehouses { }; } -export function getOrderCharged(order: any) { - if ((order as OrderDetailsWithTransactionsFragment)?.totalCharged) { - return (order as OrderDetailsWithTransactionsFragment).totalCharged; +export function getOrderCharged(order: OrderDetailsFragment) { + if (order?.totalCharged) { + return order.totalCharged; } - return (order as OrderDetailsFragment)?.totalCaptured; + return order?.totalCaptured; } export function getToFulfillOrderLines(lines?: OrderLineStockDataFragment[]) { @@ -71,9 +70,12 @@ export function getPreviouslyRefundedPrice( order: OrderRefundSharedType, ): IMoney { return ( - getOrderCharged(order) && + getOrderCharged(order as OrderDetailsFragment) && order?.total?.gross && - subtractMoney(getOrderCharged(order), order?.total?.gross) + subtractMoney( + getOrderCharged(order as OrderDetailsFragment), + order?.total?.gross, + ) ); } @@ -101,7 +103,7 @@ const getFulfillmentByFulfillmentLineId = (order, fulfillmentLineId) => { }; const selectItemPriceAndQuantity = ( - order: OrderSharedType, + order: OrderDetailsFragment, { fulfilledItemsQuantities, waitingItemsQuantities, @@ -132,7 +134,7 @@ const selectItemPriceAndQuantity = ( }; export const getReplacedProductsAmount = ( - order: OrderSharedType, + order: OrderDetailsFragment, { itemsToBeReplaced, unfulfilledItemsQuantities, @@ -171,7 +173,7 @@ export const getReplacedProductsAmount = ( }; export const getReturnSelectedProductsAmount = ( - order: OrderSharedType, + order: OrderDetailsFragment, { itemsToBeReplaced, waitingItemsQuantities, @@ -297,7 +299,7 @@ export function addressToAddressInput( } export const getVariantSearchAddress = ( - order: OrderSharedType, + order: OrderDetailsFragment, ): AddressInput => { if (order.shippingAddress) { return addressToAddressInput(order.shippingAddress); diff --git a/src/orders/views/OrderDetails/OrderDetails.tsx b/src/orders/views/OrderDetails/OrderDetails.tsx index 88309feee..6d5853732 100644 --- a/src/orders/views/OrderDetails/OrderDetails.tsx +++ b/src/orders/views/OrderDetails/OrderDetails.tsx @@ -4,18 +4,14 @@ import NotFoundPage from "@dashboard/components/NotFoundPage"; import { Task } from "@dashboard/containers/BackgroundTasks/types"; import { JobStatusEnum, + OrderDetailsDocument, OrderStatus, useOrderConfirmMutation, useOrderDetailsQuery, useUpdateMetadataMutation, useUpdatePrivateMetadataMutation, } from "@dashboard/graphql"; -import { - OrderDetailsWithTransactionsDocument, - useOrderDetailsWithTransactionsQuery, -} from "@dashboard/graphql/transactions"; import useBackgroundTask from "@dashboard/hooks/useBackgroundTask"; -import { useFlags } from "@dashboard/hooks/useFlags"; import useNavigator from "@dashboard/hooks/useNavigator"; import useNotifier from "@dashboard/hooks/useNotifier"; import { commonMessages } from "@dashboard/intl"; @@ -44,7 +40,6 @@ interface OrderDetailsProps { export const OrderDetails: React.FC = ({ id, params }) => { const navigate = useNavigator(); - const { orderTransactions } = useFlags(["orderTransactions"]); const { queue } = useBackgroundTask(); const intl = useIntl(); @@ -74,24 +69,13 @@ export const OrderDetails: React.FC = ({ id, params }) => { }, }); - const { data: dataOrder, loading: loadingOrder } = useOrderDetailsQuery({ + const { data, loading } = useOrderDetailsQuery({ displayLoader: true, variables: { id }, - skip: orderTransactions.enabled, }); - const { - data: dataOrderWithTransactions, - loading: loadingOrderWithTransactions, - } = useOrderDetailsWithTransactionsQuery({ - displayLoader: true, - variables: { id }, - skip: !orderTransactions.enabled, - }); + const order = data?.order; - const data = dataOrder || dataOrderWithTransactions; - const loading = loadingOrder || loadingOrderWithTransactions; - const order = dataOrder?.order || dataOrderWithTransactions?.order; if (order === null) { return ; } @@ -166,7 +150,7 @@ export const OrderDetails: React.FC = ({ id, params }) => { onTransactionActionSend={orderMessages.handleTransactionAction} onManualTransactionAdded={async data => { await apolloClient.refetchQueries({ - include: [OrderDetailsWithTransactionsDocument], + include: [OrderDetailsDocument], }); orderMessages.handleAddManualTransaction(data); }} diff --git a/src/orders/views/OrderDetails/OrderDetailsMessages.tsx b/src/orders/views/OrderDetails/OrderDetailsMessages.tsx index 1482d07ed..262a6c07e 100644 --- a/src/orders/views/OrderDetails/OrderDetailsMessages.tsx +++ b/src/orders/views/OrderDetails/OrderDetailsMessages.tsx @@ -2,6 +2,7 @@ import { handleNestedMutationErrors } from "@dashboard/auth"; import { formatMoney } from "@dashboard/components/Money"; import messages from "@dashboard/containers/BackgroundTasks/messages"; import { + CreateManualTransactionCaptureMutation, InvoiceEmailSendMutation, InvoiceRequestMutation, OrderAddNoteMutation, @@ -19,13 +20,10 @@ import { OrderLineUpdateMutation, OrderMarkAsPaidMutation, OrderShippingMethodUpdateMutation, + OrderTransactionRequestActionMutation, OrderUpdateMutation, OrderVoidMutation, } from "@dashboard/graphql"; -import { - CreateManualTransactionCaptureMutation, - OrderTransactionRequestActionMutation, -} from "@dashboard/graphql/transactions"; import useLocale from "@dashboard/hooks/useLocale"; import useNavigator from "@dashboard/hooks/useNavigator"; import useNotifier from "@dashboard/hooks/useNotifier"; diff --git a/src/orders/views/OrderDetails/OrderDraftDetails/index.tsx b/src/orders/views/OrderDetails/OrderDraftDetails/index.tsx index b404976df..c1cacb947 100644 --- a/src/orders/views/OrderDetails/OrderDraftDetails/index.tsx +++ b/src/orders/views/OrderDetails/OrderDraftDetails/index.tsx @@ -14,7 +14,6 @@ import { useChannelUsabilityDataQuery, useCustomerAddressesQuery, } from "@dashboard/graphql"; -import { OrderDetailsWithTransactionsQueryResult } from "@dashboard/graphql/hooks.transactions.generated"; import useNavigator from "@dashboard/hooks/useNavigator"; import { CustomerEditData } from "@dashboard/orders/components/OrderCustomer"; import { OrderCustomerAddressesEditDialogOutput } from "@dashboard/orders/components/OrderCustomerAddressesEditDialog/types"; @@ -23,7 +22,6 @@ import { OrderCustomerChangeData, } from "@dashboard/orders/components/OrderCustomerChangeDialog/form"; import OrderCustomerChangeDialog from "@dashboard/orders/components/OrderCustomerChangeDialog/OrderCustomerChangeDialog"; -import { OrderBothTypes, OrderSharedType } from "@dashboard/orders/types"; import { getVariantSearchAddress, isAnyAddressEditModalOpen, @@ -58,9 +56,7 @@ interface OrderDraftDetailsProps { id: string; params: OrderUrlQueryParams; loading: any; - data: - | OrderDetailsQueryResult["data"] - | OrderDetailsWithTransactionsQueryResult["data"]; + data: OrderDetailsQueryResult["data"]; orderAddNote: any; orderLineUpdate: PartialMutationProviderOutput< OrderLineUpdateMutation, @@ -101,7 +97,7 @@ export const OrderDraftDetails: React.FC = ({ openModal, closeModal, }) => { - const order = data.order as OrderBothTypes; + const order = data.order; const navigate = useNavigator(); const { data: channelUsabilityData } = useChannelUsabilityDataQuery({ @@ -118,7 +114,7 @@ export const OrderDraftDetails: React.FC = ({ variables: { ...DEFAULT_INITIAL_SEARCH_DATA, channel: order.channel.slug, - address: getVariantSearchAddress(order as OrderSharedType), + address: getVariantSearchAddress(order), isPublished: true, stockAvailability: StockAvailability.IN_STOCK, }, diff --git a/src/orders/views/OrderDetails/OrderNormalDetails/index.tsx b/src/orders/views/OrderDetails/OrderNormalDetails/index.tsx index 6d12770dc..f6c71c98b 100644 --- a/src/orders/views/OrderDetails/OrderNormalDetails/index.tsx +++ b/src/orders/views/OrderDetails/OrderNormalDetails/index.tsx @@ -1,22 +1,19 @@ import { WindowTitle } from "@dashboard/components/WindowTitle"; import { + CreateManualTransactionCaptureMutation, + CreateManualTransactionCaptureMutationVariables, FulfillmentFragment, FulfillmentStatus, OrderDetailsQueryResult, OrderFulfillmentApproveMutation, OrderFulfillmentApproveMutationVariables, + OrderTransactionRequestActionMutation, + OrderTransactionRequestActionMutationVariables, OrderUpdateMutation, OrderUpdateMutationVariables, useCustomerAddressesQuery, useWarehouseListQuery, } from "@dashboard/graphql"; -import { - CreateManualTransactionCaptureMutation, - CreateManualTransactionCaptureMutationVariables, - OrderDetailsWithTransactionsQueryResult, - OrderTransactionRequestActionMutation, - OrderTransactionRequestActionMutationVariables, -} from "@dashboard/graphql/transactions"; import useNavigator from "@dashboard/hooks/useNavigator"; import { extractMutationErrors, @@ -66,9 +63,7 @@ import { interface OrderNormalDetailsProps { id: string; params: OrderUrlQueryParams; - data: - | OrderDetailsQueryResult["data"] - | OrderDetailsWithTransactionsQueryResult["data"]; + data: OrderDetailsQueryResult["data"]; orderAddNote: any; orderInvoiceRequest: any; handleSubmit: any; diff --git a/src/orders/views/OrderDetails/OrderUnconfirmedDetails/index.tsx b/src/orders/views/OrderDetails/OrderUnconfirmedDetails/index.tsx index 0ddff020d..f1392fe41 100644 --- a/src/orders/views/OrderDetails/OrderUnconfirmedDetails/index.tsx +++ b/src/orders/views/OrderDetails/OrderUnconfirmedDetails/index.tsx @@ -1,21 +1,18 @@ import { WindowTitle } from "@dashboard/components/WindowTitle"; import { DEFAULT_INITIAL_SEARCH_DATA } from "@dashboard/config"; import { + CreateManualTransactionCaptureMutation, + CreateManualTransactionCaptureMutationVariables, FulfillmentStatus, OrderFulfillmentApproveMutation, OrderFulfillmentApproveMutationVariables, + OrderTransactionRequestActionMutation, + OrderTransactionRequestActionMutationVariables, OrderUpdateMutation, OrderUpdateMutationVariables, useCustomerAddressesQuery, useWarehouseListQuery, } from "@dashboard/graphql"; -import { - CreateManualTransactionCaptureMutation, - CreateManualTransactionCaptureMutationVariables, - OrderTransactionRequestActionMutation, - OrderTransactionRequestActionMutationVariables, -} from "@dashboard/graphql/transactions"; -// TODO: Add feature flags import useNavigator from "@dashboard/hooks/useNavigator"; import OrderCannotCancelOrderDialog from "@dashboard/orders/components/OrderCannotCancelOrderDialog"; import { OrderCustomerAddressesEditDialogOutput } from "@dashboard/orders/components/OrderCustomerAddressesEditDialog/types"; diff --git a/src/orders/views/OrderEditGrantRefund/OrderEditGrantRefund.tsx b/src/orders/views/OrderEditGrantRefund/OrderEditGrantRefund.tsx index 0205beb6b..f5d599eec 100644 --- a/src/orders/views/OrderEditGrantRefund/OrderEditGrantRefund.tsx +++ b/src/orders/views/OrderEditGrantRefund/OrderEditGrantRefund.tsx @@ -3,7 +3,7 @@ import { WindowTitle } from "@dashboard/components/WindowTitle"; import { useOrderDetailsGrantRefundEditQuery, useOrderGrantRefundEditMutation, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import useNavigator from "@dashboard/hooks/useNavigator"; import useNotifier from "@dashboard/hooks/useNotifier"; import { extractMutationErrors } from "@dashboard/misc"; diff --git a/src/orders/views/OrderGrantRefund/OrderGrantRefund.tsx b/src/orders/views/OrderGrantRefund/OrderGrantRefund.tsx index 98629a26b..c1b2ea5fd 100644 --- a/src/orders/views/OrderGrantRefund/OrderGrantRefund.tsx +++ b/src/orders/views/OrderGrantRefund/OrderGrantRefund.tsx @@ -2,7 +2,7 @@ import { WindowTitle } from "@dashboard/components/WindowTitle"; import { useOrderDetailsGrantRefundQuery, useOrderGrantRefundAddMutation, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import useNavigator from "@dashboard/hooks/useNavigator"; import useNotifier from "@dashboard/hooks/useNotifier"; import { extractMutationErrors } from "@dashboard/misc"; diff --git a/src/orders/views/OrderReturn/OrderReturn.tsx b/src/orders/views/OrderReturn/OrderReturn.tsx index 7eb8bc688..9981f8537 100644 --- a/src/orders/views/OrderReturn/OrderReturn.tsx +++ b/src/orders/views/OrderReturn/OrderReturn.tsx @@ -3,7 +3,6 @@ import { useFulfillmentReturnProductsMutation, useOrderDetailsQuery, } from "@dashboard/graphql"; -import { useFlags } from "@dashboard/hooks/useFlags"; import useNavigator from "@dashboard/hooks/useNavigator"; import useNotifier from "@dashboard/hooks/useNotifier"; import { commonMessages } from "@dashboard/intl"; @@ -27,8 +26,6 @@ const OrderReturn: React.FC = ({ orderId }) => { const notify = useNotifier(); const intl = useIntl(); - const { orderTransactions } = useFlags(["orderTransactions"]); - const { data, loading } = useOrderDetailsQuery({ displayLoader: true, variables: { @@ -84,10 +81,7 @@ const OrderReturn: React.FC = ({ orderId }) => { input: new ReturnFormDataParser({ order: data.order, formData, - refundsEnabled: !orderHasTransactions( - data.order, - orderTransactions.enabled, - ), + refundsEnabled: !orderHasTransactions(data.order), }).getParsedData(), }, }), diff --git a/src/orders/views/OrderSendRefund/OrderSendRefund.tsx b/src/orders/views/OrderSendRefund/OrderSendRefund.tsx index a4979a0a2..a93596e7a 100644 --- a/src/orders/views/OrderSendRefund/OrderSendRefund.tsx +++ b/src/orders/views/OrderSendRefund/OrderSendRefund.tsx @@ -2,7 +2,7 @@ import { OrderDetailsDocument, useCreateManualTransactionRefundMutation, useOrderDetailsQuery, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import useNotifier from "@dashboard/hooks/useNotifier"; import OrderSendRefundPage from "@dashboard/orders/components/OrderSendRefundPage"; import { getTransactionCreateErrorMessage } from "@dashboard/utils/errors/transaction"; diff --git a/src/products/components/OrderDiscountProviders/OrderDiscountProvider.tsx b/src/products/components/OrderDiscountProviders/OrderDiscountProvider.tsx index f567a9915..ed1f58082 100644 --- a/src/products/components/OrderDiscountProviders/OrderDiscountProvider.tsx +++ b/src/products/components/OrderDiscountProviders/OrderDiscountProvider.tsx @@ -1,5 +1,6 @@ import { MoneyFragment, + OrderDetailsFragment, useOrderDiscountAddMutation, useOrderDiscountDeleteMutation, useOrderDiscountUpdateMutation, @@ -7,7 +8,6 @@ import { import useNotifier from "@dashboard/hooks/useNotifier"; import { getDefaultNotifierSuccessErrorData } from "@dashboard/hooks/useNotifier/utils"; import { OrderDiscountCommonInput } from "@dashboard/orders/components/OrderDiscountCommonModal/types"; -import { OrderBothTypes } from "@dashboard/orders/types"; import { ConfirmButtonTransitionState } from "@saleor/macaw-ui"; import React, { createContext } from "react"; import { useIntl } from "react-intl"; @@ -32,7 +32,7 @@ export interface OrderDiscountContextConsumerProps interface OrderDiscountProviderProps { children: React.ReactNode; - order?: OrderBothTypes; + order?: OrderDetailsFragment; } export const OrderDiscountProvider: React.FC = ({ diff --git a/src/products/components/OrderDiscountProviders/OrderLineDiscountProvider.tsx b/src/products/components/OrderDiscountProviders/OrderLineDiscountProvider.tsx index f4913de06..06e1280c5 100644 --- a/src/products/components/OrderDiscountProviders/OrderLineDiscountProvider.tsx +++ b/src/products/components/OrderDiscountProviders/OrderLineDiscountProvider.tsx @@ -1,5 +1,6 @@ import { MoneyFragment, + OrderDetailsFragment, useOrderLineDiscountRemoveMutation, useOrderLineDiscountUpdateMutation, } from "@dashboard/graphql"; @@ -7,7 +8,6 @@ import useNotifier from "@dashboard/hooks/useNotifier"; import { getDefaultNotifierSuccessErrorData } from "@dashboard/hooks/useNotifier/utils"; import { getById } from "@dashboard/misc"; import { OrderDiscountCommonInput } from "@dashboard/orders/components/OrderDiscountCommonModal/types"; -import { OrderBothTypes } from "@dashboard/orders/types"; import { ConfirmButtonTransitionState } from "@saleor/macaw-ui"; import React, { createContext, useState } from "react"; import { useIntl } from "react-intl"; @@ -38,7 +38,7 @@ export interface OrderLineDiscountContextConsumerProps interface DiscountProviderProps { children: React.ReactNode; - order: OrderBothTypes; + order: OrderDetailsFragment; } export const OrderLineDiscountContext = diff --git a/src/products/components/OrderDiscountProviders/utils.ts b/src/products/components/OrderDiscountProviders/utils.ts index 054e73a3b..5eeb0931f 100644 --- a/src/products/components/OrderDiscountProviders/utils.ts +++ b/src/products/components/OrderDiscountProviders/utils.ts @@ -1,6 +1,9 @@ -import { OrderDetailsQuery, OrderDiscountType } from "@dashboard/graphql"; +import { + OrderDetailsFragment, + OrderDetailsQuery, + OrderDiscountType, +} from "@dashboard/graphql"; import { OrderDiscountCommonInput } from "@dashboard/orders/components/OrderDiscountCommonModal/types"; -import { OrderBothTypes } from "@dashboard/orders/types"; import { useState } from "react"; import { OrderLineDiscountData } from "./types"; @@ -13,17 +16,17 @@ export const useDiscountDialog = () => { return { closeDialog, isDialogOpen, openDialog }; }; -export const getManualOrderDiscount = (order: OrderBothTypes) => +export const getManualOrderDiscount = (order: OrderDetailsFragment) => order ? getOrderDiscount(order, OrderDiscountType.MANUAL) : null; export const getOrderDiscount = ( - order: OrderBothTypes, + order: OrderDetailsFragment, discountType: OrderDiscountType, ): OrderDetailsQuery["order"]["discounts"][0] => order.discounts.find(({ type }) => type === discountType); export const getOrderLineDiscount = ( - order: OrderBothTypes, + order: OrderDetailsFragment, orderLineId: string, ): OrderLineDiscountData => { const { diff --git a/src/utils/errors/order.ts b/src/utils/errors/order.ts index 5a20bd705..93b404f43 100644 --- a/src/utils/errors/order.ts +++ b/src/utils/errors/order.ts @@ -1,7 +1,6 @@ -import { OrderErrorCode } from "@dashboard/graphql"; +import { OrderErrorCode, OrderErrorFragment } from "@dashboard/graphql"; import { defineMessages, IntlShape } from "react-intl"; -import { OrderErrorFragment } from "../../orders/types"; import { getCommonFormFieldErrorMessage } from "./common"; const messages = defineMessages({ diff --git a/src/utils/errors/transaction.ts b/src/utils/errors/transaction.ts index e22fbafc9..288d85062 100644 --- a/src/utils/errors/transaction.ts +++ b/src/utils/errors/transaction.ts @@ -3,7 +3,7 @@ import { TransactionCreateErrorFragment, TransactionRequestActionErrorCode, TransactionRequestActionErrorFragment, -} from "@dashboard/graphql/transactions"; +} from "@dashboard/graphql"; import { defineMessages, IntlShape } from "react-intl"; import { getCommonFormFieldErrorMessage } from "./common";