diff --git a/.changeset/afraid-cameras-learn.md b/.changeset/afraid-cameras-learn.md new file mode 100644 index 0000000..9d8f167 --- /dev/null +++ b/.changeset/afraid-cameras-learn.md @@ -0,0 +1,5 @@ +--- +"saleor-app-slack": major +--- + +Add slack into the workspace diff --git a/apps/data-importer/.eslintrc b/apps/data-importer/.eslintrc index 1d5c630..5470783 100644 --- a/apps/data-importer/.eslintrc +++ b/apps/data-importer/.eslintrc @@ -1,3 +1,4 @@ { + "root": true, "extends": ["saleor"] -} \ No newline at end of file +} diff --git a/apps/invoices/.eslintrc b/apps/invoices/.eslintrc index 1d5c630..5470783 100644 --- a/apps/invoices/.eslintrc +++ b/apps/invoices/.eslintrc @@ -1,3 +1,4 @@ { + "root": true, "extends": ["saleor"] -} \ No newline at end of file +} diff --git a/apps/klaviyo/.eslintrc b/apps/klaviyo/.eslintrc index 0784400..5470783 100644 --- a/apps/klaviyo/.eslintrc +++ b/apps/klaviyo/.eslintrc @@ -1,3 +1,4 @@ { + "root": true, "extends": ["saleor"] } diff --git a/apps/klaviyo/generated/schema.graphql b/apps/klaviyo/generated/schema.graphql index 31790bc..059bab7 100644 --- a/apps/klaviyo/generated/schema.graphql +++ b/apps/klaviyo/generated/schema.graphql @@ -1,5 +1,5 @@ """ -Create a new address for the customer. +Create a new address for the customer. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -37,7 +37,7 @@ type AccountAddressUpdate { } """ -Remove user account. +Remove user account. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -156,7 +156,7 @@ input AccountRegisterInput { } """ -Sends an email with the account removal link for the logged-in user. +Sends an email with the account removal link for the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -166,7 +166,7 @@ type AccountRequestDeletion { } """ -Sets a default address for the authenticated user. +Sets a default address for the authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -179,7 +179,7 @@ type AccountSetDefaultAddress { } """ -Updates the account of the logged-in user. +Updates the account of the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -272,7 +272,7 @@ type Address implements Node & ObjectWithMetadata { } """ -Creates user address. +Creates user address. Requires one of the following permissions: MANAGE_USERS. """ @@ -310,7 +310,7 @@ type AddressCreated implements Event { } """ -Deletes an address. +Deletes an address. Requires one of the following permissions: MANAGE_USERS. """ @@ -383,7 +383,7 @@ input AddressInput { } """ -Sets a default address for the given user. +Sets a default address for the given user. Requires one of the following permissions: MANAGE_USERS. """ @@ -402,7 +402,7 @@ enum AddressTypeEnum { } """ -Updates an address. +Updates an address. Requires one of the following permissions: MANAGE_USERS. """ @@ -614,7 +614,7 @@ type App implements Node & ObjectWithMetadata { } """ -Activate the app. +Activate the app. Requires one of the following permissions: MANAGE_APPS. """ @@ -655,7 +655,7 @@ type AppCreate { } """ -Deactivate the app. +Deactivate the app. Requires one of the following permissions: MANAGE_APPS. """ @@ -666,7 +666,7 @@ type AppDeactivate { } """ -Deletes an app. +Deletes an app. Requires one of the following permissions: MANAGE_APPS. """ @@ -677,7 +677,7 @@ type AppDelete { } """ -Delete failed installation. +Delete failed installation. Requires one of the following permissions: MANAGE_APPS. """ @@ -821,7 +821,7 @@ enum AppExtensionTargetEnum { } """ -Fetch and validate manifest. +Fetch and validate manifest. Requires one of the following permissions: MANAGE_APPS. """ @@ -946,7 +946,7 @@ type AppManifestWebhook { } """ -Retry failed installation of new app. +Retry failed installation of new app. Requires one of the following permissions: MANAGE_APPS. """ @@ -1007,7 +1007,7 @@ type AppToken implements Node { } """ -Creates a new token. +Creates a new token. Requires one of the following permissions: MANAGE_APPS. """ @@ -1021,7 +1021,7 @@ type AppTokenCreate { } """ -Deletes an authentication token assigned to app. +Deletes an authentication token assigned to app. Requires one of the following permissions: MANAGE_APPS. """ @@ -1062,7 +1062,7 @@ enum AppTypeEnum { } """ -Updates an existing app. +Updates an existing app. Requires one of the following permissions: MANAGE_APPS. """ @@ -1107,7 +1107,7 @@ enum AreaUnitsEnum { } """ -Assigns storefront's navigation menus. +Assigns storefront's navigation menus. Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. """ @@ -1168,7 +1168,7 @@ type Attribute implements Node & ObjectWithMetadata { entityType: AttributeEntityTypeEnum """ - External ID of this attribute. + External ID of this attribute. Added in Saleor 3.10. """ @@ -1298,7 +1298,7 @@ type Attribute implements Node & ObjectWithMetadata { } """ -Deletes attributes. +Deletes attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -1429,7 +1429,7 @@ type AttributeCreated implements Event { } """ -Deletes an attribute. +Deletes an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -1497,7 +1497,7 @@ input AttributeFilterInput { availableInGrid: Boolean """ - Specifies the channel by which the data should be filtered. + 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. """ @@ -1554,7 +1554,7 @@ enum AttributeInputTypeEnum { } """ -Reorder the values of an attribute. +Reorder the values of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -1618,7 +1618,7 @@ type AttributeTranslatableContent implements Node { } """ -Creates/updates translations for an attribute. +Creates/updates translations for an attribute. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -1643,7 +1643,7 @@ enum AttributeTypeEnum { } """ -Updates attribute. +Updates attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -1736,7 +1736,7 @@ type AttributeValue implements Node { dateTime: DateTime """ - External ID of this attribute value. + External ID of this attribute value. Added in Saleor 3.10. """ @@ -1783,7 +1783,7 @@ type AttributeValue implements Node { } """ -Deletes values of attributes. +Deletes values of attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -1814,7 +1814,7 @@ type AttributeValueCountableEdge { } """ -Creates a value for an attribute. +Creates a value for an attribute. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -1890,7 +1890,7 @@ type AttributeValueCreated implements Event { } """ -Deletes a value of an attribute. +Deletes a value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -1994,7 +1994,7 @@ input AttributeValueInput { } """ -Represents attribute value. If no ID provided, value will be resolved. +Represents attribute value. If no ID provided, value will be resolved. Added in Saleor 3.9. """ @@ -2039,7 +2039,7 @@ type AttributeValueTranslatableContent implements Node { } """ -Creates/updates translations for an attribute value. +Creates/updates translations for an attribute value. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -2082,7 +2082,7 @@ input AttributeValueTranslationInput { } """ -Updates value of an attribute. +Updates value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -2433,7 +2433,7 @@ type Category implements Node & ObjectWithMetadata { } """ -Deletes categories. +Deletes categories. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -2463,7 +2463,7 @@ type CategoryCountableEdge { } """ -Creates a new category. +Creates a new category. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -2498,7 +2498,7 @@ type CategoryCreated implements Event { } """ -Deletes a category. +Deletes a category. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -2633,7 +2633,7 @@ type CategoryTranslatableContent implements Node { } """ -Creates/updates translations for a category. +Creates/updates translations for a category. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -2667,7 +2667,7 @@ type CategoryTranslation implements Node { } """ -Updates a category. +Updates a category. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -2786,7 +2786,7 @@ type Channel implements Node { } """ -Activate a channel. +Activate a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -2798,7 +2798,7 @@ type ChannelActivate { } """ -Creates new channel. +Creates new channel. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -2877,7 +2877,7 @@ type ChannelCreated implements Event { } """ -Deactivate a channel. +Deactivate a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -2889,7 +2889,7 @@ type ChannelDeactivate { } """ -Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. +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. """ @@ -2965,7 +2965,7 @@ 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. +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. """ @@ -3000,7 +3000,7 @@ type ChannelStatusChanged implements Event { } """ -Update a channel. +Update a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -3384,7 +3384,7 @@ type CheckoutCreated implements Event { } """ -Sets the customer as the owner of the checkout. +Sets the customer as the owner of the checkout. Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. """ @@ -3396,7 +3396,7 @@ type CheckoutCustomerAttach { } """ -Removes the user assigned as the owner of the checkout. +Removes the user assigned as the owner of the checkout. Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. """ @@ -3627,7 +3627,7 @@ type CheckoutLineDelete { input CheckoutLineInput { """ - Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. + Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. Added in Saleor 3.6. @@ -3681,7 +3681,7 @@ input CheckoutLineUpdateInput { quantity: Int """ - ID of the product variant. + ID of the product variant. DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. """ @@ -3956,7 +3956,7 @@ type Collection implements Node & ObjectWithMetadata { } """ -Adds products to a collection. +Adds products to a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -3968,7 +3968,7 @@ type CollectionAddProducts { } """ -Deletes collections. +Deletes collections. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -4018,7 +4018,7 @@ type CollectionChannelListingError { } """ -Manage collection's availability in channels. +Manage collection's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -4056,7 +4056,7 @@ type CollectionCountableEdge { } """ -Creates a new collection. +Creates a new collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -4104,7 +4104,7 @@ input CollectionCreateInput { products: [ID!] """ - Publication date. ISO 8601 standard. + Publication date. ISO 8601 standard. DEPRECATED: this field will be removed in Saleor 4.0. """ @@ -4145,7 +4145,7 @@ type CollectionCreated implements Event { } """ -Deletes a collection. +Deletes a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -4211,7 +4211,7 @@ enum CollectionErrorCode { input CollectionFilterInput { """ - Specifies the channel by which the data should be filtered. + 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. """ @@ -4258,7 +4258,7 @@ input CollectionInput { privateMetadata: [MetadataInput!] """ - Publication date. ISO 8601 standard. + Publication date. ISO 8601 standard. DEPRECATED: this field will be removed in Saleor 4.0. """ @@ -4304,7 +4304,7 @@ enum CollectionPublished { } """ -Remove products from a collection. +Remove products from a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -4316,7 +4316,7 @@ type CollectionRemoveProducts { } """ -Reorder the products of a collection. +Reorder the products of a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -4401,7 +4401,7 @@ type CollectionTranslatableContent implements Node { } """ -Creates/updates translations for a collection. +Creates/updates translations for a collection. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -4435,7 +4435,7 @@ type CollectionTranslation implements Node { } """ -Updates a collection. +Updates a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -4519,7 +4519,7 @@ type ConfirmAccount { } """ -Confirm the email change of the logged-in user. +Confirm the email change of the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -4859,7 +4859,7 @@ type CreditCard { } """ -Deletes customers. +Deletes customers. Requires one of the following permissions: MANAGE_USERS. """ @@ -4872,7 +4872,7 @@ type CustomerBulkDelete { } """ -Creates a new customer. +Creates a new customer. Requires one of the following permissions: MANAGE_USERS. """ @@ -4907,7 +4907,7 @@ type CustomerCreated implements Event { } """ -Deletes a customer. +Deletes a customer. Requires one of the following permissions: MANAGE_USERS. """ @@ -4968,7 +4968,7 @@ input CustomerFilterInput { dateJoined: DateRangeInput """ - Filter by ids. + Filter by ids. Added in Saleor 3.8. """ @@ -5038,7 +5038,7 @@ type CustomerMetadataUpdated implements Event { } """ -Updates an existing customer. +Updates an existing customer. Requires one of the following permissions: MANAGE_USERS. """ @@ -5103,7 +5103,7 @@ input DateTimeRangeInput { } """ -Deactivate all JWT tokens of the currently authenticated user. +Deactivate all JWT tokens of the currently authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -5219,7 +5219,7 @@ type DigitalContentCountableEdge { } """ -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 +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. """ @@ -5231,7 +5231,7 @@ type DigitalContentCreate { } """ -Remove digital content assigned to given variant. +Remove digital content assigned to given variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -5274,7 +5274,7 @@ input DigitalContentInput { } """ -Update digital content. +Update digital content. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -5334,7 +5334,7 @@ type DigitalContentUrl implements Node { } """ -Generate new URL to digital content. +Generate new URL to digital content. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -5414,7 +5414,7 @@ type Domain { } """ -Deletes draft orders. +Deletes draft orders. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -5426,7 +5426,7 @@ type DraftOrderBulkDelete { } """ -Completes creating an order. +Completes creating an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -5439,7 +5439,7 @@ type DraftOrderComplete { } """ -Creates a new draft order. +Creates a new draft order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -5518,7 +5518,7 @@ type DraftOrderCreated implements Event { } """ -Deletes a draft order. +Deletes a draft order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -5594,7 +5594,7 @@ input DraftOrderInput { } """ -Deletes order lines. +Deletes order lines. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -5606,7 +5606,7 @@ type DraftOrderLinesBulkDelete { } """ -Updates a draft order. +Updates a draft order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -5769,7 +5769,7 @@ input EventDeliveryFilterInput { } """ -Retries event delivery. +Retries event delivery. Requires one of the following permissions: MANAGE_APPS. """ @@ -5925,7 +5925,7 @@ 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. +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. """ @@ -5967,7 +5967,7 @@ input ExportInfoInput { } """ -Export products to csv file. +Export products to csv file. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -6148,7 +6148,7 @@ enum FileTypesEnum { } """ -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 +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. """ @@ -6225,7 +6225,7 @@ type Fulfillment implements Node & ObjectWithMetadata { """ Approve existing fulfillment. -Added in Saleor 3.1. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -6268,7 +6268,7 @@ type FulfillmentApproved implements Event { } """ -Cancels existing fulfillment and optionally restocks items. +Cancels existing fulfillment and optionally restocks items. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -6379,7 +6379,7 @@ type FulfillmentMetadataUpdated implements Event { } """ -Refund products. +Refund products. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -6395,7 +6395,7 @@ type FulfillmentRefundProducts { } """ -Return products. +Return products. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -6428,7 +6428,7 @@ enum FulfillmentStatus { } """ -Updates a fulfillment for an order. +Updates a fulfillment for an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -6638,7 +6638,7 @@ type GiftCard implements Node & ObjectWithMetadata { } """ -Activate a gift card. +Activate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -6655,7 +6655,7 @@ 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. +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. """ @@ -6679,7 +6679,7 @@ 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. +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. """ @@ -6694,7 +6694,7 @@ 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. +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. """ @@ -6729,7 +6729,7 @@ 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. +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. """ @@ -6744,7 +6744,7 @@ 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. +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. """ @@ -6773,7 +6773,7 @@ type GiftCardCountableEdge { } """ -Creates a new gift card. +Creates a new gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -6806,14 +6806,14 @@ input GiftCardCreateInput { channel: String """ - Code to use the gift card. + Code to use the gift card. DEPRECATED: this field will be removed in Saleor 4.0. The code is now auto generated. """ code: String """ - End date of the gift card in ISO 8601 format. + 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. """ @@ -6847,7 +6847,7 @@ input GiftCardCreateInput { note: String """ - Start date of the gift card in ISO 8601 format. + Start date of the gift card in ISO 8601 format. DEPRECATED: this field will be removed in Saleor 4.0. """ @@ -6882,7 +6882,7 @@ type GiftCardCreated implements Event { } """ -Deactivate a gift card. +Deactivate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -6899,7 +6899,7 @@ 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. +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. """ @@ -7091,7 +7091,7 @@ 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. +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. """ @@ -7149,7 +7149,7 @@ enum GiftCardSettingsExpiryTypeEnum { } """ -Update gift card settings. +Update gift card settings. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -7253,7 +7253,7 @@ input GiftCardTagFilterInput { } """ -Update a gift card. +Update a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -7283,7 +7283,7 @@ input GiftCardUpdateInput { balanceAmount: PositiveDecimal """ - End date of the gift card in ISO 8601 format. + 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. """ @@ -7308,7 +7308,7 @@ input GiftCardUpdateInput { removeTags: [String!] """ - Start date of the gift card in ISO 8601 format. + Start date of the gift card in ISO 8601 format. DEPRECATED: this field will be removed in Saleor 4.0. """ @@ -7467,7 +7467,7 @@ type Invoice implements Job & Node & ObjectWithMetadata { } """ -Creates a ready to send invoice. +Creates a ready to send invoice. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -7486,7 +7486,7 @@ input InvoiceCreateInput { } """ -Deletes an invoice. +Deletes an invoice. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -7553,7 +7553,7 @@ enum InvoiceErrorCode { } """ -Request an invoice for the order using plugin. +Request an invoice for the order using plugin. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -7567,7 +7567,7 @@ type InvoiceRequest { } """ -Requests deletion of an invoice. +Requests deletion of an invoice. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -7609,7 +7609,7 @@ type InvoiceRequested implements Event { } """ -Send an invoice notification to the customer. +Send an invoice notification to the customer. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -7651,7 +7651,7 @@ type InvoiceSent implements Event { } """ -Updates an invoice. +Updates an invoice. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -8642,7 +8642,7 @@ type Menu implements Node & ObjectWithMetadata { } """ -Deletes menus. +Deletes menus. Requires one of the following permissions: MANAGE_MENUS. """ @@ -8672,7 +8672,7 @@ type MenuCountableEdge { } """ -Creates a new Menu. +Creates a new Menu. Requires one of the following permissions: MANAGE_MENUS. """ @@ -8721,7 +8721,7 @@ type MenuCreated implements Event { } """ -Deletes a menu. +Deletes a menu. Requires one of the following permissions: MANAGE_MENUS. """ @@ -8878,7 +8878,7 @@ type MenuItem implements Node & ObjectWithMetadata { } """ -Deletes menu items. +Deletes menu items. Requires one of the following permissions: MANAGE_MENUS. """ @@ -8908,7 +8908,7 @@ type MenuItemCountableEdge { } """ -Creates a new menu item. +Creates a new menu item. Requires one of the following permissions: MANAGE_MENUS. """ @@ -8969,7 +8969,7 @@ type MenuItemCreated implements Event { } """ -Deletes a menu item. +Deletes a menu item. Requires one of the following permissions: MANAGE_MENUS. """ @@ -9029,7 +9029,7 @@ input MenuItemInput { } """ -Moves items of menus. +Moves items of menus. Requires one of the following permissions: MANAGE_MENUS. """ @@ -9079,7 +9079,7 @@ type MenuItemTranslatableContent implements Node { } """ -Creates/updates translations for a menu item. +Creates/updates translations for a menu item. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -9098,7 +9098,7 @@ type MenuItemTranslation implements Node { } """ -Updates a menu item. +Updates a menu item. Requires one of the following permissions: MANAGE_MENUS. """ @@ -9157,7 +9157,7 @@ input MenuSortingInput { } """ -Updates a menu. +Updates a menu. Requires one of the following permissions: MANAGE_MENUS. """ @@ -9291,7 +9291,7 @@ input MoveProductInput { type Mutation { """ - Create a new address for the customer. + Create a new address for the customer. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -9325,7 +9325,7 @@ type Mutation { ): AccountAddressUpdate """ - Remove user account. + Remove user account. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -9343,7 +9343,7 @@ type Mutation { ): AccountRegister """ - Sends an email with the account removal link for the logged-in user. + Sends an email with the account removal link for the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -9360,7 +9360,7 @@ type Mutation { ): AccountRequestDeletion """ - Sets a default address for the authenticated user. + Sets a default address for the authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -9373,7 +9373,7 @@ type Mutation { ): AccountSetDefaultAddress """ - Updates the account of the logged-in user. + Updates the account of the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -9383,7 +9383,7 @@ type Mutation { ): AccountUpdate """ - Creates user address. + Creates user address. Requires one of the following permissions: MANAGE_USERS. """ @@ -9396,7 +9396,7 @@ type Mutation { ): AddressCreate """ - Deletes an address. + Deletes an address. Requires one of the following permissions: MANAGE_USERS. """ @@ -9406,7 +9406,7 @@ type Mutation { ): AddressDelete """ - Sets a default address for the given user. + Sets a default address for the given user. Requires one of the following permissions: MANAGE_USERS. """ @@ -9422,7 +9422,7 @@ type Mutation { ): AddressSetDefault """ - Updates an address. + Updates an address. Requires one of the following permissions: MANAGE_USERS. """ @@ -9435,7 +9435,7 @@ type Mutation { ): AddressUpdate """ - Activate the app. + Activate the app. Requires one of the following permissions: MANAGE_APPS. """ @@ -9453,7 +9453,7 @@ type Mutation { ): AppCreate """ - Deactivate the app. + Deactivate the app. Requires one of the following permissions: MANAGE_APPS. """ @@ -9463,7 +9463,7 @@ type Mutation { ): AppDeactivate """ - Deletes an app. + Deletes an app. Requires one of the following permissions: MANAGE_APPS. """ @@ -9473,7 +9473,7 @@ type Mutation { ): AppDelete """ - Delete failed installation. + Delete failed installation. Requires one of the following permissions: MANAGE_APPS. """ @@ -9483,7 +9483,7 @@ type Mutation { ): AppDeleteFailedInstallation """ - Fetch and validate manifest. + Fetch and validate manifest. Requires one of the following permissions: MANAGE_APPS. """ @@ -9498,7 +9498,7 @@ type Mutation { ): AppInstall """ - Retry failed installation of new app. + Retry failed installation of new app. Requires one of the following permissions: MANAGE_APPS. """ @@ -9511,7 +9511,7 @@ type Mutation { ): AppRetryInstall """ - Creates a new token. + Creates a new token. Requires one of the following permissions: MANAGE_APPS. """ @@ -9521,7 +9521,7 @@ type Mutation { ): AppTokenCreate """ - Deletes an authentication token assigned to app. + Deletes an authentication token assigned to app. Requires one of the following permissions: MANAGE_APPS. """ @@ -9537,7 +9537,7 @@ type Mutation { ): AppTokenVerify """ - Updates an existing app. + Updates an existing app. Requires one of the following permissions: MANAGE_APPS. """ @@ -9550,7 +9550,7 @@ type Mutation { ): AppUpdate """ - Assigns storefront's navigation menus. + Assigns storefront's navigation menus. Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. """ @@ -9563,7 +9563,7 @@ type Mutation { ): AssignNavigation """ - Add shipping zone to given warehouse. + Add shipping zone to given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -9576,7 +9576,7 @@ type Mutation { ): WarehouseShippingZoneAssign """ - Deletes attributes. + Deletes attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -9592,13 +9592,13 @@ type Mutation { ): AttributeCreate """ - Deletes an attribute. + Deletes an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ attributeDelete( """ - External ID of an attribute to delete. + External ID of an attribute to delete. Added in Saleor 3.10. """ @@ -9609,7 +9609,7 @@ type Mutation { ): AttributeDelete """ - Reorder the values of an attribute. + Reorder the values of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -9622,7 +9622,7 @@ type Mutation { ): AttributeReorderValues """ - Creates/updates translations for an attribute. + Creates/updates translations for an attribute. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -9636,13 +9636,13 @@ type Mutation { ): AttributeTranslate """ - Updates attribute. + Updates attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ attributeUpdate( """ - External ID of an attribute to update. + External ID of an attribute to update. Added in Saleor 3.10. """ @@ -9656,7 +9656,7 @@ type Mutation { ): AttributeUpdate """ - Deletes values of attributes. + Deletes values of attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -9666,7 +9666,7 @@ type Mutation { ): AttributeValueBulkDelete """ - Creates a value for an attribute. + Creates a value for an attribute. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -9679,13 +9679,13 @@ type Mutation { ): AttributeValueCreate """ - Deletes a value of an attribute. + 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. + External ID of a value to delete. Added in Saleor 3.10. """ @@ -9696,7 +9696,7 @@ type Mutation { ): AttributeValueDelete """ - Creates/updates translations for an attribute value. + Creates/updates translations for an attribute value. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -9710,13 +9710,13 @@ type Mutation { ): AttributeValueTranslate """ - Updates value of an attribute. + Updates value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ attributeValueUpdate( """ - External ID of an AttributeValue to update. + External ID of an AttributeValue to update. Added in Saleor 3.10. """ @@ -9730,7 +9730,7 @@ type Mutation { ): AttributeValueUpdate """ - Deletes categories. + Deletes categories. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -9740,7 +9740,7 @@ type Mutation { ): CategoryBulkDelete """ - Creates a new category. + Creates a new category. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -9755,7 +9755,7 @@ type Mutation { ): CategoryCreate """ - Deletes a category. + Deletes a category. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -9765,7 +9765,7 @@ type Mutation { ): CategoryDelete """ - Creates/updates translations for a category. + Creates/updates translations for a category. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -9779,7 +9779,7 @@ type Mutation { ): CategoryTranslate """ - Updates a category. + Updates a category. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -9792,7 +9792,7 @@ type Mutation { ): CategoryUpdate """ - Activate a channel. + Activate a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -9802,7 +9802,7 @@ type Mutation { ): ChannelActivate """ - Creates new channel. + Creates new channel. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -9812,7 +9812,7 @@ type Mutation { ): ChannelCreate """ - Deactivate a channel. + Deactivate a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -9822,7 +9822,7 @@ type Mutation { ): ChannelDeactivate """ - Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. + 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. """ @@ -9839,7 +9839,7 @@ type Mutation { Added in Saleor 3.7. - 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: MANAGE_CHANNELS. """ @@ -9852,7 +9852,7 @@ type Mutation { ): ChannelReorderWarehouses """ - Update a channel. + Update a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ @@ -9897,7 +9897,7 @@ type Mutation { billingAddress: AddressInput! """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -9932,7 +9932,7 @@ type Mutation { """ checkoutComplete( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -9961,7 +9961,7 @@ type Mutation { redirectUrl: String """ - Determines whether to store the payment source for future usage. + 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. """ @@ -9982,13 +9982,13 @@ type Mutation { ): CheckoutCreate """ - Sets the customer as the owner of the checkout. + 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. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10015,13 +10015,13 @@ type Mutation { ): CheckoutCustomerAttach """ - Removes the user assigned as the owner of the checkout. + 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. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10071,7 +10071,7 @@ type Mutation { """Updates email address in the existing checkout object.""" checkoutEmailUpdate( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10098,7 +10098,7 @@ type Mutation { """Update language code in the existing checkout.""" checkoutLanguageCodeUpdate( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10125,7 +10125,7 @@ type Mutation { """Deletes a CheckoutLine.""" checkoutLineDelete( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10154,7 +10154,7 @@ type Mutation { """ checkoutLinesAdd( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10203,7 +10203,7 @@ type Mutation { """Updates checkout line in the existing checkout.""" checkoutLinesUpdate( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10232,7 +10232,7 @@ type Mutation { """Create a new payment for given checkout.""" checkoutPaymentCreate( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10259,7 +10259,7 @@ type Mutation { """Remove a gift card or a voucher from a checkout.""" checkoutRemovePromoCode( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10289,7 +10289,7 @@ type Mutation { """Update shipping address in the existing checkout.""" checkoutShippingAddressUpdate( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10325,7 +10325,7 @@ type Mutation { """Updates the shipping method of the checkout.""" checkoutShippingMethodUpdate( """ - The ID of the checkout. + The ID of the checkout. DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ @@ -10350,7 +10350,7 @@ type Mutation { ): CheckoutShippingMethodUpdate @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead.") """ - Adds products to a collection. + Adds products to a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10363,7 +10363,7 @@ type Mutation { ): CollectionAddProducts """ - Deletes collections. + Deletes collections. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10373,7 +10373,7 @@ type Mutation { ): CollectionBulkDelete """ - Manage collection's availability in channels. + Manage collection's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10386,7 +10386,7 @@ type Mutation { ): CollectionChannelListingUpdate """ - Creates a new collection. + Creates a new collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10396,7 +10396,7 @@ type Mutation { ): CollectionCreate """ - Deletes a collection. + Deletes a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10406,7 +10406,7 @@ type Mutation { ): CollectionDelete """ - Remove products from a collection. + Remove products from a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10419,7 +10419,7 @@ type Mutation { ): CollectionRemoveProducts """ - Reorder the products of a collection. + Reorder the products of a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10432,7 +10432,7 @@ type Mutation { ): CollectionReorderProducts """ - Creates/updates translations for a collection. + Creates/updates translations for a collection. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -10446,7 +10446,7 @@ type Mutation { ): CollectionTranslate """ - Updates a collection. + Updates a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10468,7 +10468,7 @@ type Mutation { ): ConfirmAccount """ - Confirm the email change of the logged-in user. + Confirm the email change of the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -10483,7 +10483,7 @@ type Mutation { ): ConfirmEmailChange """ - Creates new warehouse. + Creates new warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10493,7 +10493,7 @@ type Mutation { ): WarehouseCreate """ - Deletes customers. + Deletes customers. Requires one of the following permissions: MANAGE_USERS. """ @@ -10503,7 +10503,7 @@ type Mutation { ): CustomerBulkDelete """ - Creates a new customer. + Creates a new customer. Requires one of the following permissions: MANAGE_USERS. """ @@ -10513,13 +10513,13 @@ type Mutation { ): CustomerCreate """ - Deletes a customer. + Deletes a customer. Requires one of the following permissions: MANAGE_USERS. """ customerDelete( """ - External ID of a customer to update. + External ID of a customer to update. Added in Saleor 3.10. """ @@ -10530,13 +10530,13 @@ type Mutation { ): CustomerDelete """ - Updates an existing customer. + Updates an existing customer. Requires one of the following permissions: MANAGE_USERS. """ customerUpdate( """ - External ID of a customer to update. + External ID of a customer to update. Added in Saleor 3.10. """ @@ -10572,7 +10572,7 @@ type Mutation { ): DeletePrivateMetadata """ - Deletes selected warehouse. + Deletes selected warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10582,7 +10582,7 @@ type Mutation { ): WarehouseDelete """ - 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 + 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. """ @@ -10595,7 +10595,7 @@ type Mutation { ): DigitalContentCreate """ - Remove digital content assigned to given variant. + Remove digital content assigned to given variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10605,7 +10605,7 @@ type Mutation { ): DigitalContentDelete """ - Update digital content. + Update digital content. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10618,7 +10618,7 @@ type Mutation { ): DigitalContentUpdate """ - Generate new URL to digital content. + Generate new URL to digital content. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10628,7 +10628,7 @@ type Mutation { ): DigitalContentUrlCreate """ - Deletes draft orders. + Deletes draft orders. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -10638,7 +10638,7 @@ type Mutation { ): DraftOrderBulkDelete """ - Completes creating an order. + Completes creating an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -10648,7 +10648,7 @@ type Mutation { ): DraftOrderComplete """ - Creates a new draft order. + Creates a new draft order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -10658,13 +10658,13 @@ type Mutation { ): DraftOrderCreate """ - Deletes a draft order. + Deletes a draft order. Requires one of the following permissions: MANAGE_ORDERS. """ draftOrderDelete( """ - External ID of a product to delete. + External ID of a product to delete. Added in Saleor 3.10. """ @@ -10675,7 +10675,7 @@ type Mutation { ): DraftOrderDelete """ - Deletes order lines. + Deletes order lines. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -10685,13 +10685,13 @@ type Mutation { ): DraftOrderLinesBulkDelete @deprecated(reason: "This field will be removed in Saleor 4.0.") """ - Updates a draft order. + Updates a draft order. Requires one of the following permissions: MANAGE_ORDERS. """ draftOrderUpdate( """ - External ID of a draft order to update. + External ID of a draft order to update. Added in Saleor 3.10. """ @@ -10705,7 +10705,7 @@ type Mutation { ): DraftOrderUpdate """ - Retries event delivery. + Retries event delivery. Requires one of the following permissions: MANAGE_APPS. """ @@ -10719,7 +10719,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_GIFT_CARD. """ @@ -10729,7 +10729,7 @@ type Mutation { ): ExportGiftCards """ - Export products to csv file. + Export products to csv file. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -10802,7 +10802,7 @@ type Mutation { ): ExternalVerify """ - 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 + 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. """ @@ -10812,7 +10812,7 @@ type Mutation { ): FileUpload """ - Activate a gift card. + Activate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -10826,7 +10826,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_GIFT_CARD. """ @@ -10843,7 +10843,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_GIFT_CARD. """ @@ -10857,7 +10857,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_GIFT_CARD. """ @@ -10871,7 +10871,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_GIFT_CARD. """ @@ -10885,7 +10885,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_GIFT_CARD. """ @@ -10895,7 +10895,7 @@ type Mutation { ): GiftCardBulkDelete """ - Creates a new gift card. + Creates a new gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -10905,7 +10905,7 @@ type Mutation { ): GiftCardCreate """ - Deactivate a gift card. + Deactivate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -10919,7 +10919,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_GIFT_CARD. """ @@ -10933,7 +10933,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_GIFT_CARD. """ @@ -10943,7 +10943,7 @@ type Mutation { ): GiftCardResend """ - Update gift card settings. + Update gift card settings. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -10953,7 +10953,7 @@ type Mutation { ): GiftCardSettingsUpdate """ - Update a gift card. + Update a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ @@ -10966,7 +10966,7 @@ type Mutation { ): GiftCardUpdate """ - Creates a ready to send invoice. + Creates a ready to send invoice. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -10979,7 +10979,7 @@ type Mutation { ): InvoiceCreate """ - Deletes an invoice. + Deletes an invoice. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -10989,7 +10989,7 @@ type Mutation { ): InvoiceDelete """ - Request an invoice for the order using plugin. + Request an invoice for the order using plugin. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11002,7 +11002,7 @@ type Mutation { ): InvoiceRequest """ - Requests deletion of an invoice. + Requests deletion of an invoice. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11012,7 +11012,7 @@ type Mutation { ): InvoiceRequestDelete """ - Send an invoice notification to the customer. + Send an invoice notification to the customer. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11022,7 +11022,7 @@ type Mutation { ): InvoiceSendNotification """ - Updates an invoice. + Updates an invoice. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11035,7 +11035,7 @@ type Mutation { ): InvoiceUpdate """ - Deletes menus. + Deletes menus. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11045,7 +11045,7 @@ type Mutation { ): MenuBulkDelete """ - Creates a new Menu. + Creates a new Menu. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11055,7 +11055,7 @@ type Mutation { ): MenuCreate """ - Deletes a menu. + Deletes a menu. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11065,7 +11065,7 @@ type Mutation { ): MenuDelete """ - Deletes menu items. + Deletes menu items. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11075,7 +11075,7 @@ type Mutation { ): MenuItemBulkDelete """ - Creates a new menu item. + Creates a new menu item. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11087,7 +11087,7 @@ type Mutation { ): MenuItemCreate """ - Deletes a menu item. + Deletes a menu item. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11097,7 +11097,7 @@ type Mutation { ): MenuItemDelete """ - Moves items of menus. + Moves items of menus. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11110,7 +11110,7 @@ type Mutation { ): MenuItemMove """ - Creates/updates translations for a menu item. + Creates/updates translations for a menu item. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -11124,7 +11124,7 @@ type Mutation { ): MenuItemTranslate """ - Updates a menu item. + Updates a menu item. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11139,7 +11139,7 @@ type Mutation { ): MenuItemUpdate """ - Updates a menu. + Updates a menu. Requires one of the following permissions: MANAGE_MENUS. """ @@ -11152,7 +11152,7 @@ type Mutation { ): MenuUpdate """ - Adds note to the order. + Adds note to the order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11165,7 +11165,7 @@ type Mutation { ): OrderAddNote """ - Cancels orders. + Cancels orders. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11175,7 +11175,7 @@ type Mutation { ): OrderBulkCancel """ - Cancel an order. + Cancel an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11185,7 +11185,7 @@ type Mutation { ): OrderCancel """ - Capture an order. + Capture an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11198,7 +11198,7 @@ type Mutation { ): OrderCapture """ - Confirms an unconfirmed order by changing status to unfulfilled. + Confirms an unconfirmed order by changing status to unfulfilled. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11239,7 +11239,7 @@ type Mutation { ): OrderCreateFromCheckout """ - Adds discount to the order. + Adds discount to the order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11252,7 +11252,7 @@ type Mutation { ): OrderDiscountAdd """ - Remove discount from the order. + Remove discount from the order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11262,7 +11262,7 @@ type Mutation { ): OrderDiscountDelete """ - Update discount for the order. + Update discount for the order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11275,7 +11275,7 @@ type Mutation { ): OrderDiscountUpdate """ - Creates new fulfillments for an order. + Creates new fulfillments for an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11290,7 +11290,7 @@ type Mutation { """ Approve existing fulfillment. - Added in Saleor 3.1. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11306,7 +11306,7 @@ type Mutation { ): FulfillmentApprove """ - Cancels existing fulfillment and optionally restocks items. + Cancels existing fulfillment and optionally restocks items. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11319,7 +11319,7 @@ type Mutation { ): FulfillmentCancel """ - Refund products. + Refund products. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11332,7 +11332,7 @@ type Mutation { ): FulfillmentRefundProducts """ - Return products. + Return products. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11345,7 +11345,7 @@ type Mutation { ): FulfillmentReturnProducts """ - Updates a fulfillment for an order. + Updates a fulfillment for an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11358,7 +11358,7 @@ type Mutation { ): FulfillmentUpdateTracking """ - Deletes an order line from an order. + Deletes an order line from an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11368,7 +11368,7 @@ type Mutation { ): OrderLineDelete """ - Remove discount applied to the order line. + Remove discount applied to the order line. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11378,7 +11378,7 @@ type Mutation { ): OrderLineDiscountRemove """ - Update discount for the order line. + Update discount for the order line. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11391,7 +11391,7 @@ type Mutation { ): OrderLineDiscountUpdate """ - Updates an order line of an order. + Updates an order line of an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11404,7 +11404,7 @@ type Mutation { ): OrderLineUpdate """ - Create order lines for an order. + Create order lines for an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11417,7 +11417,7 @@ type Mutation { ): OrderLinesCreate """ - Mark order as manually paid. + Mark order as manually paid. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11430,7 +11430,7 @@ type Mutation { ): OrderMarkAsPaid """ - Refund an order. + Refund an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11443,7 +11443,7 @@ type Mutation { ): OrderRefund """ - Update shop order settings. + Update shop order settings. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11453,13 +11453,13 @@ type Mutation { ): OrderSettingsUpdate """ - Updates an order. + Updates an order. Requires one of the following permissions: MANAGE_ORDERS. """ orderUpdate( """ - External ID of an order to update. + External ID of an order to update. Added in Saleor 3.10. """ @@ -11473,7 +11473,7 @@ type Mutation { ): 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. + 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. """ @@ -11486,7 +11486,7 @@ type Mutation { ): OrderUpdateShipping """ - Void an order. + Void an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11496,7 +11496,7 @@ type Mutation { ): OrderVoid """ - Assign attributes to a given page type. + Assign attributes to a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -11509,7 +11509,7 @@ type Mutation { ): PageAttributeAssign """ - Unassign attributes from a given page type. + Unassign attributes from a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -11522,7 +11522,7 @@ type Mutation { ): PageAttributeUnassign """ - Deletes pages. + Deletes pages. Requires one of the following permissions: MANAGE_PAGES. """ @@ -11532,7 +11532,7 @@ type Mutation { ): PageBulkDelete """ - Publish pages. + Publish pages. Requires one of the following permissions: MANAGE_PAGES. """ @@ -11545,7 +11545,7 @@ type Mutation { ): PageBulkPublish """ - Creates a new page. + Creates a new page. Requires one of the following permissions: MANAGE_PAGES. """ @@ -11555,7 +11555,7 @@ type Mutation { ): PageCreate """ - Deletes a page. + Deletes a page. Requires one of the following permissions: MANAGE_PAGES. """ @@ -11565,7 +11565,7 @@ type Mutation { ): PageDelete """ - Reorder page attribute values. + Reorder page attribute values. Requires one of the following permissions: MANAGE_PAGES. """ @@ -11581,7 +11581,7 @@ type Mutation { ): PageReorderAttributeValues """ - Creates/updates translations for a page. + Creates/updates translations for a page. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -11595,7 +11595,7 @@ type Mutation { ): PageTranslate """ - Delete page types. + Delete page types. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -11605,7 +11605,7 @@ type Mutation { ): PageTypeBulkDelete """ - Create a new page type. + Create a new page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -11615,7 +11615,7 @@ type Mutation { ): PageTypeCreate """ - Delete a page type. + Delete a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -11625,7 +11625,7 @@ type Mutation { ): PageTypeDelete """ - Reorder the attributes of a page type. + Reorder the attributes of a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -11638,7 +11638,7 @@ type Mutation { ): PageTypeReorderAttributes """ - Update page type. + Update page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -11651,7 +11651,7 @@ type Mutation { ): PageTypeUpdate """ - Updates an existing page. + Updates an existing page. Requires one of the following permissions: MANAGE_PAGES. """ @@ -11664,7 +11664,7 @@ type Mutation { ): PageUpdate """ - Change the password of the logged in user. + Change the password of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -11677,7 +11677,7 @@ type Mutation { ): PasswordChange """ - Captures the authorized payment amount. + Captures the authorized payment amount. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11708,7 +11708,7 @@ type Mutation { ): PaymentInitialize """ - Refunds the captured payment amount. + Refunds the captured payment amount. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11721,7 +11721,7 @@ type Mutation { ): PaymentRefund """ - Voids the authorized payment. + Voids the authorized payment. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -11731,7 +11731,7 @@ type Mutation { ): PaymentVoid """ - Create new permission group. Apps are not allowed to perform this mutation. + Create new permission group. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -11741,7 +11741,7 @@ type Mutation { ): PermissionGroupCreate """ - Delete permission group. Apps are not allowed to perform this mutation. + Delete permission group. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -11751,7 +11751,7 @@ type Mutation { ): PermissionGroupDelete """ - Update permission group. Apps are not allowed to perform this mutation. + Update permission group. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -11764,7 +11764,7 @@ type Mutation { ): PermissionGroupUpdate """ - Update plugin configuration. + Update plugin configuration. Requires one of the following permissions: MANAGE_PLUGINS. """ @@ -11780,7 +11780,7 @@ type Mutation { ): PluginUpdate """ - Assign attributes to a given product type. + Assign attributes to a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -11795,7 +11795,7 @@ type Mutation { """ Update attributes assigned to product variant for given product type. - Added in Saleor 3.1. + Added in Saleor 3.1. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -11808,7 +11808,7 @@ type Mutation { ): ProductAttributeAssignmentUpdate """ - Un-assign attributes from a given product type. + Un-assign attributes from a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -11821,7 +11821,7 @@ type Mutation { ): ProductAttributeUnassign """ - Deletes products. + Deletes products. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -11831,7 +11831,7 @@ type Mutation { ): ProductBulkDelete """ - Manage product's availability in channels. + Manage product's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -11844,7 +11844,7 @@ type Mutation { ): ProductChannelListingUpdate """ - Creates a new product. + Creates a new product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -11854,13 +11854,13 @@ type Mutation { ): ProductCreate """ - Deletes a product. + Deletes a product. Requires one of the following permissions: MANAGE_PRODUCTS. """ productDelete( """ - External ID of a product to delete. + External ID of a product to delete. Added in Saleor 3.10. """ @@ -11871,7 +11871,7 @@ type Mutation { ): ProductDelete """ - Deletes product media. + Deletes product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -11881,7 +11881,7 @@ type Mutation { ): ProductMediaBulkDelete """ - 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 + 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. """ @@ -11891,7 +11891,7 @@ type Mutation { ): ProductMediaCreate """ - Deletes a product media. + Deletes a product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -11901,7 +11901,7 @@ type Mutation { ): ProductMediaDelete """ - Changes ordering of the product media. + Changes ordering of the product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -11914,7 +11914,7 @@ type Mutation { ): ProductMediaReorder """ - Updates a product media. + Updates a product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -11927,7 +11927,7 @@ type Mutation { ): ProductMediaUpdate """ - Reorder product attribute values. + Reorder product attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -11943,7 +11943,7 @@ type Mutation { ): ProductReorderAttributeValues """ - Creates/updates translations for a product. + Creates/updates translations for a product. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -11957,7 +11957,7 @@ type Mutation { ): ProductTranslate """ - Deletes product types. + Deletes product types. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -11967,7 +11967,7 @@ type Mutation { ): ProductTypeBulkDelete """ - Creates a new product type. + Creates a new product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -11977,7 +11977,7 @@ type Mutation { ): ProductTypeCreate """ - Deletes a product type. + Deletes a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -11987,7 +11987,7 @@ type Mutation { ): ProductTypeDelete """ - Reorder the attributes of a product type. + Reorder the attributes of a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -12003,7 +12003,7 @@ type Mutation { ): ProductTypeReorderAttributes """ - Updates an existing product type. + Updates an existing product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -12016,13 +12016,13 @@ type Mutation { ): ProductTypeUpdate """ - Updates an existing product. + Updates an existing product. Requires one of the following permissions: MANAGE_PRODUCTS. """ productUpdate( """ - External ID of a product to update. + External ID of a product to update. Added in Saleor 3.10. """ @@ -12036,7 +12036,7 @@ type Mutation { ): ProductUpdate """ - Creates product variants for a given product. + Creates product variants for a given product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12049,7 +12049,7 @@ type Mutation { ): ProductVariantBulkCreate """ - Deletes product variants. + Deletes product variants. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12066,7 +12066,7 @@ type Mutation { ): ProductVariantBulkDelete """ - Manage product variant prices in channels. + Manage product variant prices in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12088,7 +12088,7 @@ type Mutation { ): ProductVariantChannelListingUpdate """ - Creates a new variant for a product. + Creates a new variant for a product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12098,13 +12098,13 @@ type Mutation { ): ProductVariantCreate """ - Deletes a product variant. + Deletes a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantDelete( """ - External ID of a product variant to update. + External ID of a product variant to update. Added in Saleor 3.10. """ @@ -12126,7 +12126,7 @@ type Mutation { Added in Saleor 3.1. - 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: MANAGE_PRODUCTS. """ @@ -12136,7 +12136,7 @@ type Mutation { ): ProductVariantPreorderDeactivate """ - Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. + 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. """ @@ -12149,7 +12149,7 @@ type Mutation { ): ProductVariantReorder """ - Reorder product variant attribute values. + Reorder product variant attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12165,7 +12165,7 @@ type Mutation { ): ProductVariantReorderAttributeValues """ - Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. + Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12178,7 +12178,7 @@ type Mutation { ): ProductVariantSetDefault """ - Creates stocks for product variant. + Creates stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12191,7 +12191,7 @@ type Mutation { ): ProductVariantStocksCreate """ - Delete stocks from product variant. + Delete stocks from product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12207,7 +12207,7 @@ type Mutation { ): ProductVariantStocksDelete """ - Update stocks for product variant. + Update stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12223,7 +12223,7 @@ type Mutation { ): ProductVariantStocksUpdate """ - Creates/updates translations for a product variant. + Creates/updates translations for a product variant. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -12237,13 +12237,13 @@ type Mutation { ): ProductVariantTranslate """ - Updates an existing variant for product. + Updates an existing variant for product. Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantUpdate( """ - External ID of a product variant to update. + External ID of a product variant to update. Added in Saleor 3.10. """ @@ -12264,7 +12264,7 @@ type Mutation { ): ProductVariantUpdate """ - Request email change of the logged in user. + Request email change of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -12303,7 +12303,7 @@ type Mutation { ): RequestPasswordReset """ - Deletes sales. + Deletes sales. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -12313,7 +12313,7 @@ type Mutation { ): SaleBulkDelete """ - Adds products, categories, collections to a voucher. + Adds products, categories, collections to a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -12326,7 +12326,7 @@ type Mutation { ): SaleAddCatalogues """ - Removes products, categories, collections from a sale. + Removes products, categories, collections from a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -12339,7 +12339,7 @@ type Mutation { ): SaleRemoveCatalogues """ - Manage sale's availability in channels. + Manage sale's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -12352,7 +12352,7 @@ type Mutation { ): SaleChannelListingUpdate """ - Creates a new sale. + Creates a new sale. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -12362,7 +12362,7 @@ type Mutation { ): SaleCreate """ - Deletes a sale. + Deletes a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -12372,7 +12372,7 @@ type Mutation { ): SaleDelete """ - Creates/updates translations for a sale. + Creates/updates translations for a sale. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -12386,7 +12386,7 @@ type Mutation { ): SaleTranslate """ - Updates a sale. + Updates a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -12413,7 +12413,7 @@ type Mutation { ): SetPassword """ - Manage shipping method's availability in channels. + Manage shipping method's availability in channels. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12426,7 +12426,7 @@ type Mutation { ): ShippingMethodChannelListingUpdate """ - Deletes shipping prices. + Deletes shipping prices. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12436,7 +12436,7 @@ type Mutation { ): ShippingPriceBulkDelete """ - Creates a new shipping price. + Creates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12446,7 +12446,7 @@ type Mutation { ): ShippingPriceCreate """ - Deletes a shipping price. + Deletes a shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12456,7 +12456,7 @@ type Mutation { ): ShippingPriceDelete """ - Exclude products from shipping price. + Exclude products from shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12469,7 +12469,7 @@ type Mutation { ): ShippingPriceExcludeProducts """ - Remove product from excluded list for shipping price. + Remove product from excluded list for shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12482,7 +12482,7 @@ type Mutation { ): ShippingPriceRemoveProductFromExclude """ - Creates/updates translations for a shipping method. + Creates/updates translations for a shipping method. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -12496,7 +12496,7 @@ type Mutation { ): ShippingPriceTranslate """ - Updates a new shipping price. + Updates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12509,7 +12509,7 @@ type Mutation { ): ShippingPriceUpdate """ - Deletes shipping zones. + Deletes shipping zones. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12519,7 +12519,7 @@ type Mutation { ): ShippingZoneBulkDelete """ - Creates a new shipping zone. + Creates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12529,7 +12529,7 @@ type Mutation { ): ShippingZoneCreate """ - Deletes a shipping zone. + Deletes a shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12539,7 +12539,7 @@ type Mutation { ): ShippingZoneDelete """ - Updates a new shipping zone. + Updates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -12552,7 +12552,7 @@ type Mutation { ): ShippingZoneUpdate """ - Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. + 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. """ @@ -12562,7 +12562,7 @@ type Mutation { ): ShopAddressUpdate """ - Updates site domain of the shop. + Updates site domain of the shop. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -12572,14 +12572,14 @@ type Mutation { ): ShopDomainUpdate """ - Fetch tax rates. + 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. + Creates/updates translations for shop settings. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -12592,7 +12592,7 @@ type Mutation { ): ShopSettingsTranslate """ - Updates shop settings. + Updates shop settings. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -12602,7 +12602,7 @@ type Mutation { ): ShopSettingsUpdate """ - Deletes staff users. Apps are not allowed to perform this mutation. + Deletes staff users. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -12612,7 +12612,7 @@ type Mutation { ): StaffBulkDelete """ - Creates a new staff user. Apps are not allowed to perform this mutation. + Creates a new staff user. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -12622,7 +12622,7 @@ type Mutation { ): StaffCreate """ - Deletes a staff user. Apps are not allowed to perform this mutation. + Deletes a staff user. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -12632,7 +12632,7 @@ type Mutation { ): StaffDelete """ - Creates a new staff notification recipient. + Creates a new staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -12642,7 +12642,7 @@ type Mutation { ): StaffNotificationRecipientCreate """ - Delete staff notification recipient. + Delete staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -12652,7 +12652,7 @@ type Mutation { ): StaffNotificationRecipientDelete """ - Updates a staff notification recipient. + Updates a staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -12665,7 +12665,7 @@ type Mutation { ): StaffNotificationRecipientUpdate """ - Updates an existing staff user. Apps are not allowed to perform this mutation. + Updates an existing staff user. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -12682,7 +12682,7 @@ type Mutation { Added in Saleor 3.9. - 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: MANAGE_TAXES. """ @@ -12696,7 +12696,7 @@ type Mutation { Added in Saleor 3.9. - 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: MANAGE_TAXES. """ @@ -12710,7 +12710,7 @@ type Mutation { Added in Saleor 3.9. - 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: MANAGE_TAXES. """ @@ -12727,7 +12727,7 @@ type Mutation { Added in Saleor 3.9. - 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: MANAGE_TAXES. """ @@ -12744,7 +12744,7 @@ type Mutation { Added in Saleor 3.9. - 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: MANAGE_TAXES. """ @@ -12758,7 +12758,7 @@ type Mutation { Added in Saleor 3.9. - 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: MANAGE_TAXES. """ @@ -12777,7 +12777,7 @@ type Mutation { Added in Saleor 3.8. - 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: MANAGE_TAXES. """ @@ -12827,7 +12827,7 @@ type Mutation { ): VerifyToken """ - Deactivate all JWT tokens of the currently authenticated user. + Deactivate all JWT tokens of the currently authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -12856,7 +12856,7 @@ type Mutation { 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, MANAGE_ORDERS. """ @@ -12892,7 +12892,7 @@ type Mutation { ): TransactionUpdate """ - Remove shipping zone from given warehouse. + Remove shipping zone from given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12927,7 +12927,7 @@ type Mutation { ): UpdatePrivateMetadata """ - Updates given warehouse. + Updates given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12940,14 +12940,14 @@ type Mutation { ): WarehouseUpdate """ - Deletes a user avatar. Only for staff members. + Deletes a user avatar. Only for staff members. Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ userAvatarDelete: UserAvatarDelete """ - 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 + 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. """ @@ -12957,7 +12957,7 @@ type Mutation { ): UserAvatarUpdate """ - Activate or deactivate users. + Activate or deactivate users. Requires one of the following permissions: MANAGE_USERS. """ @@ -12970,7 +12970,7 @@ type Mutation { ): UserBulkSetActive """ - Assign an media to a product variant. + Assign an media to a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12983,7 +12983,7 @@ type Mutation { ): VariantMediaAssign """ - Unassign an media from a product variant. + Unassign an media from a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -12996,7 +12996,7 @@ type Mutation { ): VariantMediaUnassign """ - Deletes vouchers. + Deletes vouchers. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -13006,7 +13006,7 @@ type Mutation { ): VoucherBulkDelete """ - Adds products, categories, collections to a voucher. + Adds products, categories, collections to a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -13019,7 +13019,7 @@ type Mutation { ): VoucherAddCatalogues """ - Removes products, categories, collections from a voucher. + Removes products, categories, collections from a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -13032,7 +13032,7 @@ type Mutation { ): VoucherRemoveCatalogues """ - Manage voucher's availability in channels. + Manage voucher's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -13045,7 +13045,7 @@ type Mutation { ): VoucherChannelListingUpdate """ - Creates a new voucher. + Creates a new voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -13055,7 +13055,7 @@ type Mutation { ): VoucherCreate """ - Deletes a voucher. + Deletes a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -13065,7 +13065,7 @@ type Mutation { ): VoucherDelete """ - Creates/updates translations for a voucher. + Creates/updates translations for a voucher. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -13079,7 +13079,7 @@ type Mutation { ): VoucherTranslate """ - Updates a voucher. + Updates a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -13092,7 +13092,7 @@ type Mutation { ): VoucherUpdate """ - Creates a new webhook subscription. + Creates a new webhook subscription. Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. """ @@ -13102,7 +13102,7 @@ type Mutation { ): 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. + 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. """ @@ -13112,7 +13112,7 @@ type Mutation { ): WebhookDelete """ - Updates a webhook subscription. + Updates a webhook subscription. Requires one of the following permissions: MANAGE_APPS. """ @@ -13280,7 +13280,7 @@ type Order implements Node & ObjectWithMetadata { events: [OrderEvent!]! """ - External ID of this order. + External ID of this order. Added in Saleor 3.10. """ @@ -13506,7 +13506,7 @@ enum OrderAction { } """ -Adds note to the order. +Adds note to the order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -13548,7 +13548,7 @@ enum OrderAuthorizeStatusEnum { } """ -Cancels orders. +Cancels orders. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -13560,7 +13560,7 @@ type OrderBulkCancel { } """ -Cancel an order. +Cancel an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -13597,7 +13597,7 @@ type OrderCancelled implements Event { } """ -Capture an order. +Capture an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -13630,7 +13630,7 @@ enum OrderChargeStatusEnum { } """ -Confirms an unconfirmed order by changing status to unfulfilled. +Confirms an unconfirmed order by changing status to unfulfilled. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -13789,7 +13789,7 @@ type OrderDiscount implements Node { } """ -Adds discount to the order. +Adds discount to the order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -13813,7 +13813,7 @@ input OrderDiscountCommonInput { } """ -Remove discount from the order. +Remove discount from the order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -13832,7 +13832,7 @@ enum OrderDiscountType { } """ -Update discount for the order. +Update discount for the order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14162,7 +14162,7 @@ type OrderFilterShippingMethods implements Event { } """ -Creates new fulfillments for an order. +Creates new fulfillments for an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14419,7 +14419,7 @@ type OrderLine implements Node & ObjectWithMetadata { input OrderLineCreateInput { """ - Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. + Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. Added in Saleor 3.6. @@ -14435,7 +14435,7 @@ input OrderLineCreateInput { } """ -Deletes an order line from an order. +Deletes an order line from an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14451,7 +14451,7 @@ type OrderLineDelete { } """ -Remove discount applied to the order line. +Remove discount applied to the order line. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14467,7 +14467,7 @@ type OrderLineDiscountRemove { } """ -Update discount for the order line. +Update discount for the order line. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14488,7 +14488,7 @@ input OrderLineInput { } """ -Updates an order line of an order. +Updates an order line of an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14502,7 +14502,7 @@ type OrderLineUpdate { } """ -Create order lines for an order. +Create order lines for an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14518,7 +14518,7 @@ type OrderLinesCreate { } """ -Mark order as manually paid. +Mark order as manually paid. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14562,7 +14562,7 @@ enum OrderOriginEnum { } """ -Refund an order. +Refund an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14672,7 +14672,7 @@ enum OrderSettingsErrorCode { } """ -Update shop order settings. +Update shop order settings. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14698,14 +14698,14 @@ input OrderSettingsUpdateInput { enum OrderSortField { """ - Sort orders by creation date. + Sort orders by creation date. DEPRECATED: this field will be removed in Saleor 4.0. """ CREATED_AT """ - Sort orders by creation date. + Sort orders by creation date. DEPRECATED: this field will be removed in Saleor 4.0. """ @@ -14763,7 +14763,7 @@ enum OrderStatusFilter { } """ -Updates an order. +Updates an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14792,7 +14792,7 @@ input OrderUpdateInput { } """ -Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. +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. """ @@ -14836,7 +14836,7 @@ type OrderUpdated implements Event { } """ -Void an order. +Void an order. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -14939,7 +14939,7 @@ type Page implements Node & ObjectWithMetadata { } """ -Assign attributes to a given page type. +Assign attributes to a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -14952,7 +14952,7 @@ type PageAttributeAssign { } """ -Unassign attributes from a given page type. +Unassign attributes from a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -14965,7 +14965,7 @@ type PageAttributeUnassign { } """ -Deletes pages. +Deletes pages. Requires one of the following permissions: MANAGE_PAGES. """ @@ -14977,7 +14977,7 @@ type PageBulkDelete { } """ -Publish pages. +Publish pages. Requires one of the following permissions: MANAGE_PAGES. """ @@ -15007,7 +15007,7 @@ type PageCountableEdge { } """ -Creates a new page. +Creates a new page. Requires one of the following permissions: MANAGE_PAGES. """ @@ -15035,7 +15035,7 @@ input PageCreateInput { pageType: ID! """ - Publication date. ISO 8601 standard. + Publication date. ISO 8601 standard. DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. """ @@ -15083,7 +15083,7 @@ type PageCreated implements Event { } """ -Deletes a page. +Deletes a page. Requires one of the following permissions: MANAGE_PAGES. """ @@ -15187,7 +15187,7 @@ input PageInput { isPublished: Boolean """ - Publication date. ISO 8601 standard. + Publication date. ISO 8601 standard. DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. """ @@ -15211,7 +15211,7 @@ input PageInput { } """ -Reorder page attribute values. +Reorder page attribute values. Requires one of the following permissions: MANAGE_PAGES. """ @@ -15305,7 +15305,7 @@ type PageTranslatableContent implements Node { } """ -Creates/updates translations for a page. +Creates/updates translations for a page. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -15435,7 +15435,7 @@ type PageType implements Node & ObjectWithMetadata { } """ -Delete page types. +Delete page types. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -15465,7 +15465,7 @@ type PageTypeCountableEdge { } """ -Create a new page type. +Create a new page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -15511,7 +15511,7 @@ type PageTypeCreated implements Event { } """ -Delete a page type. +Delete a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -15551,7 +15551,7 @@ input PageTypeFilterInput { } """ -Reorder the attributes of a page type. +Reorder the attributes of a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -15580,7 +15580,7 @@ input PageTypeSortingInput { } """ -Update page type. +Update page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ @@ -15629,7 +15629,7 @@ type PageTypeUpdated implements Event { } """ -Updates an existing page. +Updates an existing page. Requires one of the following permissions: MANAGE_PAGES. """ @@ -15664,7 +15664,7 @@ type PageUpdated implements Event { } """ -Change the password of the logged in user. +Change the password of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -15806,7 +15806,7 @@ type PaymentAuthorize implements Event { } """ -Captures the authorized payment amount. +Captures the authorized payment amount. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -15959,7 +15959,7 @@ input PaymentFilterInput { checkouts: [ID!] """ - Filter by ids. + Filter by ids. Added in Saleor 3.8. """ @@ -16087,7 +16087,7 @@ type PaymentProcessEvent implements Event { } """ -Refunds the captured payment amount. +Refunds the captured payment amount. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -16147,7 +16147,7 @@ type PaymentSource { } """ -Voids the authorized payment. +Voids the authorized payment. Requires one of the following permissions: MANAGE_ORDERS. """ @@ -16220,7 +16220,7 @@ enum PermissionEnum { } """ -Create new permission group. Apps are not allowed to perform this mutation. +Create new permission group. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -16266,7 +16266,7 @@ type PermissionGroupCreated implements Event { } """ -Delete permission group. Apps are not allowed to perform this mutation. +Delete permission group. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -16350,7 +16350,7 @@ input PermissionGroupSortingInput { } """ -Update permission group. Apps are not allowed to perform this mutation. +Update permission group. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -16502,7 +16502,7 @@ input PluginStatusInChannelsInput { } """ -Update plugin configuration. +Update plugin configuration. Requires one of the following permissions: MANAGE_PLUGINS. """ @@ -16643,7 +16643,7 @@ type Product implements Node & ObjectWithMetadata { descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") """ - External ID of this product. + External ID of this product. Added in Saleor 3.10. """ @@ -16673,7 +16673,7 @@ type Product implements Node & ObjectWithMetadata { """List of media for the product.""" media( """ - Sort media. + Sort media. Added in Saleor 3.9. """ @@ -16781,7 +16781,7 @@ type Product implements Node & ObjectWithMetadata { updatedAt: DateTime! """ - Get a single variant by SKU or ID. + Get a single variant by SKU or ID. Added in Saleor 3.9. """ @@ -16801,7 +16801,7 @@ type Product implements Node & ObjectWithMetadata { } """ -Assign attributes to a given product type. +Assign attributes to a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -16831,7 +16831,7 @@ input ProductAttributeAssignInput { """ Update attributes assigned to product variant for given product type. -Added in Saleor 3.1. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -16861,7 +16861,7 @@ enum ProductAttributeType { } """ -Un-assign attributes from a given product type. +Un-assign attributes from a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -16874,7 +16874,7 @@ type ProductAttributeUnassign { } """ -Deletes products. +Deletes products. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -16951,7 +16951,7 @@ input ProductChannelListingAddInput { availableForPurchaseAt: DateTime """ - 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. + 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. """ @@ -16967,7 +16967,7 @@ input ProductChannelListingAddInput { isPublished: Boolean """ - Publication date. ISO 8601 standard. + Publication date. ISO 8601 standard. DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. """ @@ -17015,7 +17015,7 @@ type ProductChannelListingError { } """ -Manage product's availability in channels. +Manage product's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -17054,7 +17054,7 @@ type ProductCountableEdge { } """ -Creates a new product. +Creates a new product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -17072,7 +17072,7 @@ input ProductCreateInput { category: ID """ - Determine if taxes are being charged for the product. + 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. """ @@ -17130,7 +17130,7 @@ input ProductCreateInput { taxClass: ID """ - Tax rate for enabled tax gateway. + 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. """ @@ -17171,7 +17171,7 @@ type ProductCreated implements Event { } """ -Deletes a product. +Deletes a product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -17272,7 +17272,7 @@ input ProductFilterInput { attributes: [AttributeInput!] """ - Filter by the date of availability for purchase. + Filter by the date of availability for purchase. Added in Saleor 3.8. """ @@ -17280,7 +17280,7 @@ input ProductFilterInput { categories: [ID!] """ - Specifies the channel by which the data should be filtered. + 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. """ @@ -17294,7 +17294,7 @@ input ProductFilterInput { ids: [ID!] """ - Filter by availability for purchase. + Filter by availability for purchase. Added in Saleor 3.8. """ @@ -17302,7 +17302,7 @@ input ProductFilterInput { isPublished: Boolean """ - Filter by visibility in product listings. + Filter by visibility in product listings. Added in Saleor 3.8. """ @@ -17315,7 +17315,7 @@ input ProductFilterInput { productTypes: [ID!] """ - Filter by the publication date. + Filter by the publication date. Added in Saleor 3.8. """ @@ -17368,7 +17368,7 @@ input ProductInput { category: ID """ - Determine if taxes are being charged for the product. + 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. """ @@ -17423,7 +17423,7 @@ input ProductInput { taxClass: ID """ - Tax rate for enabled tax gateway. + 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. """ @@ -17458,7 +17458,7 @@ type ProductMedia implements Node { } """ -Deletes product media. +Deletes product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -17470,7 +17470,7 @@ type ProductMediaBulkDelete { } """ -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 +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. """ @@ -17496,7 +17496,7 @@ input ProductMediaCreateInput { } """ -Deletes a product media. +Deletes a product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -17508,7 +17508,7 @@ type ProductMediaDelete { } """ -Changes ordering of the product media. +Changes ordering of the product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -17526,7 +17526,7 @@ enum ProductMediaType { } """ -Updates a product media. +Updates a product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -17700,7 +17700,7 @@ type ProductPricingInfo { } """ -Reorder product attribute values. +Reorder product attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -17750,7 +17750,7 @@ type ProductTranslatableContent implements Node { } """ -Creates/updates translations for a product. +Creates/updates translations for a product. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -17912,7 +17912,7 @@ type ProductType implements Node & ObjectWithMetadata { } """ -Deletes product types. +Deletes product types. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -17947,7 +17947,7 @@ type ProductTypeCountableEdge { } """ -Creates a new product type. +Creates a new product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -17958,7 +17958,7 @@ type ProductTypeCreate { } """ -Deletes a product type. +Deletes a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -18013,7 +18013,7 @@ input ProductTypeInput { taxClass: ID """ - Tax rate for enabled tax gateway. + 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. """ @@ -18035,7 +18035,7 @@ enum ProductTypeKindEnum { } """ -Reorder the attributes of a product type. +Reorder the attributes of a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -18067,7 +18067,7 @@ input ProductTypeSortingInput { } """ -Updates an existing product type. +Updates an existing product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ @@ -18078,7 +18078,7 @@ type ProductTypeUpdate { } """ -Updates an existing product. +Updates an existing product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18147,7 +18147,7 @@ type ProductVariant implements Node & ObjectWithMetadata { digitalContent: DigitalContent """ - External ID of this product. + External ID of this product. Added in Saleor 3.10. """ @@ -18240,7 +18240,7 @@ type ProductVariant implements Node & ObjectWithMetadata { 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. + 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. """ @@ -18275,7 +18275,7 @@ type ProductVariant implements Node & ObjectWithMetadata { address: AddressInput """ - Two-letter ISO 3166-1 country code. + Two-letter ISO 3166-1 country code. DEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead. """ @@ -18323,7 +18323,7 @@ type ProductVariantBackInStock implements Event { } """ -Creates product variants for a given product. +Creates product variants for a given product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18403,7 +18403,7 @@ input ProductVariantBulkCreateInput { } """ -Deletes product variants. +Deletes product variants. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18461,7 +18461,7 @@ input ProductVariantChannelListingAddInput { } """ -Manage product variant prices in channels. +Manage product variant prices in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18492,7 +18492,7 @@ type ProductVariantCountableEdge { } """ -Creates a new variant for a product. +Creates a new variant for a product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18594,7 +18594,7 @@ type ProductVariantCreated implements Event { } """ -Deletes a product variant. +Deletes a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18759,7 +18759,7 @@ Deactivates product variant preorder. It changes all preorder allocation into re Added in Saleor 3.1. -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: MANAGE_PRODUCTS. """ @@ -18771,7 +18771,7 @@ type ProductVariantPreorderDeactivate { } """ -Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. +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. """ @@ -18782,7 +18782,7 @@ type ProductVariantReorder { } """ -Reorder product variant attribute values. +Reorder product variant attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18795,7 +18795,7 @@ type ProductVariantReorderAttributeValues { } """ -Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. +Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18819,7 +18819,7 @@ input ProductVariantSortingInput { } """ -Creates stocks for product variant. +Creates stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18832,7 +18832,7 @@ type ProductVariantStocksCreate { } """ -Delete stocks from product variant. +Delete stocks from product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18845,7 +18845,7 @@ type ProductVariantStocksDelete { } """ -Update stocks for product variant. +Update stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18874,7 +18874,7 @@ type ProductVariantTranslatableContent implements Node { } """ -Creates/updates translations for a product variant. +Creates/updates translations for a product variant. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -18893,7 +18893,7 @@ type ProductVariantTranslation implements Node { } """ -Updates an existing variant for product. +Updates an existing variant for product. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -18938,7 +18938,7 @@ input PublishableChannelListingInput { isPublished: Boolean """ - Publication date. ISO 8601 standard. + Publication date. ISO 8601 standard. DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. """ @@ -19062,7 +19062,7 @@ type Query { """Look up an attribute by ID, slug or external reference.""" attribute( """ - External ID of the attribute. + External ID of the attribute. Added in Saleor 3.10. """ @@ -19553,7 +19553,7 @@ type Query { channel: String """ - Filtering options for menus. + Filtering options for menus. `slug`: This field will be removed in Saleor 4.0. Use `slugs` instead. """ @@ -19572,7 +19572,7 @@ type Query { """Look up an order by ID or external reference.""" order( """ - External ID of an order. + External ID of an order. Added in Saleor 3.10. """ @@ -19803,7 +19803,7 @@ type Query { channel: String """ - External ID of the product. + External ID of the product. Added in Saleor 3.10. """ @@ -19851,7 +19851,7 @@ type Query { channel: String """ - External ID of the product. + External ID of the product. Added in Saleor 3.10. """ @@ -19982,7 +19982,7 @@ type Query { last: Int """ - Search sales by name, value or type. + Search sales by name, value or type. DEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead. """ @@ -20248,7 +20248,7 @@ type Query { email: String """ - External ID of the user. + External ID of the user. Added in Saleor 3.10. """ @@ -20296,7 +20296,7 @@ type Query { last: Int """ - Search vouchers by name or code. + Search vouchers by name or code. DEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead. """ @@ -20313,7 +20313,7 @@ type Query { """ warehouse( """ - External ID of a warehouse. + External ID of a warehouse. Added in Saleor 3.10. """ @@ -20407,7 +20407,7 @@ enum ReportingPeriod { } """ -Request email change of the logged in user. +Request email change of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. """ @@ -20577,7 +20577,7 @@ type Sale implements Node & ObjectWithMetadata { } """ -Adds products, categories, collections to a voucher. +Adds products, categories, collections to a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -20590,7 +20590,7 @@ type SaleAddCatalogues { } """ -Deletes sales. +Deletes sales. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -20626,7 +20626,7 @@ input SaleChannelListingInput { } """ -Manage sale's availability in channels. +Manage sale's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -20657,7 +20657,7 @@ type SaleCountableEdge { } """ -Creates a new sale. +Creates a new sale. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -20695,7 +20695,7 @@ type SaleCreated implements Event { } """ -Deletes a sale. +Deletes a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -20769,7 +20769,7 @@ input SaleInput { } """ -Removes products, categories, collections from a sale. +Removes products, categories, collections from a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -20875,7 +20875,7 @@ type SaleTranslatableContent implements Node { } """ -Creates/updates translations for a sale. +Creates/updates translations for a sale. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -20899,7 +20899,7 @@ enum SaleType { } """ -Updates a sale. +Updates a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -21169,7 +21169,7 @@ input ShippingMethodChannelListingInput { } """ -Manage shipping method's availability in channels. +Manage shipping method's availability in channels. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21393,7 +21393,7 @@ input ShippingPostalCodeRulesCreateInputRange { } """ -Deletes shipping prices. +Deletes shipping prices. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21405,7 +21405,7 @@ type ShippingPriceBulkDelete { } """ -Creates a new shipping price. +Creates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21452,7 +21452,7 @@ type ShippingPriceCreated implements Event { } """ -Deletes a shipping price. +Deletes a shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21501,7 +21501,7 @@ type ShippingPriceDeleted implements Event { } """ -Exclude products from shipping price. +Exclude products from shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21559,7 +21559,7 @@ input ShippingPriceInput { } """ -Remove product from excluded list for shipping price. +Remove product from excluded list for shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21572,7 +21572,7 @@ type ShippingPriceRemoveProductFromExclude { } """ -Creates/updates translations for a shipping method. +Creates/updates translations for a shipping method. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -21593,7 +21593,7 @@ input ShippingPriceTranslationInput { } """ -Updates a new shipping price. +Updates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21714,7 +21714,7 @@ type ShippingZone implements Node & ObjectWithMetadata { } """ -Deletes shipping zones. +Deletes shipping zones. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21744,7 +21744,7 @@ type ShippingZoneCountableEdge { } """ -Creates a new shipping zone. +Creates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21804,7 +21804,7 @@ type ShippingZoneCreated implements Event { } """ -Deletes a shipping zone. +Deletes a shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21874,7 +21874,7 @@ type ShippingZoneMetadataUpdated implements Event { } """ -Updates a new shipping zone. +Updates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. """ @@ -21959,7 +21959,7 @@ type Shop { channel: String """ - A currency for which gateways will be returned. + A currency for which gateways will be returned. DEPRECATED: this field will be removed in Saleor 4.0. Use `channel` argument instead. """ @@ -21996,7 +21996,7 @@ type Shop { filter: CountryFilterInput """ - A language code to return the translation for. + A language code to return the translation for. DEPRECATED: this field will be removed in Saleor 4.0. """ @@ -22149,7 +22149,7 @@ type Shop { } """ -Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. +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. """ @@ -22162,7 +22162,7 @@ type ShopAddressUpdate { } """ -Updates site domain of the shop. +Updates site domain of the shop. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -22199,7 +22199,7 @@ enum ShopErrorCode { } """ -Fetch tax rates. +Fetch tax rates. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -22216,7 +22216,7 @@ input ShopSettingsInput { automaticFulfillmentDigitalProducts: Boolean """ - Charge taxes on shipping. + 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. """ @@ -22244,7 +22244,7 @@ input ShopSettingsInput { description: String """ - Display prices with tax in store. + 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. """ @@ -22268,7 +22268,7 @@ input ShopSettingsInput { headerText: String """ - Include taxes in prices. + 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. """ @@ -22302,7 +22302,7 @@ input ShopSettingsInput { } """ -Creates/updates translations for shop settings. +Creates/updates translations for shop settings. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -22320,7 +22320,7 @@ input ShopSettingsTranslationInput { } """ -Updates shop settings. +Updates shop settings. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -22350,7 +22350,7 @@ input SiteDomainInput { } """ -Deletes staff users. Apps are not allowed to perform this mutation. +Deletes staff users. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -22362,7 +22362,7 @@ type StaffBulkDelete { } """ -Creates a new staff user. Apps are not allowed to perform this mutation. +Creates a new staff user. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -22422,7 +22422,7 @@ type StaffCreated implements Event { } """ -Deletes a staff user. Apps are not allowed to perform this mutation. +Deletes a staff user. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -22505,7 +22505,7 @@ type StaffNotificationRecipient implements Node { } """ -Creates a new staff notification recipient. +Creates a new staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -22516,7 +22516,7 @@ type StaffNotificationRecipientCreate { } """ -Delete staff notification recipient. +Delete staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -22538,7 +22538,7 @@ input StaffNotificationRecipientInput { } """ -Updates a staff notification recipient. +Updates a staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. """ @@ -22549,7 +22549,7 @@ type StaffNotificationRecipientUpdate { } """ -Updates an existing staff user. Apps are not allowed to perform this mutation. +Updates an existing staff user. Apps are not allowed to perform this mutation. Requires one of the following permissions: MANAGE_STAFF. """ @@ -22857,7 +22857,7 @@ 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. +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. """ @@ -22902,7 +22902,7 @@ Delete a tax class. After deleting the tax class any products, product types or Added in Saleor 3.9. -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: MANAGE_TAXES. """ @@ -22963,7 +22963,7 @@ 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. +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. """ @@ -23162,7 +23162,7 @@ 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. +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. """ @@ -23241,7 +23241,7 @@ 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. +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. """ @@ -23277,7 +23277,7 @@ 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. +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. """ @@ -23318,7 +23318,7 @@ Exempt checkout or order from charging the taxes. When tax exemption is enabled, Added in Saleor 3.8. -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: MANAGE_TAXES. """ @@ -23788,7 +23788,7 @@ 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. +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. """ @@ -24131,7 +24131,7 @@ type User implements Node & ObjectWithMetadata { events: [CustomerEvent!] """ - External ID of this user. + External ID of this user. Added in Saleor 3.10. """ @@ -24246,7 +24246,7 @@ type User implements Node & ObjectWithMetadata { } """ -Deletes a user avatar. Only for staff members. +Deletes a user avatar. Only for staff members. Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ @@ -24259,7 +24259,7 @@ type UserAvatarDelete { } """ -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 +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. """ @@ -24272,7 +24272,7 @@ type UserAvatarUpdate { } """ -Activate or deactivate users. +Activate or deactivate users. Requires one of the following permissions: MANAGE_USERS. """ @@ -24406,7 +24406,7 @@ enum VariantAttributeScope { } """ -Assign an media to a product variant. +Assign an media to a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -24418,7 +24418,7 @@ type VariantMediaAssign { } """ -Unassign an media from a product variant. +Unassign an media from a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -24651,7 +24651,7 @@ type Voucher implements Node & ObjectWithMetadata { } """ -Adds products, categories, collections to a voucher. +Adds products, categories, collections to a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -24664,7 +24664,7 @@ type VoucherAddCatalogues { } """ -Deletes vouchers. +Deletes vouchers. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -24704,7 +24704,7 @@ input VoucherChannelListingInput { } """ -Manage voucher's availability in channels. +Manage voucher's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -24735,7 +24735,7 @@ type VoucherCountableEdge { } """ -Creates a new voucher. +Creates a new voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -24773,7 +24773,7 @@ type VoucherCreated implements Event { } """ -Deletes a voucher. +Deletes a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -24908,7 +24908,7 @@ type VoucherMetadataUpdated implements Event { } """ -Removes products, categories, collections from a voucher. +Removes products, categories, collections from a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -24985,7 +24985,7 @@ type VoucherTranslatableContent implements Node { } """ -Creates/updates translations for a voucher. +Creates/updates translations for a voucher. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ @@ -25010,7 +25010,7 @@ enum VoucherTypeEnum { } """ -Updates a voucher. +Updates a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. """ @@ -25065,7 +25065,7 @@ type Warehouse implements Node & ObjectWithMetadata { email: String! """ - External ID of this warehouse. + External ID of this warehouse. Added in Saleor 3.10. """ @@ -25161,7 +25161,7 @@ type WarehouseCountableEdge { } """ -Creates new warehouse. +Creates new warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -25224,7 +25224,7 @@ type WarehouseCreated implements Event { } """ -Deletes selected warehouse. +Deletes selected warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -25318,7 +25318,7 @@ type WarehouseMetadataUpdated implements Event { } """ -Add shipping zone to given warehouse. +Add shipping zone to given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -25329,7 +25329,7 @@ type WarehouseShippingZoneAssign { } """ -Remove shipping zone from given warehouse. +Remove shipping zone from given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -25353,7 +25353,7 @@ input WarehouseSortingInput { } """ -Updates given warehouse. +Updates given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -25476,7 +25476,7 @@ type Webhook implements Node { } """ -Creates a new webhook subscription. +Creates a new webhook subscription. Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. """ @@ -25494,7 +25494,7 @@ input WebhookCreateInput { asyncEvents: [WebhookEventTypeAsyncEnum!] """ - The events that webhook wants to subscribe. + The events that webhook wants to subscribe. DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. """ @@ -25530,7 +25530,7 @@ input WebhookCreateInput { } """ -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. +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. """ @@ -26604,7 +26604,7 @@ enum WebhookSampleEventTypeEnum { } """ -Updates a webhook subscription. +Updates a webhook subscription. Requires one of the following permissions: MANAGE_APPS. """ @@ -26622,7 +26622,7 @@ input WebhookUpdateInput { asyncEvents: [WebhookEventTypeAsyncEnum!] """ - The events that webhook wants to subscribe. + The events that webhook wants to subscribe. DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. """ diff --git a/apps/klaviyo/graphql/schema.graphql b/apps/klaviyo/graphql/schema.graphql index bd0b177..ec5f771 100644 --- a/apps/klaviyo/graphql/schema.graphql +++ b/apps/klaviyo/graphql/schema.graphql @@ -9,37 +9,46 @@ type Query { Look up a webhook by ID. Requires one of the following permissions: MANAGE_APPS, OWNER. """ webhook( - """ID of the 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.") + 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.""" + """ + 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 of a warehouse. + """ id: ID """ - External ID of a warehouse. - + External ID of a warehouse. + Added in Saleor 3.10. """ externalReference: String @@ -47,151 +56,201 @@ type Query { """ 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of objects to retrieve. + """ kind: TranslatableKinds! - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of the object to retrieve. + """ id: ID! - """Kind of the object to retrieve.""" + """ + 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 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.""" + """ + Filtering options for tax configurations. + """ filter: TaxConfigurationFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 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.""" + """ + Sort tax classes. + """ sortBy: TaxClassSortingInput - """Filtering options for tax classes.""" + """ + Filtering options for tax classes. + """ filter: TaxClassFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + Country for which to return tax class rates. + """ countryCode: CountryCode! ): TaxCountryConfiguration @@ -200,149 +259,209 @@ type Query { """ Look up a stock by ID - + Requires one of the following permissions: MANAGE_PRODUCTS. """ stock( - """ID of an warehouse""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): StockCountableConnection - """Return information about the shop.""" + """ + 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 of the shipping zone. + """ id: ID! - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + Filtering options for shipping zones. + """ filter: ShippingZoneFilterInput - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): DigitalContentCountableConnection - """List of the shop's categories.""" + """ + List of the shop's categories. + """ categories( - """Filtering options for categories.""" + """ + Filtering options for categories. + """ filter: CategoryFilterInput - """Sort categories.""" + """ + Sort categories. + """ sortBy: CategorySortingInput - """Filter categories by the nesting level in the category tree.""" + """ + Filter categories by the nesting level in the category tree. + """ level: Int - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): CategoryCountableConnection - """Look up a category by ID or slug.""" + """ + Look up a category by ID or slug. + """ category( - """ID of the category.""" + """ + ID of the category. + """ id: ID - """Slug of the category""" + """ + Slug of the category + """ slug: String ): Category @@ -350,13 +469,19 @@ type Query { 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 of the collection. + """ id: ID - """Slug of the category""" + """ + Slug of the category + """ slug: String - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Collection @@ -364,25 +489,39 @@ type Query { 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.""" + """ + Filtering options for collections. + """ filter: CollectionFilterInput - """Sort collections.""" + """ + Sort collections. + """ sortBy: CollectionSortingInput - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): CollectionCountableConnection @@ -390,20 +529,26 @@ type Query { 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 of the product. + """ id: ID - """Slug of the product.""" + """ + Slug of the product. + """ slug: String """ - External ID of the product. - + External ID of the product. + Added in Saleor 3.10. """ externalReference: String - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Product @@ -411,52 +556,84 @@ type Query { 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.""" + """ + Filtering options for products. + """ filter: ProductFilterInput - """Sort products.""" + """ + Sort products. + """ sortBy: ProductOrder - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductCountableConnection - """Look up a product type by ID.""" + """ + Look up a product type by ID. + """ productType( - """ID of the product type.""" + """ + ID of the product type. + """ id: ID! ): ProductType - """List of the shop's product types.""" + """ + List of the shop's product types. + """ productTypes( - """Filtering options for product types.""" + """ + Filtering options for product types. + """ filter: ProductTypeFilterInput - """Sort product types.""" + """ + Sort product types. + """ sortBy: ProductTypeSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductTypeCountableConnection @@ -464,20 +641,26 @@ type Query { 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 of the product variant. + """ id: ID - """Sku of the product variant.""" + """ + Sku of the product variant. + """ sku: String """ - External ID of the product. - + External ID of the product. + Added in Saleor 3.10. """ externalReference: String - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ProductVariant @@ -485,186 +668,278 @@ type Query { 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.""" + """ + Filter product variants by given IDs. + """ ids: [ID!] - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String - """Filtering options for product variant.""" + """ + Filtering options for product variant. + """ filter: ProductVariantFilterInput - """Sort products variants.""" + """ + Sort products variants. + """ sortBy: ProductVariantSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + Span of time. + """ period: ReportingPeriod! - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of the payment. + """ id: ID! ): Payment """ List of payments. - + Requires one of the following permissions: MANAGE_ORDERS. """ payments( - """Filtering options for payments.""" + """ + Filtering options for payments. + """ filter: PaymentFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of a transaction. + """ id: ID! ): TransactionItem - """Look up a page by ID or slug.""" + """ + Look up a page by ID or slug. + """ page( - """ID of the page.""" + """ + ID of the page. + """ id: ID - """The slug of the page.""" + """ + The slug of the page. + """ slug: String ): Page - """List of the shop's pages.""" + """ + List of the shop's pages. + """ pages( - """Sort pages.""" + """ + Sort pages. + """ sortBy: PageSortingInput - """Filtering options for pages.""" + """ + Filtering options for pages. + """ filter: PageFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): PageCountableConnection - """Look up a page type by ID.""" + """ + Look up a page type by ID. + """ pageType( - """ID of the page type.""" + """ + ID of the page type. + """ id: ID! ): PageType - """List of the page types.""" + """ + List of the page types. + """ pageTypes( - """Sort page types.""" + """ + Sort page types. + """ sortBy: PageTypeSortingInput - """Filtering options for page types.""" + """ + Filtering options for page types. + """ filter: PageTypeFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): OrderEventCountableConnection - """Look up an order by ID or external reference.""" + """ + Look up an order by ID or external reference. + """ order( - """ID of an order.""" + """ + ID of an order. + """ id: ID """ - External ID of an order. - + External ID of an order. + Added in Saleor 3.10. """ externalReference: String @@ -672,417 +947,585 @@ type Query { """ List of orders. - + Requires one of the following permissions: MANAGE_ORDERS. """ orders( - """Sort orders.""" + """ + Sort orders. + """ sortBy: OrderSortingInput - """Filtering options for orders.""" + """ + Filtering options for orders. + """ filter: OrderFilterInput - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + Sort draft orders. + """ sortBy: OrderSortingInput - """Filtering options for draft orders.""" + """ + Filtering options for draft orders. + """ filter: OrderDraftFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + A period of time. + """ period: ReportingPeriod - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): TaxedMoney - """Look up an order by token.""" + """ + Look up an order by token. + """ orderByToken( - """The order's token.""" + """ + 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.""" + """ + Look up a navigation menu by ID or name. + """ menu( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String - """ID of the menu.""" + """ + ID of the menu. + """ id: ID - """The menu's name.""" + """ + The menu's name. + """ name: String - """The menu's slug.""" + """ + The menu's slug. + """ slug: String ): Menu - """List of the storefront's menus.""" + """ + List of the storefront's menus. + """ menus( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String - """Sort menus.""" + """ + Sort menus. + """ sortBy: MenuSortingInput """ - Filtering options for menus. - + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): MenuCountableConnection - """Look up a menu item by ID.""" + """ + Look up a menu item by ID. + """ menuItem( - """ID of the menu item.""" + """ + ID of the menu item. + """ id: ID! - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): MenuItem - """List of the storefronts's menu items.""" + """ + List of the storefronts's menu items. + """ menuItems( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String - """Sort menus items.""" + """ + Sort menus items. + """ sortBy: MenuItemSortingInput - """Filtering options for menu items.""" + """ + Filtering options for menu items. + """ filter: MenuItemFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + Filtering options for gift card tags. + """ filter: GiftCardTagFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of the plugin. + """ id: ID! ): Plugin """ List of plugins. - + Requires one of the following permissions: MANAGE_PLUGINS. """ plugins( - """Filtering options for plugins.""" + """ + Filtering options for plugins. + """ filter: PluginFilterInput - """Sort plugins.""" + """ + Sort plugins. + """ sortBy: PluginSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of the sale. + """ id: ID! - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + Filtering options for sales. + """ filter: SaleFilterInput - """Sort sales.""" + """ + Sort sales. + """ sortBy: SaleSortingInput """ - Search sales by name, value or type. - + 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.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of the voucher. + """ id: ID! - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + Filtering options for vouchers. + """ filter: VoucherFilterInput - """Sort voucher.""" + """ + Sort voucher. + """ sortBy: VoucherSortingInput """ - Search vouchers by name or code. - + 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.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 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.""" + """ + Filtering options for export files. + """ filter: ExportFileFilterInput - """Sort export files.""" + """ + Sort export files. + """ sortBy: ExportFileSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ExportFileCountableConnection - """List of all tax rates available from tax gateway.""" + """ + List of all tax rates available from tax gateway. + """ taxTypes: [TaxType!] - """Look up a checkout by token and slug of channel.""" + """ + 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 @@ -1090,69 +1533,91 @@ type Query { """ 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.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): CheckoutLineCountableConnection - """Look up a channel by ID or slug.""" + """ + Look up a channel by ID or slug. + """ channel( - """ID of the 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 @@ -1160,46 +1625,68 @@ type Query { """ List of all channels. - + Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. """ channels: [Channel!] - """List of the shop's attributes.""" + """ + List of the shop's attributes. + """ attributes( - """Filtering options for attributes.""" + """ + Filtering options for attributes. + """ filter: AttributeFilterInput - """Sorting options for attributes.""" + """ + Sorting options for attributes. + """ sortBy: AttributeSortingInput - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): AttributeCountableConnection - """Look up an attribute by ID, slug or external reference.""" + """ + Look up an attribute by ID, slug or external reference. + """ attribute( - """ID of the attribute.""" + """ + ID of the attribute. + """ id: ID - """Slug of the attribute.""" + """ + Slug of the attribute. + """ slug: String """ - External ID of the attribute. - + External ID of the attribute. + Added in Saleor 3.10. """ externalReference: String @@ -1207,210 +1694,294 @@ type Query { """ 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.""" + """ + Filtering options for apps. + """ filter: AppFilterInput - """Sort apps.""" + """ + Sort apps. + """ sortBy: AppSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 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.""" + """ + Filtering options for apps extensions. + """ filter: AppExtensionFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of the app extension. + """ id: ID! ): AppExtension - """Returns address validation rules.""" + """ + Returns address validation rules. + """ addressValidationRules( - """Two-letter ISO 3166-1 country code.""" + """ + Two-letter ISO 3166-1 country code. + """ countryCode: CountryCode! - """Designation of a region, province or state.""" + """ + Designation of a region, province or state. + """ countryArea: String - """City or a town name.""" + """ + City or a town name. + """ city: String - """Sublocality like a district.""" + """ + Sublocality like a district. + """ cityArea: String ): AddressValidationData - """Look up an address by ID.""" + """ + Look up an address by ID. + """ address( - """ID of an 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.""" + """ + Filtering options for customers. + """ filter: CustomerFilterInput - """Sort customers.""" + """ + Sort customers. + """ sortBy: UserSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + Filtering options for permission groups. + """ filter: PermissionGroupFilterInput - """Sort permission groups.""" + """ + Sort permission groups. + """ sortBy: PermissionGroupSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of the group. + """ id: ID! ): Group - """Return the currently authenticated user.""" + """ + 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.""" + """ + Filtering options for staff users. + """ filter: StaffUserInput - """Sort staff users.""" + """ + Sort staff users. + """ sortBy: UserSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 of the user. + """ id: ID - """Email address of the user.""" + """ + Email address of the user. + """ email: String """ - External ID of the user. - + External ID of the user. + Added in Saleor 3.10. """ externalReference: String @@ -1419,175 +1990,287 @@ type Query { _service: _Service } -"""Webhook.""" +""" +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 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.""" + """ + List of synchronous webhook events. + """ syncEvents: [WebhookEventSync!]! - """List of asynchronous webhook events.""" + """ + List of asynchronous webhook events. + """ asyncEvents: [WebhookEventAsync!]! app: App! - """Event deliveries.""" + """ + Event deliveries. + """ eventDeliveries( - """Event delivery sorter.""" + """ + Event delivery sorter. + """ sortBy: EventDeliverySortingInput - """Event delivery filter options.""" + """ + Event delivery filter options. + """ filter: EventDeliveryFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): EventDeliveryCountableConnection - """Target URL for webhook.""" + """ + Target URL for webhook. + """ targetUrl: String! - """Informs if webhook is activated.""" + """ + 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 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.""" + """ + Used to define payloads for specific events. + """ subscriptionQuery: String } -"""An object with an ID""" +""" +An object with an ID +""" interface Node { - """The ID of the object.""" + """ + The ID of the object. + """ id: ID! } -"""Webhook event.""" +""" +Webhook event. +""" type WebhookEvent { - """Display name of the event.""" + """ + Display name of the event. + """ name: String! - """Internal name of the event type.""" + """ + Internal name of the event type. + """ eventType: WebhookEventTypeEnum! } -"""Enum determining type of webhook.""" +""" +Enum determining type of webhook. +""" enum WebhookEventTypeEnum { - """All the events.""" + """ + All the events. + """ ANY_EVENTS - """A new address created.""" + """ + A new address created. + """ ADDRESS_CREATED - """An address updated.""" + """ + An address updated. + """ ADDRESS_UPDATED - """An address deleted.""" + """ + An address deleted. + """ ADDRESS_DELETED - """A new app installed.""" + """ + A new app installed. + """ APP_INSTALLED - """An app updated.""" + """ + An app updated. + """ APP_UPDATED - """An app deleted.""" + """ + An app deleted. + """ APP_DELETED - """An app status is changed.""" + """ + An app status is changed. + """ APP_STATUS_CHANGED - """A new attribute is created.""" + """ + A new attribute is created. + """ ATTRIBUTE_CREATED - """An attribute is updated.""" + """ + An attribute is updated. + """ ATTRIBUTE_UPDATED - """An attribute is deleted.""" + """ + An attribute is deleted. + """ ATTRIBUTE_DELETED - """A new attribute value is created.""" + """ + A new attribute value is created. + """ ATTRIBUTE_VALUE_CREATED - """An attribute value is updated.""" + """ + An attribute value is updated. + """ ATTRIBUTE_VALUE_UPDATED - """An attribute value is deleted.""" + """ + An attribute value is deleted. + """ ATTRIBUTE_VALUE_DELETED - """A new category created.""" + """ + A new category created. + """ CATEGORY_CREATED - """A category is updated.""" + """ + A category is updated. + """ CATEGORY_UPDATED - """A category is deleted.""" + """ + A category is deleted. + """ CATEGORY_DELETED - """A new channel created.""" + """ + A new channel created. + """ CHANNEL_CREATED - """A channel is updated.""" + """ + A channel is updated. + """ CHANNEL_UPDATED - """A channel is deleted.""" + """ + A channel is deleted. + """ CHANNEL_DELETED - """A channel status is changed.""" + """ + A channel status is changed. + """ CHANNEL_STATUS_CHANGED - """A new gift card created.""" + """ + A new gift card created. + """ GIFT_CARD_CREATED - """A gift card is updated.""" + """ + A gift card is updated. + """ GIFT_CARD_UPDATED - """A gift card is deleted.""" + """ + A gift card is deleted. + """ GIFT_CARD_DELETED - """A gift card status is changed.""" + """ + 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.""" + """ + A new menu created. + """ MENU_CREATED - """A menu is updated.""" + """ + A menu is updated. + """ MENU_UPDATED - """A menu is deleted.""" + """ + A menu is deleted. + """ MENU_DELETED - """A new menu item created.""" + """ + A new menu item created. + """ MENU_ITEM_CREATED - """A menu item is updated.""" + """ + A menu item is updated. + """ MENU_ITEM_UPDATED - """A menu item is deleted.""" + """ + A menu item is deleted. + """ MENU_ITEM_DELETED - """A new order is placed.""" + """ + A new order is placed. + """ ORDER_CREATED """ @@ -1595,7 +2278,9 @@ enum WebhookEventTypeEnum { """ ORDER_CONFIRMED - """Payment is made and an order is fully paid.""" + """ + Payment is made and an order is fully paid. + """ ORDER_FULLY_PAID """ @@ -1603,130 +2288,184 @@ enum WebhookEventTypeEnum { """ ORDER_UPDATED - """An order is cancelled.""" + """ + An order is cancelled. + """ ORDER_CANCELLED - """An order is fulfilled.""" + """ + 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.""" + """ + A draft order is created. + """ DRAFT_ORDER_CREATED - """A draft order is updated.""" + """ + A draft order is updated. + """ DRAFT_ORDER_UPDATED - """A draft order is deleted.""" + """ + A draft order is deleted. + """ DRAFT_ORDER_DELETED - """A sale is created.""" + """ + A sale is created. + """ SALE_CREATED - """A sale is updated.""" + """ + A sale is updated. + """ SALE_UPDATED - """A sale is deleted.""" + """ + A sale is deleted. + """ SALE_DELETED - """A sale is activated or deactivated.""" + """ + A sale is activated or deactivated. + """ SALE_TOGGLE - """An invoice for order requested.""" + """ + An invoice for order requested. + """ INVOICE_REQUESTED - """An invoice is deleted.""" + """ + An invoice is deleted. + """ INVOICE_DELETED - """Invoice has been sent.""" + """ + Invoice has been sent. + """ INVOICE_SENT - """A new customer account is created.""" + """ + A new customer account is created. + """ CUSTOMER_CREATED - """A customer account is updated.""" + """ + A customer account is updated. + """ CUSTOMER_UPDATED - """A customer account is deleted.""" + """ + 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.""" + """ + A new collection is created. + """ COLLECTION_CREATED - """A collection is updated.""" + """ + A collection is updated. + """ COLLECTION_UPDATED - """A collection is deleted.""" + """ + 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.""" + """ + A new product is created. + """ PRODUCT_CREATED - """A product is updated.""" + """ + A product is updated. + """ PRODUCT_UPDATED - """A product is deleted.""" + """ + 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.""" + """ + A new product variant is created. + """ PRODUCT_VARIANT_CREATED - """A product variant is updated.""" + """ + A product variant is updated. + """ PRODUCT_VARIANT_UPDATED - """A product variant is deleted.""" + """ + A product variant is deleted. + """ PRODUCT_VARIANT_DELETED - """A product variant is out of stock.""" + """ + A product variant is out of stock. + """ PRODUCT_VARIANT_OUT_OF_STOCK - """A product variant is back in 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.""" + """ + A new checkout is created. + """ CHECKOUT_CREATED """ @@ -1736,377 +2475,561 @@ enum WebhookEventTypeEnum { """ 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.""" + """ + A new fulfillment is created. + """ FULFILLMENT_CREATED - """A fulfillment is cancelled.""" + """ + A fulfillment is cancelled. + """ FULFILLMENT_CANCELED - """A fulfillment is approved.""" + """ + 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.""" + """ + User notification triggered. + """ NOTIFY_USER - """A new page is created.""" + """ + A new page is created. + """ PAGE_CREATED - """A page is updated.""" + """ + A page is updated. + """ PAGE_UPDATED - """A page is deleted.""" + """ + A page is deleted. + """ PAGE_DELETED - """A new page type is created.""" + """ + A new page type is created. + """ PAGE_TYPE_CREATED - """A page type is updated.""" + """ + A page type is updated. + """ PAGE_TYPE_UPDATED - """A page type is deleted.""" + """ + A page type is deleted. + """ PAGE_TYPE_DELETED - """A new permission group is created.""" + """ + A new permission group is created. + """ PERMISSION_GROUP_CREATED - """A permission group is updated.""" + """ + A permission group is updated. + """ PERMISSION_GROUP_UPDATED - """A permission group is deleted.""" + """ + A permission group is deleted. + """ PERMISSION_GROUP_DELETED - """A new shipping price is created.""" + """ + A new shipping price is created. + """ SHIPPING_PRICE_CREATED - """A shipping price is updated.""" + """ + A shipping price is updated. + """ SHIPPING_PRICE_UPDATED - """A shipping price is deleted.""" + """ + A shipping price is deleted. + """ SHIPPING_PRICE_DELETED - """A new shipping zone is created.""" + """ + A new shipping zone is created. + """ SHIPPING_ZONE_CREATED - """A shipping zone is updated.""" + """ + A shipping zone is updated. + """ SHIPPING_ZONE_UPDATED - """A shipping zone is deleted.""" + """ + 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.""" + """ + A new staff user is created. + """ STAFF_CREATED - """A staff user is updated.""" + """ + A staff user is updated. + """ STAFF_UPDATED - """A staff user is deleted.""" + """ + A staff user is deleted. + """ STAFF_DELETED - """An action requested for transaction.""" + """ + 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.""" + """ + A new translation is created. + """ TRANSLATION_CREATED - """A translation is updated.""" + """ + A translation is updated. + """ TRANSLATION_UPDATED - """A new warehouse created.""" + """ + A new warehouse created. + """ WAREHOUSE_CREATED - """A warehouse is updated.""" + """ + A warehouse is updated. + """ WAREHOUSE_UPDATED - """A warehouse is deleted.""" + """ + 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.""" + """ + A new voucher created. + """ VOUCHER_CREATED - """A voucher is updated.""" + """ + A voucher is updated. + """ VOUCHER_UPDATED - """A voucher is deleted.""" + """ + 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.""" + """ + An observability event is created. + """ OBSERVABILITY - """Authorize payment.""" + """ + Authorize payment. + """ PAYMENT_AUTHORIZE - """Capture payment.""" + """ + Capture payment. + """ PAYMENT_CAPTURE - """Confirm payment.""" + """ + Confirm payment. + """ PAYMENT_CONFIRM - """Listing available payment gateways.""" + """ + Listing available payment gateways. + """ PAYMENT_LIST_GATEWAYS - """Process payment.""" + """ + Process payment. + """ PAYMENT_PROCESS - """Refund payment.""" + """ + Refund payment. + """ PAYMENT_REFUND - """Void payment.""" + """ + Void payment. + """ 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 """ 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.""" + """ + Fetch external shipping methods for checkout. + """ SHIPPING_LIST_METHODS_FOR_CHECKOUT - """Filter shipping methods for order.""" + """ + Filter shipping methods for order. + """ ORDER_FILTER_SHIPPING_METHODS - """Filter shipping methods for checkout.""" + """ + Filter shipping methods for checkout. + """ CHECKOUT_FILTER_SHIPPING_METHODS } -"""Synchronous webhook event.""" +""" +Synchronous webhook event. +""" type WebhookEventSync { - """Display name of the event.""" + """ + Display name of the event. + """ name: String! - """Internal name of the event type.""" + """ + Internal name of the event type. + """ eventType: WebhookEventTypeSyncEnum! } -"""Enum determining type of webhook.""" +""" +Enum determining type of webhook. +""" enum WebhookEventTypeSyncEnum { - """Authorize payment.""" + """ + Authorize payment. + """ PAYMENT_AUTHORIZE - """Capture payment.""" + """ + Capture payment. + """ PAYMENT_CAPTURE - """Confirm payment.""" + """ + Confirm payment. + """ PAYMENT_CONFIRM - """Listing available payment gateways.""" + """ + Listing available payment gateways. + """ PAYMENT_LIST_GATEWAYS - """Process payment.""" + """ + Process payment. + """ PAYMENT_PROCESS - """Refund payment.""" + """ + Refund payment. + """ PAYMENT_REFUND - """Void payment.""" + """ + Void payment. + """ 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 """ 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.""" + """ + Fetch external shipping methods for checkout. + """ SHIPPING_LIST_METHODS_FOR_CHECKOUT - """Filter shipping methods for order.""" + """ + Filter shipping methods for order. + """ ORDER_FILTER_SHIPPING_METHODS - """Filter shipping methods for checkout.""" + """ + Filter shipping methods for checkout. + """ CHECKOUT_FILTER_SHIPPING_METHODS } -"""Asynchronous webhook event.""" +""" +Asynchronous webhook event. +""" type WebhookEventAsync { - """Display name of the event.""" + """ + Display name of the event. + """ name: String! - """Internal name of the event type.""" + """ + Internal name of the event type. + """ eventType: WebhookEventTypeAsyncEnum! } -"""Enum determining type of webhook.""" +""" +Enum determining type of webhook. +""" enum WebhookEventTypeAsyncEnum { - """All the events.""" + """ + All the events. + """ ANY_EVENTS - """A new address created.""" + """ + A new address created. + """ ADDRESS_CREATED - """An address updated.""" + """ + An address updated. + """ ADDRESS_UPDATED - """An address deleted.""" + """ + An address deleted. + """ ADDRESS_DELETED - """A new app installed.""" + """ + A new app installed. + """ APP_INSTALLED - """An app updated.""" + """ + An app updated. + """ APP_UPDATED - """An app deleted.""" + """ + An app deleted. + """ APP_DELETED - """An app status is changed.""" + """ + An app status is changed. + """ APP_STATUS_CHANGED - """A new attribute is created.""" + """ + A new attribute is created. + """ ATTRIBUTE_CREATED - """An attribute is updated.""" + """ + An attribute is updated. + """ ATTRIBUTE_UPDATED - """An attribute is deleted.""" + """ + An attribute is deleted. + """ ATTRIBUTE_DELETED - """A new attribute value is created.""" + """ + A new attribute value is created. + """ ATTRIBUTE_VALUE_CREATED - """An attribute value is updated.""" + """ + An attribute value is updated. + """ ATTRIBUTE_VALUE_UPDATED - """An attribute value is deleted.""" + """ + An attribute value is deleted. + """ ATTRIBUTE_VALUE_DELETED - """A new category created.""" + """ + A new category created. + """ CATEGORY_CREATED - """A category is updated.""" + """ + A category is updated. + """ CATEGORY_UPDATED - """A category is deleted.""" + """ + A category is deleted. + """ CATEGORY_DELETED - """A new channel created.""" + """ + A new channel created. + """ CHANNEL_CREATED - """A channel is updated.""" + """ + A channel is updated. + """ CHANNEL_UPDATED - """A channel is deleted.""" + """ + A channel is deleted. + """ CHANNEL_DELETED - """A channel status is changed.""" + """ + A channel status is changed. + """ CHANNEL_STATUS_CHANGED - """A new gift card created.""" + """ + A new gift card created. + """ GIFT_CARD_CREATED - """A gift card is updated.""" + """ + A gift card is updated. + """ GIFT_CARD_UPDATED - """A gift card is deleted.""" + """ + A gift card is deleted. + """ GIFT_CARD_DELETED - """A gift card status is changed.""" + """ + 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.""" + """ + A new menu created. + """ MENU_CREATED - """A menu is updated.""" + """ + A menu is updated. + """ MENU_UPDATED - """A menu is deleted.""" + """ + A menu is deleted. + """ MENU_DELETED - """A new menu item created.""" + """ + A new menu item created. + """ MENU_ITEM_CREATED - """A menu item is updated.""" + """ + A menu item is updated. + """ MENU_ITEM_UPDATED - """A menu item is deleted.""" + """ + A menu item is deleted. + """ MENU_ITEM_DELETED - """A new order is placed.""" + """ + A new order is placed. + """ ORDER_CREATED """ @@ -2114,7 +3037,9 @@ enum WebhookEventTypeAsyncEnum { """ ORDER_CONFIRMED - """Payment is made and an order is fully paid.""" + """ + Payment is made and an order is fully paid. + """ ORDER_FULLY_PAID """ @@ -2122,130 +3047,184 @@ enum WebhookEventTypeAsyncEnum { """ ORDER_UPDATED - """An order is cancelled.""" + """ + An order is cancelled. + """ ORDER_CANCELLED - """An order is fulfilled.""" + """ + 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.""" + """ + A draft order is created. + """ DRAFT_ORDER_CREATED - """A draft order is updated.""" + """ + A draft order is updated. + """ DRAFT_ORDER_UPDATED - """A draft order is deleted.""" + """ + A draft order is deleted. + """ DRAFT_ORDER_DELETED - """A sale is created.""" + """ + A sale is created. + """ SALE_CREATED - """A sale is updated.""" + """ + A sale is updated. + """ SALE_UPDATED - """A sale is deleted.""" + """ + A sale is deleted. + """ SALE_DELETED - """A sale is activated or deactivated.""" + """ + A sale is activated or deactivated. + """ SALE_TOGGLE - """An invoice for order requested.""" + """ + An invoice for order requested. + """ INVOICE_REQUESTED - """An invoice is deleted.""" + """ + An invoice is deleted. + """ INVOICE_DELETED - """Invoice has been sent.""" + """ + Invoice has been sent. + """ INVOICE_SENT - """A new customer account is created.""" + """ + A new customer account is created. + """ CUSTOMER_CREATED - """A customer account is updated.""" + """ + A customer account is updated. + """ CUSTOMER_UPDATED - """A customer account is deleted.""" + """ + 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.""" + """ + A new collection is created. + """ COLLECTION_CREATED - """A collection is updated.""" + """ + A collection is updated. + """ COLLECTION_UPDATED - """A collection is deleted.""" + """ + 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.""" + """ + A new product is created. + """ PRODUCT_CREATED - """A product is updated.""" + """ + A product is updated. + """ PRODUCT_UPDATED - """A product is deleted.""" + """ + 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.""" + """ + A new product variant is created. + """ PRODUCT_VARIANT_CREATED - """A product variant is updated.""" + """ + A product variant is updated. + """ PRODUCT_VARIANT_UPDATED - """A product variant is deleted.""" + """ + A product variant is deleted. + """ PRODUCT_VARIANT_DELETED - """A product variant is out of stock.""" + """ + A product variant is out of stock. + """ PRODUCT_VARIANT_OUT_OF_STOCK - """A product variant is back in 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.""" + """ + A new checkout is created. + """ CHECKOUT_CREATED """ @@ -2255,331 +3234,439 @@ enum WebhookEventTypeAsyncEnum { """ 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.""" + """ + A new fulfillment is created. + """ FULFILLMENT_CREATED - """A fulfillment is cancelled.""" + """ + A fulfillment is cancelled. + """ FULFILLMENT_CANCELED - """A fulfillment is approved.""" + """ + 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.""" + """ + User notification triggered. + """ NOTIFY_USER - """A new page is created.""" + """ + A new page is created. + """ PAGE_CREATED - """A page is updated.""" + """ + A page is updated. + """ PAGE_UPDATED - """A page is deleted.""" + """ + A page is deleted. + """ PAGE_DELETED - """A new page type is created.""" + """ + A new page type is created. + """ PAGE_TYPE_CREATED - """A page type is updated.""" + """ + A page type is updated. + """ PAGE_TYPE_UPDATED - """A page type is deleted.""" + """ + A page type is deleted. + """ PAGE_TYPE_DELETED - """A new permission group is created.""" + """ + A new permission group is created. + """ PERMISSION_GROUP_CREATED - """A permission group is updated.""" + """ + A permission group is updated. + """ PERMISSION_GROUP_UPDATED - """A permission group is deleted.""" + """ + A permission group is deleted. + """ PERMISSION_GROUP_DELETED - """A new shipping price is created.""" + """ + A new shipping price is created. + """ SHIPPING_PRICE_CREATED - """A shipping price is updated.""" + """ + A shipping price is updated. + """ SHIPPING_PRICE_UPDATED - """A shipping price is deleted.""" + """ + A shipping price is deleted. + """ SHIPPING_PRICE_DELETED - """A new shipping zone is created.""" + """ + A new shipping zone is created. + """ SHIPPING_ZONE_CREATED - """A shipping zone is updated.""" + """ + A shipping zone is updated. + """ SHIPPING_ZONE_UPDATED - """A shipping zone is deleted.""" + """ + 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.""" + """ + A new staff user is created. + """ STAFF_CREATED - """A staff user is updated.""" + """ + A staff user is updated. + """ STAFF_UPDATED - """A staff user is deleted.""" + """ + A staff user is deleted. + """ STAFF_DELETED - """An action requested for transaction.""" + """ + 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.""" + """ + A new translation is created. + """ TRANSLATION_CREATED - """A translation is updated.""" + """ + A translation is updated. + """ TRANSLATION_UPDATED - """A new warehouse created.""" + """ + A new warehouse created. + """ WAREHOUSE_CREATED - """A warehouse is updated.""" + """ + A warehouse is updated. + """ WAREHOUSE_UPDATED - """A warehouse is deleted.""" + """ + 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.""" + """ + A new voucher created. + """ VOUCHER_CREATED - """A voucher is updated.""" + """ + A voucher is updated. + """ VOUCHER_UPDATED - """A voucher is deleted.""" + """ + 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.""" + """ + An observability event is created. + """ OBSERVABILITY } -"""Represents app data.""" +""" +Represents app data. +""" type App implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + List of the app's permissions. + """ permissions: [Permission!] - """The date and time when the app was created.""" + """ + The date and time when the app was created. + """ created: DateTime - """Determine if app will be set active or not.""" + """ + Determine if app will be set active or not. + """ isActive: Boolean - """Name of the app.""" + """ + Name of the app. + """ name: String - """Type of the app.""" + """ + 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.""" + """ + 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.") + """ + 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.""" + """ + URL to details about the privacy policy on the app owner page. + """ dataPrivacyUrl: String - """Homepage of the app.""" + """ + Homepage of the app. + """ homepageUrl: String - """Support page for the app.""" + """ + 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 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.""" + """ + 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 number of the app. + """ version: String - """JWT token used to authenticate by thridparty app.""" + """ + 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!]! } interface ObjectWithMetadata { - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 MetadataItem { - """Key of a metadata item.""" + """ + Key of a metadata item. + """ key: String! - """Value of a metadata item.""" + """ + Value of a metadata item. + """ value: String! } @@ -2596,16 +3683,24 @@ Example: """ scalar Metadata -"""Represents a permission object in a friendly form.""" +""" +Represents a permission object in a friendly form. +""" type Permission { - """Internal code for permission.""" + """ + Internal code for permission. + """ code: PermissionEnum! - """Describe action(s) allowed to do by permission.""" + """ + Describe action(s) allowed to do by permission. + """ name: String! } -"""An enumeration.""" +""" +An enumeration. +""" enum PermissionEnum { MANAGE_USERS MANAGE_STAFF @@ -2639,7 +3734,9 @@ value as specified by """ scalar DateTime -"""Enum determining type of your App.""" +""" +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 @@ -2652,42 +3749,64 @@ enum AppTypeEnum { THIRDPARTY } -"""Represents token data.""" +""" +Represents token data. +""" type AppToken implements Node { id: ID! - """Name of the authenticated token.""" + """ + Name of the authenticated token. + """ name: String - """Last 4 characters of the token.""" + """ + Last 4 characters of the token. + """ authToken: String } -"""Represents app data.""" +""" +Represents app data. +""" type AppExtension implements Node { id: ID! - """List of the app extension's permissions.""" + """ + List of the app extension's permissions. + """ permissions: [Permission!]! - """Label of the extension to show in the dashboard.""" + """ + Label of the extension to show in the dashboard. + """ label: String! - """URL of a view where extension's iframe is placed.""" + """ + URL of a view where extension's iframe is placed. + """ url: String! - """Place where given extension will be mounted.""" + """ + Place where given extension will be mounted. + """ mount: AppExtensionMountEnum! - """Type of way how app extension will be opened.""" + """ + Type of way how app extension will be opened. + """ target: AppExtensionTargetEnum! app: App! - """JWT token used to authenticate by thridparty app extension.""" + """ + JWT token used to authenticate by thridparty app extension. + """ accessToken: String } -"""All places where app extension can be mounted.""" +""" +All places where app extension can be mounted. +""" enum AppExtensionMountEnum { CUSTOMER_OVERVIEW_CREATE CUSTOMER_OVERVIEW_MORE_ACTIONS @@ -2718,11 +3837,15 @@ enum AppExtensionTargetEnum { } type EventDeliveryCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [EventDeliveryCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } @@ -2730,57 +3853,89 @@ type EventDeliveryCountableConnection { The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. """ type PageInfo { - """When paginating forwards, are there more items?""" + """ + When paginating forwards, are there more items? + """ hasNextPage: Boolean! - """When paginating backwards, are there more items?""" + """ + When paginating backwards, are there more items? + """ hasPreviousPage: Boolean! - """When paginating backwards, the cursor to continue.""" + """ + When paginating backwards, the cursor to continue. + """ startCursor: String - """When paginating forwards, the cursor to continue.""" + """ + When paginating forwards, the cursor to continue. + """ endCursor: String } type EventDeliveryCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: EventDelivery! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } -"""Event delivery.""" +""" +Event delivery. +""" type EventDelivery implements Node { id: ID! createdAt: DateTime! - """Event delivery status.""" + """ + Event delivery status. + """ status: EventDeliveryStatusEnum! - """Webhook event type.""" + """ + Webhook event type. + """ eventType: WebhookEventTypeEnum! - """Event delivery attempts.""" + """ + Event delivery attempts. + """ attempts( - """Event delivery sorter""" + """ + Event delivery sorter + """ sortBy: EventDeliveryAttemptSortingInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): EventDeliveryAttemptCountableConnection - """Event payload.""" + """ + Event payload. + """ payload: String } @@ -2791,82 +3946,124 @@ enum EventDeliveryStatusEnum { } type EventDeliveryAttemptCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [EventDeliveryAttemptCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type EventDeliveryAttemptCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: EventDeliveryAttempt! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } -"""Event delivery attempts.""" +""" +Event delivery attempts. +""" type EventDeliveryAttempt implements Node { id: ID! - """Event delivery creation date and time.""" + """ + Event delivery creation date and time. + """ createdAt: DateTime! - """Task id for delivery attempt.""" + """ + Task id for delivery attempt. + """ taskId: String - """Delivery attempt duration.""" + """ + Delivery attempt duration. + """ duration: Float - """Delivery attempt response content.""" + """ + Delivery attempt response content. + """ response: String - """Response headers for delivery attempt.""" + """ + Response headers for delivery attempt. + """ responseHeaders: String - """Delivery attempt response status code.""" + """ + Delivery attempt response status code. + """ responseStatusCode: Int - """Request headers for delivery attempt.""" + """ + Request headers for delivery attempt. + """ requestHeaders: String - """Event delivery status.""" + """ + Event delivery status. + """ status: EventDeliveryStatusEnum! } input EventDeliveryAttemptSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort attempts by the selected field.""" + """ + Sort attempts by the selected field. + """ field: EventDeliveryAttemptSortField! } enum OrderDirection { - """Specifies an ascending sort order.""" + """ + Specifies an ascending sort order. + """ ASC - """Specifies a descending sort order.""" + """ + Specifies a descending sort order. + """ DESC } enum EventDeliveryAttemptSortField { - """Sort event delivery attempts by created at.""" + """ + Sort event delivery attempts by created at. + """ CREATED_AT } input EventDeliverySortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort deliveries by the selected field.""" + """ + Sort deliveries by the selected field. + """ field: EventDeliverySortField! } enum EventDeliverySortField { - """Sort event deliveries by created at.""" + """ + Sort event deliveries by created at. + """ CREATED_AT } @@ -2877,7 +4074,9 @@ input EventDeliveryFilterInput { scalar JSONString -"""An enumeration.""" +""" +An enumeration. +""" enum WebhookSampleEventTypeEnum { ADDRESS_CREATED ADDRESS_UPDATED @@ -2987,52 +4186,58 @@ enum WebhookSampleEventTypeEnum { OBSERVABILITY } -"""Represents warehouse.""" +""" +Represents warehouse. +""" type Warehouse implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -3042,97 +4247,112 @@ type Warehouse implements Node & ObjectWithMetadata { isPrivate: Boolean! address: Address! - """Warehouse company name.""" - companyName: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead.") + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ShippingZoneCountableConnection! """ - External ID of this warehouse. - + External ID of this warehouse. + Added in Saleor 3.10. """ externalReference: String } -"""Represents user address data.""" +""" +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 @@ -3145,51 +4365,82 @@ type Address implements Node & ObjectWithMetadata { cityArea: String! postalCode: String! - """Shop's default country.""" + """ + Shop's default country. + """ country: CountryDisplay! countryArea: String! phone: String - """Address is user's default shipping address.""" + """ + Address is user's default shipping address. + """ isDefaultShippingAddress: Boolean - """Address is user's default billing address.""" + """ + Address is user's default billing address. + """ isDefaultBillingAddress: Boolean } type CountryDisplay { - """Country code.""" + """ + Country code. + """ code: String! - """Country name.""" + """ + 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.") + """ + Country tax. + """ + vat: VAT + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `TaxClassCountryRate` type to manage tax rates per country." + ) } -"""Represents a VAT rate for a country.""" +""" +Represents a VAT rate for a country. +""" type VAT { - """Country code.""" + """ + Country code. + """ countryCode: String! - """Standard VAT rate in percent.""" + """ + Standard VAT rate in percent. + """ standardRate: Float - """Country's VAT rate exceptions for specific types of goods.""" + """ + Country's VAT rate exceptions for specific types of goods. + """ reducedRates: [ReducedRate!]! } -"""Represents a reduced VAT rate for a particular type of goods.""" +""" +Represents a reduced VAT rate for a particular type of goods. +""" type ReducedRate { - """Reduced VAT rate in percent.""" + """ + Reduced VAT rate in percent. + """ rate: Float! - """A type of goods.""" + """ + A type of goods. + """ rateType: String! } -"""An enumeration.""" +""" +An enumeration. +""" enum WarehouseClickAndCollectOptionEnum { DISABLED LOCAL @@ -3197,19 +4448,27 @@ enum WarehouseClickAndCollectOptionEnum { } type ShippingZoneCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [ShippingZoneCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type ShippingZoneCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: ShippingZone! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -3219,58 +4478,66 @@ Represents a shipping zone in the shop. Zones are the concept used only for grou type ShippingZone implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + Lowest and highest prices for the shipping. + """ priceRange: MoneyRange - """List of countries available for the method.""" + """ + List of countries available for the method. + """ countries: [CountryDisplay!]! """ @@ -3278,31 +4545,49 @@ type ShippingZone implements Node & ObjectWithMetadata { """ shippingMethods: [ShippingMethodType!] - """List of warehouses for shipping zone.""" + """ + List of warehouses for shipping zone. + """ warehouses: [Warehouse!]! - """List of channels for shipping zone.""" + """ + List of channels for shipping zone. + """ channels: [Channel!]! - """Description of a shipping zone.""" + """ + Description of a shipping zone. + """ description: String } -"""Represents a range of amounts of money.""" +""" +Represents a range of amounts of money. +""" type MoneyRange { - """Lower bound of a price range.""" + """ + Lower bound of a price range. + """ start: Money - """Upper bound of a price range.""" + """ + Upper bound of a price range. + """ stop: Money } -"""Represents amount of money in specific currency.""" +""" +Represents amount of money in specific currency. +""" type Money { - """Currency code.""" + """ + Currency code. + """ currency: String! - """Amount of money.""" + """ + Amount of money. + """ amount: Float! } @@ -3310,85 +4595,103 @@ type Money { 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.""" + """ + Shipping method ID. + """ id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + 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 of the shipping method. + """ type: ShippingMethodTypeEnum - """Returns translated shipping method fields for the given language code.""" + """ + Returns translated shipping method fields for the given language code. + """ translation( - """A language code to return the translation for shipping method.""" + """ + 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).""" + """ + The price of the cheapest variant (including discounts). + """ maximumOrderPrice: Money - """The price of the cheapest variant (including discounts).""" + """ + The price of the cheapest variant (including discounts). + """ minimumOrderPrice: Money """ @@ -3398,44 +4701,62 @@ type ShippingMethodType implements Node & ObjectWithMetadata { """ 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductCountableConnection - """Minimum order weight to use this shipping method.""" + """ + Minimum order weight to use this shipping method. + """ minimumOrderWeight: Weight - """Maximum order weight to use this shipping method.""" + """ + Maximum order weight to use this shipping method. + """ maximumOrderWeight: Weight - """Maximum number of days for delivery.""" + """ + Maximum number of days for delivery. + """ maximumDeliveryDays: Int - """Minimal number of days for delivery.""" + """ + 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.""" +""" +An enumeration. +""" enum ShippingMethodTypeEnum { PRICE WEIGHT @@ -3444,27 +4765,35 @@ enum ShippingMethodTypeEnum { type ShippingMethodTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! name: String """ Translated description of the shipping method. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString } type LanguageDisplay { - """ISO 639 representation of the language name.""" + """ + ISO 639 representation of the language name. + """ code: LanguageCodeEnum! - """Full name of the language.""" + """ + Full name of the language. + """ language: String! } -"""An enumeration.""" +""" +An enumeration. +""" enum LanguageCodeEnum { AF AF_NA @@ -4247,7 +5576,9 @@ enum LanguageCodeEnum { ZU_ZA } -"""Represents shipping method channel listing.""" +""" +Represents shipping method channel listing. +""" type ShippingMethodChannelListing implements Node { id: ID! channel: Channel! @@ -4256,86 +5587,90 @@ type ShippingMethodChannelListing implements Node { price: Money } -"""Represents channel.""" +""" +Represents channel. +""" type Channel implements Node { id: ID! - """Slug of the channel.""" + """ + 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! @@ -4349,14 +5684,20 @@ 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.""" + """ + The country code. + """ countryCode: CountryCode! - """List of available shipping methods.""" + """ + List of available shipping methods. + """ shippingMethods: [ShippingMethod!] } -"""An enumeration.""" +""" +An enumeration. +""" enum CountryCode { AF AX @@ -4614,112 +5955,152 @@ enum CountryCode { 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.""" + """ + Unique ID of ShippingMethod available for Order. + """ id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 of the shipping method. + """ type: ShippingMethodTypeEnum @deprecated(reason: "This field will be removed in Saleor 4.0.") - """Shipping method name.""" + """ + 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.""" + """ + Maximum delivery days for this shipping method. + """ maximumDeliveryDays: Int - """Minimum delivery days for this shipping method.""" + """ + Minimum delivery days for this shipping method. + """ minimumDeliveryDays: Int - """Maximum order weight for this shipping method.""" + """ + 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.""" + """ + 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.""" + """ + Returns translated shipping method fields for the given language code. + """ translation( - """A language code to return the translation for shipping method.""" + """ + A language code to return the translation for shipping method. + """ languageCode: LanguageCodeEnum! ): ShippingMethodTranslation - """The price of selected shipping method.""" + """ + The price of selected shipping method. + """ price: Money! - """Maximum order price for this shipping method.""" + """ + Maximum order price for this shipping method. + """ maximumOrderPrice: Money - """Minimal order price for this shipping method.""" + """ + Minimal order price for this shipping method. + """ minimumOrderPrice: Money - """Describes if this shipping method is active and can be selected.""" + """ + Describes if this shipping method is active and can be selected. + """ active: Boolean! - """Message connected to this shipping method.""" + """ + Message connected to this shipping method. + """ message: String } -"""Represents weight value in a specific weight unit.""" +""" +Represents weight value in a specific weight unit. +""" type Weight { - """Weight unit.""" + """ + Weight unit. + """ unit: WeightUnitsEnum! - """Weight value.""" + """ + Weight value. + """ value: Float! } -"""An enumeration.""" +""" +An enumeration. +""" enum WeightUnitsEnum { G LB @@ -4755,90 +6136,116 @@ enum AllocationStrategyEnum { PRIORITIZE_HIGH_STOCK } -"""Represents shipping method postal code rule.""" +""" +Represents shipping method postal code rule. +""" type ShippingMethodPostalCodeRule implements Node { - """The ID of the object.""" + """ + The ID of the object. + """ id: ID! - """Start address range.""" + """ + Start address range. + """ start: String - """End address range.""" + """ + End address range. + """ end: String - """Inclusion type of the postal code rule.""" + """ + Inclusion type of the postal code rule. + """ inclusionType: PostalCodeRuleInclusionTypeEnum } -"""An enumeration.""" +""" +An enumeration. +""" enum PostalCodeRuleInclusionTypeEnum { INCLUDE EXCLUDE } type ProductCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [ProductCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type ProductCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Product! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } -"""Represents an individual item for sale in the storefront.""" +""" +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.""" + """ + 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.""" + """ + 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 @@ -4848,7 +6255,7 @@ type Product implements Node & ObjectWithMetadata { """ Description of the product. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString @@ -4857,7 +6264,10 @@ type Product implements Node & ObjectWithMetadata { 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.") + 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 @@ -4869,10 +6279,13 @@ type Product implements Node & ObjectWithMetadata { """ 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.") + 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. @@ -4881,9 +6294,9 @@ type Product implements Node & ObjectWithMetadata { """ 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 @@ -4899,7 +6312,9 @@ type Product implements Node & ObjectWithMetadata { address: AddressInput ): ProductPricingInfo - """Whether the product is in stock and visible or not.""" + """ + 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. @@ -4907,51 +6322,73 @@ type Product implements Node & ObjectWithMetadata { 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.") + """ + 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 of the attribute + """ slug: String! ): SelectedAttribute - """List of attributes assigned to this product.""" + """ + 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.""" + """ + Get a single product media by ID. + """ mediaById( - """ID of a product media.""" + """ + ID of a product media. + """ id: ID ): ProductMedia - """Get a single product image by ID.""" + """ + Get a single product image by ID. + """ imageById( - """ID of a product image.""" + """ + ID of a product image. + """ id: ID - ): ProductImage @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `mediaById` field instead.") + ): 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. - + Get a single variant by SKU or ID. + Added in Saleor 3.9. """ variant( - """ID of the variant.""" + """ + ID of the variant. + """ id: ID - """SKU of the variant.""" + """ + SKU of the variant. + """ sku: String ): ProductVariant @@ -4960,49 +6397,67 @@ type Product implements Node & ObjectWithMetadata { """ variants: [ProductVariant!] - """List of media for the product.""" + """ + List of media for the product. + """ media( """ - Sort 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 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.""" + """ + Returns translated product fields for the given language code. + """ translation( - """A language code to return the translation for product.""" + """ + 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. + """ + 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.""" + """ + Date when product is available for purchase. + """ availableForPurchaseAt: DateTime - """Whether the product is available for purchase.""" + """ + 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. - + External ID of this product. + Added in Saleor 3.10. """ externalReference: String @@ -5014,48 +6469,52 @@ Represents a type of product. It defines what attributes are available to produc type ProductType implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -5066,90 +6525,137 @@ type ProductType implements Node & ObjectWithMetadata { isDigital: Boolean! weight: Weight - """The product type kind.""" + """ + The product type kind. + """ kind: ProductTypeKindEnum! - """List of products of this type.""" + """ + List of products of this type. + """ products( - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.") + ): 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.") + """ + 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.""" + """ + Variant attributes of that product type. + """ variantAttributes( - """Define scope of returned attributes.""" + """ + Define scope of returned attributes. + """ variantSelection: VariantAttributeScope - ): [Attribute!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead.") + ): [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.""" + """ + Define scope of returned attributes. + """ variantSelection: VariantAttributeScope ): [AssignedVariantAttribute!] - """Product attributes of that product type.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): AttributeCountableConnection } -"""An enumeration.""" +""" +An enumeration. +""" enum ProductTypeKindEnum { NORMAL GIFT_CARD } -"""Representation of tax types fetched from tax gateway.""" +""" +Representation of tax types fetched from tax gateway. +""" type TaxType { - """Description of the tax type.""" + """ + Description of the tax type. + """ description: String - """External tax code used to identify given tax group.""" + """ + External tax code used to identify given tax group. + """ taxCode: String } @@ -5161,59 +6667,69 @@ 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.""" + """ + The ID of the object. + """ id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 of the tax class. + """ name: String! - """Country-specific tax rates for this tax class.""" + """ + Country-specific tax rates for this tax class. + """ countries: [TaxClassCountryRate!]! } @@ -5225,13 +6741,19 @@ 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 in which this tax rate applies. + """ country: CountryDisplay! - """Tax rate value.""" + """ + Tax rate value. + """ rate: Float! - """Related tax class.""" + """ + Related tax class. + """ taxClass: TaxClass } @@ -5241,88 +6763,118 @@ Custom attribute of a product. Attributes can be assigned to products and varian type Attribute implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + The input type to use for entering attribute values in the dashboard. + """ inputType: AttributeInputTypeEnum - """The entity type which can be used as a reference.""" + """ + The entity type which can be used as a reference. + """ entityType: AttributeEntityTypeEnum - """Name of an attribute displayed in the interface.""" + """ + Name of an attribute displayed in the interface. + """ name: String - """Internal representation of an attribute name.""" + """ + Internal representation of an attribute name. + """ slug: String - """The attribute type.""" + """ + The attribute type. + """ type: AttributeTypeEnum - """The unit of attribute values.""" + """ + The unit of attribute values. + """ unit: MeasurementUnitsEnum - """List of attribute's values.""" + """ + List of attribute's values. + """ choices( - """Sort attribute choices.""" + """ + Sort attribute choices. + """ sortBy: AttributeChoicesSortingInput - """Filtering options for attribute choices.""" + """ + Filtering options for attribute choices. + """ filter: AttributeValueFilterInput - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): AttributeValueCountableConnection @@ -5356,50 +6908,74 @@ type Attribute implements Node & ObjectWithMetadata { """ storefrontSearchPosition: Int! - """Returns translated attribute fields for the given language code.""" + """ + Returns translated attribute fields for the given language code. + """ translation( - """A language code to return the translation for attribute.""" + """ + A language code to return the translation for attribute. + """ languageCode: LanguageCodeEnum! ): AttributeTranslation - """Flag indicating that attribute has predefined choices.""" + """ + Flag indicating that attribute has predefined choices. + """ withChoices: Boolean! productTypes( - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductTypeCountableConnection! productVariantTypes( - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductTypeCountableConnection! """ - External ID of this attribute. - + External ID of this attribute. + Added in Saleor 3.10. """ externalReference: String } -"""An enumeration.""" +""" +An enumeration. +""" enum AttributeInputTypeEnum { DROPDOWN MULTISELECT @@ -5414,20 +6990,26 @@ enum AttributeInputTypeEnum { DATE_TIME } -"""An enumeration.""" +""" +An enumeration. +""" enum AttributeEntityTypeEnum { PAGE PRODUCT PRODUCT_VARIANT } -"""An enumeration.""" +""" +An enumeration. +""" enum AttributeTypeEnum { PRODUCT_TYPE PAGE_TYPE } -"""An enumeration.""" +""" +An enumeration. +""" enum MeasurementUnitsEnum { CM M @@ -5462,30 +7044,44 @@ enum MeasurementUnitsEnum { } type AttributeValueCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [AttributeValueCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type AttributeValueCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: AttributeValue! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } -"""Represents a value of an attribute.""" +""" +Represents a value of an attribute. +""" type AttributeValue implements Node { id: ID! - """Name of a value displayed in the interface.""" + """ + Name of a value displayed in the interface. + """ name: String - """Internal representation of a value (unique per attribute).""" + """ + Internal representation of a value (unique per attribute). + """ slug: String """ @@ -5493,24 +7089,34 @@ type AttributeValue implements Node { """ value: String - """Returns translated attribute value fields for the given language code.""" + """ + Returns translated attribute value fields for the given language code. + """ translation( - """A language code to return the translation for attribute value.""" + """ + 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.""" + """ + The input type to use for entering attribute values in the dashboard. + """ inputType: AttributeInputTypeEnum - """The ID of the attribute reference.""" + """ + The ID of the attribute reference. + """ reference: ID - """Represents file URL and content type (if attribute value is a file).""" + """ + 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 @@ -5520,18 +7126,24 @@ type AttributeValue implements Node { """ plainText: String - """Represents the boolean value of the attribute value.""" + """ + Represents the boolean value of the attribute value. + """ boolean: Boolean - """Represents the date value of the attribute value.""" + """ + Represents the date value of the attribute value. + """ date: Date - """Represents the date/time value of the attribute value.""" + """ + Represents the date/time value of the attribute value. + """ dateTime: DateTime """ - External ID of this attribute value. - + External ID of this attribute value. + Added in Saleor 3.10. """ externalReference: String @@ -5540,26 +7152,34 @@ type AttributeValue implements Node { type AttributeValueTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! name: String! """ Attribute value. - + Rich text format. For reference see https://editorjs.io/ """ richText: JSONString - """Attribute plain text value.""" + """ + Attribute plain text value. + """ plainText: String } type File { - """The URL of the file.""" + """ + The URL of the file. + """ url: String! - """Content type of the file.""" + """ + Content type of the file. + """ contentType: String } @@ -5571,18 +7191,26 @@ value as specified by scalar Date input AttributeChoicesSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort attribute choices by the selected field.""" + """ + Sort attribute choices by the selected field. + """ field: AttributeChoicesSortField! } enum AttributeChoicesSortField { - """Sort attribute choice by name.""" + """ + Sort attribute choice by name. + """ NAME - """Sort attribute choice by slug.""" + """ + Sort attribute choice by slug. + """ SLUG } @@ -5594,25 +7222,35 @@ input AttributeValueFilterInput { type AttributeTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! name: String! } type ProductTypeCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [ProductTypeCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type ProductTypeCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: ProductType! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -5628,7 +7266,9 @@ Represents assigned attribute to variant with variant selection attached. Added in Saleor 3.1. """ type AssignedVariantAttribute { - """Attribute assigned to variant.""" + """ + Attribute assigned to variant. + """ attribute: Attribute! """ @@ -5638,19 +7278,27 @@ type AssignedVariantAttribute { } type AttributeCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [AttributeCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type AttributeCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Attribute! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -5670,18 +7318,22 @@ input AttributeFilterInput { slugs: [String!] """ - Specifies the channel by which the data should be filtered. - + 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 MetadataFilter { - """Key of a metadata item.""" + """ + Key of a metadata item. + """ key: String! - """Value of a metadata item.""" + """ + Value of a metadata item. + """ value: String } @@ -5691,48 +7343,52 @@ Represents a single category of products. Categories allow to organize products type Category implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -5742,7 +7398,7 @@ type Category implements Node & ObjectWithMetadata { """ Description of the category. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString @@ -5752,23 +7408,36 @@ type Category implements Node & ObjectWithMetadata { """ 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.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) - """List of ancestors of the category.""" + """ + List of ancestors of the category. + """ ancestors( - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): CategoryCountableConnection @@ -5778,46 +7447,66 @@ type Category implements Node & ObjectWithMetadata { 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.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductCountableConnection - """List of children of the category.""" + """ + List of children of the category. + """ children( - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): CategoryCountableConnection backgroundImage( @@ -5828,35 +7517,47 @@ type Category implements Node & ObjectWithMetadata { """ 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.""" + """ + Returns translated category fields for the given language code. + """ translation( - """A language code to return the translation for category.""" + """ + A language code to return the translation for category. + """ languageCode: LanguageCodeEnum! ): CategoryTranslation } type CategoryCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [CategoryCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type CategoryCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Category! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -5867,73 +7568,89 @@ input ProductFilterInput { hasCategory: Boolean attributes: [AttributeInput!] - """Filter by variants having specific stock status.""" + """ + Filter by variants having specific stock status. + """ stockAvailability: StockAvailability stocks: ProductStockFilterInput search: String metadata: [MetadataFilter!] """ - Filter by the publication date. - + Filter by the publication date. + Added in Saleor 3.8. """ publishedFrom: DateTime """ - Filter by availability for purchase. - + Filter by availability for purchase. + Added in Saleor 3.8. """ isAvailable: Boolean """ - Filter by the date of availability for purchase. - + Filter by the date of availability for purchase. + Added in Saleor 3.8. """ availableFrom: DateTime """ - Filter by visibility in product listings. - + Filter by visibility in product listings. + Added in Saleor 3.8. """ isVisibleInListing: Boolean price: PriceRangeInput - """Filter by the lowest variant price after discounts.""" + """ + Filter by the lowest variant price after discounts. + """ minimalPrice: PriceRangeInput - """Filter by when was the most recent update.""" + """ + Filter by when was the most recent update. + """ updatedAt: DateTimeRangeInput productTypes: [ID!] - """Filter on whether product is a gift card or not.""" + """ + 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. - + 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.""" + """ + Internal representation of an attribute name. + """ slug: String! - """Internal representation of a value (unique per attribute).""" + """ + Internal representation of a value (unique per attribute). + """ values: [String!] - """The range that the returned values should be in.""" + """ + The range that the returned values should be in. + """ valuesRange: IntRangeInput - """The date/time range that the returned values should be in.""" + """ + The date/time range that the returned values should be in. + """ dateTime: DateTimeRangeInput """ @@ -5941,31 +7658,45 @@ input AttributeInput { """ date: DateRangeInput - """The boolean value of the attribute.""" + """ + The boolean value of the attribute. + """ boolean: Boolean } input IntRangeInput { - """Value greater than or equal to.""" + """ + Value greater than or equal to. + """ gte: Int - """Value less than or equal to.""" + """ + Value less than or equal to. + """ lte: Int } input DateTimeRangeInput { - """Start date.""" + """ + Start date. + """ gte: DateTime - """End date.""" + """ + End date. + """ lte: DateTime } input DateRangeInput { - """Start date.""" + """ + Start date. + """ gte: Date - """End date.""" + """ + End date. + """ lte: Date } @@ -5980,20 +7711,26 @@ input ProductStockFilterInput { } input PriceRangeInput { - """Price greater than or equal to.""" + """ + Price greater than or equal to. + """ gte: Float - """Price less than or equal to.""" + """ + Price less than or equal to. + """ lte: Float } input ProductOrder { - """Specifies the direction in which to sort products.""" + """ + 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 @@ -6004,12 +7741,16 @@ input ProductOrder { """ attributeId: ID - """Sort products by the selected field.""" + """ + Sort products by the selected field. + """ field: ProductOrderField } enum ProductOrderField { - """Sort products by name.""" + """ + Sort products by name. + """ NAME """ @@ -6019,79 +7760,97 @@ enum ProductOrderField { """ 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.""" + """ + Sort products by update date. + """ LAST_MODIFIED - """Sort products by update date.""" + """ + Sort products by update date. + """ DATE - """Sort products by type.""" + """ + 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.""" + """ + 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.""" + """ + Sort products by rating. + """ RATING """ Sort products by creation date. - + Added in Saleor 3.8. """ CREATED_AT } -"""Represents an image.""" +""" +Represents an image. +""" type Image { - """The URL of the image.""" + """ + The URL of the image. + """ url: String! - """Alt text for an image.""" + """ + Alt text for an image. + """ alt: String } -"""An enumeration.""" +""" +An enumeration. +""" enum ThumbnailFormatEnum { WEBP } @@ -6099,7 +7858,9 @@ enum ThumbnailFormatEnum { type CategoryTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! seoTitle: String seoDescription: String @@ -6107,65 +7868,74 @@ type CategoryTranslation implements Node { """ 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.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) } -"""Represents a version of a product such as different size or color.""" +""" +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.""" + """ + 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.""" + """ + 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 @@ -6183,7 +7953,7 @@ type ProductVariant implements Node & ObjectWithMetadata { """ List of price information in channels for the product. - + Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. """ channelListings: [ProductVariantChannelListing!] @@ -6198,51 +7968,66 @@ type ProductVariant implements Node & ObjectWithMetadata { address: AddressInput ): VariantPricingInfo - """List of attributes assigned to this variant.""" + """ + List of attributes assigned to this variant. + """ attributes( - """Define scope of returned attributes.""" + """ + Define scope of returned attributes. + """ variantSelection: VariantAttributeScope ): [SelectedAttribute!]! - """Gross margin percentage value.""" + """ + 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 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.""" + """ + List of media for the product variant. + """ media: [ProductMedia!] - """Returns translated product variant fields for the given language code.""" + """ + Returns translated product variant fields for the given language code. + """ translation( - """A language code to return the translation for product variant.""" + """ + 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( @@ -6252,8 +8037,8 @@ type ProductVariant implements Node & ObjectWithMetadata { address: AddressInput """ - Two-letter ISO 3166-1 country code. - + Two-letter ISO 3166-1 country code. + DEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead. """ countryCode: CountryCode @@ -6269,8 +8054,8 @@ type ProductVariant implements Node & ObjectWithMetadata { 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. - + 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 @@ -6278,9 +8063,9 @@ 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 @@ -6288,66 +8073,90 @@ type ProductVariant implements Node & ObjectWithMetadata { updatedAt: DateTime! """ - External ID of this product. - + External ID of this product. + Added in Saleor 3.10. """ externalReference: String } -"""Represents product varaint channel listing.""" +""" +Represents product varaint channel listing. +""" type ProductVariantChannelListing implements Node { id: ID! channel: Channel! price: Money - """Cost price of the variant.""" + """ + 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 } -"""Represents preorder variant data for channel.""" +""" +Represents preorder variant data for channel. +""" type PreorderThreshold { - """Preorder threshold for product variant in this channel.""" + """ + Preorder threshold for product variant in this channel. + """ quantity: Int - """Number of sold product variant in this channel.""" + """ + Number of sold product variant in this channel. + """ soldUnits: Int! } -"""Represents availability of a variant in the storefront.""" +""" +Represents availability of a variant in the storefront. +""" type VariantPricingInfo { - """Whether it is in sale or not.""" + """ + Whether it is in sale or not. + """ onSale: Boolean - """The discount amount if in sale (null otherwise).""" + """ + The discount amount if in sale (null otherwise). + """ discount: TaxedMoney - """The discount amount in the local currency.""" + """ + The discount amount in the local currency. + """ discountLocalCurrency: TaxedMoney - """The price, with any discount subtracted.""" + """ + The price, with any discount subtracted. + """ price: TaxedMoney - """The price without any discount.""" + """ + The price without any discount. + """ priceUndiscounted: TaxedMoney - """The discounted price in the local currency.""" + """ + The discounted price in the local currency. + """ priceLocalCurrency: TaxedMoney } @@ -6355,60 +8164,96 @@ type VariantPricingInfo { 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 code. + """ currency: String! - """Amount of money including taxes.""" + """ + Amount of money including taxes. + """ gross: Money! - """Amount of money without taxes.""" + """ + Amount of money without taxes. + """ net: Money! - """Amount of taxes.""" + """ + Amount of taxes. + """ tax: Money! } input AddressInput { - """Given name.""" + """ + Given name. + """ firstName: String - """Family name.""" + """ + Family name. + """ lastName: String - """Company or organization.""" + """ + Company or organization. + """ companyName: String - """Address.""" + """ + Address. + """ streetAddress1: String - """Address.""" + """ + Address. + """ streetAddress2: String - """City.""" + """ + City. + """ city: String - """District.""" + """ + District. + """ cityArea: String - """Postal code.""" + """ + Postal code. + """ postalCode: String - """Country.""" + """ + Country. + """ country: CountryCode - """State or province.""" + """ + State or province. + """ countryArea: String - """Phone number.""" + """ + Phone number. + """ phone: String } -"""Represents a custom attribute.""" +""" +Represents a custom attribute. +""" type SelectedAttribute { - """Name of an attribute displayed in the interface.""" + """ + Name of an attribute displayed in the interface. + """ attribute: Attribute! - """Values of an attribute.""" + """ + Values of an attribute. + """ values: [AttributeValue!]! } @@ -6417,12 +8262,18 @@ enum ReportingPeriod { THIS_MONTH } -"""Represents a product image.""" +""" +Represents a product image. +""" type ProductImage { - """The ID of the image.""" + """ + The ID of the image. + """ id: ID! - """The alt text of the image.""" + """ + The alt text of the image. + """ alt: String """ @@ -6437,16 +8288,18 @@ type ProductImage { """ 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! } -"""Represents a product media.""" +""" +Represents a product media. +""" type ProductMedia implements Node { id: ID! sortOrder: Int @@ -6461,16 +8314,18 @@ type ProductMedia implements Node { """ 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! } -"""An enumeration.""" +""" +An enumeration. +""" enum ProductMediaType { IMAGE VIDEO @@ -6479,7 +8334,9 @@ enum ProductMediaType { type ProductVariantTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! name: String! } @@ -6487,48 +8344,52 @@ type ProductVariantTranslation implements Node { type DigitalContent implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -6538,10 +8399,14 @@ type DigitalContent implements Node & ObjectWithMetadata { maxDownloads: Int urlValidDays: Int - """List of URLs for the digital variant.""" + """ + List of URLs for the digital variant. + """ urls: [DigitalContentUrl!] - """Product variant assigned to digital content.""" + """ + Product variant assigned to digital content. + """ productVariant: ProductVariant! } @@ -6551,16 +8416,22 @@ type DigitalContentUrl implements Node { created: DateTime! downloadNum: Int! - """URL for digital content.""" + """ + URL for digital content. + """ url: String - """UUID of digital content.""" + """ + UUID of digital content. + """ token: UUID! } scalar UUID -"""Represents stock.""" +""" +Represents stock. +""" type Stock implements Node { id: ID! warehouse: Warehouse! @@ -6568,61 +8439,77 @@ type Stock implements Node { """ 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! } -"""Represents preorder settings for product variant.""" +""" +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.""" + """ + Preorder end date. + """ endDate: DateTime } -"""Represents availability of a product in the storefront.""" +""" +Represents availability of a product in the storefront. +""" type ProductPricingInfo { - """Whether it is in sale or not.""" + """ + Whether it is in sale or not. + """ onSale: Boolean - """The discount amount if in sale (null otherwise).""" + """ + The discount amount if in sale (null otherwise). + """ discount: TaxedMoney - """The discount amount in the local currency.""" + """ + The discount amount in the local currency. + """ discountLocalCurrency: TaxedMoney - """The discounted price range of the product variants.""" + """ + The discounted price range of the product variants. + """ priceRange: TaxedMoneyRange - """The undiscounted price range of the product variants.""" + """ + The undiscounted price range of the product variants. + """ priceRangeUndiscounted: TaxedMoneyRange """ @@ -6632,64 +8519,82 @@ 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! } -"""Represents a range of monetary values.""" +""" +Represents a range of monetary values. +""" type TaxedMoneyRange { - """Lower bound of a price range.""" + """ + Lower bound of a price range. + """ start: TaxedMoney - """Upper bound of a price range.""" + """ + Upper bound of a price range. + """ stop: TaxedMoney } -"""Represents product channel listing.""" +""" +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.") + 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.") + 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).""" + """ + 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.""" + """ + Whether the product is available for purchase. + """ isAvailableForPurchase: Boolean """ @@ -6709,64 +8614,76 @@ type Margin { } input MediaSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort media by the selected field.""" + """ + Sort media by the selected field. + """ field: MediaChoicesSortField! } enum MediaChoicesSortField { - """Sort media by ID.""" + """ + Sort media by ID. + """ ID } -"""Represents a collection of products.""" +""" +Represents a collection of products. +""" type Collection implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -6776,7 +8693,7 @@ type Collection implements Node & ObjectWithMetadata { """ Description of the collection. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString @@ -6789,29 +8706,46 @@ type Collection implements Node & ObjectWithMetadata { """ 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.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) - """List of products in this collection.""" + """ + List of products in this collection. + """ products( - """Filtering options for products.""" + """ + Filtering options for products. + """ filter: ProductFilterInput - """Sort products.""" + """ + Sort products. + """ sortBy: ProductOrder - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductCountableConnection backgroundImage( @@ -6822,23 +8756,27 @@ type Collection implements Node & ObjectWithMetadata { """ 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.""" + """ + Returns translated collection fields for the given language code. + """ translation( - """A language code to return the translation for collection.""" + """ + 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!] @@ -6847,7 +8785,9 @@ type Collection implements Node & ObjectWithMetadata { type CollectionTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! seoTitle: String seoDescription: String @@ -6855,27 +8795,35 @@ type CollectionTranslation implements Node { """ 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.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) } -"""Represents collection channel listing.""" +""" +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.") + 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 @@ -6886,7 +8834,9 @@ type CollectionChannelListing implements Node { type ProductTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! seoTitle: String seoDescription: String @@ -6894,33 +8844,44 @@ type ProductTranslation implements Node { """ 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.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) } type WarehouseCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [WarehouseCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type WarehouseCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Warehouse! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -6934,36 +8895,61 @@ input WarehouseFilterInput { } input WarehouseSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort warehouses by the selected field.""" + """ + Sort warehouses by the selected field. + """ field: WarehouseSortField! } enum WarehouseSortField { - """Sort warehouses by name.""" + """ + Sort warehouses by name. + """ NAME } type TranslatableItemConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [TranslatableItemEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type TranslatableItemEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: TranslatableItem! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } -union TranslatableItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent +union TranslatableItem = + ProductTranslatableContent + | CollectionTranslatableContent + | CategoryTranslatableContent + | AttributeTranslatableContent + | AttributeValueTranslatableContent + | ProductVariantTranslatableContent + | PageTranslatableContent + | ShippingMethodTranslatableContent + | SaleTranslatableContent + | VoucherTranslatableContent + | MenuItemTranslatableContent type ProductTranslatableContent implements Node { id: ID! @@ -6973,28 +8959,42 @@ type ProductTranslatableContent implements Node { """ 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.") + 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.""" + """ + Returns translated product fields for the given language code. + """ translation( - """A language code to return the translation for product.""" + """ + 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.") + """ + 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.""" + """ + List of product attribute values that can be translated. + """ attributeValues: [AttributeValueTranslatableContent!]! } @@ -7004,26 +9004,37 @@ type AttributeValueTranslatableContent implements Node { """ Attribute value. - + Rich text format. For reference see https://editorjs.io/ """ richText: JSONString - """Attribute plain text value.""" + """ + Attribute plain text value. + """ plainText: String - """Returns translated attribute value fields for the given language code.""" + """ + Returns translated attribute value fields for the given language code. + """ translation( - """A language code to return the translation for attribute value.""" + """ + 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.") + """ + 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 @@ -7033,14 +9044,23 @@ type AttributeTranslatableContent implements Node { id: ID! name: String! - """Returns translated attribute fields for the given language code.""" + """ + Returns translated attribute fields for the given language code. + """ translation( - """A language code to return the translation for attribute.""" + """ + 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.") + """ + 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." + ) } type CollectionTranslatableContent implements Node { @@ -7051,26 +9071,38 @@ type CollectionTranslatableContent implements Node { """ 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.") + 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.""" + """ + Returns translated collection fields for the given language code. + """ translation( - """A language code to return the translation for collection.""" + """ + 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.") + """ + 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." + ) } type CategoryTranslatableContent implements Node { @@ -7081,42 +9113,65 @@ type CategoryTranslatableContent implements Node { """ 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.") + 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.""" + """ + Returns translated category fields for the given language code. + """ translation( - """A language code to return the translation for category.""" + """ + 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.") + """ + 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." + ) } type ProductVariantTranslatableContent implements Node { id: ID! name: String! - """Returns translated product variant fields for the given language code.""" + """ + Returns translated product variant fields for the given language code. + """ translation( - """A language code to return the translation for product variant.""" + """ + 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.") + """ + 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.""" + """ + List of product variant attribute values that can be translated. + """ attributeValues: [AttributeValueTranslatableContent!]! } @@ -7128,37 +9183,51 @@ type PageTranslatableContent implements Node { """ 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.") + 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.""" + """ + Returns translated page fields for the given language code. + """ translation( - """A language code to return the translation for page.""" + """ + 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.") + 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.""" + """ + List of page content attribute values that can be translated. + """ attributeValues: [AttributeValueTranslatableContent!]! } type PageTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! seoTitle: String seoDescription: String @@ -7166,17 +9235,20 @@ type PageTranslation implements Node { """ 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.") + contentJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `content` field instead." + ) } """ @@ -7185,48 +9257,52 @@ A static page that can be manually added by a shop operator through the dashboar type Page implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -7236,15 +9312,18 @@ type Page implements Node & ObjectWithMetadata { """ 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.") + 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 @@ -7255,18 +9334,27 @@ type Page implements Node & ObjectWithMetadata { """ 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.") + 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.""" + """ + Returns translated page fields for the given language code. + """ translation( - """A language code to return the translation for page.""" + """ + A language code to return the translation for page. + """ languageCode: LanguageCodeEnum! ): PageTranslation - """List of attributes assigned to this product.""" + """ + List of attributes assigned to this product. + """ attributes: [SelectedAttribute!]! } @@ -7276,81 +9364,95 @@ Represents a type of page. It defines what attributes are available to pages of type PageType implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 @@ -7362,47 +9464,63 @@ type ShippingMethodTranslatableContent implements Node { """ 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.""" + """ + Returns translated shipping method fields for the given language code. + """ translation( - """A language code to return the translation for shipping method.""" + """ + 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.") + shippingMethod: ShippingMethodType + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type SaleTranslatableContent implements Node { id: ID! name: String! - """Returns translated sale fields for the given language code.""" + """ + Returns translated sale fields for the given language code. + """ translation( - """A language code to return the translation for sale.""" + """ + 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.") + sale: Sale + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type SaleTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! name: String } @@ -7413,48 +9531,52 @@ Sales allow creating discounts for categories, collections or products and are v type Sale implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -7465,97 +9587,139 @@ type Sale implements Node & ObjectWithMetadata { created: DateTime! updatedAt: DateTime! - """List of categories this sale applies to.""" + """ + List of categories this sale applies to. + """ categories( - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductVariantCountableConnection - """Returns translated sale fields for the given language code.""" + """ + Returns translated sale fields for the given language code. + """ translation( - """A language code to return the translation for sale.""" + """ + 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.""" + """ + Sale value. + """ discountValue: Float - """Currency code for sale.""" + """ + Currency code for sale. + """ currency: String } @@ -7565,40 +9729,58 @@ enum SaleType { } type CollectionCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [CollectionCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type CollectionCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Collection! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } type ProductVariantCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [ProductVariantCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type ProductVariantCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: ProductVariant! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } -"""Represents sale channel listing.""" +""" +Represents sale channel listing. +""" type SaleChannelListing implements Node { id: ID! channel: Channel! @@ -7610,24 +9792,33 @@ type VoucherTranslatableContent implements Node { id: ID! name: String - """Returns translated voucher fields for the given language code.""" + """ + Returns translated voucher fields for the given language code. + """ translation( - """A language code to return the translation for voucher.""" + """ + 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.") + voucher: Voucher + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type VoucherTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! name: String } @@ -7638,48 +9829,52 @@ Vouchers allow giving discounts to particular customers on categories, collectio type Voucher implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -7694,107 +9889,157 @@ type Voucher implements Node & ObjectWithMetadata { onlyForStaff: Boolean! minCheckoutItemsQuantity: Int - """List of categories this voucher applies to.""" + """ + List of categories this voucher applies to. + """ categories( - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): ProductVariantCountableConnection - """List of countries available for the shipping voucher.""" + """ + List of countries available for the shipping voucher. + """ countries: [CountryDisplay!] - """Returns translated voucher fields for the given language code.""" + """ + Returns translated voucher fields for the given language code. + """ translation( - """A language code to return the translation for voucher.""" + """ + A language code to return the translation for voucher. + """ languageCode: LanguageCodeEnum! ): VoucherTranslation - """Determines a type of discount for voucher - value or percentage""" + """ + Determines a type of discount for voucher - value or percentage + """ discountValueType: DiscountValueTypeEnum! - """Voucher value.""" + """ + Voucher value. + """ discountValue: Float - """Currency code for voucher.""" + """ + Currency code for voucher. + """ currency: String - """Minimum order value to apply voucher.""" + """ + Minimum order value to apply voucher. + """ minSpent: Money - """Determines a type of voucher.""" + """ + 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!] @@ -7811,7 +10056,9 @@ enum VoucherTypeEnum { SPECIFIC_PRODUCT } -"""Represents voucher channel listing.""" +""" +Represents voucher channel listing. +""" type VoucherChannelListing implements Node { id: ID! channel: Channel! @@ -7824,22 +10071,31 @@ type MenuItemTranslatableContent implements Node { id: ID! name: String! - """Returns translated menu item fields for the given language code.""" + """ + Returns translated menu item fields for the given language code. + """ translation( - """A language code to return the translation for menu item.""" + """ + 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.") + menuItem: MenuItem + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type MenuItemTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! name: String! } @@ -7850,48 +10106,52 @@ Represents a single item of the related menu. Can store categories, collection o type MenuItem implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -7912,12 +10172,18 @@ type MenuItem implements Node & ObjectWithMetadata { level: Int! children: [MenuItem!] - """URL to the menu item.""" + """ + URL to the menu item. + """ url: String - """Returns translated menu item fields for the given language code.""" + """ + Returns translated menu item fields for the given language code. + """ translation( - """A language code to return the translation for menu item.""" + """ + A language code to return the translation for menu item. + """ languageCode: LanguageCodeEnum! ): MenuItemTranslation } @@ -7928,48 +10194,52 @@ Represents a single menu - an object that is used to help navigate through the s type Menu implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -8000,59 +10270,69 @@ 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.""" + """ + The ID of the object. + """ id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + A channel to which the tax configuration applies to. + """ channel: Channel! - """Determines whether taxes are charged in the given channel.""" + """ + Determines whether taxes are charged in the given channel. + """ chargeTaxes: Boolean! """ @@ -8065,10 +10345,14 @@ type TaxConfiguration implements Node & ObjectWithMetadata { """ displayGrossPrices: Boolean! - """Determines whether prices are entered with the tax included.""" + """ + Determines whether prices are entered with the tax included. + """ pricesEnteredWithTax: Boolean! - """List of country-specific exceptions in tax configuration.""" + """ + List of country-specific exceptions in tax configuration. + """ countries: [TaxConfigurationPerCountry!]! } @@ -8085,10 +10369,14 @@ 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 in which this configuration applies. + """ country: CountryDisplay! - """Determines whether taxes are charged in this country.""" + """ + Determines whether taxes are charged in this country. + """ chargeTaxes: Boolean! """ @@ -8103,19 +10391,27 @@ type TaxConfigurationPerCountry { } type TaxConfigurationCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [TaxConfigurationCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type TaxConfigurationCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: TaxConfiguration! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -8125,32 +10421,46 @@ input TaxConfigurationFilterInput { } type TaxClassCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [TaxClassCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type TaxClassCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: TaxClass! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } input TaxClassSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort tax classes by the selected field.""" + """ + Sort tax classes by the selected field. + """ field: TaxClassSortField! } enum TaxClassSortField { - """Sort tax classes by name.""" + """ + Sort tax classes by name. + """ NAME } @@ -8168,27 +10478,39 @@ 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.""" + """ + A country for which tax class rates are grouped. + """ country: CountryDisplay! - """List of tax class rates.""" + """ + List of tax class rates. + """ taxClassCountryRates: [TaxClassCountryRate!]! } type StockCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [StockCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type StockCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Stock! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -8201,242 +10523,319 @@ input StockFilterInput { Represents a shop resource containing general shop data and configuration. """ type Shop { - """List of available payment gateways.""" + """ + List of available payment gateways. + """ availablePaymentGateways( """ - A currency for which gateways will be returned. - + 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.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): [PaymentGateway!]! - """List of available external authentications.""" + """ + List of available external authentications. + """ availableExternalAuthentications: [ExternalAuthentication!]! - """Shipping methods that are available for the shop.""" + """ + Shipping methods that are available for the shop. + """ availableShippingMethods( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String! - """Address for which available shipping methods should be returned.""" + """ + 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.""" + """ + List of countries available in the shop. + """ countries( """ - A language code to return the translation for. - + A language code to return the translation for. + DEPRECATED: this field will be removed in Saleor 4.0. """ languageCode: LanguageCodeEnum - """Filtering options for countries""" + """ + Filtering options for countries + """ filter: CountryFilterInput ): [CountryDisplay!]! - """Shop's default country.""" + """ + 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.""" + """ + Shop's description. + """ description: String - """Shop's domain data.""" + """ + Shop's domain data. + """ domain: Domain! - """List of the shops's supported languages.""" + """ + List of the shops's supported languages. + """ languages: [LanguageDisplay!]! - """Shop's name.""" + """ + Shop's name. + """ name: String! - """List of available permissions.""" + """ + List of available permissions. + """ permissions: [Permission!]! - """List of possible phone prefixes.""" + """ + List of possible phone prefixes. + """ phonePrefixes: [String!]! - """Header text.""" + """ + 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.""" + """ + Enable inventory tracking. + """ trackInventoryByDefault: Boolean - """Default weight unit.""" + """ + Default weight unit. + """ defaultWeightUnit: WeightUnitsEnum - """Returns translated shop fields for the given language code.""" + """ + Returns translated shop fields for the given language code. + """ translation( - """A language code to return the translation for shop.""" + """ + 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.""" + """ + Company address. + """ companyAddress: Address - """URL of a view where customers can set their password.""" + """ + 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.") + """ + 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.") + """ + 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.") + """ + 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." + ) } """ Available payment gateway backend with configuration necessary to setup client. """ type PaymentGateway { - """Payment gateway name.""" + """ + Payment gateway name. + """ name: String! - """Payment gateway ID.""" + """ + Payment gateway ID. + """ id: ID! - """Payment gateway client configuration.""" + """ + Payment gateway client configuration. + """ config: [GatewayConfigLine!]! - """Payment gateway supported currencies.""" + """ + Payment gateway supported currencies. + """ currencies: [String!]! } -"""Payment gateway client configuration key and value pair.""" +""" +Payment gateway client configuration key and value pair. +""" type GatewayConfigLine { - """Gateway config key.""" + """ + Gateway config key. + """ field: String! - """Gateway config value for key.""" + """ + Gateway config value for key. + """ value: String } type ExternalAuthentication { - """ID of external authentication plugin.""" + """ + ID of external authentication plugin. + """ id: String! - """Name of external authentication plugin.""" + """ + Name of external authentication plugin. + """ name: String } @@ -8447,22 +10846,32 @@ input CountryFilterInput { attachedToShippingZones: Boolean } -"""Represents shop's domain.""" +""" +Represents shop's domain. +""" type Domain { - """The host name of the domain.""" + """ + The host name of the domain. + """ host: String! - """Inform if SSL is enabled.""" + """ + Inform if SSL is enabled. + """ sslEnabled: Boolean! - """Shop's absolute URL.""" + """ + Shop's absolute URL. + """ url: String! } type ShopTranslation implements Node { id: ID! - """Translation language.""" + """ + Translation language. + """ language: LanguageDisplay! headerText: String! description: String! @@ -8474,62 +10883,74 @@ Represents a recipient of email notifications send by Saleor, such as notificati type StaffNotificationRecipient implements Node { id: ID! - """Returns a user subscribed to email notifications.""" + """ + Returns a user subscribed to email notifications. + """ user: User - """Returns email address of a user subscribed to email notifications.""" + """ + Returns email address of a user subscribed to email notifications. + """ email: String - """Determines if a notification active.""" + """ + Determines if a notification active. + """ active: Boolean } -"""Represents user data.""" +""" +Represents user data. +""" type User implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -8539,64 +10960,100 @@ type User implements Node & ObjectWithMetadata { isStaff: Boolean! isActive: Boolean! - """List of all user's addresses.""" + """ + 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 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.""" + """ + Returns the checkout UUID's assigned to this user. + """ checkoutTokens( - """Slug of a channel for which the data should be returned.""" + """ + 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.") + ): [UUID!] + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutIds` instead.") - """Returns the checkout ID's assigned to this user.""" + """ + Returns the checkout ID's assigned to this user. + """ checkoutIds( - """Slug of a channel for which the data should be returned.""" + """ + 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.""" + """ + 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): CheckoutCountableConnection - """List of the user gift cards.""" + """ + List of the user gift cards. + """ giftCards( - """Return the elements in the list that come before the specified cursor.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + 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 @@ -8605,26 +11062,40 @@ type User implements Node & ObjectWithMetadata { 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.""" + """ + 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.""" + """ + Return the elements in the list that come after the specified cursor. + """ after: String - """Return the first n elements from the list.""" + """ + Return the first n elements from the list. + """ first: Int - """Return the last n elements from the list.""" + """ + Return the last n elements from the list. + """ last: Int ): OrderCountableConnection - """List of user's permissions.""" + """ + List of user's permissions. + """ userPermissions: [UserPermission!] - """List of user's permission groups.""" + """ + List of user's permission groups. + """ permissionGroups: [Group!] - """List of user's permission groups which user can manage.""" + """ + List of user's permission groups which user can manage. + """ editableGroups: [Group!] avatar( """ @@ -8634,9 +11105,9 @@ type User implements Node & ObjectWithMetadata { """ 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 @@ -8644,25 +11115,31 @@ type User implements Node & ObjectWithMetadata { """ List of events associated with the user. - + Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. """ events: [CustomerEvent!] - """List of stored payment sources.""" + """ + List of stored payment sources. + """ storedPaymentSources( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): [PaymentSource!] - """User language code.""" + """ + User language code. + """ languageCode: LanguageCodeEnum! defaultShippingAddress: Address defaultBillingAddress: Address """ - External ID of this user. - + External ID of this user. + Added in Saleor 3.10. """ externalReference: String @@ -8671,52 +11148,58 @@ type User implements Node & ObjectWithMetadata { updatedAt: DateTime! } -"""Checkout object.""" +""" +Checkout object. +""" type Checkout implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -8732,39 +11215,54 @@ type Checkout implements Node & ObjectWithMetadata { 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. + """ + 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.""" + """ + 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.""" + """ + List of available payment gateways. + """ availablePaymentGateways: [PaymentGateway!]! - """Email of a customer.""" + """ + Email of a customer. + """ email: String - """List of gift cards associated with this checkout.""" + """ + List of gift cards associated with this checkout. + """ giftCards: [GiftCard!]! - """Returns True, if checkout requires shipping.""" + """ + Returns True, if checkout requires shipping. + """ isShippingRequired: Boolean! - """The number of items purchased.""" + """ + 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 @@ -8774,34 +11272,43 @@ type Checkout implements Node & ObjectWithMetadata { """ lines: [CheckoutLine!]! - """The price of the shipping, with all the taxes included.""" + """ + 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 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.""" + """ + 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.""" + """ + The checkout's token. + """ token: UUID! """ @@ -8809,23 +11316,25 @@ type Checkout implements Node & ObjectWithMetadata { """ totalPrice: TaxedMoney! - """Checkout language code.""" + """ + 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! @@ -8837,56 +11346,64 @@ A gift card is a prepaid electronic payment card accepted in stores. They can be type GiftCard implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + Code in format which allows displaying in a user interface. + """ displayCode: String! - """Last 4 characters of gift card code.""" + """ + Last 4 characters of gift card code. + """ last4CodeChars: String! """ @@ -8897,38 +11414,38 @@ 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 """ 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 @@ -8937,54 +11454,56 @@ type GiftCard implements Node & ObjectWithMetadata { """ 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.""" + """ + 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 @@ -8992,13 +11511,21 @@ type GiftCard implements Node & ObjectWithMetadata { 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.") + """ + 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.") + """ + 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.""" + """ + Start date of gift card. + """ startDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0.") } @@ -9012,10 +11539,14 @@ Note: this API is currently in Feature Preview and can be subject to changes at type GiftCardEvent implements Node { id: ID! - """Date when event happened at in ISO 8601 format.""" + """ + Date when event happened at in ISO 8601 format. + """ date: DateTime - """Gift card event type.""" + """ + Gift card event type. + """ type: GiftCardEventsEnum """ @@ -9028,35 +11559,55 @@ type GiftCardEvent implements Node { """ app: App - """Content of the event.""" + """ + Content of the event. + """ message: String - """Email of the customer.""" + """ + Email of the customer. + """ email: String - """The order ID where gift card was used or bought.""" + """ + 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.""" + """ + User-friendly number of an order where gift card was used or bought. + """ orderNumber: String - """The list of gift card tags.""" + """ + The list of gift card tags. + """ tags: [String!] - """The list of old gift card tags.""" + """ + The list of old gift card tags. + """ oldTags: [String!] - """The gift card balance.""" + """ + The gift card balance. + """ balance: GiftCardEventBalance - """The gift card expiry date.""" + """ + The gift card expiry date. + """ expiryDate: Date - """Previous gift card expiry date.""" + """ + Previous gift card expiry date. + """ oldExpiryDate: Date } -"""An enumeration.""" +""" +An enumeration. +""" enum GiftCardEventsEnum { ISSUED BOUGHT @@ -9073,16 +11624,24 @@ enum GiftCardEventsEnum { } type GiftCardEventBalance { - """Initial balance of the gift card.""" + """ + Initial balance of the gift card. + """ initialBalance: Money - """Current balance of the gift card.""" + """ + Current balance of the gift card. + """ currentBalance: Money! - """Previous initial balance of the gift card.""" + """ + Previous initial balance of the gift card. + """ oldInitialBalance: Money - """Previous current balance of the gift card.""" + """ + Previous current balance of the gift card. + """ oldCurrentBalance: Money } @@ -9103,71 +11662,87 @@ type GiftCardTag implements Node { name: String! } -"""Represents an item in the checkout.""" +""" +Represents an item in the checkout. +""" type CheckoutLine implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + The unit price of the checkout line, with taxes and discounts. + """ unitPrice: TaxedMoney! - """The unit price of the checkout line, without discounts.""" + """ + The unit price of the checkout line, without discounts. + """ undiscountedUnitPrice: Money! - """The sum of the checkout line price, taxes and discounts.""" + """ + The sum of the checkout line price, taxes and discounts. + """ totalPrice: TaxedMoney! - """The sum of the checkout line price, without discounts.""" + """ + The sum of the checkout line price, without discounts. + """ undiscountedTotalPrice: Money! - """Indicates whether the item need to be delivered.""" + """ + Indicates whether the item need to be delivered. + """ requiresShipping: Boolean! } @@ -9188,51 +11763,57 @@ 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.""" + """ + The ID of the object. + """ id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -9244,35 +11825,51 @@ type TransactionItem implements Node & ObjectWithMetadata { """ actions: [TransactionActionEnum!]! - """Total amount authorized for this payment.""" + """ + Total amount authorized for this payment. + """ authorizedAmount: Money! - """Total amount refunded for this payment.""" + """ + Total amount refunded for this payment. + """ refundedAmount: Money! - """Total amount voided for this payment.""" + """ + Total amount voided for this payment. + """ voidedAmount: Money! - """Total amount charged for this payment.""" + """ + Total amount charged for this payment. + """ chargedAmount: Money! - """Status of transaction.""" + """ + Status of transaction. + """ status: String! - """Type of transaction.""" + """ + Type of transaction. + """ type: String! - """Reference of transaction.""" + """ + Reference of transaction. + """ reference: String! """ The related order. - + Added in Saleor 3.6. """ order: Order - """List of all transaction's events.""" + """ + List of all transaction's events. + """ events: [TransactionEvent!]! } @@ -9290,52 +11887,58 @@ enum TransactionActionEnum { VOID } -"""Represents an order in the shop.""" +""" +Represents an order in the shop. +""" type Order implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -9362,10 +11965,14 @@ type Order implements Node & ObjectWithMetadata { collectionPointName: String channel: Channel! - """List of shipments for the order.""" + """ + List of shipments for the order. + """ fulfillments: [Fulfillment!]! - """List of order lines.""" + """ + List of order lines. + """ lines: [OrderLine!]! """ @@ -9373,17 +11980,22 @@ type Order implements Node & ObjectWithMetadata { """ 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 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.""" + """ + 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!]! @@ -9393,128 +12005,159 @@ type Order implements Node & ObjectWithMetadata { """ invoices: [Invoice!]! - """User-friendly number of an order.""" + """ + User-friendly number of an order. + """ number: String! - """The ID of the order that was the base for this order.""" + """ + The ID of the order that was the base for this order. + """ original: ID - """The order origin.""" + """ + The order origin. + """ origin: OrderOriginEnum! - """Informs if an order is fully paid.""" + """ + Informs if an order is fully paid. + """ isPaid: Boolean! - """Internal payment status.""" + """ + Internal payment status. + """ paymentStatus: PaymentChargeStatusEnum! - """User-friendly payment status.""" + """ + 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.""" + """ + List of payments for the order. + """ payments: [Payment!]! - """Total amount of the order.""" + """ + Total amount of the order. + """ total: TaxedMoney! - """Undiscounted total amount of the order.""" + """ + 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.") + """ + 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.""" + """ + Total price of shipping. + """ shippingPrice: TaxedMoney! - """The shipping tax rate value.""" + """ + 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.""" + """ + List of user gift cards. + """ giftCards: [GiftCard!]! customerNote: String! weight: Weight! redirectUrl: String - """The sum of line prices not including shipping.""" + """ + The sum of line prices not including shipping. + """ subtotal: TaxedMoney! - """User-friendly order status.""" + """ + User-friendly order status. + """ statusDisplay: String! """ @@ -9522,20 +12165,26 @@ type Order implements Node & ObjectWithMetadata { """ canFinalize: Boolean! - """Amount authorized for the order.""" + """ + Amount authorized for the order. + """ totalAuthorized: Money! - """Amount captured by payment.""" + """ + Amount captured by payment. + """ totalCaptured: 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.""" + """ + The difference between the paid and the order total amount. + """ totalBalance: Money! """ @@ -9543,55 +12192,83 @@ type Order implements Node & ObjectWithMetadata { """ userEmail: String - """Returns True, if order requires shipping.""" + """ + 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. ") + 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.""" + """ + 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.") + """ + 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.") + """ + 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. ") + """ + 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.""" + """ + List of all discounts assigned to the order. + """ discounts: [OrderDiscount!]! - """List of errors that occurred during order validation.""" + """ + 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. - + External ID of this order. + Added in Saleor 3.10. """ externalReference: String } -"""An enumeration.""" +""" +An enumeration. +""" enum OrderStatus { DRAFT UNCONFIRMED @@ -9603,52 +12280,58 @@ enum OrderStatus { CANCELED } -"""Represents order fulfillment.""" +""" +Represents order fulfillment. +""" type Fulfillment implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -9657,17 +12340,25 @@ type Fulfillment implements Node & ObjectWithMetadata { trackingNumber: String! created: DateTime! - """List of lines for the fulfillment.""" + """ + List of lines for the fulfillment. + """ lines: [FulfillmentLine!] - """User-friendly fulfillment status.""" + """ + User-friendly fulfillment status. + """ statusDisplay: String - """Warehouse from fulfillment was fulfilled.""" + """ + Warehouse from fulfillment was fulfilled. + """ warehouse: Warehouse } -"""An enumeration.""" +""" +An enumeration. +""" enum FulfillmentStatus { FULFILLED REFUNDED @@ -9678,59 +12369,67 @@ enum FulfillmentStatus { WAITING_FOR_APPROVAL } -"""Represents line of the fulfillment.""" +""" +Represents line of the fulfillment. +""" type FulfillmentLine implements Node { id: ID! quantity: Int! orderLine: OrderLine } -"""Represents order line of particular order.""" +""" +Represents order line of particular order. +""" type OrderLine implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -9752,15 +12451,17 @@ type OrderLine implements Node & ObjectWithMetadata { """ 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.""" + """ + Price of the single item in the order line. + """ unitPrice: TaxedMoney! """ @@ -9768,13 +12469,19 @@ type OrderLine implements Node & ObjectWithMetadata { """ undiscountedUnitPrice: TaxedMoney! - """The discount applied to the single order line.""" + """ + The discount applied to the single order line. + """ unitDiscount: Money! - """Value of the discount. Can store fixed value or percent value""" + """ + Value of the discount. Can store fixed value or percent value + """ unitDiscountValue: PositiveDecimal! - """Price of the order line.""" + """ + Price of the order line. + """ totalPrice: TaxedMoney! """ @@ -9782,63 +12489,69 @@ type OrderLine implements Node & ObjectWithMetadata { """ variant: ProductVariant - """Product name in the customer's language""" + """ + Product name in the customer's language + """ translatedProductName: String! - """Variant name in the customer's language""" + """ + 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""" + """ + 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!]! @@ -9851,124 +12564,156 @@ Should be used in places where value must be positive. """ scalar PositiveDecimal -"""Represents allocation.""" +""" +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! } enum OrderAction { - """Represents the capture action.""" + """ + Represents the capture action. + """ CAPTURE - """Represents a mark-as-paid action.""" + """ + Represents a mark-as-paid action. + """ MARK_AS_PAID - """Represents a refund action.""" + """ + Represents a refund action. + """ REFUND - """Represents a void action.""" + """ + Represents a void action. + """ VOID } -"""Represents an Invoice.""" +""" +Represents an Invoice. +""" type Invoice implements ObjectWithMetadata & Job & Node { - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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.""" + """ + Job status. + """ status: JobStatusEnum! createdAt: DateTime! updatedAt: DateTime! message: String - """The ID of the object.""" + """ + The ID of the object. + """ id: ID! number: String externalUrl: String - """URL to download an invoice.""" + """ + URL to download an invoice. + """ url: String """ Order related to the invoice. - + Added in Saleor 3.10. """ order: Order } interface Job { - """Job status.""" + """ + Job status. + """ status: JobStatusEnum! - """Created date time of job in ISO 8601 format.""" + """ + Created date time of job in ISO 8601 format. + """ createdAt: DateTime! - """Date time of job last update in ISO 8601 format.""" + """ + Date time of job last update in ISO 8601 format. + """ updatedAt: DateTime! - """Job message.""" + """ + Job message. + """ message: String } -"""An enumeration.""" +""" +An enumeration. +""" enum JobStatusEnum { PENDING SUCCESS @@ -9976,14 +12721,18 @@ enum JobStatusEnum { DELETED } -"""An enumeration.""" +""" +An enumeration. +""" enum OrderOriginEnum { CHECKOUT DRAFT REISSUE } -"""An enumeration.""" +""" +An enumeration. +""" enum PaymentChargeStatusEnum { NOT_CHARGED PENDING @@ -10036,52 +12785,58 @@ enum OrderChargeStatusEnum { OVERCHARGED } -"""Represents a payment of a given type.""" +""" +Represents a payment of a given type. +""" type Payment implements Node & ObjectWithMetadata { id: ID! - """List of private metadata items. Requires staff permissions to access.""" + """ + 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.""" + """ + 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 @@ -10096,53 +12851,63 @@ type Payment implements Node & ObjectWithMetadata { """ IP address of the user who created the payment. - + Requires one of the following permissions: MANAGE_ORDERS. """ customerIpAddress: String - """Internal payment status.""" + """ + 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 amount of the payment. + """ total: Money - """Total amount captured for this payment.""" + """ + 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.""" + """ + The details of the card used for this payment. + """ creditCard: CreditCard } -"""An object representing a single payment.""" +""" +An object representing a single payment. +""" type Transaction implements Node { id: ID! created: DateTime! @@ -10153,11 +12918,15 @@ type Transaction implements Node { error: String gatewayResponse: JSONString! - """Total amount of the transaction.""" + """ + Total amount of the transaction. + """ amount: Money } -"""An enumeration.""" +""" +An enumeration. +""" enum TransactionKind { EXTERNAL AUTH @@ -10172,33 +12941,51 @@ enum TransactionKind { } type CreditCard { - """Card brand.""" + """ + Card brand. + """ brand: String! - """First 4 digits of the card number.""" + """ + First 4 digits of the card number. + """ firstDigits: String - """Last 4 digits of the card number.""" + """ + Last 4 digits of the card number. + """ lastDigits: String! - """Two-digit number representing the card’s expiration month.""" + """ + Two-digit number representing the card’s expiration month. + """ expMonth: Int - """Four-digit number representing the card’s expiration year.""" + """ + Four-digit number representing the card’s expiration year. + """ expYear: Int } -"""History log of the order.""" +""" +History log of the order. +""" type OrderEvent implements Node { id: ID! - """Date when event happened at in ISO 8601 format.""" + """ + Date when event happened at in ISO 8601 format. + """ date: DateTime - """Order event type.""" + """ + Order event type. + """ type: OrderEventsEnum - """User who performed the action.""" + """ + User who performed the action. + """ user: User """ @@ -10206,68 +12993,110 @@ type OrderEvent implements Node { """ app: App - """Content of the event.""" + """ + Content of the event. + """ message: String - """Email of the customer.""" + """ + Email of the customer. + """ email: String - """Type of an email sent to the customer.""" + """ + Type of an email sent to the customer. + """ emailType: OrderEventsEmailsEnum - """Amount of money.""" + """ + Amount of money. + """ amount: Float - """The payment reference from the payment provider.""" + """ + The payment reference from the payment provider. + """ paymentId: String - """The payment gateway of the payment.""" + """ + The payment gateway of the payment. + """ paymentGateway: String - """Number of items.""" + """ + Number of items. + """ quantity: Int - """Composed ID of the Fulfillment.""" + """ + Composed ID of the Fulfillment. + """ composedId: String - """User-friendly number of an order.""" + """ + User-friendly number of an order. + """ orderNumber: String - """Number of an invoice related to the order.""" + """ + Number of an invoice related to the order. + """ invoiceNumber: String - """List of oversold lines names.""" + """ + List of oversold lines names. + """ oversoldItems: [String!] - """The concerned lines.""" + """ + The concerned lines. + """ lines: [OrderEventOrderLineObject!] - """The lines fulfilled.""" + """ + The lines fulfilled. + """ fulfilledItems: [FulfillmentLine!] - """The warehouse were items were restocked.""" + """ + The warehouse were items were restocked. + """ warehouse: Warehouse - """The transaction reference of captured payment.""" + """ + The transaction reference of captured payment. + """ transactionReference: String - """Define if shipping costs were included to the refund.""" + """ + Define if shipping costs were included to the refund. + """ shippingCostsIncluded: Boolean - """The order which is related to this order.""" + """ + The order which is related to this order. + """ relatedOrder: Order - """The discount applied to the order.""" + """ + The discount applied to the order. + """ discount: OrderEventDiscountObject - """The status of payment's transaction.""" + """ + The status of payment's transaction. + """ status: TransactionStatus - """The reference of payment's transaction.""" + """ + The reference of payment's transaction. + """ reference: String } -"""An enumeration.""" +""" +An enumeration. +""" enum OrderEventsEnum { DRAFT_CREATED DRAFT_CREATED_FROM_REPLACE @@ -10317,7 +13146,9 @@ enum OrderEventsEnum { OTHER } -"""An enumeration.""" +""" +An enumeration. +""" enum OrderEventsEmailsEnum { PAYMENT_CONFIRMATION CONFIRMED @@ -10331,74 +13162,108 @@ enum OrderEventsEmailsEnum { } type OrderEventOrderLineObject { - """The variant quantity.""" + """ + The variant quantity. + """ quantity: Int - """The order line.""" + """ + The order line. + """ orderLine: OrderLine - """The variant name.""" + """ + The variant name. + """ itemName: String - """The discount applied to the order line.""" + """ + The discount applied to the order line. + """ discount: OrderEventDiscountObject } type OrderEventDiscountObject { - """Type of the discount: fixed or percent.""" + """ + Type of the discount: fixed or percent. + """ valueType: DiscountValueTypeEnum! - """Value of the discount. Can store fixed value or percent value.""" + """ + Value of the discount. Can store fixed value or percent value. + """ value: PositiveDecimal! - """Explanation for the applied discount.""" + """ + Explanation for the applied discount. + """ reason: String - """Returns amount of discount.""" + """ + Returns amount of discount. + """ amount: Money - """Type of the discount: fixed or percent.""" + """ + Type of the discount: fixed or percent. + """ oldValueType: DiscountValueTypeEnum - """Value of the discount. Can store fixed value or percent value.""" + """ + Value of the discount. Can store fixed value or percent value. + """ oldValue: PositiveDecimal - """Returns amount of discount.""" + """ + Returns amount of discount. + """ oldAmount: Money } -"""An enumeration.""" +""" +An enumeration. +""" enum TransactionStatus { PENDING SUCCESS FAILURE } -"""Contains all details related to the applied discount to the order.""" +""" +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""" + """ + Type of the discount: fixed or percent + """ valueType: DiscountValueTypeEnum! - """Value of the discount. Can store fixed value or percent value""" + """ + 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.""" + """ + Returns amount of discount. + """ amount: Money! } -"""An enumeration.""" +""" +An enumeration. +""" enum OrderDiscountType { VOUCHER MANUAL @@ -10410,26 +13275,40 @@ type OrderError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: OrderErrorCode! - """Warehouse ID which causes the error.""" + """ + Warehouse ID which causes the error. + """ warehouse: ID - """List of order line IDs that cause the error.""" + """ + List of order line IDs that cause the error. + """ orderLines: [ID!] - """List of product variants that are associated with the error""" + """ + List of product variants that are associated with the error + """ variants: [ID!] - """A type of address that causes the error.""" + """ + A type of address that causes the error. + """ addressType: AddressTypeEnum } -"""An enumeration.""" +""" +An enumeration. +""" enum OrderErrorCode { BILLING_ADDRESS_NOT_SET CANNOT_CANCEL_FULFILLMENT @@ -10465,106 +13344,154 @@ enum OrderErrorCode { MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK } -"""An enumeration.""" +""" +An enumeration. +""" enum AddressTypeEnum { BILLING SHIPPING } -"""Represents transaction's event.""" +""" +Represents transaction's event. +""" type TransactionEvent implements Node { - """The ID of the object.""" + """ + The ID of the object. + """ id: ID! createdAt: DateTime! - """Status of transaction's event.""" + """ + Status of transaction's event. + """ status: TransactionStatus! - """Reference of transaction's event.""" + """ + Reference of transaction's event. + """ reference: String! - """Name of the transaction's event.""" + """ + Name of the transaction's event. + """ name: String } type CheckoutCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [CheckoutCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type CheckoutCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Checkout! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } type GiftCardCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [GiftCardCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type GiftCardCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: GiftCard! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } type OrderCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [OrderCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type OrderCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Order! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } type UserPermission { - """Internal code for permission.""" + """ + Internal code for permission. + """ code: PermissionEnum! - """Describe action(s) allowed to do by permission.""" + """ + Describe action(s) allowed to do by permission. + """ name: String! - """List of user permission groups which contains this permission.""" + """ + List of user permission groups which contains this permission. + """ sourcePermissionGroups( - """ID of user whose groups should be returned.""" + """ + ID of user whose groups should be returned. + """ userId: ID! ): [Group!] } -"""Represents permission group data.""" +""" +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""" + """ + List of group permissions + """ permissions: [Permission!] """ @@ -10573,36 +13500,56 @@ type Group implements Node { userCanManage: Boolean! } -"""History log of the customer.""" +""" +History log of the customer. +""" type CustomerEvent implements Node { id: ID! - """Date when event happened at in ISO 8601 format.""" + """ + Date when event happened at in ISO 8601 format. + """ date: DateTime - """Customer event type.""" + """ + Customer event type. + """ type: CustomerEventsEnum - """User who performed the action.""" + """ + User who performed the action. + """ user: User - """App that performed the action.""" + """ + App that performed the action. + """ app: App - """Content of the event.""" + """ + Content of the event. + """ message: String - """Number of objects concerned by the event.""" + """ + Number of objects concerned by the event. + """ count: Int - """The concerned order.""" + """ + The concerned order. + """ order: Order - """The concerned order line.""" + """ + The concerned order line. + """ orderLine: OrderLine } -"""An enumeration.""" +""" +An enumeration. +""" enum CustomerEventsEnum { ACCOUNT_CREATED ACCOUNT_ACTIVATED @@ -10625,30 +13572,40 @@ enum CustomerEventsEnum { Represents a payment source stored for user in payment gateway, such as credit card. """ type PaymentSource { - """Payment gateway name.""" + """ + Payment gateway name. + """ gateway: String! - """ID of stored payment method.""" + """ + ID of stored payment method. + """ paymentMethodId: String - """Stored credit card details if available.""" + """ + 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!]! } type LimitInfo { - """Defines the current resource usage.""" + """ + Defines the current resource usage. + """ currentUsage: Limits! - """Defines the allowed maximum resource usage, null means unlimited.""" + """ + Defines the allowed maximum resource usage, null means unlimited. + """ allowedUsage: Limits! } @@ -10660,36 +13617,52 @@ type Limits { warehouses: Int } -"""Order related settings from site settings.""" +""" +Order related settings from site settings. +""" type OrderSettings { automaticallyConfirmAllNewOrders: Boolean! automaticallyFulfillNonShippableGiftCard: Boolean! } -"""Gift card related settings from site settings.""" +""" +Gift card related settings from site settings. +""" type GiftCardSettings { - """The gift card expiry type settings.""" + """ + The gift card expiry type settings. + """ expiryType: GiftCardSettingsExpiryTypeEnum! - """The gift card expiry period settings.""" + """ + The gift card expiry period settings. + """ expiryPeriod: TimePeriod } -"""An enumeration.""" +""" +An enumeration. +""" enum GiftCardSettingsExpiryTypeEnum { NEVER_EXPIRE EXPIRY_PERIOD } type TimePeriod { - """The length of the period.""" + """ + The length of the period. + """ amount: Int! - """The type of the period.""" + """ + The type of the period. + """ type: TimePeriodTypeEnum! } -"""An enumeration.""" +""" +An enumeration. +""" enum TimePeriodTypeEnum { DAY WEEK @@ -10703,19 +13676,27 @@ input ShippingZoneFilterInput { } type DigitalContentCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [DigitalContentCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type DigitalContentCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: DigitalContent! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -10727,28 +13708,38 @@ input CategoryFilterInput { } input CategorySortingInput { - """Specifies the direction in which to sort products.""" + """ + 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.""" + """ + Sort categories by the selected field. + """ field: CategorySortField! } enum CategorySortField { - """Sort categories by name.""" + """ + Sort categories by name. + """ NAME - """Sort categories by product count.""" + """ + Sort categories by product count. + """ PRODUCT_COUNT - """Sort categories by subcategory count.""" + """ + Sort categories by subcategory count. + """ SUBCATEGORY_COUNT } @@ -10760,8 +13751,8 @@ input CollectionFilterInput { slugs: [String!] """ - Specifies the channel by which the data should be filtered. - + 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 @@ -10773,44 +13764,52 @@ enum CollectionPublished { } input CollectionSortingInput { - """Specifies the direction in which to sort products.""" + """ + 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.""" + """ + Sort collections by the selected field. + """ field: CollectionSortField! } enum CollectionSortField { - """Sort collections by name.""" + """ + 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.""" + """ + 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 @@ -10837,21 +13836,31 @@ enum ProductTypeEnum { } input ProductTypeSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort product types by the selected field.""" + """ + Sort product types by the selected field. + """ field: ProductTypeSortField! } enum ProductTypeSortField { - """Sort products by name.""" + """ + Sort products by name. + """ NAME - """Sort products by type.""" + """ + Sort products by type. + """ DIGITAL - """Sort products by shipping.""" + """ + Sort products by shipping. + """ SHIPPING_REQUIRED } @@ -10864,39 +13873,53 @@ input ProductVariantFilterInput { } input ProductVariantSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort productVariants by the selected field.""" + """ + Sort productVariants by the selected field. + """ field: ProductVariantSortField! } enum ProductVariantSortField { - """Sort products variants by last modified at.""" + """ + Sort products variants by last modified at. + """ LAST_MODIFIED_AT } type PaymentCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [PaymentCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type PaymentCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Payment! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } input PaymentFilterInput { """ - Filter by ids. - + Filter by ids. + Added in Saleor 3.8. """ ids: [ID!] @@ -10904,64 +13927,82 @@ input PaymentFilterInput { } type PageCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [PageCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type PageCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Page! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } input PageSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort pages by the selected field.""" + """ + Sort pages by the selected field. + """ field: PageSortField! } enum PageSortField { - """Sort pages by title.""" + """ + Sort pages by title. + """ TITLE - """Sort pages by slug.""" + """ + Sort pages by slug. + """ SLUG - """Sort pages by visibility.""" + """ + 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 @@ -10976,35 +14017,51 @@ input PageFilterInput { } type PageTypeCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [PageTypeCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type PageTypeCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: PageType! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } input PageTypeSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort page types by the selected field.""" + """ + Sort page types by the selected field. + """ field: PageTypeSortField! } enum PageTypeSortField { - """Sort page types by name.""" + """ + Sort page types by name. + """ NAME - """Sort page types by slug.""" + """ + Sort page types by slug. + """ SLUG } @@ -11014,32 +14071,46 @@ input PageTypeFilterInput { } type OrderEventCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [OrderEventCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type OrderEventCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: OrderEvent! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } input OrderSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort orders by the selected field.""" + """ + Sort orders by the selected field. + """ field: OrderSortField! } enum OrderSortField { - """Sort orders by number.""" + """ + Sort orders by number. + """ NUMBER """ @@ -11048,29 +14119,37 @@ enum OrderSortField { RANK """ - Sort orders by creation date. - + Sort orders by creation date. + DEPRECATED: this field will be removed in Saleor 4.0. """ CREATION_DATE """ - Sort orders by 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.""" + """ + Sort orders by last modified at. + """ LAST_MODIFIED_AT - """Sort orders by customer.""" + """ + Sort orders by customer. + """ CUSTOMER - """Sort orders by payment.""" + """ + Sort orders by payment. + """ PAYMENT - """Sort orders by fulfillment status.""" + """ + Sort orders by fulfillment status. + """ FULFILLMENT_STATUS } @@ -11112,35 +14191,51 @@ input OrderDraftFilterInput { } type MenuCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [MenuCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type MenuCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Menu! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } input MenuSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort menus by the selected field.""" + """ + Sort menus by the selected field. + """ field: MenuSortField! } enum MenuSortField { - """Sort menus by name.""" + """ + Sort menus by name. + """ NAME - """Sort menus by items count.""" + """ + Sort menus by items count. + """ ITEMS_COUNT } @@ -11152,32 +14247,46 @@ input MenuFilterInput { } type MenuItemCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [MenuItemCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type MenuItemCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: MenuItem! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } input MenuItemSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort menu items by the selected field.""" + """ + Sort menu items by the selected field. + """ field: MenuItemsSortField! } enum MenuItemsSortField { - """Sort menu items by name.""" + """ + Sort menu items by name. + """ NAME } @@ -11187,26 +14296,36 @@ input MenuItemFilterInput { } input GiftCardSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort gift cards by the selected field.""" + """ + Sort gift cards by the selected field. + """ field: GiftCardSortField! } enum GiftCardSortField { - """Sort gift cards by product.""" + """ + Sort gift cards by product. + """ PRODUCT - """Sort gift cards by used by.""" + """ + Sort gift cards by used by. + """ USED_BY - """Sort gift cards by current balance.""" + """ + Sort gift cards by current balance. + """ CURRENT_BALANCE """ Sort gift cards by created at. - + Added in Saleor 3.8. """ CREATED_AT @@ -11226,19 +14345,27 @@ input GiftCardFilterInput { } type GiftCardTagCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [GiftCardTagCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type GiftCardTagCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: GiftCardTag! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11246,55 +14373,89 @@ input GiftCardTagFilterInput { search: String } -"""Plugin.""" +""" +Plugin. +""" type Plugin { - """Identifier of the plugin.""" + """ + Identifier of the plugin. + """ id: ID! - """Name of the plugin.""" + """ + Name of the plugin. + """ name: String! - """Description of the plugin.""" + """ + Description of the plugin. + """ description: String! - """Global configuration of the plugin (not channel-specific).""" + """ + Global configuration of the plugin (not channel-specific). + """ globalConfiguration: PluginConfiguration - """Channel-specific plugin configuration.""" + """ + Channel-specific plugin configuration. + """ channelConfigurations: [PluginConfiguration!]! } -"""Stores information about a configuration of plugin.""" +""" +Stores information about a configuration of plugin. +""" type PluginConfiguration { - """Determines if plugin is active or not.""" + """ + Determines if plugin is active or not. + """ active: Boolean! - """The channel to which the plugin configuration is assigned to.""" + """ + The channel to which the plugin configuration is assigned to. + """ channel: Channel - """Configuration of the plugin.""" + """ + Configuration of the plugin. + """ configuration: [ConfigurationItem!] } -"""Stores information about a single configuration field.""" +""" +Stores information about a single configuration field. +""" type ConfigurationItem { - """Name of the field.""" + """ + Name of the field. + """ name: String! - """Current value of the field.""" + """ + Current value of the field. + """ value: String - """Type of the field.""" + """ + Type of the field. + """ type: ConfigurationTypeFieldEnum - """Help text for the field.""" + """ + Help text for the field. + """ helpText: String - """Label for the field.""" + """ + Label for the field. + """ label: String } -"""An enumeration.""" +""" +An enumeration. +""" enum ConfigurationTypeFieldEnum { STRING MULTILINE @@ -11306,19 +14467,27 @@ enum ConfigurationTypeFieldEnum { } type PluginCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [PluginCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type PluginCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Plugin! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11339,10 +14508,14 @@ enum PluginConfigurationType { } input PluginSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort plugins by the selected field.""" + """ + Sort plugins by the selected field. + """ field: PluginSortField! } @@ -11352,19 +14525,27 @@ enum PluginSortField { } type SaleCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [SaleCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type SaleCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Sale! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11384,61 +14565,85 @@ enum DiscountStatusEnum { } input SaleSortingInput { - """Specifies the direction in which to sort products.""" + """ + 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.""" + """ + Sort sales by the selected field. + """ field: SaleSortField! } enum SaleSortField { - """Sort sales by name.""" + """ + Sort sales by name. + """ NAME - """Sort sales by start date.""" + """ + Sort sales by start date. + """ START_DATE - """Sort sales by end 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.""" + """ + Sort sales by type. + """ TYPE - """Sort sales by created at.""" + """ + Sort sales by created at. + """ CREATED_AT - """Sort sales by last modified at.""" + """ + Sort sales by last modified at. + """ LAST_MODIFIED_AT } type VoucherCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [VoucherCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type VoucherCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Voucher! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11459,85 +14664,121 @@ enum VoucherDiscountType { } input VoucherSortingInput { - """Specifies the direction in which to sort products.""" + """ + 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.""" + """ + Sort vouchers by the selected field. + """ field: VoucherSortField! } enum VoucherSortField { - """Sort vouchers by code.""" + """ + Sort vouchers by code. + """ CODE - """Sort vouchers by start date.""" + """ + Sort vouchers by start date. + """ START_DATE - """Sort vouchers by end 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.""" + """ + Sort vouchers by type. + """ TYPE - """Sort vouchers by usage limit.""" + """ + 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 } -"""Represents a job data of exported file.""" +""" +Represents a job data of exported file. +""" type ExportFile implements Node & Job { id: ID! - """Job status.""" + """ + Job status. + """ status: JobStatusEnum! - """Created date time of job in ISO 8601 format.""" + """ + Created date time of job in ISO 8601 format. + """ createdAt: DateTime! - """Date time of job last update in ISO 8601 format.""" + """ + Date time of job last update in ISO 8601 format. + """ updatedAt: DateTime! - """Job message.""" + """ + Job message. + """ message: String - """The URL of field to download.""" + """ + The URL of field to download. + """ url: String - """List of events associated with the export.""" + """ + List of events associated with the export. + """ events: [ExportEvent!] user: User app: App } -"""History log of export file.""" +""" +History log of export file. +""" type ExportEvent implements Node { - """The ID of the object.""" + """ + The ID of the object. + """ id: ID! - """Date when event happened at in ISO 8601 format.""" + """ + Date when event happened at in ISO 8601 format. + """ date: DateTime! - """Export event type.""" + """ + Export event type. + """ type: ExportEventsEnum! """ @@ -11550,11 +14791,15 @@ type ExportEvent implements Node { """ app: App - """Content of the event.""" + """ + Content of the event. + """ message: String! } -"""An enumeration.""" +""" +An enumeration. +""" enum ExportEventsEnum { EXPORT_PENDING EXPORT_SUCCESS @@ -11565,19 +14810,27 @@ enum ExportEventsEnum { } type ExportFileCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [ExportFileCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type ExportFileCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: ExportFile! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11590,10 +14843,14 @@ input ExportFileFilterInput { } input ExportFileSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort export file by the selected field.""" + """ + Sort export file by the selected field. + """ field: ExportFileSortField! } @@ -11605,21 +14862,31 @@ enum ExportFileSortField { } input CheckoutSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort checkouts by the selected field.""" + """ + Sort checkouts by the selected field. + """ field: CheckoutSortField! } enum CheckoutSortField { - """Sort checkouts by creation date.""" + """ + Sort checkouts by creation date. + """ CREATION_DATE - """Sort checkouts by customer.""" + """ + Sort checkouts by customer. + """ CUSTOMER - """Sort checkouts by payment.""" + """ + Sort checkouts by payment. + """ PAYMENT } @@ -11632,53 +14899,81 @@ input CheckoutFilterInput { } type CheckoutLineCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [CheckoutLineCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type CheckoutLineCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: CheckoutLine! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } input AttributeSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort attributes by the selected field.""" + """ + Sort attributes by the selected field. + """ field: AttributeSortField! } enum AttributeSortField { - """Sort attributes by name""" + """ + Sort attributes by name + """ NAME - """Sort attributes by slug""" + """ + Sort attributes by slug + """ SLUG - """Sort attributes by the value required flag""" + """ + Sort attributes by the value required flag + """ VALUE_REQUIRED - """Sort attributes by the variant only flag""" + """ + Sort attributes by the variant only flag + """ IS_VARIANT_ONLY - """Sort attributes by visibility in the storefront""" + """ + Sort attributes by visibility in the storefront + """ VISIBLE_IN_STOREFRONT - """Sort attributes by the filterable in storefront flag""" + """ + Sort attributes by the filterable in storefront flag + """ FILTERABLE_IN_STOREFRONT - """Sort attributes by the filterable in dashboard flag""" + """ + Sort attributes by the filterable in dashboard flag + """ FILTERABLE_IN_DASHBOARD - """Sort attributes by their position in storefront""" + """ + Sort attributes by their position in storefront + """ STOREFRONT_SEARCH_POSITION """ @@ -11687,39 +14982,57 @@ enum AttributeSortField { AVAILABLE_IN_GRID } -"""Represents ongoing installation of app.""" +""" +Represents ongoing installation of app. +""" type AppInstallation implements Node & Job { id: ID! - """Job status.""" + """ + Job status. + """ status: JobStatusEnum! - """Created date time of job in ISO 8601 format.""" + """ + Created date time of job in ISO 8601 format. + """ createdAt: DateTime! - """Date time of job last update in ISO 8601 format.""" + """ + Date time of job last update in ISO 8601 format. + """ updatedAt: DateTime! - """Job message.""" + """ + Job message. + """ message: String appName: String! manifestUrl: String! } type AppCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [AppCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type AppCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: App! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11730,35 +15043,51 @@ input AppFilterInput { } input AppSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort apps by the selected field.""" + """ + Sort apps by the selected field. + """ field: AppSortField! } enum AppSortField { - """Sort apps by name.""" + """ + Sort apps by name. + """ NAME - """Sort apps by creation date.""" + """ + Sort apps by creation date. + """ CREATION_DATE } type AppExtensionCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [AppExtensionCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type AppExtensionCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: AppExtension! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11793,19 +15122,27 @@ type ChoiceValue { } type UserCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [UserCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type UserCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: User! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11817,8 +15154,8 @@ input CustomerFilterInput { metadata: [MetadataFilter!] """ - Filter by ids. - + Filter by ids. + Added in Saleor 3.8. """ ids: [ID!] @@ -11826,47 +15163,71 @@ input CustomerFilterInput { } input UserSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort users by the selected field.""" + """ + Sort users by the selected field. + """ field: UserSortField! } enum UserSortField { - """Sort users by first name.""" + """ + Sort users by first name. + """ FIRST_NAME - """Sort users by last name.""" + """ + Sort users by last name. + """ LAST_NAME - """Sort users by email.""" + """ + Sort users by email. + """ EMAIL - """Sort users by order count.""" + """ + Sort users by order count. + """ ORDER_COUNT - """Sort users by created at.""" + """ + Sort users by created at. + """ CREATED_AT - """Sort users by last modified at.""" + """ + Sort users by last modified at. + """ LAST_MODIFIED_AT } type GroupCountableConnection { - """Pagination data for this connection.""" + """ + Pagination data for this connection. + """ pageInfo: PageInfo! edges: [GroupCountableEdge!]! - """A total count of items in the collection.""" + """ + A total count of items in the collection. + """ totalCount: Int } type GroupCountableEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: Group! - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: String! } @@ -11876,15 +15237,21 @@ input PermissionGroupFilterInput { } input PermissionGroupSortingInput { - """Specifies the direction in which to sort products.""" + """ + Specifies the direction in which to sort products. + """ direction: OrderDirection! - """Sort permission group by the selected field.""" + """ + Sort permission group by the selected field. + """ field: PermissionGroupSortField! } enum PermissionGroupSortField { - """Sort permission group accounts by name.""" + """ + Sort permission group accounts by name. + """ NAME } @@ -11895,189 +15262,233 @@ input StaffUserInput { } enum StaffMemberStatus { - """User account has been activated.""" + """ + User account has been activated. + """ ACTIVE - """User account has not been activated yet.""" + """ + User account has not been activated yet. + """ DEACTIVATED } type Mutation { """ - Creates a new webhook subscription. - + Creates a new webhook subscription. + Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. """ webhookCreate( - """Fields required to create a webhook.""" + """ + 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. - + 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 of a webhook to delete. + """ id: ID! ): WebhookDelete """ - Updates a webhook subscription. - + Updates a webhook subscription. + Requires one of the following permissions: MANAGE_APPS. """ webhookUpdate( - """ID of a webhook to update.""" + """ + ID of a webhook to update. + """ id: ID! - """Fields required to update a webhook.""" + """ + Fields required to update a webhook. + """ input: WebhookUpdateInput! ): WebhookUpdate """ - Retries event delivery. - + Retries event delivery. + Requires one of the following permissions: MANAGE_APPS. """ eventDeliveryRetry( - """ID of the event delivery to retry.""" + """ + ID of the event delivery to retry. + """ id: ID! ): EventDeliveryRetry """ - Creates new warehouse. - + Creates new warehouse. + Requires one of the following permissions: MANAGE_PRODUCTS. """ createWarehouse( - """Fields required to create warehouse.""" + """ + Fields required to create warehouse. + """ input: WarehouseCreateInput! ): WarehouseCreate """ - Updates given warehouse. - + Updates given warehouse. + Requires one of the following permissions: MANAGE_PRODUCTS. """ updateWarehouse( - """ID of a warehouse to update.""" + """ + ID of a warehouse to update. + """ id: ID! - """Fields required to update warehouse.""" + """ + Fields required to update warehouse. + """ input: WarehouseUpdateInput! ): WarehouseUpdate """ - Deletes selected warehouse. - + Deletes selected warehouse. + Requires one of the following permissions: MANAGE_PRODUCTS. """ deleteWarehouse( - """ID of a warehouse to delete.""" + """ + ID of a warehouse to delete. + """ id: ID! ): WarehouseDelete """ - Add shipping zone to given warehouse. - + Add shipping zone to given warehouse. + Requires one of the following permissions: MANAGE_PRODUCTS. """ assignWarehouseShippingZone( - """ID of a warehouse to update.""" + """ + ID of a warehouse to update. + """ id: ID! - """List of shipping zone IDs.""" + """ + List of shipping zone IDs. + """ shippingZoneIds: [ID!]! ): WarehouseShippingZoneAssign """ - Remove shipping zone from given warehouse. - + Remove shipping zone from given warehouse. + Requires one of the following permissions: MANAGE_PRODUCTS. """ unassignWarehouseShippingZone( - """ID of a warehouse to update.""" + """ + ID of a warehouse to update. + """ id: ID! - """List of shipping zone IDs.""" + """ + 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. - + + 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.""" + """ + 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. - + + 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 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. - + + 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 of the tax class. + """ id: ID! - """Fields required to update a tax class.""" + """ + 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. - + + 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 of the tax configuration. + """ id: ID! - """Fields required to update the tax configuration.""" + """ + 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. - + + 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.""" + """ + Country in which to update the tax class rates. + """ countryCode: CountryCode! """ @@ -12088,325 +15499,404 @@ 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. - + + 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.""" + """ + 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. - + + 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 of the Checkout or Order object. + """ id: ID! - """Determines if a taxes should be exempt.""" + """ + Determines if a taxes should be exempt. + """ taxExemption: Boolean! ): TaxExemptionManage """ - Creates a new staff notification recipient. - + Creates a new staff notification recipient. + Requires one of the following permissions: MANAGE_SETTINGS. """ staffNotificationRecipientCreate( - """Fields required to create a staff notification recipient.""" + """ + Fields required to create a staff notification recipient. + """ input: StaffNotificationRecipientInput! ): StaffNotificationRecipientCreate """ - Updates a staff notification recipient. - + Updates a staff notification recipient. + Requires one of the following permissions: MANAGE_SETTINGS. """ staffNotificationRecipientUpdate( - """ID of a staff notification recipient to update.""" + """ + ID of a staff notification recipient to update. + """ id: ID! - """Fields required to update a staff notification recipient.""" + """ + Fields required to update a staff notification recipient. + """ input: StaffNotificationRecipientInput! ): StaffNotificationRecipientUpdate """ - Delete staff notification recipient. - + Delete staff notification recipient. + Requires one of the following permissions: MANAGE_SETTINGS. """ staffNotificationRecipientDelete( - """ID of a staff notification recipient to delete.""" + """ + ID of a staff notification recipient to delete. + """ id: ID! ): StaffNotificationRecipientDelete """ - Updates site domain of the shop. - + Updates site domain of the shop. + Requires one of the following permissions: MANAGE_SETTINGS. """ shopDomainUpdate( - """Fields required to update site.""" + """ + Fields required to update site. + """ input: SiteDomainInput ): ShopDomainUpdate """ - Updates shop settings. - + Updates shop settings. + Requires one of the following permissions: MANAGE_SETTINGS. """ shopSettingsUpdate( - """Fields required to update shop settings.""" + """ + Fields required to update shop settings. + """ input: ShopSettingsInput! ): ShopSettingsUpdate """ - Fetch tax rates. - + 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.") + shopFetchTaxRates: ShopFetchTaxRates + @deprecated(reason: "\\n\\nDEPRECATED: this mutation will be removed in Saleor 4.0.") """ - Creates/updates translations for shop settings. - + Creates/updates translations for shop settings. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ shopSettingsTranslate( - """Fields required to update shop settings translations.""" + """ + Fields required to update shop settings translations. + """ input: ShopSettingsTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): ShopSettingsTranslate """ - Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. - + 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.""" + """ + Fields required to update shop address. + """ input: AddressInput ): ShopAddressUpdate """ - Update shop order settings. - + Update shop order settings. + Requires one of the following permissions: MANAGE_ORDERS. """ orderSettingsUpdate( - """Fields required to update shop order settings.""" + """ + Fields required to update shop order settings. + """ input: OrderSettingsUpdateInput! ): OrderSettingsUpdate """ - Update gift card settings. - + Update gift card settings. + Requires one of the following permissions: MANAGE_GIFT_CARD. """ giftCardSettingsUpdate( - """Fields required to update gift card settings.""" + """ + Fields required to update gift card settings. + """ input: GiftCardSettingsUpdateInput! ): GiftCardSettingsUpdate """ - Manage shipping method's availability in channels. - + Manage shipping method's availability in channels. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingMethodChannelListingUpdate( - """ID of a shipping method to update.""" + """ + ID of a shipping method to update. + """ id: ID! - """Fields required to update shipping method channel listings.""" + """ + Fields required to update shipping method channel listings. + """ input: ShippingMethodChannelListingInput! ): ShippingMethodChannelListingUpdate """ - Creates a new shipping price. - + Creates a new shipping price. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingPriceCreate( - """Fields required to create a shipping price.""" + """ + Fields required to create a shipping price. + """ input: ShippingPriceInput! ): ShippingPriceCreate """ - Deletes a shipping price. - + Deletes a shipping price. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingPriceDelete( - """ID of a shipping price to delete.""" + """ + ID of a shipping price to delete. + """ id: ID! ): ShippingPriceDelete """ - Deletes shipping prices. - + Deletes shipping prices. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingPriceBulkDelete( - """List of shipping price IDs to delete.""" + """ + List of shipping price IDs to delete. + """ ids: [ID!]! ): ShippingPriceBulkDelete """ - Updates a new shipping price. - + Updates a new shipping price. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingPriceUpdate( - """ID of a shipping price to update.""" + """ + ID of a shipping price to update. + """ id: ID! - """Fields required to update a shipping price.""" + """ + Fields required to update a shipping price. + """ input: ShippingPriceInput! ): ShippingPriceUpdate """ - Creates/updates translations for a shipping method. - + Creates/updates translations for a shipping method. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ shippingPriceTranslate( - """ShippingMethodType ID or ShippingMethodTranslatableContent ID.""" + """ + ShippingMethodType ID or ShippingMethodTranslatableContent ID. + """ id: ID! input: ShippingPriceTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): ShippingPriceTranslate """ - Exclude products from shipping price. - + Exclude products from shipping price. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingPriceExcludeProducts( - """ID of a shipping price.""" + """ + ID of a shipping price. + """ id: ID! - """Exclude products input.""" + """ + Exclude products input. + """ input: ShippingPriceExcludeProductsInput! ): ShippingPriceExcludeProducts """ - Remove product from excluded list for shipping price. - + Remove product from excluded list for shipping price. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingPriceRemoveProductFromExclude( - """ID of a shipping price.""" + """ + ID of a shipping price. + """ id: ID! - """List of products which will be removed from excluded list.""" + """ + List of products which will be removed from excluded list. + """ products: [ID!]! ): ShippingPriceRemoveProductFromExclude """ - Creates a new shipping zone. - + Creates a new shipping zone. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingZoneCreate( - """Fields required to create a shipping zone.""" + """ + Fields required to create a shipping zone. + """ input: ShippingZoneCreateInput! ): ShippingZoneCreate """ - Deletes a shipping zone. - + Deletes a shipping zone. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingZoneDelete( - """ID of a shipping zone to delete.""" + """ + ID of a shipping zone to delete. + """ id: ID! ): ShippingZoneDelete """ - Deletes shipping zones. - + Deletes shipping zones. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingZoneBulkDelete( - """List of shipping zone IDs to delete.""" + """ + List of shipping zone IDs to delete. + """ ids: [ID!]! ): ShippingZoneBulkDelete """ - Updates a new shipping zone. - + Updates a new shipping zone. + Requires one of the following permissions: MANAGE_SHIPPING. """ shippingZoneUpdate( - """ID of a shipping zone to update.""" + """ + ID of a shipping zone to update. + """ id: ID! - """Fields required to update a shipping zone.""" + """ + Fields required to update a shipping zone. + """ input: ShippingZoneUpdateInput! ): ShippingZoneUpdate """ - Assign attributes to a given product type. - + Assign attributes to a given product type. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ productAttributeAssign( - """The operations to perform.""" + """ + The operations to perform. + """ operations: [ProductAttributeAssignInput!]! - """ID of the product type to assign the attributes into.""" + """ + 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. - + + Added in Saleor 3.1. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ productAttributeAssignmentUpdate( - """The operations to perform.""" + """ + The operations to perform. + """ operations: [ProductAttributeAssignmentUpdateInput!]! - """ID of the product type to assign the attributes into.""" + """ + ID of the product type to assign the attributes into. + """ productTypeId: ID! ): ProductAttributeAssignmentUpdate """ - Un-assign attributes from a given product type. - + 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.""" + """ + The IDs of the attributes to unassign. + """ attributeIds: [ID!]! - """ID of the product type from which the attributes should be unassigned.""" + """ + ID of the product type from which the attributes should be unassigned. + """ productTypeId: ID! ): ProductAttributeUnassign """ - Creates a new category. - + Creates a new category. + Requires one of the following permissions: MANAGE_PRODUCTS. """ categoryCreate( - """Fields required to create a category.""" + """ + Fields required to create a category. + """ input: CategoryInput! """ @@ -12416,605 +15906,757 @@ type Mutation { ): CategoryCreate """ - Deletes a category. - + Deletes a category. + Requires one of the following permissions: MANAGE_PRODUCTS. """ categoryDelete( - """ID of a category to delete.""" + """ + ID of a category to delete. + """ id: ID! ): CategoryDelete """ - Deletes categories. - + Deletes categories. + Requires one of the following permissions: MANAGE_PRODUCTS. """ categoryBulkDelete( - """List of category IDs to delete.""" + """ + List of category IDs to delete. + """ ids: [ID!]! ): CategoryBulkDelete """ - Updates a category. - + Updates a category. + Requires one of the following permissions: MANAGE_PRODUCTS. """ categoryUpdate( - """ID of a category to update.""" + """ + ID of a category to update. + """ id: ID! - """Fields required to update a category.""" + """ + Fields required to update a category. + """ input: CategoryInput! ): CategoryUpdate """ - Creates/updates translations for a category. - + Creates/updates translations for a category. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ categoryTranslate( - """Category ID or CategoryTranslatableContent ID.""" + """ + Category ID or CategoryTranslatableContent ID. + """ id: ID! input: TranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): CategoryTranslate """ - Adds products to a collection. - + Adds products to a collection. + Requires one of the following permissions: MANAGE_PRODUCTS. """ collectionAddProducts( - """ID of a collection.""" + """ + ID of a collection. + """ collectionId: ID! - """List of product IDs.""" + """ + List of product IDs. + """ products: [ID!]! ): CollectionAddProducts """ - Creates a new collection. - + Creates a new collection. + Requires one of the following permissions: MANAGE_PRODUCTS. """ collectionCreate( - """Fields required to create a collection.""" + """ + Fields required to create a collection. + """ input: CollectionCreateInput! ): CollectionCreate """ - Deletes a collection. - + Deletes a collection. + Requires one of the following permissions: MANAGE_PRODUCTS. """ collectionDelete( - """ID of a collection to delete.""" + """ + ID of a collection to delete. + """ id: ID! ): CollectionDelete """ - Reorder the products of a collection. - + Reorder the products of a collection. + Requires one of the following permissions: MANAGE_PRODUCTS. """ collectionReorderProducts( - """ID of a collection.""" + """ + ID of a collection. + """ collectionId: ID! - """The collection products position operations.""" + """ + The collection products position operations. + """ moves: [MoveProductInput!]! ): CollectionReorderProducts """ - Deletes collections. - + Deletes collections. + Requires one of the following permissions: MANAGE_PRODUCTS. """ collectionBulkDelete( - """List of collection IDs to delete.""" + """ + List of collection IDs to delete. + """ ids: [ID!]! ): CollectionBulkDelete """ - Remove products from a collection. - + Remove products from a collection. + Requires one of the following permissions: MANAGE_PRODUCTS. """ collectionRemoveProducts( - """ID of a collection.""" + """ + ID of a collection. + """ collectionId: ID! - """List of product IDs.""" + """ + List of product IDs. + """ products: [ID!]! ): CollectionRemoveProducts """ - Updates a collection. - + Updates a collection. + Requires one of the following permissions: MANAGE_PRODUCTS. """ collectionUpdate( - """ID of a collection to update.""" + """ + ID of a collection to update. + """ id: ID! - """Fields required to update a collection.""" + """ + Fields required to update a collection. + """ input: CollectionInput! ): CollectionUpdate """ - Creates/updates translations for a collection. - + Creates/updates translations for a collection. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ collectionTranslate( - """Collection ID or CollectionTranslatableContent ID.""" + """ + Collection ID or CollectionTranslatableContent ID. + """ id: ID! input: TranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): CollectionTranslate """ - Manage collection's availability in channels. - + Manage collection's availability in channels. + Requires one of the following permissions: MANAGE_PRODUCTS. """ collectionChannelListingUpdate( - """ID of a collection to update.""" + """ + ID of a collection to update. + """ id: ID! - """Fields required to create or update collection channel listings.""" + """ + Fields required to create or update collection channel listings. + """ input: CollectionChannelListingUpdateInput! ): CollectionChannelListingUpdate """ - Creates a new product. - + Creates a new product. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productCreate( - """Fields required to create a product.""" + """ + Fields required to create a product. + """ input: ProductCreateInput! ): ProductCreate """ - Deletes a product. - + Deletes a product. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productDelete( """ - External ID of a product to delete. - + External ID of a product to delete. + Added in Saleor 3.10. """ externalReference: String - """ID of a product to delete.""" + """ + ID of a product to delete. + """ id: ID ): ProductDelete """ - Deletes products. - + Deletes products. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productBulkDelete( - """List of product IDs to delete.""" + """ + List of product IDs to delete. + """ ids: [ID!]! ): ProductBulkDelete """ - Updates an existing product. - + Updates an existing product. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productUpdate( """ - External ID of a product to update. - + External ID of a product to update. + Added in Saleor 3.10. """ externalReference: String - """ID of a product to update.""" + """ + ID of a product to update. + """ id: ID - """Fields required to update a product.""" + """ + Fields required to update a product. + """ input: ProductInput! ): ProductUpdate """ - Creates/updates translations for a product. - + Creates/updates translations for a product. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ productTranslate( - """Product ID or ProductTranslatableContent ID.""" + """ + Product ID or ProductTranslatableContent ID. + """ id: ID! input: TranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): ProductTranslate """ - Manage product's availability in channels. - + Manage product's availability in channels. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productChannelListingUpdate( - """ID of a product to update.""" + """ + ID of a product to update. + """ id: ID! - """Fields required to create or update product channel listings.""" + """ + 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 - + 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.""" + """ + 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. - + 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.""" + """ + The list of variant reordering operations. + """ moves: [ReorderInput!]! - """Id of product that variants order will be altered.""" + """ + Id of product that variants order will be altered. + """ productId: ID! ): ProductVariantReorder """ - Deletes a product media. - + Deletes a product media. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productMediaDelete( - """ID of a product media to delete.""" + """ + ID of a product media to delete. + """ id: ID! ): ProductMediaDelete """ - Deletes product media. - + Deletes product media. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productMediaBulkDelete( - """List of product media IDs to delete.""" + """ + List of product media IDs to delete. + """ ids: [ID!]! ): ProductMediaBulkDelete """ - Changes ordering of the product media. - + Changes ordering of the product media. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productMediaReorder( - """IDs of a product media in the desired order.""" + """ + IDs of a product media in the desired order. + """ mediaIds: [ID!]! - """ID of product that media order will be altered.""" + """ + ID of product that media order will be altered. + """ productId: ID! ): ProductMediaReorder """ - Updates a product media. - + Updates a product media. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productMediaUpdate( - """ID of a product media to update.""" + """ + ID of a product media to update. + """ id: ID! - """Fields required to update a product media.""" + """ + Fields required to update a product media. + """ input: ProductMediaUpdateInput! ): ProductMediaUpdate """ - Creates a new product type. - + Creates a new product type. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ productTypeCreate( - """Fields required to create a product type.""" + """ + Fields required to create a product type. + """ input: ProductTypeInput! ): ProductTypeCreate """ - Deletes a product type. - + Deletes a product type. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ productTypeDelete( - """ID of a product type to delete.""" + """ + ID of a product type to delete. + """ id: ID! ): ProductTypeDelete """ - Deletes product types. - + Deletes product types. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ productTypeBulkDelete( - """List of product type IDs to delete.""" + """ + List of product type IDs to delete. + """ ids: [ID!]! ): ProductTypeBulkDelete """ - Updates an existing product type. - + 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 of a product type to update. + """ id: ID! - """Fields required to update a product type.""" + """ + Fields required to update a product type. + """ input: ProductTypeInput! ): ProductTypeUpdate """ - Reorder the attributes of a product type. - + 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.""" + """ + The list of attribute reordering operations. + """ moves: [ReorderInput!]! - """ID of a product type.""" + """ + ID of a product type. + """ productTypeId: ID! - """The attribute type to reorder.""" + """ + The attribute type to reorder. + """ type: ProductAttributeType! ): ProductTypeReorderAttributes """ - Reorder product attribute values. - + Reorder product attribute values. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productReorderAttributeValues( - """ID of an attribute.""" + """ + ID of an attribute. + """ attributeId: ID! - """The list of reordering operations for given attribute values.""" + """ + The list of reordering operations for given attribute values. + """ moves: [ReorderInput!]! - """ID of a product.""" + """ + 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 - + 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.""" + """ + Fields required to create a digital content. + """ input: DigitalContentUploadInput! - """ID of a product variant to upload digital content.""" + """ + ID of a product variant to upload digital content. + """ variantId: ID! ): DigitalContentCreate """ - Remove digital content assigned to given variant. - + 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.""" + """ + ID of a product variant with digital content to remove. + """ variantId: ID! ): DigitalContentDelete """ - Update digital content. - + Update digital content. + Requires one of the following permissions: MANAGE_PRODUCTS. """ digitalContentUpdate( - """Fields required to update a digital content.""" + """ + Fields required to update a digital content. + """ input: DigitalContentInput! - """ID of a product variant with digital content to update.""" + """ + ID of a product variant with digital content to update. + """ variantId: ID! ): DigitalContentUpdate """ - Generate new URL to digital content. - + Generate new URL to digital content. + Requires one of the following permissions: MANAGE_PRODUCTS. """ digitalContentUrlCreate( - """Fields required to create a new url.""" + """ + Fields required to create a new url. + """ input: DigitalContentUrlCreateInput! ): DigitalContentUrlCreate """ - Creates a new variant for a product. - + Creates a new variant for a product. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantCreate( - """Fields required to create a product variant.""" + """ + Fields required to create a product variant. + """ input: ProductVariantCreateInput! ): ProductVariantCreate """ - Deletes a product variant. - + Deletes a product variant. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantDelete( """ - External ID of a product variant to update. - + External ID of a product variant to update. + Added in Saleor 3.10. """ externalReference: String - """ID of a product variant to delete.""" + """ + 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. - + 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.""" + """ + ID of the product to create the variants for. + """ product: ID! - """Input list of product variants to create.""" + """ + Input list of product variants to create. + """ variants: [ProductVariantBulkCreateInput!]! ): ProductVariantBulkCreate """ - Deletes product variants. - + Deletes product variants. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantBulkDelete( - """List of product variant IDs to delete.""" + """ + 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. - + Creates stocks for product variant. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantStocksCreate( - """Input list of stocks to create.""" + """ + Input list of stocks to create. + """ stocks: [StockInput!]! - """ID of a product variant for which stocks will be created.""" + """ + ID of a product variant for which stocks will be created. + """ variantId: ID! ): ProductVariantStocksCreate """ - Delete stocks from product variant. - + 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 of product variant for which stocks will be deleted. + """ sku: String - """ID of product variant for which stocks will be deleted.""" + """ + ID of product variant for which stocks will be deleted. + """ variantId: ID - """Input list of warehouse IDs.""" + """ + Input list of warehouse IDs. + """ warehouseIds: [ID!] ): ProductVariantStocksDelete """ - Update stocks for product variant. - + 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 of product variant for which stocks will be updated. + """ sku: String - """Input list of stocks to create or update.""" + """ + Input list of stocks to create or update. + """ stocks: [StockInput!]! - """ID of a product variant for which stocks will be updated.""" + """ + ID of a product variant for which stocks will be updated. + """ variantId: ID ): ProductVariantStocksUpdate """ - Updates an existing variant for product. - + Updates an existing variant for product. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantUpdate( """ - External ID of a product variant to update. - + External ID of a product variant to update. + Added in Saleor 3.10. """ externalReference: String - """ID of a product to update.""" + """ + ID of a product to update. + """ id: ID - """Fields required to update a product variant.""" + """ + 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. - + 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.""" + """ + Id of a product that will have the default variant set. + """ productId: ID! - """Id of a variant that will be set as default.""" + """ + Id of a variant that will be set as default. + """ variantId: ID! ): ProductVariantSetDefault """ - Creates/updates translations for a product variant. - + Creates/updates translations for a product variant. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ productVariantTranslate( - """ProductVariant ID or ProductVariantTranslatableContent ID.""" + """ + ProductVariant ID or ProductVariantTranslatableContent ID. + """ id: ID! input: NameTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): ProductVariantTranslate """ - Manage product variant prices in channels. - + Manage product variant prices in channels. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantChannelListingUpdate( - """ID of a product variant to update.""" + """ + ID of a product variant to update. + """ id: ID """ @@ -13024,169 +16666,221 @@ type Mutation { """ SKU of a product variant to update. - + Added in Saleor 3.8. """ sku: String ): ProductVariantChannelListingUpdate """ - Reorder product variant attribute values. - + Reorder product variant attribute values. + Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantReorderAttributeValues( - """ID of an attribute.""" + """ + ID of an attribute. + """ attributeId: ID! - """The list of reordering operations for given attribute values.""" + """ + The list of reordering operations for given attribute values. + """ moves: [ReorderInput!]! - """ID of a product variant.""" + """ + 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. - + + 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 of a variant which preorder should be deactivated. + """ id: ID! ): ProductVariantPreorderDeactivate """ - Assign an media to a product variant. - + 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.""" + """ + ID of a product media to assign to a variant. + """ mediaId: ID! - """ID of a product variant.""" + """ + ID of a product variant. + """ variantId: ID! ): VariantMediaAssign """ - Unassign an media from a product variant. - + 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.""" + """ + ID of a product media to unassign from a variant. + """ mediaId: ID! - """ID of a product variant.""" + """ + ID of a product variant. + """ variantId: ID! ): VariantMediaUnassign """ - Captures the authorized payment amount. - + Captures the authorized payment amount. + Requires one of the following permissions: MANAGE_ORDERS. """ paymentCapture( - """Transaction amount.""" + """ + Transaction amount. + """ amount: PositiveDecimal - """Payment ID.""" + """ + Payment ID. + """ paymentId: ID! ): PaymentCapture """ - Refunds the captured payment amount. - + Refunds the captured payment amount. + Requires one of the following permissions: MANAGE_ORDERS. """ paymentRefund( - """Transaction amount.""" + """ + Transaction amount. + """ amount: PositiveDecimal - """Payment ID.""" + """ + Payment ID. + """ paymentId: ID! ): PaymentRefund """ - Voids the authorized payment. - + Voids the authorized payment. + Requires one of the following permissions: MANAGE_ORDERS. """ paymentVoid( - """Payment ID.""" + """ + Payment ID. + """ paymentId: ID! ): PaymentVoid - """Initializes payment process when it is required by gateway.""" + """ + Initializes payment process when it is required by gateway. + """ paymentInitialize( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String - """A gateway name used to initialize the payment.""" + """ + A gateway name used to initialize the payment. + """ gateway: String! - """Client-side generated data required to initialize the payment.""" + """ + Client-side generated data required to initialize the payment. + """ paymentData: JSONString ): PaymentInitialize - """Check payment balance.""" + """ + Check payment balance. + """ paymentCheckBalance( - """Fields required to check payment balance.""" + """ + Fields required to check payment balance. + """ input: PaymentCheckBalanceInput! ): PaymentCheckBalance """ Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. - + Added in Saleor 3.4. - + Note: this API is currently in Feature Preview and can be subject to changes at later point. """ transactionCreate( - """The ID of the checkout or order.""" + """ + The ID of the checkout or order. + """ id: ID! - """Input data required to create a new transaction object.""" + """ + Input data required to create a new transaction object. + """ transaction: TransactionCreateInput! - """Data that defines a transaction event.""" + """ + Data that defines a transaction event. + """ transactionEvent: TransactionEventInput ): TransactionCreate """ Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. - + Added in Saleor 3.4. - + Note: this API is currently in Feature Preview and can be subject to changes at later point. """ transactionUpdate( - """The ID of the transaction.""" + """ + The ID of the transaction. + """ id: ID! - """Input data required to create a new transaction object.""" + """ + Input data required to create a new transaction object. + """ transaction: TransactionUpdateInput - """Data that defines a transaction transaction.""" + """ + 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. - + + 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. """ transactionRequestAction( - """Determines the action type.""" + """ + Determines the action type. + """ actionType: TransactionActionEnum! """ @@ -13194,555 +16888,701 @@ type Mutation { """ amount: PositiveDecimal - """The ID of the transaction.""" + """ + The ID of the transaction. + """ id: ID! ): TransactionRequestAction """ - Creates a new page. - + Creates a new page. + Requires one of the following permissions: MANAGE_PAGES. """ pageCreate( - """Fields required to create a page.""" + """ + Fields required to create a page. + """ input: PageCreateInput! ): PageCreate """ - Deletes a page. - + Deletes a page. + Requires one of the following permissions: MANAGE_PAGES. """ pageDelete( - """ID of a page to delete.""" + """ + ID of a page to delete. + """ id: ID! ): PageDelete """ - Deletes pages. - + Deletes pages. + Requires one of the following permissions: MANAGE_PAGES. """ pageBulkDelete( - """List of page IDs to delete.""" + """ + List of page IDs to delete. + """ ids: [ID!]! ): PageBulkDelete """ - Publish pages. - + Publish pages. + Requires one of the following permissions: MANAGE_PAGES. """ pageBulkPublish( - """List of page IDs to (un)publish.""" + """ + List of page IDs to (un)publish. + """ ids: [ID!]! - """Determine if pages will be published or not.""" + """ + Determine if pages will be published or not. + """ isPublished: Boolean! ): PageBulkPublish """ - Updates an existing page. - + Updates an existing page. + Requires one of the following permissions: MANAGE_PAGES. """ pageUpdate( - """ID of a page to update.""" + """ + ID of a page to update. + """ id: ID! - """Fields required to update a page.""" + """ + Fields required to update a page. + """ input: PageInput! ): PageUpdate """ - Creates/updates translations for a page. - + Creates/updates translations for a page. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ pageTranslate( - """Page ID or PageTranslatableContent ID.""" + """ + Page ID or PageTranslatableContent ID. + """ id: ID! input: PageTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): PageTranslate """ - Create a new page type. - + Create a new page type. + Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ pageTypeCreate( - """Fields required to create page type.""" + """ + Fields required to create page type. + """ input: PageTypeCreateInput! ): PageTypeCreate """ - Update page type. - + Update page type. + Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ pageTypeUpdate( - """ID of the page type to update.""" + """ + ID of the page type to update. + """ id: ID - """Fields required to update page type.""" + """ + Fields required to update page type. + """ input: PageTypeUpdateInput! ): PageTypeUpdate """ - Delete a page type. - + Delete a page type. + Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ pageTypeDelete( - """ID of the page type to delete.""" + """ + ID of the page type to delete. + """ id: ID! ): PageTypeDelete """ - Delete page types. - + Delete page types. + Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ pageTypeBulkDelete( - """List of page type IDs to delete""" + """ + List of page type IDs to delete + """ ids: [ID!]! ): PageTypeBulkDelete """ - Assign attributes to a given page type. - + 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.""" + """ + The IDs of the attributes to assign. + """ attributeIds: [ID!]! - """ID of the page type to assign the attributes into.""" + """ + ID of the page type to assign the attributes into. + """ pageTypeId: ID! ): PageAttributeAssign """ - Unassign attributes from a given page type. - + 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.""" + """ + The IDs of the attributes to unassign. + """ attributeIds: [ID!]! - """ID of the page type from which the attributes should be unassign.""" + """ + ID of the page type from which the attributes should be unassign. + """ pageTypeId: ID! ): PageAttributeUnassign """ - Reorder the attributes of a page type. - + 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.""" + """ + The list of attribute reordering operations. + """ moves: [ReorderInput!]! - """ID of a page type.""" + """ + ID of a page type. + """ pageTypeId: ID! ): PageTypeReorderAttributes """ - Reorder page attribute values. - + Reorder page attribute values. + Requires one of the following permissions: MANAGE_PAGES. """ pageReorderAttributeValues( - """ID of an attribute.""" + """ + ID of an attribute. + """ attributeId: ID! - """The list of reordering operations for given attribute values.""" + """ + The list of reordering operations for given attribute values. + """ moves: [ReorderInput!]! - """ID of a page.""" + """ + ID of a page. + """ pageId: ID! ): PageReorderAttributeValues """ - Completes creating an order. - + Completes creating an order. + Requires one of the following permissions: MANAGE_ORDERS. """ draftOrderComplete( - """ID of the order that will be completed.""" + """ + ID of the order that will be completed. + """ id: ID! ): DraftOrderComplete """ - Creates a new draft order. - + Creates a new draft order. + Requires one of the following permissions: MANAGE_ORDERS. """ draftOrderCreate( - """Fields required to create an order.""" + """ + Fields required to create an order. + """ input: DraftOrderCreateInput! ): DraftOrderCreate """ - Deletes a draft order. - + Deletes a draft order. + Requires one of the following permissions: MANAGE_ORDERS. """ draftOrderDelete( """ - External ID of a product to delete. - + External ID of a product to delete. + Added in Saleor 3.10. """ externalReference: String - """ID of a product to delete.""" + """ + ID of a product to delete. + """ id: ID ): DraftOrderDelete """ - Deletes draft orders. - + Deletes draft orders. + Requires one of the following permissions: MANAGE_ORDERS. """ draftOrderBulkDelete( - """List of draft order IDs to delete.""" + """ + List of draft order IDs to delete. + """ ids: [ID!]! ): DraftOrderBulkDelete """ - Deletes order lines. - + Deletes order lines. + Requires one of the following permissions: MANAGE_ORDERS. """ draftOrderLinesBulkDelete( - """List of order lines IDs to delete.""" + """ + 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. - + Updates a draft order. + Requires one of the following permissions: MANAGE_ORDERS. """ draftOrderUpdate( """ - External ID of a draft order to update. - + External ID of a draft order to update. + Added in Saleor 3.10. """ externalReference: String - """ID of a draft order to update.""" + """ + ID of a draft order to update. + """ id: ID - """Fields required to update an order.""" + """ + Fields required to update an order. + """ input: DraftOrderInput! ): DraftOrderUpdate """ - Adds note to the order. - + Adds note to the order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderAddNote( - """ID of the order to add a note for.""" + """ + ID of the order to add a note for. + """ order: ID! - """Fields required to create a note for the order.""" + """ + Fields required to create a note for the order. + """ input: OrderAddNoteInput! ): OrderAddNote """ - Cancel an order. - + Cancel an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderCancel( - """ID of the order to cancel.""" + """ + ID of the order to cancel. + """ id: ID! ): OrderCancel """ - Capture an order. - + Capture an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderCapture( - """Amount of money to capture.""" + """ + Amount of money to capture. + """ amount: PositiveDecimal! - """ID of the order to capture.""" + """ + ID of the order to capture. + """ id: ID! ): OrderCapture """ - Confirms an unconfirmed order by changing status to unfulfilled. - + 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 of an order to confirm. + """ id: ID! ): OrderConfirm """ - Creates new fulfillments for an order. - + Creates new fulfillments for an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderFulfill( - """Fields required to create a fulfillment.""" + """ + Fields required to create a fulfillment. + """ input: OrderFulfillInput! - """ID of the order to be fulfilled.""" + """ + ID of the order to be fulfilled. + """ order: ID ): OrderFulfill """ - Cancels existing fulfillment and optionally restocks items. - + Cancels existing fulfillment and optionally restocks items. + Requires one of the following permissions: MANAGE_ORDERS. """ orderFulfillmentCancel( - """ID of a fulfillment to cancel.""" + """ + ID of a fulfillment to cancel. + """ id: ID! - """Fields required to cancel a fulfillment.""" + """ + Fields required to cancel a fulfillment. + """ input: FulfillmentCancelInput ): FulfillmentCancel """ Approve existing fulfillment. - - Added in Saleor 3.1. - + + Added in Saleor 3.1. + Requires one of the following permissions: MANAGE_ORDERS. """ orderFulfillmentApprove( - """True if stock could be exceeded.""" + """ + True if stock could be exceeded. + """ allowStockToBeExceeded: Boolean = false - """ID of a fulfillment to approve.""" + """ + ID of a fulfillment to approve. + """ id: ID! - """True if confirmation email should be send.""" + """ + True if confirmation email should be send. + """ notifyCustomer: Boolean! ): FulfillmentApprove """ - Updates a fulfillment for an order. - + Updates a fulfillment for an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderFulfillmentUpdateTracking( - """ID of a fulfillment to update.""" + """ + ID of a fulfillment to update. + """ id: ID! - """Fields required to update a fulfillment.""" + """ + Fields required to update a fulfillment. + """ input: FulfillmentUpdateTrackingInput! ): FulfillmentUpdateTracking """ - Refund products. - + Refund products. + Requires one of the following permissions: MANAGE_ORDERS. """ orderFulfillmentRefundProducts( - """Fields required to create an refund fulfillment.""" + """ + Fields required to create an refund fulfillment. + """ input: OrderRefundProductsInput! - """ID of the order to be refunded.""" + """ + ID of the order to be refunded. + """ order: ID! ): FulfillmentRefundProducts """ - Return products. - + Return products. + Requires one of the following permissions: MANAGE_ORDERS. """ orderFulfillmentReturnProducts( - """Fields required to return products.""" + """ + Fields required to return products. + """ input: OrderReturnProductsInput! - """ID of the order to be returned.""" + """ + ID of the order to be returned. + """ order: ID! ): FulfillmentReturnProducts """ - Create order lines for an order. - + 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 of the order to add the lines to. + """ id: ID! - """Fields required to add order lines.""" + """ + Fields required to add order lines. + """ input: [OrderLineCreateInput!]! ): OrderLinesCreate """ - Deletes an order line from an order. - + Deletes an order line from an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderLineDelete( - """ID of the order line to delete.""" + """ + ID of the order line to delete. + """ id: ID! ): OrderLineDelete """ - Updates an order line of an order. - + Updates an order line of an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderLineUpdate( - """ID of the order line to update.""" + """ + ID of the order line to update. + """ id: ID! - """Fields required to update an order line.""" + """ + Fields required to update an order line. + """ input: OrderLineInput! ): OrderLineUpdate """ - Adds discount to the order. - + Adds discount to the order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderDiscountAdd( - """Fields required to create a discount for the order.""" + """ + Fields required to create a discount for the order. + """ input: OrderDiscountCommonInput! - """ID of an order to discount.""" + """ + ID of an order to discount. + """ orderId: ID! ): OrderDiscountAdd """ - Update discount for the order. - + Update discount for the order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderDiscountUpdate( - """ID of a discount to update.""" + """ + ID of a discount to update. + """ discountId: ID! - """Fields required to update a discount for the order.""" + """ + Fields required to update a discount for the order. + """ input: OrderDiscountCommonInput! ): OrderDiscountUpdate """ - Remove discount from the order. - + Remove discount from the order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderDiscountDelete( - """ID of a discount to remove.""" + """ + ID of a discount to remove. + """ discountId: ID! ): OrderDiscountDelete """ - Update discount for the order line. - + Update discount for the order line. + Requires one of the following permissions: MANAGE_ORDERS. """ orderLineDiscountUpdate( - """Fields required to update price for the order line.""" + """ + Fields required to update price for the order line. + """ input: OrderDiscountCommonInput! - """ID of a order line to update price""" + """ + ID of a order line to update price + """ orderLineId: ID! ): OrderLineDiscountUpdate """ - Remove discount applied to the order line. - + 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""" + """ + ID of a order line to remove its discount + """ orderLineId: ID! ): OrderLineDiscountRemove """ - Mark order as manually paid. - + Mark order as manually paid. + Requires one of the following permissions: MANAGE_ORDERS. """ orderMarkAsPaid( - """ID of the order to mark paid.""" + """ + ID of the order to mark paid. + """ id: ID! - """The external transaction reference.""" + """ + The external transaction reference. + """ transactionReference: String ): OrderMarkAsPaid """ - Refund an order. - + Refund an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderRefund( - """Amount of money to refund.""" + """ + Amount of money to refund. + """ amount: PositiveDecimal! - """ID of the order to refund.""" + """ + ID of the order to refund. + """ id: ID! ): OrderRefund """ - Updates an order. - + Updates an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderUpdate( """ - External ID of an order to update. - + External ID of an order to update. + Added in Saleor 3.10. """ externalReference: String - """ID of an order to update.""" + """ + ID of an order to update. + """ id: ID - """Fields required to update an order.""" + """ + 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. - + 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.""" + """ + ID of the order to update a shipping method. + """ order: ID! - """Fields required to change shipping method of the order.""" + """ + Fields required to change shipping method of the order. + """ input: OrderUpdateShippingInput! ): OrderUpdateShipping """ - Void an order. - + Void an order. + Requires one of the following permissions: MANAGE_ORDERS. """ orderVoid( - """ID of the order to void.""" + """ + ID of the order to void. + """ id: ID! ): OrderVoid """ - Cancels orders. - + Cancels orders. + Requires one of the following permissions: MANAGE_ORDERS. """ orderBulkCancel( - """List of orders IDs to cancel.""" + """ + List of orders IDs to cancel. + """ ids: [ID!]! ): OrderBulkCancel @@ -13750,10 +17590,14 @@ type Mutation { 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 or token (for Order and Checkout) of an object to update. + """ id: ID! - """Metadata keys to delete.""" + """ + Metadata keys to delete. + """ keys: [String!]! ): DeleteMetadata @@ -13761,10 +17605,14 @@ type Mutation { 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 or token (for Order and Checkout) of an object to update. + """ id: ID! - """Metadata keys to delete.""" + """ + Metadata keys to delete. + """ keys: [String!]! ): DeletePrivateMetadata @@ -13772,10 +17620,14 @@ type Mutation { 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 or token (for Order and Checkout) of an object to update. + """ id: ID! - """Fields required to update the object's metadata.""" + """ + Fields required to update the object's metadata. + """ input: [MetadataInput!]! ): UpdateMetadata @@ -13783,72 +17635,90 @@ type Mutation { 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 or token (for Order and Checkout) of an object to update. + """ id: ID! - """Fields required to update the object's metadata.""" + """ + Fields required to update the object's metadata. + """ input: [MetadataInput!]! ): UpdatePrivateMetadata """ - Assigns storefront's navigation menus. - + Assigns storefront's navigation menus. + Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. """ assignNavigation( - """ID of the menu.""" + """ + ID of the menu. + """ menu: ID - """Type of the navigation bar to assign the menu to.""" + """ + Type of the navigation bar to assign the menu to. + """ navigationType: NavigationType! ): AssignNavigation """ - Creates a new Menu. - + Creates a new Menu. + Requires one of the following permissions: MANAGE_MENUS. """ menuCreate( - """Fields required to create a menu.""" + """ + Fields required to create a menu. + """ input: MenuCreateInput! ): MenuCreate """ - Deletes a menu. - + Deletes a menu. + Requires one of the following permissions: MANAGE_MENUS. """ menuDelete( - """ID of a menu to delete.""" + """ + ID of a menu to delete. + """ id: ID! ): MenuDelete """ - Deletes menus. - + Deletes menus. + Requires one of the following permissions: MANAGE_MENUS. """ menuBulkDelete( - """List of menu IDs to delete.""" + """ + List of menu IDs to delete. + """ ids: [ID!]! ): MenuBulkDelete """ - Updates a menu. - + Updates a menu. + Requires one of the following permissions: MANAGE_MENUS. """ menuUpdate( - """ID of a menu to update.""" + """ + ID of a menu to update. + """ id: ID! - """Fields required to update a menu.""" + """ + Fields required to update a menu. + """ input: MenuInput! ): MenuUpdate """ - Creates a new menu item. - + Creates a new menu item. + Requires one of the following permissions: MANAGE_MENUS. """ menuItemCreate( @@ -13859,32 +17729,38 @@ type Mutation { ): MenuItemCreate """ - Deletes a menu item. - + Deletes a menu item. + Requires one of the following permissions: MANAGE_MENUS. """ menuItemDelete( - """ID of a menu item to delete.""" + """ + ID of a menu item to delete. + """ id: ID! ): MenuItemDelete """ - Deletes menu items. - + Deletes menu items. + Requires one of the following permissions: MANAGE_MENUS. """ menuItemBulkDelete( - """List of menu item IDs to delete.""" + """ + List of menu item IDs to delete. + """ ids: [ID!]! ): MenuItemBulkDelete """ - Updates a menu item. - + Updates a menu item. + Requires one of the following permissions: MANAGE_MENUS. """ menuItemUpdate( - """ID of a menu item to update.""" + """ + ID of a menu item to update. + """ id: ID! """ @@ -13894,264 +17770,322 @@ type Mutation { ): MenuItemUpdate """ - Creates/updates translations for a menu item. - + Creates/updates translations for a menu item. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ menuItemTranslate( - """MenuItem ID or MenuItemTranslatableContent ID.""" + """ + MenuItem ID or MenuItemTranslatableContent ID. + """ id: ID! input: NameTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): MenuItemTranslate """ - Moves items of menus. - + Moves items of menus. + Requires one of the following permissions: MANAGE_MENUS. """ menuItemMove( - """ID of the menu.""" + """ + ID of the menu. + """ menu: ID! - """The menu position data.""" + """ + The menu position data. + """ moves: [MenuItemMoveInput!]! ): MenuItemMove """ - Request an invoice for the order using plugin. - + 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.""" + """ + Invoice number, if not provided it will be generated. + """ number: String - """ID of the order related to invoice.""" + """ + ID of the order related to invoice. + """ orderId: ID! ): InvoiceRequest """ - Requests deletion of an invoice. - + Requests deletion of an invoice. + Requires one of the following permissions: MANAGE_ORDERS. """ invoiceRequestDelete( - """ID of an invoice to request the deletion.""" + """ + ID of an invoice to request the deletion. + """ id: ID! ): InvoiceRequestDelete """ - Creates a ready to send invoice. - + Creates a ready to send invoice. + Requires one of the following permissions: MANAGE_ORDERS. """ invoiceCreate( - """Fields required when creating an invoice.""" + """ + Fields required when creating an invoice. + """ input: InvoiceCreateInput! - """ID of the order related to invoice.""" + """ + ID of the order related to invoice. + """ orderId: ID! ): InvoiceCreate """ - Deletes an invoice. - + Deletes an invoice. + Requires one of the following permissions: MANAGE_ORDERS. """ invoiceDelete( - """ID of an invoice to delete.""" + """ + ID of an invoice to delete. + """ id: ID! ): InvoiceDelete """ - Updates an invoice. - + Updates an invoice. + Requires one of the following permissions: MANAGE_ORDERS. """ invoiceUpdate( - """ID of an invoice to update.""" + """ + ID of an invoice to update. + """ id: ID! - """Fields to use when updating an invoice.""" + """ + Fields to use when updating an invoice. + """ input: UpdateInvoiceInput! ): InvoiceUpdate """ - Send an invoice notification to the customer. - + Send an invoice notification to the customer. + Requires one of the following permissions: MANAGE_ORDERS. """ invoiceSendNotification( - """ID of an invoice to be sent.""" + """ + ID of an invoice to be sent. + """ id: ID! ): InvoiceSendNotification """ - Activate a gift card. - + Activate a gift card. + Requires one of the following permissions: MANAGE_GIFT_CARD. """ giftCardActivate( - """ID of a gift card to activate.""" + """ + ID of a gift card to activate. + """ id: ID! ): GiftCardActivate """ - Creates a new gift card. - + Creates a new gift card. + Requires one of the following permissions: MANAGE_GIFT_CARD. """ giftCardCreate( - """Fields required to create a gift card.""" + """ + 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. - + + 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 of the gift card to delete. + """ id: ID! ): GiftCardDelete """ - Deactivate a gift card. - + Deactivate a gift card. + Requires one of the following permissions: MANAGE_GIFT_CARD. """ giftCardDeactivate( - """ID of a gift card to deactivate.""" + """ + ID of a gift card to deactivate. + """ id: ID! ): GiftCardDeactivate """ - Update a gift card. - + Update a gift card. + Requires one of the following permissions: MANAGE_GIFT_CARD. """ giftCardUpdate( - """ID of a gift card to update.""" + """ + ID of a gift card to update. + """ id: ID! - """Fields required to update a gift card.""" + """ + 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. - + + 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.""" + """ + 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. - + + 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 of the gift card to add a note for. + """ id: ID! - """Fields required to create a note for the gift card.""" + """ + 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. - + + 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.""" + """ + 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. - + + 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.""" + """ + 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. - + + 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.""" + """ + 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. - + + 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.""" + """ + List of gift card IDs to deactivate. + """ ids: [ID!]! ): GiftCardBulkDeactivate """ - Update plugin configuration. - + Update plugin configuration. + Requires one of the following permissions: MANAGE_PLUGINS. """ pluginUpdate( - """ID of a channel for which the data should be modified.""" + """ + ID of a channel for which the data should be modified. + """ channelId: ID - """ID of plugin to update.""" + """ + ID of plugin to update. + """ id: ID! - """Fields required to update a plugin configuration.""" + """ + 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( @@ -14160,297 +18094,367 @@ type Mutation { """ channel: String! - """Input for External Notification Trigger.""" + """ + Input for External Notification Trigger. + """ input: ExternalNotificationTriggerInput! - """The ID of notification plugin.""" + """ + The ID of notification plugin. + """ pluginId: String ): ExternalNotificationTrigger """ - Creates a new sale. - + Creates a new sale. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ saleCreate( - """Fields required to create a sale.""" + """ + Fields required to create a sale. + """ input: SaleInput! ): SaleCreate """ - Deletes a sale. - + Deletes a sale. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ saleDelete( - """ID of a sale to delete.""" + """ + ID of a sale to delete. + """ id: ID! ): SaleDelete """ - Deletes sales. - + Deletes sales. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ saleBulkDelete( - """List of sale IDs to delete.""" + """ + List of sale IDs to delete. + """ ids: [ID!]! ): SaleBulkDelete """ - Updates a sale. - + Updates a sale. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ saleUpdate( - """ID of a sale to update.""" + """ + ID of a sale to update. + """ id: ID! - """Fields required to update a sale.""" + """ + Fields required to update a sale. + """ input: SaleInput! ): SaleUpdate """ - Adds products, categories, collections to a voucher. - + Adds products, categories, collections to a voucher. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ saleCataloguesAdd( - """ID of a sale.""" + """ + ID of a sale. + """ id: ID! - """Fields required to modify catalogue IDs of sale.""" + """ + Fields required to modify catalogue IDs of sale. + """ input: CatalogueInput! ): SaleAddCatalogues """ - Removes products, categories, collections from a sale. - + Removes products, categories, collections from a sale. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ saleCataloguesRemove( - """ID of a sale.""" + """ + ID of a sale. + """ id: ID! - """Fields required to modify catalogue IDs of sale.""" + """ + Fields required to modify catalogue IDs of sale. + """ input: CatalogueInput! ): SaleRemoveCatalogues """ - Creates/updates translations for a sale. - + Creates/updates translations for a sale. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ saleTranslate( - """Sale ID or SaleTranslatableContent ID.""" + """ + Sale ID or SaleTranslatableContent ID. + """ id: ID! input: NameTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): SaleTranslate """ - Manage sale's availability in channels. - + Manage sale's availability in channels. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ saleChannelListingUpdate( - """ID of a sale to update.""" + """ + ID of a sale to update. + """ id: ID! - """Fields required to update sale channel listings.""" + """ + Fields required to update sale channel listings. + """ input: SaleChannelListingInput! ): SaleChannelListingUpdate """ - Creates a new voucher. - + Creates a new voucher. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ voucherCreate( - """Fields required to create a voucher.""" + """ + Fields required to create a voucher. + """ input: VoucherInput! ): VoucherCreate """ - Deletes a voucher. - + Deletes a voucher. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ voucherDelete( - """ID of a voucher to delete.""" + """ + ID of a voucher to delete. + """ id: ID! ): VoucherDelete """ - Deletes vouchers. - + Deletes vouchers. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ voucherBulkDelete( - """List of voucher IDs to delete.""" + """ + List of voucher IDs to delete. + """ ids: [ID!]! ): VoucherBulkDelete """ - Updates a voucher. - + Updates a voucher. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ voucherUpdate( - """ID of a voucher to update.""" + """ + ID of a voucher to update. + """ id: ID! - """Fields required to update a voucher.""" + """ + Fields required to update a voucher. + """ input: VoucherInput! ): VoucherUpdate """ - Adds products, categories, collections to a voucher. - + Adds products, categories, collections to a voucher. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ voucherCataloguesAdd( - """ID of a voucher.""" + """ + ID of a voucher. + """ id: ID! - """Fields required to modify catalogue IDs of voucher.""" + """ + Fields required to modify catalogue IDs of voucher. + """ input: CatalogueInput! ): VoucherAddCatalogues """ - Removes products, categories, collections from a voucher. - + Removes products, categories, collections from a voucher. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ voucherCataloguesRemove( - """ID of a voucher.""" + """ + ID of a voucher. + """ id: ID! - """Fields required to modify catalogue IDs of voucher.""" + """ + Fields required to modify catalogue IDs of voucher. + """ input: CatalogueInput! ): VoucherRemoveCatalogues """ - Creates/updates translations for a voucher. - + Creates/updates translations for a voucher. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ voucherTranslate( - """Voucher ID or VoucherTranslatableContent ID.""" + """ + Voucher ID or VoucherTranslatableContent ID. + """ id: ID! input: NameTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): VoucherTranslate """ - Manage voucher's availability in channels. - + Manage voucher's availability in channels. + Requires one of the following permissions: MANAGE_DISCOUNTS. """ voucherChannelListingUpdate( - """ID of a voucher to update.""" + """ + ID of a voucher to update. + """ id: ID! - """Fields required to update voucher channel listings.""" + """ + Fields required to update voucher channel listings. + """ input: VoucherChannelListingInput! ): VoucherChannelListingUpdate """ - Export products to csv file. - + Export products to csv file. + Requires one of the following permissions: MANAGE_PRODUCTS. """ exportProducts( - """Fields required to export product data.""" + """ + 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. - + + 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.""" + """ + 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 - + 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.""" + """ + Represents a file in a multipart request. + """ file: Upload! ): FileUpload - """Adds a gift card or a voucher to a checkout.""" + """ + 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.""" + """ + 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.""" + """ + Update billing address in the existing checkout. + """ checkoutBillingAddressUpdate( - """The billing address of the checkout.""" + """ + The billing address of the checkout. + """ billingAddress: AddressInput! """ - The ID of the checkout. - + 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 @@ -14461,27 +18465,29 @@ type Mutation { """ checkoutComplete( """ - The ID of the checkout. - + 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.""" + """ + Client-side generated data required to finalize the payment. + """ paymentData: JSONString """ @@ -14490,35 +18496,39 @@ type Mutation { redirectUrl: String """ - Determines whether to store the payment source for future usage. - + 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.""" + """ + Create a new checkout. + """ checkoutCreate( - """Fields required to create checkout.""" + """ + Fields required to create checkout. + """ input: CheckoutCreateInput! ): CheckoutCreate """ - Sets the customer as the owner of the checkout. - + 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. - + The ID of the checkout. + DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ checkoutId: ID @@ -14530,116 +18540,131 @@ type Mutation { """ 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. - + 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. - + 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.""" + """ + Updates email address in the existing checkout object. + """ checkoutEmailUpdate( """ - The ID of the checkout. - + The ID of the checkout. + DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ checkoutId: ID - """email.""" + """ + 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.""" + """ + Deletes a CheckoutLine. + """ checkoutLineDelete( """ - The ID of the checkout. - + 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.""" + """ + 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.") + ): CheckoutLineDelete + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead." + ) - """Deletes checkout lines.""" + """ + Deletes checkout lines. + """ checkoutLinesDelete( """ The checkout's ID. - + Added in Saleor 3.4. """ id: ID - """A list of checkout lines.""" + """ + A list of checkout lines. + """ linesIds: [ID!]! """ Checkout token. - + DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ token: UUID @@ -14650,15 +18675,15 @@ type Mutation { """ checkoutLinesAdd( """ - The ID of the checkout. - + 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 @@ -14670,24 +18695,26 @@ type Mutation { """ 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.""" + """ + Updates checkout line in the existing checkout. + """ checkoutLinesUpdate( """ - The ID of the checkout. - + 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 @@ -14699,180 +18726,207 @@ type Mutation { """ 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.""" + """ + Remove a gift card or a voucher from a checkout. + """ checkoutRemovePromoCode( """ - The ID of the checkout. - + 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.""" + """ + Gift card code or voucher code. + """ promoCode: String - """Gift card or voucher ID.""" + """ + 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.""" + """ + Create a new payment for given checkout. + """ checkoutPaymentCreate( """ - The ID of the checkout. - + 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.""" + """ + 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.""" + """ + Update shipping address in the existing checkout. + """ checkoutShippingAddressUpdate( """ - The ID of the checkout. - + 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.""" + """ + 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.""" + """ + Updates the shipping method of the checkout. + """ checkoutShippingMethodUpdate( """ - The ID of the checkout. - + 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.""" + """ + 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.") + ): 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).""" + """ + 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.""" + """ + Update language code in the existing checkout. + """ checkoutLanguageCodeUpdate( """ - The ID of the checkout. - + 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.""" + """ + New language code. + """ languageCode: LanguageCodeEnum! """ Checkout token. - + DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ token: UUID @@ -14880,25 +18934,27 @@ 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.""" + """ + 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!] @@ -14910,229 +18966,283 @@ type Mutation { ): OrderCreateFromCheckout """ - Creates new channel. - + Creates new channel. + Requires one of the following permissions: MANAGE_CHANNELS. """ channelCreate( - """Fields required to create channel.""" + """ + Fields required to create channel. + """ input: ChannelCreateInput! ): ChannelCreate """ - Update a channel. - + Update a channel. + Requires one of the following permissions: MANAGE_CHANNELS. """ channelUpdate( - """ID of a channel to update.""" + """ + ID of a channel to update. + """ id: ID! - """Fields required to update a channel.""" + """ + 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. - + 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 of a channel to delete. + """ id: ID! - """Fields required to delete a channel.""" + """ + Fields required to delete a channel. + """ input: ChannelDeleteInput ): ChannelDelete """ - Activate a channel. - + Activate a channel. + Requires one of the following permissions: MANAGE_CHANNELS. """ channelActivate( - """ID of the channel to activate.""" + """ + ID of the channel to activate. + """ id: ID! ): ChannelActivate """ - Deactivate a channel. - + Deactivate a channel. + Requires one of the following permissions: MANAGE_CHANNELS. """ channelDeactivate( - """ID of the channel to deactivate.""" + """ + 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. - + + 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.""" + """ + ID of a channel. + """ channelId: ID! - """The list of reordering operations for the given channel warehouses.""" + """ + The list of reordering operations for the given channel warehouses. + """ moves: [ReorderInput!]! ): ChannelReorderWarehouses - """Creates an attribute.""" + """ + Creates an attribute. + """ attributeCreate( - """Fields required to create an attribute.""" + """ + Fields required to create an attribute. + """ input: AttributeCreateInput! ): AttributeCreate """ - Deletes an attribute. - + Deletes an attribute. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ attributeDelete( """ - External ID of an attribute to delete. - + External ID of an attribute to delete. + Added in Saleor 3.10. """ externalReference: String - """ID of an attribute to delete.""" + """ + ID of an attribute to delete. + """ id: ID ): AttributeDelete """ - Updates attribute. - + Updates attribute. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ attributeUpdate( """ - External ID of an attribute to update. - + External ID of an attribute to update. + Added in Saleor 3.10. """ externalReference: String - """ID of an attribute to update.""" + """ + ID of an attribute to update. + """ id: ID - """Fields required to update an attribute.""" + """ + Fields required to update an attribute. + """ input: AttributeUpdateInput! ): AttributeUpdate """ - Creates/updates translations for an attribute. - + Creates/updates translations for an attribute. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ attributeTranslate( - """Attribute ID or AttributeTranslatableContent ID.""" + """ + Attribute ID or AttributeTranslatableContent ID. + """ id: ID! input: NameTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): AttributeTranslate """ - Deletes attributes. - + Deletes attributes. + Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ attributeBulkDelete( - """List of attribute IDs to delete.""" + """ + List of attribute IDs to delete. + """ ids: [ID!]! ): AttributeBulkDelete """ - Deletes values of attributes. - + Deletes values of attributes. + Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ attributeValueBulkDelete( - """List of attribute value IDs to delete.""" + """ + List of attribute value IDs to delete. + """ ids: [ID!]! ): AttributeValueBulkDelete """ - Creates a value for an attribute. - + Creates a value for an attribute. + Requires one of the following permissions: MANAGE_PRODUCTS. """ attributeValueCreate( - """Attribute to which value will be assigned.""" + """ + Attribute to which value will be assigned. + """ attribute: ID! - """Fields required to create an AttributeValue.""" + """ + Fields required to create an AttributeValue. + """ input: AttributeValueCreateInput! ): AttributeValueCreate """ - Deletes a value of an attribute. - + 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. - + External ID of a value to delete. + Added in Saleor 3.10. """ externalReference: String - """ID of a value to delete.""" + """ + ID of a value to delete. + """ id: ID ): AttributeValueDelete """ - Updates value of an attribute. - + Updates value of an attribute. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ attributeValueUpdate( """ - External ID of an AttributeValue to update. - + External ID of an AttributeValue to update. + Added in Saleor 3.10. """ externalReference: String - """ID of an AttributeValue to update.""" + """ + ID of an AttributeValue to update. + """ id: ID - """Fields required to update an AttributeValue.""" + """ + Fields required to update an AttributeValue. + """ input: AttributeValueUpdateInput! ): AttributeValueUpdate """ - Creates/updates translations for an attribute value. - + Creates/updates translations for an attribute value. + Requires one of the following permissions: MANAGE_TRANSLATIONS. """ attributeValueTranslate( - """AttributeValue ID or AttributeValueTranslatableContent ID.""" + """ + AttributeValue ID or AttributeValueTranslatableContent ID. + """ id: ID! input: AttributeValueTranslationInput! - """Translation language code.""" + """ + Translation language code. + """ languageCode: LanguageCodeEnum! ): AttributeValueTranslate """ - Reorder the values of an attribute. - + Reorder the values of an attribute. + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ attributeReorderValues( - """ID of an attribute.""" + """ + ID of an attribute. + """ attributeId: ID! - """The list of reordering operations for given attribute values.""" + """ + The list of reordering operations for given attribute values. + """ moves: [ReorderInput!]! ): AttributeReorderValues @@ -15140,56 +19250,72 @@ type Mutation { Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. """ appCreate( - """Fields required to create a new app.""" + """ + Fields required to create a new app. + """ input: AppInput! ): AppCreate """ - Updates an existing app. - + Updates an existing app. + Requires one of the following permissions: MANAGE_APPS. """ appUpdate( - """ID of an app to update.""" + """ + ID of an app to update. + """ id: ID! - """Fields required to update an existing app.""" + """ + Fields required to update an existing app. + """ input: AppInput! ): AppUpdate """ - Deletes an app. - + Deletes an app. + Requires one of the following permissions: MANAGE_APPS. """ appDelete( - """ID of an app to delete.""" + """ + ID of an app to delete. + """ id: ID! ): AppDelete """ - Creates a new token. - + Creates a new token. + Requires one of the following permissions: MANAGE_APPS. """ appTokenCreate( - """Fields required to create a new auth token.""" + """ + Fields required to create a new auth token. + """ input: AppTokenInput! ): AppTokenCreate """ - Deletes an authentication token assigned to app. - + Deletes an authentication token assigned to app. + Requires one of the following permissions: MANAGE_APPS. """ appTokenDelete( - """ID of an auth token to delete.""" + """ + ID of an auth token to delete. + """ id: ID! ): AppTokenDelete - """Verify provided app token.""" + """ + Verify provided app token. + """ appTokenVerify( - """App token to verify.""" + """ + App token to verify. + """ token: String! ): AppTokenVerify @@ -15197,75 +19323,93 @@ type Mutation { 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.""" + """ + Fields required to install a new app. + """ input: AppInstallInput! ): AppInstall """ - Retry failed installation of new app. - + Retry failed installation of new app. + Requires one of the following permissions: MANAGE_APPS. """ appRetryInstall( - """Determine if app will be set active or not.""" + """ + Determine if app will be set active or not. + """ activateAfterInstallation: Boolean = true - """ID of failed installation.""" + """ + ID of failed installation. + """ id: ID! ): AppRetryInstall """ - Delete failed installation. - + Delete failed installation. + Requires one of the following permissions: MANAGE_APPS. """ appDeleteFailedInstallation( - """ID of failed installation to delete.""" + """ + ID of failed installation to delete. + """ id: ID! ): AppDeleteFailedInstallation """ - Fetch and validate manifest. - + Fetch and validate manifest. + Requires one of the following permissions: MANAGE_APPS. """ appFetchManifest(manifestUrl: String!): AppFetchManifest """ - Activate the app. - + Activate the app. + Requires one of the following permissions: MANAGE_APPS. """ appActivate( - """ID of app to activate.""" + """ + ID of app to activate. + """ id: ID! ): AppActivate """ - Deactivate the app. - + Deactivate the app. + Requires one of the following permissions: MANAGE_APPS. """ appDeactivate( - """ID of app to deactivate.""" + """ + ID of app to deactivate. + """ id: ID! ): AppDeactivate - """Create JWT token.""" + """ + 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 of a user. + """ email: String! - """Password of a user.""" + """ + Password of a user. + """ password: String! ): CreateToken @@ -15278,76 +19422,116 @@ type Mutation { """ csrfToken: String - """Refresh token.""" + """ + Refresh token. + """ refreshToken: String ): RefreshToken - """Verify JWT token.""" + """ + Verify JWT token. + """ tokenVerify( - """JWT token to validate.""" + """ + JWT token to validate. + """ token: String! ): VerifyToken """ - Deactivate all JWT tokens of the currently authenticated user. - + 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.""" + """ + Prepare external authentication url for user by custom plugin. + """ externalAuthenticationUrl( - """The data required by plugin to create external authentication url.""" + """ + The data required by plugin to create external authentication url. + """ input: JSONString! - """The ID of the authentication plugin.""" + """ + The ID of the authentication plugin. + """ pluginId: String! ): ExternalAuthenticationUrl - """Obtain external access tokens for user by custom plugin.""" + """ + Obtain external access tokens for user by custom plugin. + """ externalObtainAccessTokens( - """The data required by plugin to create authentication data.""" + """ + The data required by plugin to create authentication data. + """ input: JSONString! - """The ID of the authentication plugin.""" + """ + The ID of the authentication plugin. + """ pluginId: String! ): ExternalObtainAccessTokens - """Refresh user's access by custom plugin.""" + """ + Refresh user's access by custom plugin. + """ externalRefresh( - """The data required by plugin to proceed the refresh process.""" + """ + The data required by plugin to proceed the refresh process. + """ input: JSONString! - """The ID of the authentication plugin.""" + """ + The ID of the authentication plugin. + """ pluginId: String! ): ExternalRefresh - """Logout user by custom plugin.""" + """ + Logout user by custom plugin. + """ externalLogout( - """The data required by plugin to proceed the logout process.""" + """ + The data required by plugin to proceed the logout process. + """ input: JSONString! - """The ID of the authentication plugin.""" + """ + The ID of the authentication plugin. + """ pluginId: String! ): ExternalLogout - """Verify external authentication data by plugin.""" + """ + Verify external authentication data by plugin. + """ externalVerify( - """The data required by plugin to proceed the verification.""" + """ + The data required by plugin to proceed the verification. + """ input: JSONString! - """The ID of the authentication plugin.""" + """ + The ID of the authentication plugin. + """ pluginId: String! ): ExternalVerify - """Sends an email with the account password modification link.""" + """ + 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 of the user that will be used for password recovery. + """ email: String! """ @@ -15356,12 +19540,18 @@ type Mutation { redirectUrl: String! ): RequestPasswordReset - """Confirm user account with token sent by email during registration.""" + """ + Confirm user account with token sent by email during registration. + """ confirmAccount( - """E-mail of the user performing account confirmation.""" + """ + E-mail of the user performing account confirmation. + """ email: String! - """A one-time token required to confirm the account.""" + """ + A one-time token required to confirm the account. + """ token: String! ): ConfirmAccount @@ -15369,32 +19559,42 @@ type Mutation { Sets the user's password from the token sent by email using the RequestPasswordReset mutation. """ setPassword( - """Email of a user.""" + """ + Email of a user. + """ email: String! - """Password of a user.""" + """ + Password of a user. + """ password: String! - """A one-time token required to set the password.""" + """ + A one-time token required to set the password. + """ token: String! ): SetPassword """ - Change the password of the logged in user. - + Change the password of the logged in user. + Requires one of the following permissions: AUTHENTICATED_USER. """ passwordChange( - """New user password.""" + """ + New user password. + """ newPassword: String! - """Current user password.""" + """ + Current user password. + """ oldPassword: String! ): PasswordChange """ - Request email change of the logged in user. - + Request email change of the logged in user. + Requires one of the following permissions: AUTHENTICATED_USER. """ requestEmailChange( @@ -15403,10 +19603,14 @@ type Mutation { """ channel: String - """New user email.""" + """ + New user email. + """ newEmail: String! - """User password.""" + """ + User password. + """ password: String! """ @@ -15416,8 +19620,8 @@ type Mutation { ): RequestEmailChange """ - Confirm the email change of the logged-in user. - + Confirm the email change of the logged-in user. + Requires one of the following permissions: AUTHENTICATED_USER. """ confirmEmailChange( @@ -15426,17 +19630,21 @@ type Mutation { """ channel: String - """A one-time token required to change the email.""" + """ + A one-time token required to change the email. + """ token: String! ): ConfirmEmailChange """ - Create a new address for the customer. - + Create a new address for the customer. + Requires one of the following permissions: AUTHENTICATED_USER. """ accountAddressCreate( - """Fields required to create address.""" + """ + Fields required to create address. + """ input: AddressInput! """ @@ -15449,10 +19657,14 @@ type Mutation { 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 of the address to update. + """ id: ID! - """Fields required to update the address.""" + """ + Fields required to update the address. + """ input: AddressInput! ): AccountAddressUpdate @@ -15460,42 +19672,54 @@ type Mutation { 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 of the address to delete. + """ id: ID! ): AccountAddressDelete """ - Sets a default address for the authenticated user. - + 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 of the address to set as default. + """ id: ID! - """The type of address.""" + """ + The type of address. + """ type: AddressTypeEnum! ): AccountSetDefaultAddress - """Register a new user.""" + """ + Register a new user. + """ accountRegister( - """Fields required to create a user.""" + """ + Fields required to create a user. + """ input: AccountRegisterInput! ): AccountRegister """ - Updates the account of the logged-in user. - + 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.""" + """ + 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. - + Sends an email with the account removal link for the logged-in user. + Requires one of the following permissions: AUTHENTICATED_USER. """ accountRequestDeletion( @@ -15511,8 +19735,8 @@ type Mutation { ): AccountRequestDeletion """ - Remove user account. - + Remove user account. + Requires one of the following permissions: AUTHENTICATED_USER. """ accountDelete( @@ -15523,228 +19747,279 @@ type Mutation { ): AccountDelete """ - Creates user address. - + Creates user address. + Requires one of the following permissions: MANAGE_USERS. """ addressCreate( - """Fields required to create address.""" + """ + Fields required to create address. + """ input: AddressInput! - """ID of a user to create address for.""" + """ + ID of a user to create address for. + """ userId: ID! ): AddressCreate """ - Updates an address. - + Updates an address. + Requires one of the following permissions: MANAGE_USERS. """ addressUpdate( - """ID of the address to update.""" + """ + ID of the address to update. + """ id: ID! - """Fields required to update the address.""" + """ + Fields required to update the address. + """ input: AddressInput! ): AddressUpdate """ - Deletes an address. - + Deletes an address. + Requires one of the following permissions: MANAGE_USERS. """ addressDelete( - """ID of the address to delete.""" + """ + ID of the address to delete. + """ id: ID! ): AddressDelete """ - Sets a default address for the given user. - + Sets a default address for the given user. + Requires one of the following permissions: MANAGE_USERS. """ addressSetDefault( - """ID of the address.""" + """ + ID of the address. + """ addressId: ID! - """The type of address.""" + """ + The type of address. + """ type: AddressTypeEnum! - """ID of the user to change the address for.""" + """ + ID of the user to change the address for. + """ userId: ID! ): AddressSetDefault """ - Creates a new customer. - + Creates a new customer. + Requires one of the following permissions: MANAGE_USERS. """ customerCreate( - """Fields required to create a customer.""" + """ + Fields required to create a customer. + """ input: UserCreateInput! ): CustomerCreate """ - Updates an existing customer. - + Updates an existing customer. + Requires one of the following permissions: MANAGE_USERS. """ customerUpdate( """ - External ID of a customer to update. - + External ID of a customer to update. + Added in Saleor 3.10. """ externalReference: String - """ID of a customer to update.""" + """ + ID of a customer to update. + """ id: ID - """Fields required to update a customer.""" + """ + Fields required to update a customer. + """ input: CustomerInput! ): CustomerUpdate """ - Deletes a customer. - + Deletes a customer. + Requires one of the following permissions: MANAGE_USERS. """ customerDelete( """ - External ID of a customer to update. - + External ID of a customer to update. + Added in Saleor 3.10. """ externalReference: String - """ID of a customer to delete.""" + """ + ID of a customer to delete. + """ id: ID ): CustomerDelete """ - Deletes customers. - + Deletes customers. + Requires one of the following permissions: MANAGE_USERS. """ customerBulkDelete( - """List of user IDs to delete.""" + """ + List of user IDs to delete. + """ ids: [ID!]! ): CustomerBulkDelete """ - Creates a new staff user. Apps are not allowed to perform this mutation. - + 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.""" + """ + Fields required to create a staff user. + """ input: StaffCreateInput! ): StaffCreate """ - Updates an existing staff user. Apps are not allowed to perform this mutation. - + 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 of a staff user to update. + """ id: ID! - """Fields required to update a staff user.""" + """ + Fields required to update a staff user. + """ input: StaffUpdateInput! ): StaffUpdate """ - Deletes a staff user. Apps are not allowed to perform this mutation. - + 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 of a staff user to delete. + """ id: ID! ): StaffDelete """ - Deletes staff users. Apps are not allowed to perform this mutation. - + 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.""" + """ + 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 - + 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.""" + """ + Represents an image file in a multipart request. + """ image: Upload! ): UserAvatarUpdate """ - Deletes a user avatar. Only for staff members. - + Deletes a user avatar. Only for staff members. + Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ userAvatarDelete: UserAvatarDelete """ - Activate or deactivate users. - + Activate or deactivate users. + Requires one of the following permissions: MANAGE_USERS. """ userBulkSetActive( - """List of user IDs to (de)activate).""" + """ + List of user IDs to (de)activate). + """ ids: [ID!]! - """Determine if users will be set active or not.""" + """ + Determine if users will be set active or not. + """ isActive: Boolean! ): UserBulkSetActive """ - Create new permission group. Apps are not allowed to perform this mutation. - + 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 fields to create permission group. + """ input: PermissionGroupCreateInput! ): PermissionGroupCreate """ - Update permission group. Apps are not allowed to perform this mutation. - + 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 of the group to update. + """ id: ID! - """Input fields to create permission group.""" + """ + Input fields to create permission group. + """ input: PermissionGroupUpdateInput! ): PermissionGroupUpdate """ - Delete permission group. Apps are not allowed to perform this mutation. - + 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 of the group to delete. + """ id: ID! ): PermissionGroupDelete } """ -Creates a new webhook subscription. +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.") + webhookErrors: [WebhookError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WebhookError!]! webhook: Webhook } @@ -15755,14 +20030,20 @@ type WebhookError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: WebhookErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum WebhookErrorCode { GRAPHQL_ERROR INVALID @@ -15773,131 +20054,160 @@ enum WebhookErrorCode { } input WebhookCreateInput { - """The name of the webhook.""" + """ + The name of the webhook. + """ name: String - """The url to receive the payload.""" + """ + The url to receive the payload. + """ targetUrl: String """ - The events that webhook wants to subscribe. - + 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.""" + """ + The asynchronous events that webhook wants to subscribe. + """ asyncEvents: [WebhookEventTypeAsyncEnum!] - """The synchronous events that webhook wants to subscribe.""" + """ + The synchronous events that webhook wants to subscribe. + """ syncEvents: [WebhookEventTypeSyncEnum!] - """ID of the app to which webhook belongs.""" + """ + ID of the app to which webhook belongs. + """ app: ID - """Determine if webhook will be set active or not.""" + """ + 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. +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.") + webhookErrors: [WebhookError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WebhookError!]! webhook: Webhook } """ -Updates a webhook subscription. +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.") + 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.""" + """ + The new name of the webhook. + """ name: String - """The url to receive the payload.""" + """ + The url to receive the payload. + """ targetUrl: String """ - The events that webhook wants to subscribe. - + 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.""" + """ + The asynchronous events that webhook wants to subscribe. + """ asyncEvents: [WebhookEventTypeAsyncEnum!] - """The synchronous events that webhook wants to subscribe.""" + """ + The synchronous events that webhook wants to subscribe. + """ syncEvents: [WebhookEventTypeSyncEnum!] - """ID of the app to which webhook belongs.""" + """ + ID of the app to which webhook belongs. + """ app: ID - """Determine if webhook will be set active or not.""" + """ + 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 } """ -Retries event delivery. +Retries event delivery. Requires one of the following permissions: MANAGE_APPS. """ type EventDeliveryRetry { - """Event delivery.""" + """ + Event delivery. + """ delivery: EventDelivery errors: [WebhookError!]! } """ -Creates new warehouse. +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.") + warehouseErrors: [WarehouseError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } @@ -15908,17 +20218,25 @@ type WarehouseError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: WarehouseErrorCode! - """List of shipping zones IDs which causes the error.""" + """ + List of shipping zones IDs which causes the error. + """ shippingZones: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum WarehouseErrorCode { ALREADY_EXISTS GRAPHQL_ERROR @@ -15929,112 +20247,132 @@ enum WarehouseErrorCode { } input WarehouseCreateInput { - """Warehouse slug.""" + """ + Warehouse slug. + """ slug: String - """The email address of the warehouse.""" + """ + The email address of the warehouse. + """ email: String """ External ID of the warehouse. - + Added in Saleor 3.10. """ externalReference: String - """Warehouse name.""" + """ + Warehouse name. + """ name: String! - """Address of the warehouse.""" + """ + 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!] } """ -Updates given warehouse. +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.") + 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.""" + """ + Warehouse slug. + """ slug: String - """The email address of the warehouse.""" + """ + The email address of the warehouse. + """ email: String """ External ID of the warehouse. - + Added in Saleor 3.10. """ externalReference: String - """Warehouse name.""" + """ + Warehouse name. + """ name: String - """Address of the warehouse.""" + """ + 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 } """ -Deletes selected 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.") + warehouseErrors: [WarehouseError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } """ -Add shipping zone to given 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.") + 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. +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.") + warehouseErrors: [WarehouseError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } @@ -16044,7 +20382,7 @@ 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. +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. """ @@ -16059,17 +20397,25 @@ type TaxClassCreateError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TaxClassCreateErrorCode! - """List of country codes for which the configuration is invalid.""" + """ + List of country codes for which the configuration is invalid. + """ countryCodes: [String!]! } -"""An enumeration.""" +""" +An enumeration. +""" enum TaxClassCreateErrorCode { GRAPHQL_ERROR INVALID @@ -16077,15 +20423,21 @@ enum TaxClassCreateErrorCode { } input TaxClassCreateInput { - """Name of the tax class.""" + """ + Name of the tax class. + """ name: String! - """List of country-specific tax rates to create for this tax class.""" + """ + List of country-specific tax rates to create for this tax class. + """ createCountryRates: [CountryRateInput!] } input CountryRateInput { - """Country in which this rate applies.""" + """ + Country in which this rate applies. + """ countryCode: CountryCode! """ @@ -16099,7 +20451,7 @@ Delete a tax class. After deleting the tax class any products, product types or Added in Saleor 3.9. -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: MANAGE_TAXES. """ @@ -16114,14 +20466,20 @@ type TaxClassDeleteError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TaxClassDeleteErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum TaxClassDeleteErrorCode { GRAPHQL_ERROR INVALID @@ -16133,7 +20491,7 @@ 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. +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. """ @@ -16148,17 +20506,25 @@ type TaxClassUpdateError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TaxClassUpdateErrorCode! - """List of country codes for which the configuration is invalid.""" + """ + List of country codes for which the configuration is invalid. + """ countryCodes: [String!]! } -"""An enumeration.""" +""" +An enumeration. +""" enum TaxClassUpdateErrorCode { DUPLICATED_INPUT_ITEM GRAPHQL_ERROR @@ -16167,7 +20533,9 @@ enum TaxClassUpdateErrorCode { } input TaxClassUpdateInput { - """Name of the tax class.""" + """ + Name of the tax class. + """ name: String """ @@ -16182,7 +20550,9 @@ input TaxClassUpdateInput { } input CountryRateUpdateInput { - """Country in which this rate applies.""" + """ + Country in which this rate applies. + """ countryCode: CountryCode! """ @@ -16196,7 +20566,7 @@ 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. +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. """ @@ -16211,17 +20581,25 @@ type TaxConfigurationUpdateError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TaxConfigurationUpdateErrorCode! - """List of country codes for which the configuration is invalid.""" + """ + List of country codes for which the configuration is invalid. + """ countryCodes: [String!]! } -"""An enumeration.""" +""" +An enumeration. +""" enum TaxConfigurationUpdateErrorCode { DUPLICATED_INPUT_ITEM GRAPHQL_ERROR @@ -16230,7 +20608,9 @@ enum TaxConfigurationUpdateErrorCode { } input TaxConfigurationUpdateInput { - """Determines whether taxes are charged in the given channel.""" + """ + Determines whether taxes are charged in the given channel. + """ chargeTaxes: Boolean """ @@ -16243,7 +20623,9 @@ input TaxConfigurationUpdateInput { """ displayGrossPrices: Boolean - """Determines whether prices are entered with the tax included.""" + """ + Determines whether prices are entered with the tax included. + """ pricesEnteredWithTax: Boolean """ @@ -16251,15 +20633,21 @@ input TaxConfigurationUpdateInput { """ updateCountriesConfiguration: [TaxConfigurationPerCountryInput!] - """List of country codes for which to remove the tax configuration.""" + """ + List of country codes for which to remove the tax configuration. + """ removeCountriesConfiguration: [CountryCode!] } input TaxConfigurationPerCountryInput { - """Country in which this configuration applies.""" + """ + Country in which this configuration applies. + """ countryCode: CountryCode! - """Determines whether taxes are charged in this country.""" + """ + Determines whether taxes are charged in this country. + """ chargeTaxes: Boolean! """ @@ -16278,12 +20666,14 @@ 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. +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.""" + """ + Updated tax class rates grouped by a country. + """ taxCountryConfiguration: TaxCountryConfiguration errors: [TaxCountryConfigurationUpdateError!]! } @@ -16294,17 +20684,25 @@ type TaxCountryConfigurationUpdateError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TaxCountryConfigurationUpdateErrorCode! - """List of tax class IDs for which the update failed.""" + """ + List of tax class IDs for which the update failed. + """ taxClassIds: [String!]! } -"""An enumeration.""" +""" +An enumeration. +""" enum TaxCountryConfigurationUpdateErrorCode { GRAPHQL_ERROR INVALID @@ -16314,10 +20712,14 @@ enum TaxCountryConfigurationUpdateErrorCode { } input TaxClassRateInput { - """ID of a tax class for which to update the tax rate""" + """ + ID of a tax class for which to update the tax rate + """ taxClassId: ID - """Tax rate value.""" + """ + Tax rate value. + """ rate: Float } @@ -16326,12 +20728,14 @@ 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. +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.""" + """ + Updated tax class rates grouped by a country. + """ taxCountryConfiguration: TaxCountryConfiguration errors: [TaxCountryConfigurationDeleteError!]! } @@ -16342,14 +20746,20 @@ type TaxCountryConfigurationDeleteError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TaxCountryConfigurationDeleteErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum TaxCountryConfigurationDeleteErrorCode { GRAPHQL_ERROR INVALID @@ -16361,7 +20771,7 @@ Exempt checkout or order from charging the taxes. When tax exemption is enabled, Added in Saleor 3.8. -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: MANAGE_TAXES. """ @@ -16378,14 +20788,20 @@ type TaxExemptionManageError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TaxExemptionManageErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum TaxExemptionManageErrorCode { GRAPHQL_ERROR INVALID @@ -16394,12 +20810,13 @@ enum TaxExemptionManageErrorCode { } """ -Creates a new staff notification recipient. +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.") + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } @@ -16410,14 +20827,20 @@ type ShopError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ShopErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum ShopErrorCode { ALREADY_EXISTS CANNOT_FETCH_TAX_RATES @@ -16429,181 +20852,225 @@ enum ShopErrorCode { } input StaffNotificationRecipientInput { - """The ID of the user subscribed to email notifications..""" + """ + The ID of the user subscribed to email notifications.. + """ user: ID - """Email address of a user subscribed to email notifications.""" + """ + Email address of a user subscribed to email notifications. + """ email: String - """Determines if a notification active.""" + """ + Determines if a notification active. + """ active: Boolean } """ -Updates a staff notification recipient. +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.") + 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. +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.") + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } """ -Updates site domain of the shop. +Updates site domain of the shop. Requires one of the following permissions: MANAGE_SETTINGS. """ type ShopDomainUpdate { - """Updated shop.""" + """ + Updated shop. + """ shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! } input SiteDomainInput { - """Domain name for shop.""" + """ + Domain name for shop. + """ domain: String - """Shop site name.""" + """ + Shop site name. + """ name: String } """ -Updates shop settings. +Updates shop settings. Requires one of the following permissions: MANAGE_SETTINGS. """ type ShopSettingsUpdate { - """Updated shop.""" + """ + Updated shop. + """ shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! } input ShopSettingsInput { - """Header text.""" + """ + Header text. + """ headerText: String - """SEO description.""" + """ + SEO description. + """ description: String - """Enable inventory tracking.""" + """ + Enable inventory tracking. + """ trackInventoryByDefault: Boolean - """Default weight unit.""" + """ + Default weight unit. + """ defaultWeightUnit: WeightUnitsEnum - """Enable automatic fulfillment for all digital products.""" + """ + 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.""" + """ + Default number of max downloads per digital content URL. + """ defaultDigitalMaxDownloads: Int - """Default number of days which digital content URL will be valid.""" + """ + Default number of days which digital content URL will be valid. + """ defaultDigitalUrlValidDays: Int - """Default email sender's name.""" + """ + Default email sender's name. + """ defaultMailSenderName: String - """Default email sender's address.""" + """ + Default email sender's address. + """ defaultMailSenderAddress: String - """URL of a view where customers can set their password.""" + """ + 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. - + 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. - + 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. - + 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 } """ -Fetch tax rates. +Fetch tax rates. Requires one of the following permissions: MANAGE_SETTINGS. """ type ShopFetchTaxRates { - """Updated shop.""" + """ + Updated shop. + """ shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! } """ -Creates/updates translations for shop settings. +Creates/updates translations for shop settings. Requires one of the following permissions: MANAGE_TRANSLATIONS. """ type ShopSettingsTranslate { - """Updated shop settings.""" + """ + Updated shop settings. + """ shop: Shop - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! } @@ -16613,14 +21080,20 @@ type TranslationError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TranslationErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum TranslationErrorCode { GRAPHQL_ERROR INVALID @@ -16634,26 +21107,32 @@ input ShopSettingsTranslationInput { } """ -Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. +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.""" + """ + Updated shop. + """ shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! } """ -Update shop order settings. +Update shop order settings. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderSettingsUpdate { - """Order settings.""" + """ + Order settings. + """ orderSettings: OrderSettings - orderSettingsErrors: [OrderSettingsError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderSettingsErrors: [OrderSettingsError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderSettingsError!]! } @@ -16663,14 +21142,20 @@ type OrderSettingsError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: OrderSettingsErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum OrderSettingsErrorCode { INVALID } @@ -16688,12 +21173,14 @@ input OrderSettingsUpdateInput { } """ -Update gift card settings. +Update gift card settings. Requires one of the following permissions: MANAGE_GIFT_CARD. """ type GiftCardSettingsUpdate { - """Gift card settings.""" + """ + Gift card settings. + """ giftCardSettings: GiftCardSettings errors: [GiftCardSettingsError!]! } @@ -16704,14 +21191,20 @@ type GiftCardSettingsError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: GiftCardSettingsErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum GiftCardSettingsErrorCode { INVALID REQUIRED @@ -16719,30 +21212,41 @@ enum GiftCardSettingsErrorCode { } input GiftCardSettingsUpdateInput { - """Defines gift card default expiry settings.""" + """ + Defines gift card default expiry settings. + """ expiryType: GiftCardSettingsExpiryTypeEnum - """Defines gift card expiry period.""" + """ + Defines gift card expiry period. + """ expiryPeriod: TimePeriodInputType } input TimePeriodInputType { - """The length of the period.""" + """ + The length of the period. + """ amount: Int! - """The type of the period.""" + """ + The type of the period. + """ type: TimePeriodTypeEnum! } """ -Manage shipping method's availability in channels. +Manage shipping method's availability in channels. Requires one of the following permissions: MANAGE_SHIPPING. """ type ShippingMethodChannelListingUpdate { - """An updated shipping method instance.""" + """ + An updated shipping method instance. + """ shippingMethod: ShippingMethodType - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } @@ -16752,20 +21256,30 @@ type ShippingError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ShippingErrorCode! - """List of warehouse IDs which causes the error.""" + """ + List of warehouse IDs which causes the error. + """ warehouses: [ID!] - """List of channels IDs which causes the error.""" + """ + List of channels IDs which causes the error. + """ channels: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum ShippingErrorCode { ALREADY_EXISTS GRAPHQL_ERROR @@ -16778,72 +21292,109 @@ enum ShippingErrorCode { } input ShippingMethodChannelListingInput { - """List of channels to which the shipping method should be assigned.""" + """ + List of channels to which the shipping method should be assigned. + """ addChannels: [ShippingMethodChannelListingAddInput!] - """List of channels from which the shipping method should be unassigned.""" + """ + List of channels from which the shipping method should be unassigned. + """ removeChannels: [ID!] } input ShippingMethodChannelListingAddInput { - """ID of a channel.""" + """ + ID of a channel. + """ channelId: ID! - """Shipping price of the shipping method in this channel.""" + """ + Shipping price of the shipping method in this channel. + """ price: PositiveDecimal - """Minimum order price to use this shipping method.""" + """ + Minimum order price to use this shipping method. + """ minimumOrderPrice: PositiveDecimal - """Maximum order price to use this shipping method.""" + """ + Maximum order price to use this shipping method. + """ maximumOrderPrice: PositiveDecimal } """ -Creates a new shipping price. +Creates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ type ShippingPriceCreate { - """A shipping zone to which the shipping method belongs.""" + """ + 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.") + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } input ShippingPriceInput { - """Name of the shipping method.""" + """ + Name of the shipping method. + """ name: String - """Shipping method description.""" + """ + Shipping method description. + """ description: JSONString - """Minimum order weight to use this shipping method.""" + """ + Minimum order weight to use this shipping method. + """ minimumOrderWeight: WeightScalar - """Maximum order weight to use this shipping method.""" + """ + Maximum order weight to use this shipping method. + """ maximumOrderWeight: WeightScalar - """Maximum number of days for delivery.""" + """ + Maximum number of days for delivery. + """ maximumDeliveryDays: Int - """Minimal number of days for delivery.""" + """ + Minimal number of days for delivery. + """ minimumDeliveryDays: Int - """Shipping type: price or weight based.""" + """ + Shipping type: price or weight based. + """ type: ShippingMethodTypeEnum - """Shipping zone this method belongs to.""" + """ + Shipping zone this method belongs to. + """ shippingZone: ID - """Postal code rules to add.""" + """ + Postal code rules to add. + """ addPostalCodeRules: [ShippingPostalCodeRulesCreateInputRange!] - """Postal code rules to delete.""" + """ + Postal code rules to delete. + """ deletePostalCodeRules: [ID!] - """Inclusion type for currently assigned postal code rules.""" + """ + Inclusion type for currently assigned postal code rules. + """ inclusionType: PostalCodeRuleInclusionTypeEnum """ @@ -16855,60 +21406,76 @@ input ShippingPriceInput { scalar WeightScalar input ShippingPostalCodeRulesCreateInputRange { - """Start range of the postal code.""" + """ + Start range of the postal code. + """ start: String! - """End range of the postal code.""" + """ + End range of the postal code. + """ end: String } """ -Deletes a shipping price. +Deletes a shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ type ShippingPriceDelete { - """A shipping method to delete.""" + """ + A shipping method to delete. + """ shippingMethod: ShippingMethodType - """A shipping zone to which the shipping method belongs.""" + """ + 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.") + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } """ -Deletes shipping prices. +Deletes shipping prices. Requires one of the following permissions: MANAGE_SHIPPING. """ type ShippingPriceBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } """ -Updates a new shipping price. +Updates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ type ShippingPriceUpdate { - """A shipping zone to which the shipping method belongs.""" + """ + 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.") + 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. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! shippingMethod: ShippingMethodType } @@ -16918,60 +21485,75 @@ input ShippingPriceTranslationInput { """ Translated shipping method description. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString } """ -Exclude products from shipping price. +Exclude products from shipping price. Requires one of the following permissions: MANAGE_SHIPPING. """ type ShippingPriceExcludeProducts { - """A shipping method with new list of excluded products.""" + """ + 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.") + 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.""" + """ + List of products which will be excluded. + """ products: [ID!]! } """ -Remove product from excluded list for shipping price. +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.""" + """ + 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.") + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } """ -Creates a new shipping zone. +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.") + 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.""" + """ + Shipping zone's name. Visible only to the staff. + """ name: String - """Description of the shipping zone.""" + """ + Description of the shipping zone. + """ description: String - """List of countries in this shipping zone.""" + """ + List of countries in this shipping zone. + """ countries: [String!] """ @@ -16979,55 +21561,70 @@ input ShippingZoneCreateInput { """ default: Boolean - """List of warehouses to assign to a shipping zone""" + """ + List of warehouses to assign to a shipping zone + """ addWarehouses: [ID!] - """List of channels to assign to the shipping zone.""" + """ + List of channels to assign to the shipping zone. + """ addChannels: [ID!] } """ -Deletes a shipping zone. +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.") + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! shippingZone: ShippingZone } """ -Deletes shipping zones. +Deletes shipping zones. Requires one of the following permissions: MANAGE_SHIPPING. """ type ShippingZoneBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } """ -Updates a new shipping zone. +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.") + 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.""" + """ + Shipping zone's name. Visible only to the staff. + """ name: String - """Description of the shipping zone.""" + """ + Description of the shipping zone. + """ description: String - """List of countries in this shipping zone.""" + """ + List of countries in this shipping zone. + """ countries: [String!] """ @@ -17035,28 +21632,39 @@ input ShippingZoneUpdateInput { """ default: Boolean - """List of warehouses to assign to a shipping zone""" + """ + List of warehouses to assign to a shipping zone + """ addWarehouses: [ID!] - """List of channels to assign to the shipping zone.""" + """ + List of channels to assign to the shipping zone. + """ addChannels: [ID!] - """List of warehouses to unassign from a shipping zone""" + """ + List of warehouses to unassign from a shipping zone + """ removeWarehouses: [ID!] - """List of channels to unassign from the shipping zone.""" + """ + List of channels to unassign from the shipping zone. + """ removeChannels: [ID!] } """ -Assign attributes to a given product type. +Assign attributes to a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ type ProductAttributeAssign { - """The updated product type.""" + """ + The updated product type. + """ productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -17066,20 +21674,30 @@ type ProductError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ProductErrorCode! - """List of attributes IDs which causes the error.""" + """ + List of attributes IDs which causes the error. + """ attributes: [ID!] - """List of attribute values IDs which causes the error.""" + """ + List of attribute values IDs which causes the error. + """ values: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum ProductErrorCode { ALREADY_EXISTS ATTRIBUTE_ALREADY_ASSIGNED @@ -17103,15 +21721,19 @@ enum ProductErrorCode { } input ProductAttributeAssignInput { - """The ID of the attribute to assign.""" + """ + The ID of the attribute to assign. + """ id: ID! - """The attribute type to be assigned as.""" + """ + 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 @@ -17125,48 +21747,57 @@ enum ProductAttributeType { """ Update attributes assigned to product variant for given product type. -Added in Saleor 3.1. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ type ProductAttributeAssignmentUpdate { - """The updated product type.""" + """ + The updated product type. + """ productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } input ProductAttributeAssignmentUpdateInput { - """The ID of the attribute to assign.""" + """ + 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! } """ -Un-assign attributes from a given product type. +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.""" + """ + The updated product type. + """ productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Creates a new category. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! category: Category } @@ -17174,46 +21805,60 @@ type CategoryCreate { input CategoryInput { """ Category description. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString - """Category name.""" + """ + Category name. + """ name: String - """Category slug.""" + """ + Category slug. + """ slug: String - """Search engine optimization fields.""" + """ + Search engine optimization fields. + """ seo: SeoInput - """Background image file.""" + """ + Background image file. + """ backgroundImage: Upload - """Alt text for a product media.""" + """ + 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!] } input SeoInput { - """SEO title.""" + """ + SEO title. + """ title: String - """SEO description.""" + """ + SEO description. + """ description: String } @@ -17223,54 +21868,64 @@ Variables of this type must be set to null in mutations. They will be replaced w scalar Upload input MetadataInput { - """Key of a metadata item.""" + """ + Key of a metadata item. + """ key: String! - """Value of a metadata item.""" + """ + Value of a metadata item. + """ value: String! } """ -Deletes a 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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! category: Category } """ -Deletes categories. +Deletes categories. Requires one of the following permissions: MANAGE_PRODUCTS. """ type CategoryBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Updates a category. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! category: Category } """ -Creates/updates translations for a category. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! category: Category } @@ -17282,21 +21937,24 @@ input TranslationInput { """ Translated description. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString } """ -Adds products to a collection. +Adds products to a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ type CollectionAddProducts { - """Collection to which products will be added.""" + """ + 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.") + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! } @@ -17306,17 +21964,25 @@ type CollectionError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """List of products IDs which causes the error.""" + """ + List of products IDs which causes the error. + """ products: [ID!] - """The error code.""" + """ + The error code. + """ code: CollectionErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum CollectionErrorCode { DUPLICATED_INPUT_ITEM GRAPHQL_ERROR @@ -17328,92 +21994,113 @@ enum CollectionErrorCode { } """ -Creates a new collection. +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.") + 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.""" + """ + Informs whether a collection is published. + """ isPublished: Boolean - """Name of the collection.""" + """ + Name of the collection. + """ name: String - """Slug of the collection.""" + """ + Slug of the collection. + """ slug: String """ Description of the collection. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString - """Background image file.""" + """ + Background image file. + """ backgroundImage: Upload - """Alt text for an image.""" + """ + Alt text for an image. + """ backgroundImageAlt: String - """Search engine optimization fields.""" + """ + Search engine optimization fields. + """ seo: SeoInput """ - Publication date. ISO 8601 standard. - + 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.""" + """ + List of products to be added to the collection. + """ products: [ID!] } """ -Deletes a 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.") + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } """ -Reorder the products of a collection. +Reorder the products of a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ type CollectionReorderProducts { - """Collection from which products are reordered.""" + """ + 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.") + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! } input MoveProductInput { - """The ID of the product to move.""" + """ + The ID of the product to move. + """ productId: ID! """ @@ -17423,108 +22110,131 @@ input MoveProductInput { } """ -Deletes collections. +Deletes collections. Requires one of the following permissions: MANAGE_PRODUCTS. """ type CollectionBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! } """ -Remove products from a collection. +Remove products from a collection. Requires one of the following permissions: MANAGE_PRODUCTS. """ type CollectionRemoveProducts { - """Collection from which products will be removed.""" + """ + 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.") + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! } """ -Updates a collection. +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.") + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } input CollectionInput { - """Informs whether a collection is published.""" + """ + Informs whether a collection is published. + """ isPublished: Boolean - """Name of the collection.""" + """ + Name of the collection. + """ name: String - """Slug of the collection.""" + """ + Slug of the collection. + """ slug: String """ Description of the collection. - + Rich text format. For reference see https://editorjs.io/ """ description: JSONString - """Background image file.""" + """ + Background image file. + """ backgroundImage: Upload - """Alt text for an image.""" + """ + Alt text for an image. + """ backgroundImageAlt: String - """Search engine optimization fields.""" + """ + Search engine optimization fields. + """ seo: SeoInput """ - Publication date. ISO 8601 standard. - + 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!] } """ -Creates/updates translations for a collection. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! collection: Collection } """ -Manage collection's availability in channels. +Manage collection's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ type CollectionChannelListingUpdate { - """An updated collection instance.""" + """ + An updated collection instance. + """ collection: Collection - collectionChannelListingErrors: [CollectionChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionChannelListingErrors: [CollectionChannelListingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionChannelListingError!]! } @@ -17534,91 +22244,120 @@ type CollectionChannelListingError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ProductErrorCode! - """List of attributes IDs which causes the error.""" + """ + List of attributes IDs which causes the error. + """ attributes: [ID!] - """List of attribute values IDs which causes the error.""" + """ + List of attribute values IDs which causes the error. + """ values: [ID!] - """List of channels IDs which causes the error.""" + """ + List of channels IDs which causes the error. + """ channels: [ID!] } input CollectionChannelListingUpdateInput { - """List of channels to which the collection should be assigned.""" + """ + List of channels to which the collection should be assigned. + """ addChannels: [PublishableChannelListingInput!] - """List of channels from which the collection should be unassigned.""" + """ + List of channels from which the collection should be unassigned. + """ removeChannels: [ID!] } input PublishableChannelListingInput { - """ID of a channel.""" + """ + ID of a channel. + """ channelId: ID! - """Determines if object is visible to customers.""" + """ + Determines if object is visible to customers. + """ isPublished: Boolean """ - Publication date. ISO 8601 standard. - + 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 } """ -Creates a new product. +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.") + 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.""" + """ + List of attributes. + """ attributes: [AttributeValueInput!] - """ID of the product's category.""" + """ + ID of the product's category. + """ category: ID """ - Determine if taxes are being charged for the product. - + 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.""" + """ + 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.""" + """ + Product name. + """ name: String - """Product slug.""" + """ + Product slug. + """ slug: String """ @@ -17627,48 +22366,58 @@ input ProductCreateInput { taxClass: ID """ - Tax rate for enabled tax gateway. - + 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.""" + """ + Search engine optimization fields. + """ seo: SeoInput - """Weight of the Product.""" + """ + Weight of the Product. + """ weight: WeightScalar - """Defines the product rating value.""" + """ + 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.""" + """ + ID of the type that product belongs to. + """ productType: ID! } input AttributeValueInput { - """ID of the selected attribute.""" + """ + ID of the selected attribute. + """ id: ID """ @@ -17678,64 +22427,82 @@ input AttributeValueInput { """ Attribute value ID. - + Added in Saleor 3.9. """ dropdown: AttributeValueSelectableTypeInput """ Attribute value ID. - + Added in Saleor 3.9. """ swatch: 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.""" + """ + URL of the file attribute. Every time, a new value is created. + """ file: String - """File content type.""" + """ + File content type. + """ contentType: String - """List of entity IDs that will be used as references.""" + """ + List of entity IDs that will be used as references. + """ references: [ID!] - """Text content in JSON format.""" + """ + Text content in JSON format. + """ richText: JSONString - """Plain text content.""" + """ + Plain text content. + """ plainText: String - """Represents the boolean value of the attribute value.""" + """ + Represents the boolean value of the attribute value. + """ boolean: Boolean - """Represents the date value of the attribute value.""" + """ + Represents the date value of the attribute value. + """ date: Date - """Represents the date/time value of the attribute value.""" + """ + Represents the date/time value of the attribute value. + """ dateTime: DateTime } """ -Represents attribute value. If no ID provided, value will be resolved. +Represents attribute value. If no ID provided, value will be resolved. Added in Saleor 3.9. """ input AttributeValueSelectableTypeInput { - """ID of an attribute value.""" + """ + ID of an attribute value. + """ id: ID """ @@ -17745,67 +22512,82 @@ input AttributeValueSelectableTypeInput { } """ -Deletes a product. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! product: Product } """ -Deletes products. +Deletes products. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Updates an existing product. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! product: Product } input ProductInput { - """List of attributes.""" + """ + List of attributes. + """ attributes: [AttributeValueInput!] - """ID of the product's category.""" + """ + ID of the product's category. + """ category: ID """ - Determine if taxes are being charged for the product. - + 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.""" + """ + 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.""" + """ + Product name. + """ name: String - """Product slug.""" + """ + Product slug. + """ slug: String """ @@ -17814,63 +22596,73 @@ input ProductInput { taxClass: ID """ - Tax rate for enabled tax gateway. - + 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.""" + """ + Search engine optimization fields. + """ seo: SeoInput - """Weight of the Product.""" + """ + Weight of the Product. + """ weight: WeightScalar - """Defines the product rating value.""" + """ + 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 } """ -Creates/updates translations for a product. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! product: Product } """ -Manage product's availability in channels. +Manage product's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductChannelListingUpdate { - """An updated product instance.""" + """ + An updated product instance. + """ product: Product - productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productChannelListingErrors: [ProductChannelListingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductChannelListingError!]! } @@ -17880,50 +22672,70 @@ type ProductChannelListingError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ProductErrorCode! - """List of attributes IDs which causes the error.""" + """ + List of attributes IDs which causes the error. + """ attributes: [ID!] - """List of attribute values IDs which causes the error.""" + """ + List of attribute values IDs which causes the error. + """ values: [ID!] - """List of channels IDs which causes the error.""" + """ + List of channels IDs which causes the error. + """ channels: [ID!] - """List of variants IDs which causes the error.""" + """ + List of variants IDs which causes the error. + """ variants: [ID!] } input ProductChannelListingUpdateInput { - """List of channels to which the product should be assigned or updated.""" + """ + List of channels to which the product should be assigned or updated. + """ updateChannels: [ProductChannelListingAddInput!] - """List of channels from which the product should be unassigned.""" + """ + List of channels from which the product should be unassigned. + """ removeChannels: [ID!] } input ProductChannelListingAddInput { - """ID of a channel.""" + """ + ID of a channel. + """ channelId: ID! - """Determines if object is visible to customers.""" + """ + Determines if object is visible to customers. + """ isPublished: Boolean """ - Publication date. ISO 8601 standard. - + 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 @@ -17933,69 +22745,87 @@ input ProductChannelListingAddInput { """ visibleInListings: Boolean - """Determine if product should be available for purchase.""" + """ + 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. - + 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.""" + """ + List of variants to which the channel should be assigned. + """ addVariants: [ID!] - """List of variants from which the channel should be unassigned.""" + """ + List of variants from which the channel should be unassigned. + """ removeVariants: [ID!] } """ -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 +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.") + 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 text for a product media. + """ alt: String - """Represents an image file in a multipart request.""" + """ + Represents an image file in a multipart request. + """ image: Upload - """ID of an product.""" + """ + ID of an product. + """ product: ID! - """Represents an URL to an external media.""" + """ + Represents an URL to an external media. + """ mediaUrl: String } """ -Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } input ReorderInput { - """The ID of the item to move.""" + """ + The ID of the item to move. + """ id: ID! """ @@ -18005,77 +22835,92 @@ input ReorderInput { } """ -Deletes a product media. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Deletes product media. +Deletes product media. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductMediaBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + 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. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Updates a product media. +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.") + 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 text for a product media. + """ alt: String } """ -Creates a new product type. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productType: ProductType } input ProductTypeInput { - """Name of the product type.""" + """ + Name of the product type. + """ name: String - """Product type slug.""" + """ + Product type slug. + """ slug: String - """The product type kind.""" + """ + The product type kind. + """ kind: ProductTypeKindEnum """ @@ -18083,7 +22928,9 @@ input ProductTypeInput { """ hasVariants: Boolean - """List of attributes shared among all product variants.""" + """ + List of attributes shared among all product variants. + """ productAttributes: [ID!] """ @@ -18091,18 +22938,24 @@ input ProductTypeInput { """ variantAttributes: [ID!] - """Determines if shipping is required for products of this variant.""" + """ + Determines if shipping is required for products of this variant. + """ isShippingRequired: Boolean - """Determines if products are digital.""" + """ + Determines if products are digital. + """ isDigital: Boolean - """Weight of the ProductType items.""" + """ + Weight of the ProductType items. + """ weight: WeightScalar """ - Tax rate for enabled tax gateway. - + 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 @@ -18114,77 +22967,91 @@ input ProductTypeInput { } """ -Deletes a product type. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productType: ProductType } """ -Deletes product types. +Deletes product types. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ type ProductTypeBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Updates an existing product type. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productType: ProductType } """ -Reorder the attributes of a product type. +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.""" + """ + 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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Reorder product attribute values. +Reorder product attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductReorderAttributeValues { - """Product from which attribute values are reordered.""" + """ + 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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -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 +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.") + 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.""" + """ + Use default digital content settings for this product. + """ useDefaultSettings: Boolean! """ @@ -18197,52 +23064,60 @@ input DigitalContentUploadInput { """ urlValidDays: Int - """Overwrite default automatic_fulfillment setting for variant.""" + """ + 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.""" + """ + Represents an file in a multipart request. + """ contentFile: Upload! } """ -Remove digital content assigned to given variant. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Update digital content. +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.") + 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.""" + """ + Use default digital content settings for this product. + """ useDefaultSettings: Boolean! """ @@ -18255,59 +23130,71 @@ input DigitalContentInput { """ urlValidDays: Int - """Overwrite default automatic_fulfillment setting for variant.""" + """ + 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!] } """ -Generate new URL to digital content. +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.") + 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.""" + """ + Digital content ID which URL will belong to. + """ content: ID! } """ -Creates a new variant for a product. +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.") + 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.""" + """ + List of attributes specific to this variant. + """ attributes: [AttributeValueInput!]! - """Stock keeping unit.""" + """ + Stock keeping unit. + """ sku: String - """Variant name.""" + """ + Variant name. + """ name: String """ @@ -18315,94 +23202,114 @@ input ProductVariantCreateInput { """ trackInventory: Boolean - """Weight of the Product Variant.""" + """ + 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 of which type is the variant. + """ product: ID! - """Stocks of a product available for sale.""" + """ + Stocks of a product available for sale. + """ stocks: [StockInput!] } input PreorderSettingsInput { - """The global threshold for preorder variant.""" + """ + The global threshold for preorder variant. + """ globalThreshold: Int - """The end date for preorder.""" + """ + The end date for preorder. + """ endDate: DateTime } input StockInput { - """Warehouse in which stock is located.""" + """ + Warehouse in which stock is located. + """ warehouse: ID! - """Quantity of items available for sell.""" + """ + Quantity of items available for sell. + """ quantity: Int! } """ -Deletes a product variant. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } """ -Creates product variants for a given product. +Creates product variants for a given product. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantBulkCreate { - """Returns how many objects were created.""" + """ + Returns how many objects were created. + """ count: Int! - """List of the created variants.""" + """ + List of the created variants. + """ productVariants: [ProductVariant!]! - bulkProductErrors: [BulkProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + bulkProductErrors: [BulkProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [BulkProductError!]! } @@ -18412,36 +23319,56 @@ type BulkProductError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ProductErrorCode! - """List of attributes IDs which causes the error.""" + """ + List of attributes IDs which causes the error. + """ attributes: [ID!] - """List of attribute values IDs which causes the error.""" + """ + List of attribute values IDs which causes the error. + """ values: [ID!] - """Index of an input list item that caused the error.""" + """ + Index of an input list item that caused the error. + """ index: Int - """List of warehouse IDs which causes the error.""" + """ + List of warehouse IDs which causes the error. + """ warehouses: [ID!] - """List of channel IDs which causes the error.""" + """ + List of channel IDs which causes the error. + """ channels: [ID!] } input ProductVariantBulkCreateInput { - """List of attributes specific to this variant.""" + """ + List of attributes specific to this variant. + """ attributes: [BulkAttributeValueInput!]! - """Stock keeping unit.""" + """ + Stock keeping unit. + """ sku: String - """Variant name.""" + """ + Variant name. + """ name: String """ @@ -18449,57 +23376,65 @@ input ProductVariantBulkCreateInput { """ trackInventory: Boolean - """Weight of the Product Variant.""" + """ + 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 of a product available for sale. + """ stocks: [StockInput!] - """List of prices assigned to channels.""" + """ + List of prices assigned to channels. + """ channelListings: [ProductVariantChannelListingAddInput!] } input BulkAttributeValueInput { - """ID of the selected attribute.""" + """ + ID of the selected attribute. + """ id: ID """ @@ -18514,46 +23449,58 @@ input BulkAttributeValueInput { } input ProductVariantChannelListingAddInput { - """ID of a channel.""" + """ + ID of a channel. + """ channelId: ID! - """Price of the particular variant in channel.""" + """ + Price of the particular variant in channel. + """ price: PositiveDecimal! - """Cost price of the variant in channel.""" + """ + 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 } """ -Deletes product variants. +Deletes product variants. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Creates stocks for product variant. +Creates stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantStocksCreate { - """Updated product variant.""" + """ + Updated product variant. + """ productVariant: ProductVariant - bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + bulkStockErrors: [BulkStockError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [BulkStockError!]! } @@ -18563,31 +23510,44 @@ type BulkStockError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ProductErrorCode! - """List of attributes IDs which causes the error.""" + """ + List of attributes IDs which causes the error. + """ attributes: [ID!] - """List of attribute values IDs which causes the error.""" + """ + List of attribute values IDs which causes the error. + """ values: [ID!] - """Index of an input list item that caused the error.""" + """ + Index of an input list item that caused the error. + """ index: Int } """ -Delete stocks from product variant. +Delete stocks from product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantStocksDelete { - """Updated product variant.""" + """ + Updated product variant. + """ productVariant: ProductVariant - stockErrors: [StockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + stockErrors: [StockError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StockError!]! } @@ -18597,14 +23557,20 @@ type StockError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: StockErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum StockErrorCode { ALREADY_EXISTS GRAPHQL_ERROR @@ -18615,36 +23581,46 @@ enum StockErrorCode { } """ -Update stocks for product variant. +Update stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantStocksUpdate { - """Updated product variant.""" + """ + Updated product variant. + """ productVariant: ProductVariant - bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + bulkStockErrors: [BulkStockError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [BulkStockError!]! } """ -Updates an existing variant for product. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } input ProductVariantInput { - """List of attributes specific to this variant.""" + """ + List of attributes specific to this variant. + """ attributes: [AttributeValueInput!] - """Stock keeping unit.""" + """ + Stock keeping unit. + """ sku: String - """Variant name.""" + """ + Variant name. + """ name: String """ @@ -18652,67 +23628,71 @@ input ProductVariantInput { """ trackInventory: Boolean - """Weight of the Product Variant.""" + """ + 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 } """ -Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Creates/updates translations for a product variant. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! productVariant: ProductVariant } @@ -18722,26 +23702,32 @@ input NameTranslationInput { } """ -Manage product variant prices in channels. +Manage product variant prices in channels. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantChannelListingUpdate { - """An updated product variant instance.""" + """ + An updated product variant instance. + """ variant: ProductVariant - productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productChannelListingErrors: [ProductChannelListingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductChannelListingError!]! } """ -Reorder product variant attribute values. +Reorder product variant attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantReorderAttributeValues { - """Product variant from which attribute values are reordered.""" + """ + 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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -18750,49 +23736,56 @@ Deactivates product variant preorder. It changes all preorder allocation into re Added in Saleor 3.1. -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: MANAGE_PRODUCTS. """ type ProductVariantPreorderDeactivate { - """Product variant with ended preorder.""" + """ + Product variant with ended preorder. + """ productVariant: ProductVariant errors: [ProductError!]! } """ -Assign an media to a product variant. +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.") + 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. +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.") + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } """ -Captures the authorized payment amount. +Captures the authorized payment amount. Requires one of the following permissions: MANAGE_ORDERS. """ type PaymentCapture { - """Updated payment.""" + """ + Updated payment. + """ payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } @@ -18802,17 +23795,25 @@ type PaymentError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: PaymentErrorCode! - """List of variant IDs which causes the error.""" + """ + List of variant IDs which causes the error. + """ variants: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum PaymentErrorCode { BILLING_ADDRESS_NOT_SET GRAPHQL_ERROR @@ -18834,33 +23835,42 @@ enum PaymentErrorCode { } """ -Refunds the captured payment amount. +Refunds the captured payment amount. Requires one of the following permissions: MANAGE_ORDERS. """ type PaymentRefund { - """Updated payment.""" + """ + Updated payment. + """ payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } """ -Voids the authorized payment. +Voids the authorized payment. Requires one of the following permissions: MANAGE_ORDERS. """ type PaymentVoid { - """Updated payment.""" + """ + Updated payment. + """ payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } -"""Initializes payment process when it is required by gateway.""" +""" +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.") + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } @@ -18868,35 +23878,54 @@ type PaymentInitialize { 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.""" + """ + ID of a payment gateway. + """ gateway: String! - """Payment gateway name.""" + """ + Payment gateway name. + """ name: String! - """Initialized data by gateway.""" + """ + Initialized data by gateway. + """ data: JSONString } -"""Check payment balance.""" +""" +Check payment balance. +""" type PaymentCheckBalance { - """Response from the gateway.""" + """ + Response from the gateway. + """ data: JSONString - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } input PaymentCheckBalanceInput { - """An ID of a payment gateway to check.""" + """ + An ID of a payment gateway to check. + """ gatewayId: String! - """Payment method name.""" + """ + Payment method name. + """ method: String! - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String! - """Information about card.""" + """ + Information about card. + """ card: CardInput! } @@ -18906,18 +23935,26 @@ input CardInput { """ code: String! - """Card security code.""" + """ + Card security code. + """ cvc: String - """Information about currency and amount.""" + """ + Information about currency and amount. + """ money: MoneyInput! } input MoneyInput { - """Currency code.""" + """ + Currency code. + """ currency: String! - """Amount of money.""" + """ + Amount of money. + """ amount: PositiveDecimal! } @@ -18939,14 +23976,20 @@ type TransactionCreateError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TransactionCreateErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum TransactionCreateErrorCode { INVALID GRAPHQL_ERROR @@ -18956,45 +23999,71 @@ enum TransactionCreateErrorCode { } input TransactionCreateInput { - """Status of the transaction.""" + """ + Status of the transaction. + """ status: String! - """Payment type used for this transaction.""" + """ + Payment type used for this transaction. + """ type: String! - """Reference of the transaction.""" + """ + Reference of the transaction. + """ reference: String - """List of all possible actions for the transaction""" + """ + List of all possible actions for the transaction + """ availableActions: [TransactionActionEnum!] - """Amount authorized by this transaction.""" + """ + Amount authorized by this transaction. + """ amountAuthorized: MoneyInput - """Amount charged by this transaction.""" + """ + Amount charged by this transaction. + """ amountCharged: MoneyInput - """Amount refunded by this transaction.""" + """ + Amount refunded by this transaction. + """ amountRefunded: MoneyInput - """Amount voided by this transaction.""" + """ + Amount voided by this transaction. + """ amountVoided: MoneyInput - """Payment public metadata.""" + """ + Payment public metadata. + """ metadata: [MetadataInput!] - """Payment private metadata.""" + """ + Payment private metadata. + """ privateMetadata: [MetadataInput!] } input TransactionEventInput { - """Current status of the payment transaction.""" + """ + Current status of the payment transaction. + """ status: TransactionStatus! - """Reference of the transaction.""" + """ + Reference of the transaction. + """ reference: String - """Name of the transaction.""" + """ + Name of the transaction. + """ name: String } @@ -19016,14 +24085,20 @@ type TransactionUpdateError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TransactionUpdateErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum TransactionUpdateErrorCode { INVALID GRAPHQL_ERROR @@ -19033,34 +24108,54 @@ enum TransactionUpdateErrorCode { } input TransactionUpdateInput { - """Status of the transaction.""" + """ + Status of the transaction. + """ status: String - """Payment type used for this transaction.""" + """ + Payment type used for this transaction. + """ type: String - """Reference of the transaction.""" + """ + Reference of the transaction. + """ reference: String - """List of all possible actions for the transaction""" + """ + List of all possible actions for the transaction + """ availableActions: [TransactionActionEnum!] - """Amount authorized by this transaction.""" + """ + Amount authorized by this transaction. + """ amountAuthorized: MoneyInput - """Amount charged by this transaction.""" + """ + Amount charged by this transaction. + """ amountCharged: MoneyInput - """Amount refunded by this transaction.""" + """ + Amount refunded by this transaction. + """ amountRefunded: MoneyInput - """Amount voided by this transaction.""" + """ + Amount voided by this transaction. + """ amountVoided: MoneyInput - """Payment public metadata.""" + """ + Payment public metadata. + """ metadata: [MetadataInput!] - """Payment private metadata.""" + """ + Payment private metadata. + """ privateMetadata: [MetadataInput!] } @@ -19069,7 +24164,7 @@ 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. +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. """ @@ -19084,14 +24179,20 @@ type TransactionRequestActionError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: TransactionRequestActionErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum TransactionRequestActionErrorCode { INVALID GRAPHQL_ERROR @@ -19100,12 +24201,13 @@ enum TransactionRequestActionErrorCode { } """ -Creates a new page. +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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! page: Page } @@ -19116,20 +24218,30 @@ type PageError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: PageErrorCode! - """List of attributes IDs which causes the error.""" + """ + List of attributes IDs which causes the error. + """ attributes: [ID!] - """List of attribute values IDs which causes the error.""" + """ + List of attribute values IDs which causes the error. + """ values: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum PageErrorCode { GRAPHQL_ERROR INVALID @@ -19141,137 +24253,168 @@ enum PageErrorCode { } input PageCreateInput { - """Page internal name.""" + """ + Page internal name. + """ slug: String - """Page title.""" + """ + Page title. + """ title: String """ Page content. - + Rich text format. For reference see https://editorjs.io/ """ content: JSONString - """List of attributes.""" + """ + List of attributes. + """ attributes: [AttributeValueInput!] - """Determines if page is visible in the storefront.""" + """ + Determines if page is visible in the storefront. + """ isPublished: Boolean """ - Publication date. ISO 8601 standard. - + 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.""" + """ + Search engine optimization fields. + """ seo: SeoInput - """ID of the page type that page belongs to.""" + """ + ID of the page type that page belongs to. + """ pageType: ID! } """ -Deletes a 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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! page: Page } """ -Deletes pages. +Deletes pages. Requires one of the following permissions: MANAGE_PAGES. """ type PageBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } """ -Publish pages. +Publish pages. Requires one of the following permissions: MANAGE_PAGES. """ type PageBulkPublish { - """Returns how many objects were affected.""" + """ + 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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } """ -Updates an existing page. +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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! page: Page } input PageInput { - """Page internal name.""" + """ + Page internal name. + """ slug: String - """Page title.""" + """ + Page title. + """ title: String """ Page content. - + Rich text format. For reference see https://editorjs.io/ """ content: JSONString - """List of attributes.""" + """ + List of attributes. + """ attributes: [AttributeValueInput!] - """Determines if page is visible in the storefront.""" + """ + Determines if page is visible in the storefront. + """ isPublished: Boolean """ - Publication date. ISO 8601 standard. - + 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.""" + """ + Search engine optimization fields. + """ seo: SeoInput } """ -Creates/updates translations for a page. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! page: PageTranslatableContent } @@ -19283,179 +24426,233 @@ input PageTranslationInput { """ Translated page content. - + Rich text format. For reference see https://editorjs.io/ """ content: JSONString } """ -Create a new page type. +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.") + 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 of the page type. + """ name: String - """Page type slug.""" + """ + Page type slug. + """ slug: String - """List of attribute IDs to be assigned to the page type.""" + """ + List of attribute IDs to be assigned to the page type. + """ addAttributes: [ID!] } """ -Update page type. +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.") + 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 of the page type. + """ name: String - """Page type slug.""" + """ + Page type slug. + """ slug: String - """List of attribute IDs to be assigned to the page type.""" + """ + List of attribute IDs to be assigned to the page type. + """ addAttributes: [ID!] - """List of attribute IDs to be assigned to the page type.""" + """ + List of attribute IDs to be assigned to the page type. + """ removeAttributes: [ID!] } """ -Delete a page type. +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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! pageType: PageType } """ -Delete page types. +Delete page types. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ type PageTypeBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } """ -Assign attributes to a given page type. +Assign attributes to a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ type PageAttributeAssign { - """The updated page type.""" + """ + The updated page type. + """ pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } """ -Unassign attributes from a given page type. +Unassign attributes from a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ type PageAttributeUnassign { - """The updated page type.""" + """ + The updated page type. + """ pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } """ -Reorder the attributes of a page type. +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.""" + """ + 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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } """ -Reorder page attribute values. +Reorder page attribute values. Requires one of the following permissions: MANAGE_PAGES. """ type PageReorderAttributeValues { - """Page from which attribute values are reordered.""" + """ + 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.") + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } """ -Completes creating an order. +Completes creating an order. Requires one of the following permissions: MANAGE_ORDERS. """ type DraftOrderComplete { - """Completed order.""" + """ + Completed order. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Creates a new draft order. +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.") + 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.""" + """ + Billing address of the customer. + """ billingAddress: AddressInput - """Customer associated with the draft order.""" + """ + Customer associated with the draft order. + """ user: ID - """Email address of the customer.""" + """ + Email address of the customer. + """ userEmail: String - """Discount amount for the order.""" + """ + Discount amount for the order. + """ discount: PositiveDecimal - """Shipping address of the customer.""" + """ + Shipping address of the customer. + """ shippingAddress: AddressInput - """ID of a selected shipping method.""" + """ + ID of a selected shipping method. + """ shippingMethod: ID - """ID of the voucher associated with the order.""" + """ + ID of the voucher associated with the order. + """ voucher: ID - """A note from a customer. Visible by customers in the order summary.""" + """ + A note from a customer. Visible by customers in the order summary. + """ customerNote: String - """ID of the channel associated with the order.""" + """ + ID of the channel associated with the order. + """ channelId: ID """ @@ -19465,104 +24662,136 @@ input DraftOrderCreateInput { """ External ID of this order. - + Added in Saleor 3.10. """ externalReference: String - """Variant line input consisting of variant ID and quantity of products.""" + """ + Variant line input consisting of variant ID and quantity of products. + """ lines: [OrderLineCreateInput!] } input OrderLineCreateInput { - """Number of variant items ordered.""" + """ + Number of variant items ordered. + """ quantity: Int! - """Product variant ID.""" + """ + Product variant ID. + """ variantId: ID! """ - Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. - + 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 a draft 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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! order: Order } """ -Deletes draft orders. +Deletes draft orders. Requires one of the following permissions: MANAGE_ORDERS. """ type DraftOrderBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Deletes order lines. +Deletes order lines. Requires one of the following permissions: MANAGE_ORDERS. """ type DraftOrderLinesBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Updates a draft order. +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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! order: Order } input DraftOrderInput { - """Billing address of the customer.""" + """ + Billing address of the customer. + """ billingAddress: AddressInput - """Customer associated with the draft order.""" + """ + Customer associated with the draft order. + """ user: ID - """Email address of the customer.""" + """ + Email address of the customer. + """ userEmail: String - """Discount amount for the order.""" + """ + Discount amount for the order. + """ discount: PositiveDecimal - """Shipping address of the customer.""" + """ + Shipping address of the customer. + """ shippingAddress: AddressInput - """ID of a selected shipping method.""" + """ + ID of a selected shipping method. + """ shippingMethod: ID - """ID of the voucher associated with the order.""" + """ + ID of the voucher associated with the order. + """ voucher: ID - """A note from a customer. Visible by customers in the order summary.""" + """ + A note from a customer. Visible by customers in the order summary. + """ customerNote: String - """ID of the channel associated with the order.""" + """ + ID of the channel associated with the order. + """ channelId: ID """ @@ -19572,128 +24801,166 @@ input DraftOrderInput { """ External ID of this order. - + Added in Saleor 3.10. """ externalReference: String } """ -Adds note to the order. +Adds note to the order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderAddNote { - """Order with the note added.""" + """ + Order with the note added. + """ order: Order - """Order note created.""" + """ + Order note created. + """ event: OrderEvent - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } input OrderAddNoteInput { - """Note message.""" + """ + Note message. + """ message: String! } """ -Cancel an order. +Cancel an order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderCancel { - """Canceled order.""" + """ + Canceled order. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Capture an order. +Capture an order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderCapture { - """Captured order.""" + """ + Captured order. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Confirms an unconfirmed order by changing status to unfulfilled. +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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Creates new fulfillments for an order. +Creates new fulfillments for an order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderFulfill { - """List of created fulfillments.""" + """ + List of created fulfillments. + """ fulfillments: [Fulfillment!] - """Fulfilled order.""" + """ + Fulfilled order. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } input OrderFulfillInput { - """List of items informing how to fulfill the order.""" + """ + List of items informing how to fulfill the order. + """ lines: [OrderFulfillLineInput!]! - """If true, send an email notification to the customer.""" + """ + If true, send an email notification to the customer. + """ notifyCustomer: Boolean - """If true, then allow proceed fulfillment when stock is exceeded.""" + """ + 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.""" + """ + The ID of the order line. + """ orderLineId: ID - """List of stock items to create.""" + """ + List of stock items to create. + """ stocks: [OrderFulfillStockInput!]! } input OrderFulfillStockInput { - """The number of line items to be fulfilled from given warehouse.""" + """ + The number of line items to be fulfilled from given warehouse. + """ quantity: Int! - """ID of the warehouse from which the item will be fulfilled.""" + """ + ID of the warehouse from which the item will be fulfilled. + """ warehouse: ID! } """ -Cancels existing fulfillment and optionally restocks items. +Cancels existing fulfillment and optionally restocks items. Requires one of the following permissions: MANAGE_ORDERS. """ type FulfillmentCancel { - """A canceled fulfillment.""" + """ + A canceled fulfillment. + """ fulfillment: Fulfillment - """Order which fulfillment was cancelled.""" + """ + Order which fulfillment was cancelled. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -19707,66 +24974,91 @@ input FulfillmentCancelInput { """ Approve existing fulfillment. -Added in Saleor 3.1. +Added in Saleor 3.1. Requires one of the following permissions: MANAGE_ORDERS. """ type FulfillmentApprove { - """An approved fulfillment.""" + """ + An approved fulfillment. + """ fulfillment: Fulfillment - """Order which fulfillment was approved.""" + """ + Order which fulfillment was approved. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Updates a fulfillment for an order. +Updates a fulfillment for an order. Requires one of the following permissions: MANAGE_ORDERS. """ type FulfillmentUpdateTracking { - """A fulfillment with updated tracking.""" + """ + A fulfillment with updated tracking. + """ fulfillment: Fulfillment - """Order for which fulfillment was updated.""" + """ + 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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } input FulfillmentUpdateTrackingInput { - """Fulfillment tracking number.""" + """ + Fulfillment tracking number. + """ trackingNumber: String - """If true, send an email notification to the customer.""" + """ + If true, send an email notification to the customer. + """ notifyCustomer: Boolean = false } """ -Refund products. +Refund products. Requires one of the following permissions: MANAGE_ORDERS. """ type FulfillmentRefundProducts { - """A refunded fulfillment.""" + """ + A refunded fulfillment. + """ fulfillment: Fulfillment - """Order which fulfillment was refunded.""" + """ + Order which fulfillment was refunded. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } input OrderRefundProductsInput { - """List of unfulfilled lines to refund.""" + """ + List of unfulfilled lines to refund. + """ orderLines: [OrderRefundLineInput!] - """List of fulfilled lines to refund.""" + """ + List of fulfilled lines to refund. + """ fulfillmentLines: [OrderRefundFulfillmentLineInput!] - """The total amount of refund when the value is provided manually.""" + """ + The total amount of refund when the value is provided manually. + """ amountToRefund: PositiveDecimal """ @@ -19776,50 +25068,73 @@ input OrderRefundProductsInput { } input OrderRefundLineInput { - """The ID of the order line to refund.""" + """ + The ID of the order line to refund. + """ orderLineId: ID! - """The number of items to be refunded.""" + """ + The number of items to be refunded. + """ quantity: Int! } input OrderRefundFulfillmentLineInput { - """The ID of the fulfillment line to refund.""" + """ + The ID of the fulfillment line to refund. + """ fulfillmentLineId: ID! - """The number of items to be refunded.""" + """ + The number of items to be refunded. + """ quantity: Int! } """ -Return products. +Return products. Requires one of the following permissions: MANAGE_ORDERS. """ type FulfillmentReturnProducts { - """A return fulfillment.""" + """ + A return fulfillment. + """ returnFulfillment: Fulfillment - """A replace fulfillment.""" + """ + A replace fulfillment. + """ replaceFulfillment: Fulfillment - """Order which fulfillment was returned.""" + """ + Order which fulfillment was returned. + """ order: Order - """A draft order which was created for products with replace flag.""" + """ + 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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } input OrderReturnProductsInput { - """List of unfulfilled lines to return.""" + """ + List of unfulfilled lines to return. + """ orderLines: [OrderReturnLineInput!] - """List of fulfilled lines to return.""" + """ + List of fulfilled lines to return. + """ fulfillmentLines: [OrderReturnFulfillmentLineInput!] - """The total amount of refund when the value is provided manually.""" + """ + The total amount of refund when the value is provided manually. + """ amountToRefund: PositiveDecimal """ @@ -19827,219 +25142,289 @@ input OrderReturnProductsInput { """ includeShippingCosts: Boolean = false - """If true, Saleor will call refund action for all lines.""" + """ + If true, Saleor will call refund action for all lines. + """ refund: Boolean = false } input OrderReturnLineInput { - """The ID of the order line to return.""" + """ + The ID of the order line to return. + """ orderLineId: ID! - """The number of items to be returned.""" + """ + The number of items to be returned. + """ quantity: Int! - """Determines, if the line should be added to replace order.""" + """ + Determines, if the line should be added to replace order. + """ replace: Boolean = false } input OrderReturnFulfillmentLineInput { - """The ID of the fulfillment line to return.""" + """ + The ID of the fulfillment line to return. + """ fulfillmentLineId: ID! - """The number of items to be returned.""" + """ + The number of items to be returned. + """ quantity: Int! - """Determines, if the line should be added to replace order.""" + """ + Determines, if the line should be added to replace order. + """ replace: Boolean = false } """ -Create order lines for an order. +Create order lines for an order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderLinesCreate { - """Related order.""" + """ + Related order. + """ order: Order - """List of added order lines.""" + """ + List of added order lines. + """ orderLines: [OrderLine!] - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Deletes an order line from an order. +Deletes an order line from an order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderLineDelete { - """A related order.""" + """ + A related order. + """ order: Order - """An order line that was deleted.""" + """ + 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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Updates an order line of an order. +Updates an order line of an order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderLineUpdate { - """Related order.""" + """ + Related order. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! orderLine: OrderLine } input OrderLineInput { - """Number of variant items ordered.""" + """ + Number of variant items ordered. + """ quantity: Int! } """ -Adds discount to the order. +Adds discount to the order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderDiscountAdd { - """Order which has been discounted.""" + """ + Order which has been discounted. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } input OrderDiscountCommonInput { - """Type of the discount: fixed or percent""" + """ + Type of the discount: fixed or percent + """ valueType: DiscountValueTypeEnum! - """Value of the discount. Can store fixed value or percent value""" + """ + Value of the discount. Can store fixed value or percent value + """ value: PositiveDecimal! - """Explanation for the applied discount.""" + """ + Explanation for the applied discount. + """ reason: String } """ -Update discount for the order. +Update discount for the order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderDiscountUpdate { - """Order which has been discounted.""" + """ + Order which has been discounted. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Remove discount from the order. +Remove discount from the order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderDiscountDelete { - """Order which has removed discount.""" + """ + Order which has removed discount. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Update discount for the order line. +Update discount for the order line. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderLineDiscountUpdate { - """Order line which has been discounted.""" + """ + Order line which has been discounted. + """ orderLine: OrderLine - """Order which is related to the discounted line.""" + """ + 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.") + 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. +Remove discount applied to the order line. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderLineDiscountRemove { - """Order line which has removed discount.""" + """ + Order line which has removed discount. + """ orderLine: OrderLine - """Order which is related to line which has removed discount.""" + """ + 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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Mark order as manually paid. +Mark order as manually paid. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderMarkAsPaid { - """Order marked as paid.""" + """ + Order marked as paid. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Refund an order. +Refund an order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderRefund { - """A refunded order.""" + """ + A refunded order. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Updates an order. +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.") + 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.""" + """ + Billing address of the customer. + """ billingAddress: AddressInput - """Email address of the customer.""" + """ + Email address of the customer. + """ userEmail: String - """Shipping address of the customer.""" + """ + 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. +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 with updated shipping method. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -20051,26 +25436,32 @@ input OrderUpdateShippingInput { } """ -Void an order. +Void an order. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderVoid { - """A voided order.""" + """ + A voided order. + """ order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } """ -Cancels orders. +Cancels orders. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderBulkCancel { - """Returns how many objects were affected.""" + """ + 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.") + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -20078,7 +25469,8 @@ type OrderBulkCancel { 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.") + metadataErrors: [MetadataError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! item: ObjectWithMetadata } @@ -20089,14 +25481,20 @@ type MetadataError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: MetadataErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum MetadataErrorCode { GRAPHQL_ERROR INVALID @@ -20109,7 +25507,8 @@ enum MetadataErrorCode { 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.") + metadataErrors: [MetadataError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! item: ObjectWithMetadata } @@ -20118,7 +25517,8 @@ type DeletePrivateMetadata { 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.") + metadataErrors: [MetadataError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! item: ObjectWithMetadata } @@ -20127,20 +25527,24 @@ type 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. """ type UpdatePrivateMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + metadataErrors: [MetadataError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! item: ObjectWithMetadata } """ -Assigns storefront's navigation menus. +Assigns storefront's navigation menus. Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. """ type AssignNavigation { - """Assigned navigation menu.""" + """ + Assigned navigation menu. + """ menu: Menu - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! } @@ -20150,14 +25554,20 @@ type MenuError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: MenuErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum MenuErrorCode { CANNOT_ASSIGN_NODE GRAPHQL_ERROR @@ -20171,190 +25581,248 @@ enum MenuErrorCode { } enum NavigationType { - """Main storefront navigation.""" + """ + Main storefront navigation. + """ MAIN - """Secondary storefront navigation.""" + """ + Secondary storefront navigation. + """ SECONDARY } """ -Creates a new Menu. +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.") + 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 of the menu. + """ name: String! - """Slug of the menu. Will be generated if not provided.""" + """ + Slug of the menu. Will be generated if not provided. + """ slug: String - """List of menu items.""" + """ + List of menu items. + """ items: [MenuItemInput!] } input MenuItemInput { - """Name of the menu item.""" + """ + Name of the menu item. + """ name: String - """URL of the pointed item.""" + """ + URL of the pointed item. + """ url: String - """Category to which item points.""" + """ + Category to which item points. + """ category: ID - """Collection to which item points.""" + """ + Collection to which item points. + """ collection: ID - """Page to which item points.""" + """ + Page to which item points. + """ page: ID } """ -Deletes a 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.") + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menu: Menu } """ -Deletes menus. +Deletes menus. Requires one of the following permissions: MANAGE_MENUS. """ type MenuBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! } """ -Updates a menu. +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.") + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menu: Menu } input MenuInput { - """Name of the menu.""" + """ + Name of the menu. + """ name: String - """Slug of the menu.""" + """ + Slug of the menu. + """ slug: String } """ -Creates a new menu item. +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.") + 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 of the menu item. + """ name: String! - """URL of the pointed item.""" + """ + URL of the pointed item. + """ url: String - """Category to which item points.""" + """ + Category to which item points. + """ category: ID - """Collection to which item points.""" + """ + Collection to which item points. + """ collection: ID - """Page to which item points.""" + """ + Page to which item points. + """ page: ID - """Menu to which item belongs.""" + """ + Menu to which item belongs. + """ menu: ID! - """ID of the parent menu. If empty, menu will be top level menu.""" + """ + ID of the parent menu. If empty, menu will be top level menu. + """ parent: ID } """ -Deletes a menu item. +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.") + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menuItem: MenuItem } """ -Deletes menu items. +Deletes menu items. Requires one of the following permissions: MANAGE_MENUS. """ type MenuItemBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! } """ -Updates a menu item. +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.") + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menuItem: MenuItem } """ -Creates/updates translations for a menu item. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! menuItem: MenuItem } """ -Moves items of menus. +Moves items of menus. Requires one of the following permissions: MANAGE_MENUS. """ type MenuItemMove { - """Assigned menu to move within.""" + """ + Assigned menu to move within. + """ menu: Menu - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! } input MenuItemMoveInput { - """The menu item ID to move.""" + """ + The menu item ID to move. + """ itemId: ID! - """ID of the parent menu. If empty, menu will be top level menu.""" + """ + ID of the parent menu. If empty, menu will be top level menu. + """ parentId: ID """ @@ -20364,14 +25832,17 @@ input MenuItemMoveInput { } """ -Request an invoice for the order using 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 related to an invoice. + """ order: Order - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } @@ -20382,14 +25853,20 @@ type InvoiceError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: InvoiceErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum InvoiceErrorCode { REQUIRED NOT_READY @@ -20402,85 +25879,101 @@ enum InvoiceErrorCode { } """ -Requests deletion of an 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.") + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } """ -Creates a ready to send invoice. +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.") + 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.""" + """ + Invoice number. + """ number: String! - """URL of an invoice to download.""" + """ + URL of an invoice to download. + """ url: String! } """ -Deletes an invoice. +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.") + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } """ -Updates an invoice. +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.") + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } input UpdateInvoiceInput { - """Invoice number""" + """ + Invoice number + """ number: String - """URL of an invoice to download.""" + """ + URL of an invoice to download. + """ url: String } """ -Send an invoice notification to the customer. +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.") + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } """ -Activate a gift card. +Activate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ type GiftCardActivate { - """Activated gift card.""" + """ + Activated gift card. + """ giftCard: GiftCard - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! } @@ -20490,17 +25983,25 @@ type GiftCardError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: GiftCardErrorCode! - """List of tag values that cause the error.""" + """ + List of tag values that cause the error. + """ tags: [String!] } -"""An enumeration.""" +""" +An enumeration. +""" enum GiftCardErrorCode { ALREADY_EXISTS GRAPHQL_ERROR @@ -20513,12 +26014,13 @@ enum GiftCardErrorCode { } """ -Creates a new gift card. +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.") + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard } @@ -20526,82 +26028,90 @@ type GiftCardCreate { 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. - + 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. - + 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 of the gift card. + """ balance: PriceInput! - """Email of the customer to whom gift card will be sent.""" + """ + 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. - + 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 } input PriceInput { - """Currency code.""" + """ + Currency code. + """ currency: String! - """Amount of money.""" + """ + Amount of money. + """ amount: PositiveDecimal! } @@ -20610,35 +26120,40 @@ 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. +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.") + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard } """ -Deactivate a gift card. +Deactivate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. """ type GiftCardDeactivate { - """Deactivated gift card.""" + """ + Deactivated gift card. + """ giftCard: GiftCard - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! } """ -Update a gift card. +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.") + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard } @@ -20646,50 +26161,50 @@ type GiftCardUpdate { 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. - + 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. - + 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 @@ -20700,24 +26215,32 @@ 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. +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.""" + """ + Gift card which has been sent. + """ giftCard: GiftCard errors: [GiftCardError!]! } input GiftCardResendInput { - """ID of a gift card to resend.""" + """ + ID of a gift card to resend. + """ id: ID! - """Email to which gift card should be send.""" + """ + Email to which gift card should be send. + """ email: String - """Slug of a channel from which the email should be sent.""" + """ + Slug of a channel from which the email should be sent. + """ channel: String! } @@ -20726,21 +26249,27 @@ 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. +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.""" + """ + Gift card with the note added. + """ giftCard: GiftCard - """Gift card note created.""" + """ + Gift card note created. + """ event: GiftCardEvent errors: [GiftCardError!]! } input GiftCardAddNoteInput { - """Note message.""" + """ + Note message. + """ message: String! } @@ -20749,33 +26278,47 @@ 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. +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.""" + """ + Returns how many objects were created. + """ count: Int! - """List of created gift cards.""" + """ + List of created gift cards. + """ giftCards: [GiftCard!]! errors: [GiftCardError!]! } input GiftCardBulkCreateInput { - """The number of cards to issue.""" + """ + The number of cards to issue. + """ count: Int! - """Balance of the gift card.""" + """ + Balance of the gift card. + """ balance: PriceInput! - """The gift card tags.""" + """ + The gift card tags. + """ tags: [String!] - """The gift card expiry date.""" + """ + The gift card expiry date. + """ expiryDate: Date - """Determine if gift card is active.""" + """ + Determine if gift card is active. + """ isActive: Boolean! } @@ -20784,12 +26327,14 @@ 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. +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.""" + """ + Returns how many objects were affected. + """ count: Int! errors: [GiftCardError!]! } @@ -20799,12 +26344,14 @@ 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. +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.""" + """ + Returns how many objects were affected. + """ count: Int! errors: [GiftCardError!]! } @@ -20814,24 +26361,27 @@ 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. +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.""" + """ + Returns how many objects were affected. + """ count: Int! errors: [GiftCardError!]! } """ -Update plugin configuration. +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.") + pluginsErrors: [PluginError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PluginError!]! } @@ -20841,14 +26391,20 @@ type PluginError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: PluginErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum PluginErrorCode { GRAPHQL_ERROR INVALID @@ -20859,18 +26415,26 @@ enum PluginErrorCode { } input PluginUpdateInput { - """Indicates whether the plugin should be enabled.""" + """ + Indicates whether the plugin should be enabled. + """ active: Boolean - """Configuration of the plugin.""" + """ + Configuration of the plugin. + """ configuration: [ConfigurationItemInput!] } input ConfigurationItemInput { - """Name of the field to update.""" + """ + Name of the field to update. + """ name: String! - """Value of the given field to update.""" + """ + Value of the given field to update. + """ value: String } @@ -20889,14 +26453,20 @@ type ExternalNotificationError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ExternalNotificationErrorCodes! } -"""An enumeration.""" +""" +An enumeration. +""" enum ExternalNotificationErrorCodes { REQUIRED INVALID_MODEL_TYPE @@ -20922,12 +26492,13 @@ input ExternalNotificationTriggerInput { } """ -Creates a new sale. +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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } @@ -20938,20 +26509,30 @@ type DiscountError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """List of products IDs which causes the error.""" + """ + List of products IDs which causes the error. + """ products: [ID!] - """The error code.""" + """ + The error code. + """ code: DiscountErrorCode! - """List of channels IDs which causes the error.""" + """ + List of channels IDs which causes the error. + """ channels: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum DiscountErrorCode { ALREADY_EXISTS GRAPHQL_ERROR @@ -20964,314 +26545,415 @@ enum DiscountErrorCode { } input SaleInput { - """Voucher name.""" + """ + Voucher name. + """ name: String - """Fixed or percentage.""" + """ + Fixed or percentage. + """ type: DiscountValueTypeEnum - """Value of the voucher.""" + """ + Value of the voucher. + """ value: PositiveDecimal - """Products related to the discount.""" + """ + Products related to the discount. + """ products: [ID!] variants: [ID!] - """Categories related to the discount.""" + """ + Categories related to the discount. + """ categories: [ID!] - """Collections related to the discount.""" + """ + Collections related to the discount. + """ collections: [ID!] - """Start date of the voucher in ISO 8601 format.""" + """ + Start date of the voucher in ISO 8601 format. + """ startDate: DateTime - """End date of the voucher in ISO 8601 format.""" + """ + End date of the voucher in ISO 8601 format. + """ endDate: DateTime } """ -Deletes a 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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } """ -Deletes sales. +Deletes sales. Requires one of the following permissions: MANAGE_DISCOUNTS. """ type SaleBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } """ -Updates a sale. +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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } """ -Adds products, categories, collections to a voucher. +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 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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } input CatalogueInput { - """Products related to the discount.""" + """ + Products related to the discount. + """ products: [ID!] - """Categories related to the discount.""" + """ + Categories related to the discount. + """ categories: [ID!] - """Collections related to the discount.""" + """ + Collections related to the discount. + """ collections: [ID!] """ Product variant related to the discount. - + Added in Saleor 3.1. """ variants: [ID!] } """ -Removes products, categories, collections from a sale. +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 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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } """ -Creates/updates translations for a sale. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! sale: Sale } """ -Manage sale's availability in channels. +Manage sale's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. """ type SaleChannelListingUpdate { - """An updated sale instance.""" + """ + An updated sale instance. + """ sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } input SaleChannelListingInput { - """List of channels to which the sale should be assigned.""" + """ + List of channels to which the sale should be assigned. + """ addChannels: [SaleChannelListingAddInput!] - """List of channels from which the sale should be unassigned.""" + """ + List of channels from which the sale should be unassigned. + """ removeChannels: [ID!] } input SaleChannelListingAddInput { - """ID of a channel.""" + """ + ID of a channel. + """ channelId: ID! - """The value of the discount.""" + """ + The value of the discount. + """ discountValue: PositiveDecimal! } """ -Creates a new voucher. +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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher } input VoucherInput { - """Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER.""" + """ + Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. + """ type: VoucherTypeEnum - """Voucher name.""" + """ + Voucher name. + """ name: String - """Code to use the voucher.""" + """ + Code to use the voucher. + """ code: String - """Start date of the voucher in ISO 8601 format.""" + """ + Start date of the voucher in ISO 8601 format. + """ startDate: DateTime - """End date of the voucher in ISO 8601 format.""" + """ + End date of the voucher in ISO 8601 format. + """ endDate: DateTime - """Choices: fixed or percentage.""" + """ + Choices: fixed or percentage. + """ discountValueType: DiscountValueTypeEnum - """Products discounted by the voucher.""" + """ + 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 discounted by the voucher. + """ collections: [ID!] - """Categories discounted by the voucher.""" + """ + Categories discounted by the voucher. + """ categories: [ID!] - """Minimal quantity of checkout items required to apply the voucher.""" + """ + Minimal quantity of checkout items required to apply the voucher. + """ minCheckoutItemsQuantity: Int - """Country codes that can be used with the shipping voucher.""" + """ + Country codes that can be used with the shipping voucher. + """ countries: [String!] - """Voucher should be applied to the cheapest item or entire order.""" + """ + Voucher should be applied to the cheapest item or entire order. + """ applyOncePerOrder: Boolean - """Voucher should be applied once per customer.""" + """ + Voucher should be applied once per customer. + """ applyOncePerCustomer: Boolean - """Voucher can be used only by staff user.""" + """ + Voucher can be used only by staff user. + """ onlyForStaff: Boolean - """Limit number of times this voucher can be used in total.""" + """ + Limit number of times this voucher can be used in total. + """ usageLimit: Int } """ -Deletes a 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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher } """ -Deletes vouchers. +Deletes vouchers. Requires one of the following permissions: MANAGE_DISCOUNTS. """ type VoucherBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } """ -Updates a voucher. +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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher } """ -Adds products, categories, collections to a voucher. +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 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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } """ -Removes products, categories, collections from a 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 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.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } """ -Creates/updates translations for a voucher. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! voucher: Voucher } """ -Manage voucher's availability in channels. +Manage voucher's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. """ type VoucherChannelListingUpdate { - """An updated voucher instance.""" + """ + An updated voucher instance. + """ voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } input VoucherChannelListingInput { - """List of channels to which the voucher should be assigned.""" + """ + List of channels to which the voucher should be assigned. + """ addChannels: [VoucherChannelListingAddInput!] - """List of channels from which the voucher should be unassigned.""" + """ + List of channels from which the voucher should be unassigned. + """ removeChannels: [ID!] } input VoucherChannelListingAddInput { - """ID of a channel.""" + """ + ID of a channel. + """ channelId: ID! - """Value of the voucher.""" + """ + Value of the voucher. + """ discountValue: PositiveDecimal - """Min purchase amount required to apply the voucher.""" + """ + Min purchase amount required to apply the voucher. + """ minAmountSpent: PositiveDecimal } """ -Export products to csv file. +Export products to csv file. Requires one of the following permissions: MANAGE_PRODUCTS. """ @@ -21280,7 +26962,8 @@ 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.") + exportErrors: [ExportError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ExportError!]! } @@ -21290,14 +26973,20 @@ type ExportError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ExportErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum ExportErrorCode { GRAPHQL_ERROR INVALID @@ -21306,44 +26995,68 @@ enum ExportErrorCode { } input ExportProductsInput { - """Determine which products should be exported.""" + """ + Determine which products should be exported. + """ scope: ExportScope! - """Filtering options for products.""" + """ + Filtering options for products. + """ filter: ProductFilterInput - """List of products IDs to export.""" + """ + List of products IDs to export. + """ ids: [ID!] - """Input with info about fields which should be exported.""" + """ + Input with info about fields which should be exported. + """ exportInfo: ExportInfoInput - """Type of exported file.""" + """ + Type of exported file. + """ fileType: FileTypesEnum! } enum ExportScope { - """Export all products.""" + """ + Export all products. + """ ALL - """Export products with given ids.""" + """ + Export products with given ids. + """ IDS - """Export the filtered products.""" + """ + Export the filtered products. + """ FILTER } input ExportInfoInput { - """List of attribute ids witch should be exported.""" + """ + List of attribute ids witch should be exported. + """ attributes: [ID!] - """List of warehouse ids witch should be exported.""" + """ + List of warehouse ids witch should be exported. + """ warehouses: [ID!] - """List of channels ids which should be exported.""" + """ + List of channels ids which should be exported. + """ channels: [ID!] - """List of product fields witch should be exported.""" + """ + List of product fields witch should be exported. + """ fields: [ProductFieldEnum!] } @@ -21362,7 +27075,9 @@ enum ProductFieldEnum { VARIANT_MEDIA } -"""An enumeration.""" +""" +An enumeration. +""" enum FileTypesEnum { CSV XLSX @@ -21373,7 +27088,7 @@ 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. +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. """ @@ -21386,27 +27101,36 @@ type ExportGiftCards { } input ExportGiftCardsInput { - """Determine which gift cards should be exported.""" + """ + Determine which gift cards should be exported. + """ scope: ExportScope! - """Filtering options for gift cards.""" + """ + Filtering options for gift cards. + """ filter: GiftCardFilterInput - """List of gift cards IDs to export.""" + """ + List of gift cards IDs to export. + """ ids: [ID!] - """Type of exported file.""" + """ + Type of exported file. + """ fileType: FileTypesEnum! } """ -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 +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.") + uploadErrors: [UploadError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [UploadError!]! } @@ -21416,23 +27140,34 @@ type UploadError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: UploadErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum UploadErrorCode { GRAPHQL_ERROR } -"""Adds a gift card or a voucher to a checkout.""" +""" +Adds a gift card or a voucher to a checkout. +""" type CheckoutAddPromoCode { - """The checkout with the added gift card or voucher.""" + """ + 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.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -21442,23 +27177,35 @@ type CheckoutError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: CheckoutErrorCode! - """List of varint IDs which causes the error.""" + """ + List of varint IDs which causes the error. + """ variants: [ID!] - """List of line Ids which cause the error.""" + """ + List of line Ids which cause the error. + """ lines: [ID!] - """A type of address that causes the error.""" + """ + A type of address that causes the error. + """ addressType: AddressTypeEnum } -"""An enumeration.""" +""" +An enumeration. +""" enum CheckoutErrorCode { BILLING_ADDRESS_NOT_SET CHECKOUT_NOT_FULLY_PAID @@ -21490,11 +27237,16 @@ enum CheckoutErrorCode { INACTIVE_PAYMENT } -"""Update billing address in the existing checkout.""" +""" +Update billing address in the existing checkout. +""" type CheckoutBillingAddressUpdate { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -21519,7 +27271,9 @@ input CheckoutAddressValidationRules { 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.""" + """ + Placed order. + """ order: Order """ @@ -21527,25 +27281,34 @@ type CheckoutComplete { """ confirmationNeeded: Boolean! - """Confirmation data used to process additional authorization steps.""" + """ + 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.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } -"""Create a new checkout.""" +""" +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.") + 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.""" + """ + Slug of a channel in which to create a checkout. + """ channel: String """ @@ -21553,7 +27316,9 @@ input CheckoutCreateInput { """ lines: [CheckoutLineInput!]! - """The customer's email address.""" + """ + The customer's email address. + """ email: String """ @@ -21561,50 +27326,58 @@ input CheckoutCreateInput { """ shippingAddress: AddressInput - """Billing address of the customer.""" + """ + Billing address of the customer. + """ billingAddress: AddressInput - """Checkout language code.""" + """ + 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 } input CheckoutLineInput { - """The number of items purchased.""" + """ + The number of items purchased. + """ quantity: Int! - """ID of the product variant.""" + """ + 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. - + 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!] @@ -21623,48 +27396,68 @@ input CheckoutValidationRules { } """ -Sets the customer as the owner of the 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.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } """ -Removes the user assigned as the owner of the checkout. +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.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } -"""Updates email address in the existing checkout object.""" +""" +Updates email address in the existing checkout object. +""" type CheckoutEmailUpdate { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } -"""Deletes a CheckoutLine.""" +""" +Deletes a CheckoutLine. +""" type CheckoutLineDelete { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } -"""Deletes checkout lines.""" +""" +Deletes checkout lines. +""" type CheckoutLinesDelete { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout errors: [CheckoutError!]! } @@ -21673,24 +27466,32 @@ type CheckoutLinesDelete { Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased. """ type CheckoutLinesAdd { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } -"""Updates checkout line in the existing checkout.""" +""" +Updates checkout line in the existing checkout. +""" type CheckoutLinesUpdate { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } input CheckoutLineUpdateInput { """ - ID of the product variant. - + ID of the product variant. + DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. """ variantId: ID @@ -21702,42 +27503,56 @@ 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 """ ID of the line. - + Added in Saleor 3.6. """ lineId: ID } -"""Remove a gift card or a voucher from a checkout.""" +""" +Remove a gift card or a voucher from a checkout. +""" type CheckoutRemovePromoCode { - """The checkout with the removed gift card or voucher.""" + """ + 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.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } -"""Create a new payment for given checkout.""" +""" +Create a new payment for given checkout. +""" type CheckoutPaymentCreate { - """Related checkout object.""" + """ + Related checkout object. + """ checkout: Checkout - """A newly created payment.""" + """ + A newly created payment. + """ payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } input PaymentInput { - """A gateway to use with that payment.""" + """ + A gateway to use with that payment. + """ gateway: String! """ @@ -21757,20 +27572,22 @@ input PaymentInput { """ Payment store type. - + Added in Saleor 3.1. """ storePaymentMethod: StorePaymentMethodEnum = NONE """ User public metadata. - + Added in Saleor 3.1. """ metadata: [MetadataInput!] } -"""Enum representing the type of a payment storage in a gateway.""" +""" +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. @@ -21782,23 +27599,35 @@ enum StorePaymentMethodEnum { """ OFF_SESSION - """Storage is disabled. The payment is not stored.""" + """ + Storage is disabled. The payment is not stored. + """ NONE } -"""Update shipping address in the existing checkout.""" +""" +Update shipping address in the existing checkout. +""" type CheckoutShippingAddressUpdate { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } -"""Updates the shipping method of the checkout.""" +""" +Updates the shipping method of the checkout. +""" type CheckoutShippingMethodUpdate { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -21810,16 +27639,23 @@ 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.""" + """ + An updated checkout. + """ checkout: Checkout errors: [CheckoutError!]! } -"""Update language code in the existing checkout.""" +""" +Update language code in the existing checkout. +""" type CheckoutLanguageCodeUpdate { - """An updated checkout.""" + """ + An updated checkout. + """ checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -21831,7 +27667,9 @@ 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.""" + """ + Placed order. + """ order: Order errors: [OrderCreateFromCheckoutError!]! } @@ -21842,20 +27680,30 @@ type OrderCreateFromCheckoutError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: OrderCreateFromCheckoutErrorCode! - """List of variant IDs which causes the error.""" + """ + List of variant IDs which causes the error. + """ variants: [ID!] - """List of line Ids which cause the error.""" + """ + List of line Ids which cause the error. + """ lines: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum OrderCreateFromCheckoutErrorCode { GRAPHQL_ERROR CHECKOUT_NOT_FOUND @@ -21874,12 +27722,13 @@ enum OrderCreateFromCheckoutErrorCode { } """ -Creates new channel. +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.") + channelErrors: [ChannelError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ChannelError!]! channel: Channel } @@ -21890,20 +27739,30 @@ type ChannelError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: ChannelErrorCode! - """List of shipping zone IDs which causes the error.""" + """ + List of shipping zone IDs which causes the error. + """ shippingZones: [ID!] - """List of warehouses IDs which causes the error.""" + """ + List of warehouses IDs which causes the error. + """ warehouses: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum ChannelErrorCode { ALREADY_EXISTS GRAPHQL_ERROR @@ -21917,44 +27776,54 @@ enum ChannelErrorCode { } input ChannelCreateInput { - """isActive flag.""" + """ + 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.""" + """ + 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 of the channel. + """ name: String! - """Slug of the channel.""" + """ + Slug of the channel. + """ slug: String! - """Currency of the channel.""" + """ + 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! @@ -21968,104 +27837,124 @@ input StockSettingsInput { } """ -Update a 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.") + 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 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.""" + """ + 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 of the channel. + """ name: String - """Slug of the channel.""" + """ + 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.""" + """ + 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!] } """ -Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. +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.") + 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.""" + """ + ID of channel to migrate orders from origin channel. + """ channelId: ID! } """ -Activate a channel. +Activate a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ type ChannelActivate { - """Activated channel.""" + """ + Activated channel. + """ channel: Channel - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + channelErrors: [ChannelError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ChannelError!]! } """ -Deactivate a channel. +Deactivate a channel. Requires one of the following permissions: MANAGE_CHANNELS. """ type ChannelDeactivate { - """Deactivated channel.""" + """ + Deactivated channel. + """ channel: Channel - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + channelErrors: [ChannelError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ChannelError!]! } @@ -22074,20 +27963,25 @@ 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. +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 within the warehouses are reordered. + """ channel: Channel errors: [ChannelError!]! } -"""Creates an attribute.""" +""" +Creates an attribute. +""" type AttributeCreate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } @@ -22097,14 +27991,20 @@ type AttributeError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: AttributeErrorCode! } -"""An enumeration.""" +""" +An enumeration. +""" enum AttributeErrorCode { ALREADY_EXISTS GRAPHQL_ERROR @@ -22115,40 +28015,64 @@ enum AttributeErrorCode { } input AttributeCreateInput { - """The input type to use for entering attribute values in the dashboard.""" + """ + The input type to use for entering attribute values in the dashboard. + """ inputType: AttributeInputTypeEnum - """The entity type which can be used as a reference.""" + """ + The entity type which can be used as a reference. + """ entityType: AttributeEntityTypeEnum - """Name of an attribute displayed in the interface.""" + """ + Name of an attribute displayed in the interface. + """ name: String! - """Internal representation of an attribute name.""" + """ + Internal representation of an attribute name. + """ slug: String - """The attribute type.""" + """ + The attribute type. + """ type: AttributeTypeEnum! - """The unit of attribute values.""" + """ + The unit of attribute values. + """ unit: MeasurementUnitsEnum - """List of attribute's values.""" + """ + List of attribute's values. + """ values: [AttributeValueCreateInput!] - """Whether the attribute requires values to be passed or not.""" + """ + Whether the attribute requires values to be passed or not. + """ valueRequired: Boolean - """Whether the attribute is for variants only.""" + """ + Whether the attribute is for variants only. + """ isVariantOnly: Boolean - """Whether the attribute should be visible or not in storefront.""" + """ + Whether the attribute should be visible or not in storefront. + """ visibleInStorefront: Boolean - """Whether the attribute can be filtered in storefront.""" + """ + Whether the attribute can be filtered in storefront. + """ filterableInStorefront: Boolean - """Whether the attribute can be filtered in dashboard.""" + """ + Whether the attribute can be filtered in dashboard. + """ filterableInDashboard: Boolean """ @@ -22156,12 +28080,14 @@ input AttributeCreateInput { """ storefrontSearchPosition: Int - """Whether the attribute can be displayed in the admin product list.""" + """ + 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 @@ -22175,88 +28101,116 @@ input AttributeValueCreateInput { """ 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.""" + """ + URL of the file attribute. Every time, a new value is created. + """ fileUrl: String - """File content type.""" + """ + 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 of a value displayed in the interface. + """ name: String! } """ -Deletes an 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.") + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! attribute: Attribute } """ -Updates attribute. +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.") + 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 of an attribute displayed in the interface. + """ name: String - """Internal representation of an attribute name.""" + """ + Internal representation of an attribute name. + """ slug: String - """The unit of attribute values.""" + """ + The unit of attribute values. + """ unit: MeasurementUnitsEnum - """IDs of values to be removed from this attribute.""" + """ + IDs of values to be removed from this attribute. + """ removeValues: [ID!] - """New values to be created for this attribute.""" + """ + New values to be created for this attribute. + """ addValues: [AttributeValueUpdateInput!] - """Whether the attribute requires values to be passed or not.""" + """ + Whether the attribute requires values to be passed or not. + """ valueRequired: Boolean - """Whether the attribute is for variants only.""" + """ + Whether the attribute is for variants only. + """ isVariantOnly: Boolean - """Whether the attribute should be visible or not in storefront.""" + """ + Whether the attribute should be visible or not in storefront. + """ visibleInStorefront: Boolean - """Whether the attribute can be filtered in storefront.""" + """ + Whether the attribute can be filtered in storefront. + """ filterableInStorefront: Boolean - """Whether the attribute can be filtered in dashboard.""" + """ + Whether the attribute can be filtered in dashboard. + """ filterableInDashboard: Boolean """ @@ -22264,12 +28218,14 @@ input AttributeUpdateInput { """ storefrontSearchPosition: Int - """Whether the attribute can be displayed in the admin product list.""" + """ + 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 @@ -22283,118 +28239,141 @@ input AttributeValueUpdateInput { """ 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.""" + """ + URL of the file attribute. Every time, a new value is created. + """ fileUrl: String - """File content type.""" + """ + 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 of a value displayed in the interface. + """ name: String } """ -Creates/updates translations for an attribute. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! attribute: Attribute } """ -Deletes attributes. +Deletes attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ type AttributeBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } """ -Deletes values of attributes. +Deletes values of attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ type AttributeValueBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } """ -Creates a value for an attribute. +Creates a value for an attribute. Requires one of the following permissions: MANAGE_PRODUCTS. """ type AttributeValueCreate { - """The updated attribute.""" + """ + The updated attribute. + """ attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! attributeValue: AttributeValue } """ -Deletes a value of an attribute. +Deletes a value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ type AttributeValueDelete { - """The updated attribute.""" + """ + The updated attribute. + """ attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! attributeValue: AttributeValue } """ -Updates value of an attribute. +Updates value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ type AttributeValueUpdate { - """The updated attribute.""" + """ + The updated attribute. + """ attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! attributeValue: AttributeValue } """ -Creates/updates translations for an attribute value. +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.") + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! attributeValue: AttributeValue } @@ -22404,24 +28383,29 @@ input AttributeValueTranslationInput { """ Translated text. - + Rich text format. For reference see https://editorjs.io/ """ richText: JSONString - """Translated text.""" + """ + Translated text. + """ plainText: String } """ -Reorder the values of an attribute. +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 from which values are reordered. + """ attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } @@ -22429,9 +28413,12 @@ type AttributeReorderValues { Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. """ type AppCreate { - """The newly created authentication token.""" + """ + The newly created authentication token. + """ authToken: String - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } @@ -22442,17 +28429,25 @@ type AppError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: AppErrorCode! - """List of permissions which causes the error.""" + """ + List of permissions which causes the error. + """ permissions: [PermissionEnum!] } -"""An enumeration.""" +""" +An enumeration. +""" enum AppErrorCode { FORBIDDEN GRAPHQL_ERROR @@ -22470,72 +28465,91 @@ enum AppErrorCode { } input AppInput { - """Name of the app.""" + """ + Name of the app. + """ name: String - """List of permission code names to assign to this app.""" + """ + List of permission code names to assign to this app. + """ permissions: [PermissionEnum!] } """ -Updates an existing app. +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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } """ -Deletes an 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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } """ -Creates a new token. +Creates a new token. Requires one of the following permissions: MANAGE_APPS. """ type AppTokenCreate { - """The newly created authentication token.""" + """ + The newly created authentication token. + """ authToken: String - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! appToken: AppToken } input AppTokenInput { - """Name of the token.""" + """ + Name of the token. + """ name: String - """ID of app.""" + """ + ID of app. + """ app: ID! } """ -Deletes an authentication token assigned to app. +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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! appToken: AppToken } -"""Verify provided app token.""" +""" +Verify provided app token. +""" type AppTokenVerify { - """Determine if token is valid or not.""" + """ + 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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! } @@ -22543,59 +28557,73 @@ type AppTokenVerify { 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.") + 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.""" + """ + Name of the app to install. + """ appName: String - """Url to app's manifest in JSON format.""" + """ + Url to app's manifest in JSON format. + """ manifestUrl: String - """Determine if app will be set active or not.""" + """ + Determine if app will be set active or not. + """ activateAfterInstallation: Boolean = true - """List of permission code names to assign to this app.""" + """ + List of permission code names to assign to this app. + """ permissions: [PermissionEnum!] } """ -Retry failed installation of new app. +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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! appInstallation: AppInstallation } """ -Delete failed installation. +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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! appInstallation: AppInstallation } """ -Fetch and validate manifest. +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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! } -"""The manifest definition.""" +""" +The manifest definition. +""" type Manifest { identifier: String! version: String! @@ -22604,12 +28632,18 @@ type Manifest { 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.") + """ + 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.") + """ + 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 @@ -22617,93 +28651,126 @@ 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!]! """ 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 AppManifestExtension { - """List of the app extension's permissions.""" + """ + List of the app extension's permissions. + """ permissions: [Permission!]! - """Label of the extension to show in the dashboard.""" + """ + Label of the extension to show in the dashboard. + """ label: String! - """URL of a view where extension's iframe is placed.""" + """ + URL of a view where extension's iframe is placed. + """ url: String! - """Place where given extension will be mounted.""" + """ + Place where given extension will be mounted. + """ mount: AppExtensionMountEnum! - """Type of way how app extension will be opened.""" + """ + Type of way how app extension will be opened. + """ target: AppExtensionTargetEnum! } type AppManifestWebhook { - """The name of the webhook.""" + """ + The name of the webhook. + """ name: String! - """The asynchronous events that webhook wants to subscribe.""" + """ + The asynchronous events that webhook wants to subscribe. + """ asyncEvents: [WebhookEventTypeAsyncEnum!] - """The synchronous events that webhook wants to subscribe.""" + """ + The synchronous events that webhook wants to subscribe. + """ syncEvents: [WebhookEventTypeSyncEnum!] - """Subscription query of a webhook""" + """ + Subscription query of a webhook + """ query: String! - """The url to receive the payload.""" + """ + The url to receive the payload. + """ targetUrl: String! } """ -Activate the app. +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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } """ -Deactivate the 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.") + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } -"""Create JWT token.""" +""" +Create JWT token. +""" type CreateToken { - """JWT token, required to authenticate.""" + """ + JWT token, required to authenticate. + """ token: String - """JWT refresh token, required to re-generate access token.""" + """ + JWT refresh token, required to re-generate access token. + """ refreshToken: String - """CSRF token required to re-generate access token.""" + """ + CSRF token required to re-generate access token. + """ csrfToken: String - """A user instance.""" + """ + A user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -22713,17 +28780,25 @@ type AccountError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: AccountErrorCode! - """A type of address that causes the error.""" + """ + A type of address that causes the error. + """ addressType: AddressTypeEnum } -"""An enumeration.""" +""" +An enumeration. +""" enum AccountErrorCode { ACTIVATE_OWN_ACCOUNT ACTIVATE_SUPERUSER_ACCOUNT @@ -22764,26 +28839,40 @@ enum AccountErrorCode { 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.""" + """ + JWT token, required to authenticate. + """ token: String - """A user instance.""" + """ + A user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Verify JWT token.""" +""" +Verify JWT token. +""" type VerifyToken { - """User assigned to token.""" + """ + User assigned to token. + """ user: User - """Determine if token is valid or not.""" + """ + Determine if token is valid or not. + """ isValid: Boolean! - """JWT payload.""" + """ + JWT payload. + """ payload: GenericScalar - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -22795,90 +28884,140 @@ String, Boolean, Int, Float, List or Object. scalar GenericScalar """ -Deactivate all JWT tokens of the currently authenticated user. +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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""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.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Obtain external access tokens for user by custom plugin.""" +""" +Obtain external access tokens for user by custom plugin. +""" type ExternalObtainAccessTokens { - """The token, required to authenticate.""" + """ + The token, required to authenticate. + """ token: String - """The refresh token, required to re-generate external access token.""" + """ + The refresh token, required to re-generate external access token. + """ refreshToken: String - """CSRF token required to re-generate external access token.""" + """ + CSRF token required to re-generate external access token. + """ csrfToken: String - """A user instance.""" + """ + A user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Refresh user's access by custom plugin.""" +""" +Refresh user's access by custom plugin. +""" type ExternalRefresh { - """The token, required to authenticate.""" + """ + The token, required to authenticate. + """ token: String - """The refresh token, required to re-generate external access token.""" + """ + The refresh token, required to re-generate external access token. + """ refreshToken: String - """CSRF token required to re-generate external access token.""" + """ + CSRF token required to re-generate external access token. + """ csrfToken: String - """A user instance.""" + """ + A user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Logout user by custom plugin.""" +""" +Logout user by custom plugin. +""" type ExternalLogout { - """The data returned by authentication plugin.""" + """ + 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.") + 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.""" +""" +Verify external authentication data by plugin. +""" type ExternalVerify { - """User assigned to data.""" + """ + User assigned to data. + """ user: User - """Determine if authentication data is valid or not.""" + """ + Determine if authentication data is valid or not. + """ isValid: Boolean! - """External data.""" + """ + External data. + """ verifyData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Sends an email with the account password modification link.""" +""" +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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Confirm user account with token sent by email during registration.""" +""" +Confirm user account with token sent by email during registration. +""" type ConfirmAccount { - """An activated user account.""" + """ + An activated user account. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -22886,66 +29025,87 @@ type ConfirmAccount { Sets the user's password from the token sent by email using the RequestPasswordReset mutation. """ type SetPassword { - """JWT token, required to authenticate.""" + """ + JWT token, required to authenticate. + """ token: String - """JWT refresh token, required to re-generate access token.""" + """ + JWT refresh token, required to re-generate access token. + """ refreshToken: String - """CSRF token required to re-generate access token.""" + """ + CSRF token required to re-generate access token. + """ csrfToken: String - """A user instance.""" + """ + A user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Change the password of the logged in user. +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.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Request email change of the logged in user. +Request email change of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. """ type RequestEmailChange { - """A user instance.""" + """ + A user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Confirm the email change of the logged-in user. +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.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Create a new address for the customer. +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.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! address: Address } @@ -22954,9 +29114,12 @@ type AccountAddressCreate { 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.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! address: Address } @@ -22965,54 +29128,79 @@ type AccountAddressUpdate { 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.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! address: Address } """ -Sets a default address for the authenticated user. +Sets a default address for the authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. """ type AccountSetDefaultAddress { - """An updated user instance.""" + """ + An updated user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Register a new user.""" +""" +Register a new user. +""" type AccountRegister { - """Informs whether users need to confirm their email address.""" + """ + 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.") + 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.""" + """ + Given name. + """ firstName: String - """Family name.""" + """ + Family name. + """ lastName: String - """User language code.""" + """ + User language code. + """ languageCode: LanguageCodeEnum - """The email address of the user.""" + """ + The email address of the user. + """ email: String! - """Password.""" + """ + Password. + """ password: String! - """Base of frontend URL that will be needed to create confirmation URL.""" + """ + Base of frontend URL that will be needed to create confirmation URL. + """ redirectUrl: String - """User public metadata.""" + """ + User public metadata. + """ metadata: [MetadataInput!] """ @@ -23022,144 +29210,186 @@ input AccountRegisterInput { } """ -Updates the account of the logged-in user. +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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } input AccountInput { - """Given name.""" + """ + Given name. + """ firstName: String - """Family name.""" + """ + Family name. + """ lastName: String - """User language code.""" + """ + User language code. + """ languageCode: LanguageCodeEnum - """Billing address of the customer.""" + """ + Billing address of the customer. + """ defaultBillingAddress: AddressInput - """Shipping address of the customer.""" + """ + Shipping address of the customer. + """ defaultShippingAddress: AddressInput } """ -Sends an email with the account removal link for the logged-in user. +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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Remove user account. +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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } """ -Creates user address. +Creates user address. Requires one of the following permissions: MANAGE_USERS. """ type AddressCreate { - """A user instance for which the address was created.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! address: Address } """ -Updates an address. +Updates an address. Requires one of the following permissions: MANAGE_USERS. """ type AddressUpdate { - """A user object for which the address was edited.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! address: Address } """ -Deletes an address. +Deletes an address. Requires one of the following permissions: MANAGE_USERS. """ type AddressDelete { - """A user instance for which the address was deleted.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! address: Address } """ -Sets a default address for the given user. +Sets a default address for the given user. Requires one of the following permissions: MANAGE_USERS. """ type AddressSetDefault { - """An updated user instance.""" + """ + An updated user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Creates a new customer. +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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } input UserCreateInput { - """Billing address of the customer.""" + """ + Billing address of the customer. + """ defaultBillingAddress: AddressInput - """Shipping address of the customer.""" + """ + Shipping address of the customer. + """ defaultShippingAddress: AddressInput - """Given name.""" + """ + Given name. + """ firstName: String - """Family name.""" + """ + Family name. + """ lastName: String - """The unique email address of the user.""" + """ + The unique email address of the user. + """ email: String - """User account is active.""" + """ + User account is active. + """ isActive: Boolean - """A note about the user.""" + """ + A note about the user. + """ note: String - """User language code.""" + """ + User language code. + """ languageCode: LanguageCodeEnum """ External ID of the customer. - + Added in Saleor 3.10. """ externalReference: String @@ -23176,79 +29406,101 @@ input UserCreateInput { } """ -Updates an existing customer. +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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } input CustomerInput { - """Billing address of the customer.""" + """ + Billing address of the customer. + """ defaultBillingAddress: AddressInput - """Shipping address of the customer.""" + """ + Shipping address of the customer. + """ defaultShippingAddress: AddressInput - """Given name.""" + """ + Given name. + """ firstName: String - """Family name.""" + """ + Family name. + """ lastName: String - """The unique email address of the user.""" + """ + The unique email address of the user. + """ email: String - """User account is active.""" + """ + User account is active. + """ isActive: Boolean - """A note about the user.""" + """ + A note about the user. + """ note: String - """User language code.""" + """ + User language code. + """ languageCode: LanguageCodeEnum """ External ID of the customer. - + Added in Saleor 3.10. """ externalReference: String } """ -Deletes a customer. +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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } """ -Deletes customers. +Deletes customers. Requires one of the following permissions: MANAGE_USERS. """ type CustomerBulkDelete { - """Returns how many objects were affected.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Creates a new staff user. Apps are not allowed to perform this mutation. +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.") + staffErrors: [StaffError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! user: User } @@ -23259,42 +29511,66 @@ type StaffError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: AccountErrorCode! - """A type of address that causes the error.""" + """ + A type of address that causes the error. + """ addressType: AddressTypeEnum - """List of permissions which causes the error.""" + """ + List of permissions which causes the error. + """ permissions: [PermissionEnum!] - """List of permission group IDs which cause the error.""" + """ + List of permission group IDs which cause the error. + """ groups: [ID!] - """List of user IDs which causes the error.""" + """ + List of user IDs which causes the error. + """ users: [ID!] } input StaffCreateInput { - """Given name.""" + """ + Given name. + """ firstName: String - """Family name.""" + """ + Family name. + """ lastName: String - """The unique email address of the user.""" + """ + The unique email address of the user. + """ email: String - """User account is active.""" + """ + User account is active. + """ isActive: Boolean - """A note about the user.""" + """ + A note about the user. + """ note: String - """List of permission group IDs to which user should be assigned.""" + """ + List of permission group IDs to which user should be assigned. + """ addGroups: [ID!] """ @@ -23304,105 +29580,134 @@ input StaffCreateInput { } """ -Updates an existing staff user. Apps are not allowed to perform this mutation. +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.") + 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.""" + """ + Given name. + """ firstName: String - """Family name.""" + """ + Family name. + """ lastName: String - """The unique email address of the user.""" + """ + The unique email address of the user. + """ email: String - """User account is active.""" + """ + User account is active. + """ isActive: Boolean - """A note about the user.""" + """ + A note about the user. + """ note: String - """List of permission group IDs to which user should be assigned.""" + """ + List of permission group IDs to which user should be assigned. + """ addGroups: [ID!] - """List of permission group IDs from which user should be unassigned.""" + """ + List of permission group IDs from which user should be unassigned. + """ removeGroups: [ID!] } """ -Deletes a staff user. Apps are not allowed to perform this mutation. +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.") + staffErrors: [StaffError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! user: User } """ -Deletes staff users. Apps are not allowed to perform this mutation. +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.""" + """ + 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.") + staffErrors: [StaffError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! } """ -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 +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.""" + """ + An updated user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Deletes a user avatar. Only for staff members. +Deletes a user avatar. Only for staff members. Requires one of the following permissions: AUTHENTICATED_STAFF_USER. """ type UserAvatarDelete { - """An updated user instance.""" + """ + An updated user instance. + """ user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Activate or deactivate users. +Activate or deactivate users. Requires one of the following permissions: MANAGE_USERS. """ type UserBulkSetActive { - """Returns how many objects were affected.""" + """ + 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.") + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } """ -Create new permission group. Apps are not allowed to perform this mutation. +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.") + permissionGroupErrors: [PermissionGroupError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PermissionGroupError!]! group: Group } @@ -23413,20 +29718,30 @@ type PermissionGroupError { """ field: String - """The error message.""" + """ + The error message. + """ message: String - """The error code.""" + """ + The error code. + """ code: PermissionGroupErrorCode! - """List of permissions which causes the error.""" + """ + List of permissions which causes the error. + """ permissions: [PermissionEnum!] - """List of user IDs which causes the error.""" + """ + List of user IDs which causes the error. + """ users: [ID!] } -"""An enumeration.""" +""" +An enumeration. +""" enum PermissionGroupErrorCode { ASSIGN_NON_STAFF_MEMBER DUPLICATED_INPUT_ITEM @@ -23439,51 +29754,69 @@ enum PermissionGroupErrorCode { } input PermissionGroupCreateInput { - """List of permission code names to assign to this group.""" + """ + List of permission code names to assign to this group. + """ addPermissions: [PermissionEnum!] - """List of users to assign to this group.""" + """ + List of users to assign to this group. + """ addUsers: [ID!] - """Group name.""" + """ + Group name. + """ name: String! } """ -Update permission group. Apps are not allowed to perform this mutation. +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.") + 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.""" + """ + List of permission code names to assign to this group. + """ addPermissions: [PermissionEnum!] - """List of users to assign to this group.""" + """ + List of users to assign to this group. + """ addUsers: [ID!] - """Group name.""" + """ + Group name. + """ name: String - """List of permission code names to unassign from this group.""" + """ + List of permission code names to unassign from this group. + """ removePermissions: [PermissionEnum!] - """List of users to unassign from this group.""" + """ + List of users to unassign from this group. + """ removeUsers: [ID!] } """ -Delete permission group. Apps are not allowed to perform this mutation. +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.") + permissionGroupErrors: [PermissionGroupError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PermissionGroupError!]! group: Group } @@ -23491,31 +29824,41 @@ type PermissionGroupDelete { 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 } interface Event { - """Time of the event.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App } union IssuingPrincipal = App | User -"""An enumeration.""" +""" +An enumeration. +""" enum DistanceUnitsEnum { CM M @@ -23525,7 +29868,9 @@ enum DistanceUnitsEnum { INCH } -"""An enumeration.""" +""" +An enumeration. +""" enum AreaUnitsEnum { SQ_CM SQ_M @@ -23535,7 +29880,9 @@ enum AreaUnitsEnum { SQ_INCH } -"""An enumeration.""" +""" +An enumeration. +""" enum VolumeUnitsEnum { CUBIC_MILLIMETER CUBIC_CENTIMETER @@ -23560,19 +29907,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The address the event relates to.""" + """ + The address the event relates to. + """ address: Address } @@ -23584,19 +29941,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The address the event relates to.""" + """ + The address the event relates to. + """ address: Address } @@ -23608,19 +29975,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The address the event relates to.""" + """ + The address the event relates to. + """ address: Address } @@ -23632,19 +30009,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The application the event relates to.""" + """ + The application the event relates to. + """ app: App } @@ -23656,19 +30043,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The application the event relates to.""" + """ + The application the event relates to. + """ app: App } @@ -23680,19 +30077,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The application the event relates to.""" + """ + The application the event relates to. + """ app: App } @@ -23704,19 +30111,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The application the event relates to.""" + """ + The application the event relates to. + """ app: App } @@ -23728,19 +30145,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The attribute the event relates to.""" + """ + The attribute the event relates to. + """ attribute: Attribute } @@ -23752,19 +30179,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The attribute the event relates to.""" + """ + The attribute the event relates to. + """ attribute: Attribute } @@ -23776,19 +30213,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The attribute the event relates to.""" + """ + The attribute the event relates to. + """ attribute: Attribute } @@ -23800,19 +30247,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The attribute value the event relates to.""" + """ + The attribute value the event relates to. + """ attributeValue: AttributeValue } @@ -23824,19 +30281,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The attribute value the event relates to.""" + """ + The attribute value the event relates to. + """ attributeValue: AttributeValue } @@ -23848,19 +30315,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The attribute value the event relates to.""" + """ + The attribute value the event relates to. + """ attributeValue: AttributeValue } @@ -23872,19 +30349,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The category the event relates to.""" + """ + The category the event relates to. + """ category: Category } @@ -23896,19 +30383,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The category the event relates to.""" + """ + The category the event relates to. + """ category: Category } @@ -23920,19 +30417,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The category the event relates to.""" + """ + The category the event relates to. + """ category: Category } @@ -23944,19 +30451,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The channel the event relates to.""" + """ + The channel the event relates to. + """ channel: Channel } @@ -23968,19 +30485,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The channel the event relates to.""" + """ + The channel the event relates to. + """ channel: Channel } @@ -23992,19 +30519,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The channel the event relates to.""" + """ + The channel the event relates to. + """ channel: Channel } @@ -24016,19 +30553,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The channel the event relates to.""" + """ + The channel the event relates to. + """ channel: Channel } @@ -24040,19 +30587,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The gift card the event relates to.""" + """ + The gift card the event relates to. + """ giftCard: GiftCard } @@ -24064,19 +30621,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The gift card the event relates to.""" + """ + The gift card the event relates to. + """ giftCard: GiftCard } @@ -24088,19 +30655,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The gift card the event relates to.""" + """ + The gift card the event relates to. + """ giftCard: GiftCard } @@ -24112,19 +30689,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The gift card the event relates to.""" + """ + The gift card the event relates to. + """ giftCard: GiftCard } @@ -24136,19 +30723,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The gift card the event relates to.""" + """ + The gift card the event relates to. + """ giftCard: GiftCard } @@ -24160,21 +30757,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The menu the event relates to.""" + """ + The menu the event relates to. + """ menu( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Menu } @@ -24187,21 +30796,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The menu the event relates to.""" + """ + The menu the event relates to. + """ menu( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Menu } @@ -24214,21 +30835,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The menu the event relates to.""" + """ + The menu the event relates to. + """ menu( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Menu } @@ -24241,21 +30874,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The menu item the event relates to.""" + """ + The menu item the event relates to. + """ menuItem( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): MenuItem } @@ -24268,21 +30913,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The menu item the event relates to.""" + """ + The menu item the event relates to. + """ menuItem( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): MenuItem } @@ -24295,21 +30952,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The menu item the event relates to.""" + """ + The menu item the event relates to. + """ menuItem( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): MenuItem } @@ -24322,19 +30991,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24346,19 +31025,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24370,19 +31059,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24394,19 +31093,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24418,19 +31127,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24442,19 +31161,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24466,19 +31195,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24490,19 +31229,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24514,19 +31263,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24538,19 +31297,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + The order the event relates to. + """ order: Order } @@ -24562,25 +31331,39 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product the event relates to.""" + """ + The product the event relates to. + """ product( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Product - """The category of the product.""" + """ + The category of the product. + """ category: Category } @@ -24592,25 +31375,39 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product the event relates to.""" + """ + The product the event relates to. + """ product( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Product - """The category of the product.""" + """ + The category of the product. + """ category: Category } @@ -24622,25 +31419,39 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product the event relates to.""" + """ + The product the event relates to. + """ product( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Product - """The category of the product.""" + """ + The category of the product. + """ category: Category } @@ -24652,25 +31463,39 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product the event relates to.""" + """ + The product the event relates to. + """ product( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Product - """The category of the product.""" + """ + The category of the product. + """ category: Category } @@ -24682,21 +31507,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product variant the event relates to.""" + """ + The product variant the event relates to. + """ productVariant( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ProductVariant } @@ -24709,21 +31546,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product variant the event relates to.""" + """ + The product variant the event relates to. + """ productVariant( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ProductVariant } @@ -24736,25 +31585,39 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product variant the event relates to.""" + """ + The product variant the event relates to. + """ productVariant( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ProductVariant - """Look up a warehouse.""" + """ + Look up a warehouse. + """ warehouse: Warehouse } @@ -24766,25 +31629,39 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product variant the event relates to.""" + """ + The product variant the event relates to. + """ productVariant( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ProductVariant - """Look up a warehouse.""" + """ + Look up a warehouse. + """ warehouse: Warehouse } @@ -24796,21 +31673,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product variant the event relates to.""" + """ + The product variant the event relates to. + """ productVariant( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ProductVariant } @@ -24823,21 +31712,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The product variant the event relates to.""" + """ + The product variant the event relates to. + """ productVariant( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ProductVariant } @@ -24850,21 +31751,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The sale the event relates to.""" + """ + The sale the event relates to. + """ sale( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Sale } @@ -24877,21 +31790,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The sale the event relates to.""" + """ + The sale the event relates to. + """ sale( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Sale } @@ -24904,21 +31829,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The sale the event relates to.""" + """ + The sale the event relates to. + """ sale( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Sale } @@ -24931,27 +31868,37 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + 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.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Sale } @@ -24964,24 +31911,34 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The invoice the event relates to.""" + """ + The invoice the event relates to. + """ invoice: Invoice """ Order related to the invoice. - + Added in Saleor 3.10. """ order: Order! @@ -24995,24 +31952,34 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The invoice the event relates to.""" + """ + The invoice the event relates to. + """ invoice: Invoice """ Order related to the invoice. - + Added in Saleor 3.10. """ order: Order @@ -25026,24 +31993,34 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The invoice the event relates to.""" + """ + The invoice the event relates to. + """ invoice: Invoice """ Order related to the invoice. - + Added in Saleor 3.10. """ order: Order @@ -25057,22 +32034,34 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The fulfillment the event relates to.""" + """ + The fulfillment the event relates to. + """ fulfillment: Fulfillment - """The order the fulfillment belongs to.""" + """ + The order the fulfillment belongs to. + """ order: Order } @@ -25084,22 +32073,34 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The fulfillment the event relates to.""" + """ + The fulfillment the event relates to. + """ fulfillment: Fulfillment - """The order the fulfillment belongs to.""" + """ + The order the fulfillment belongs to. + """ order: Order } @@ -25111,22 +32112,34 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The fulfillment the event relates to.""" + """ + The fulfillment the event relates to. + """ fulfillment: Fulfillment - """The order the fulfillment belongs to.""" + """ + The order the fulfillment belongs to. + """ order: Order } @@ -25138,22 +32151,34 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The fulfillment the event relates to.""" + """ + The fulfillment the event relates to. + """ fulfillment: Fulfillment - """The order the fulfillment belongs to.""" + """ + The order the fulfillment belongs to. + """ order: Order } @@ -25165,19 +32190,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The user the event relates to.""" + """ + The user the event relates to. + """ user: User } @@ -25189,19 +32224,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The user the event relates to.""" + """ + The user the event relates to. + """ user: User } @@ -25213,19 +32258,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The user the event relates to.""" + """ + The user the event relates to. + """ user: User } @@ -25237,21 +32292,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The collection the event relates to.""" + """ + The collection the event relates to. + """ collection( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Collection } @@ -25264,21 +32331,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The collection the event relates to.""" + """ + The collection the event relates to. + """ collection( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Collection } @@ -25291,21 +32370,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The collection the event relates to.""" + """ + The collection the event relates to. + """ collection( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Collection } @@ -25318,21 +32409,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The collection the event relates to.""" + """ + The collection the event relates to. + """ collection( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Collection } @@ -25345,19 +32448,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The checkout the event relates to.""" + """ + The checkout the event relates to. + """ checkout: Checkout } @@ -25369,19 +32482,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The checkout the event relates to.""" + """ + The checkout the event relates to. + """ checkout: Checkout } @@ -25393,19 +32516,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The checkout the event relates to.""" + """ + The checkout the event relates to. + """ checkout: Checkout } @@ -25417,19 +32550,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The page the event relates to.""" + """ + The page the event relates to. + """ page: Page } @@ -25441,19 +32584,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The page the event relates to.""" + """ + The page the event relates to. + """ page: Page } @@ -25465,19 +32618,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The page the event relates to.""" + """ + The page the event relates to. + """ page: Page } @@ -25489,19 +32652,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The page type the event relates to.""" + """ + The page type the event relates to. + """ pageType: PageType } @@ -25513,19 +32686,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The page type the event relates to.""" + """ + The page type the event relates to. + """ pageType: PageType } @@ -25537,19 +32720,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The page type the event relates to.""" + """ + The page type the event relates to. + """ pageType: PageType } @@ -25561,19 +32754,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The permission group the event relates to.""" + """ + The permission group the event relates to. + """ permissionGroup: Group } @@ -25585,19 +32788,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The permission group the event relates to.""" + """ + The permission group the event relates to. + """ permissionGroup: Group } @@ -25609,19 +32822,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The permission group the event relates to.""" + """ + The permission group the event relates to. + """ permissionGroup: Group } @@ -25633,27 +32856,43 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The shipping method the event relates to.""" + """ + The shipping method the event relates to. + """ shippingMethod( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingMethodType - """The shipping zone the shipping method belongs to.""" + """ + The shipping zone the shipping method belongs to. + """ shippingZone( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingZone } @@ -25666,27 +32905,43 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The shipping method the event relates to.""" + """ + The shipping method the event relates to. + """ shippingMethod( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingMethodType - """The shipping zone the shipping method belongs to.""" + """ + The shipping zone the shipping method belongs to. + """ shippingZone( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingZone } @@ -25699,27 +32954,43 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The shipping method the event relates to.""" + """ + The shipping method the event relates to. + """ shippingMethod( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingMethodType - """The shipping zone the shipping method belongs to.""" + """ + The shipping zone the shipping method belongs to. + """ shippingZone( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingZone } @@ -25732,21 +33003,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The shipping zone the event relates to.""" + """ + The shipping zone the event relates to. + """ shippingZone( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingZone } @@ -25759,21 +33042,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The shipping zone the event relates to.""" + """ + The shipping zone the event relates to. + """ shippingZone( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingZone } @@ -25786,21 +33081,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The shipping zone the event relates to.""" + """ + The shipping zone the event relates to. + """ shippingZone( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingZone } @@ -25813,21 +33120,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The shipping zone the event relates to.""" + """ + The shipping zone the event relates to. + """ shippingZone( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): ShippingZone } @@ -25840,19 +33159,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The user the event relates to.""" + """ + The user the event relates to. + """ user: User } @@ -25864,19 +33193,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The user the event relates to.""" + """ + The user the event relates to. + """ user: User } @@ -25888,19 +33227,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The user the event relates to.""" + """ + The user the event relates to. + """ user: User } @@ -25912,42 +33261,54 @@ Added in Saleor 3.4. Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type TransactionActionRequest implements Event { - """Time of the event.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + 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. """ 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. """ action: TransactionAction! } type TransactionAction { - """Determines the action type.""" + """ + Determines the action type. + """ actionType: TransactionActionEnum! - """Transaction request amount. Null when action type is VOID.""" + """ + Transaction request amount. Null when action type is VOID. + """ amount: PositiveDecimal } @@ -25959,21 +33320,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + 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 @@ -25987,23 +33356,44 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The translation the event relates to.""" + """ + The translation the event relates to. + """ translation: TranslationTypes } -union TranslationTypes = ProductTranslation | CollectionTranslation | CategoryTranslation | AttributeTranslation | AttributeValueTranslation | ProductVariantTranslation | PageTranslation | ShippingMethodTranslation | SaleTranslation | VoucherTranslation | MenuItemTranslation +union TranslationTypes = + ProductTranslation + | CollectionTranslation + | CategoryTranslation + | AttributeTranslation + | AttributeValueTranslation + | ProductVariantTranslation + | PageTranslation + | ShippingMethodTranslation + | SaleTranslation + | VoucherTranslation + | MenuItemTranslation """ Event sent when translation is updated. @@ -26013,19 +33403,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The translation the event relates to.""" + """ + The translation the event relates to. + """ translation: TranslationTypes } @@ -26037,21 +33437,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The voucher the event relates to.""" + """ + The voucher the event relates to. + """ voucher( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Voucher } @@ -26064,21 +33476,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The voucher the event relates to.""" + """ + The voucher the event relates to. + """ voucher( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Voucher } @@ -26091,21 +33515,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The voucher the event relates to.""" + """ + The voucher the event relates to. + """ voucher( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Voucher } @@ -26118,21 +33554,33 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The voucher the event relates to.""" + """ + The voucher the event relates to. + """ voucher( - """Slug of a channel for which the data should be returned.""" + """ + Slug of a channel for which the data should be returned. + """ channel: String ): Voucher } @@ -26145,19 +33593,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The warehouse the event relates to.""" + """ + The warehouse the event relates to. + """ warehouse: Warehouse } @@ -26169,19 +33627,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The warehouse the event relates to.""" + """ + The warehouse the event relates to. + """ warehouse: Warehouse } @@ -26193,19 +33661,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The warehouse the event relates to.""" + """ + The warehouse the event relates to. + """ warehouse: Warehouse } @@ -26217,19 +33695,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The warehouse the event relates to.""" + """ + The warehouse the event relates to. + """ warehouse: Warehouse } @@ -26241,19 +33729,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """Look up a payment.""" + """ + Look up a payment. + """ payment: Payment } @@ -26265,19 +33763,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """Look up a payment.""" + """ + Look up a payment. + """ payment: Payment } @@ -26289,19 +33797,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """Look up a payment.""" + """ + Look up a payment. + """ payment: Payment } @@ -26313,19 +33831,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """Look up a payment.""" + """ + Look up a payment. + """ payment: Payment } @@ -26337,19 +33865,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """Look up a payment.""" + """ + Look up a payment. + """ payment: Payment } @@ -26361,19 +33899,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """Look up a payment.""" + """ + Look up a payment. + """ payment: Payment } @@ -26385,19 +33933,29 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The checkout the event relates to.""" + """ + The checkout the event relates to. + """ checkout: Checkout } @@ -26409,26 +33967,36 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The order the event relates to.""" + """ + 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!] @@ -26442,26 +34010,36 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The checkout the event relates to.""" + """ + 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!] @@ -26475,26 +34053,36 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App - """The checkout the event relates to.""" + """ + 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!] @@ -26508,89 +34096,152 @@ 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.""" + """ + Time of the event. + """ issuedAt: DateTime - """Saleor version that triggered the event.""" + """ + Saleor version that triggered the event. + """ version: String - """The user or application that triggered the event.""" + """ + The user or application that triggered the event. + """ issuingPrincipal: IssuingPrincipal - """The application receiving the webhook.""" + """ + The application receiving the webhook. + """ recipient: App taxBase: TaxableObject! } -"""Taxable object.""" +""" +Taxable object. +""" type TaxableObject { - """The source object related to this tax object.""" + """ + The source object related to this tax object. + """ sourceObject: TaxSourceObject! - """Determines if prices contain entered tax..""" + """ + Determines if prices contain entered tax.. + """ pricesEnteredWithTax: Boolean! - """The currency of the object.""" + """ + The currency of the object. + """ currency: String! - """The price of shipping method.""" + """ + The price of shipping method. + """ shippingPrice: Money! - """The address data.""" + """ + The address data. + """ address: Address - """List of discounts.""" + """ + List of discounts. + """ discounts: [TaxableObjectDiscount!]! - """List of lines assigned to the object.""" + """ + List of lines assigned to the object. + """ lines: [TaxableObjectLine!]! channel: Channel! } -"""Taxable object discount.""" +""" +Taxable object discount. +""" type TaxableObjectDiscount { - """The name of the discount.""" + """ + The name of the discount. + """ name: String - """The amount of the discount.""" + """ + The amount of the discount. + """ amount: Money! } type TaxableObjectLine { - """The source line related to this tax line.""" + """ + The source line related to this tax line. + """ sourceLine: TaxSourceLine! - """Number of items.""" + """ + Number of items. + """ quantity: Int! - """Determines if taxes are being charged for the product.""" + """ + Determines if taxes are being charged for the product. + """ chargeTaxes: Boolean! - """The product name.""" + """ + The product name. + """ productName: String! - """The variant name.""" + """ + The variant name. + """ variantName: String! - """The product sku.""" + """ + The product sku. + """ productSku: String - """Price of the single item in the order line.""" + """ + Price of the single item in the order line. + """ unitPrice: Money! - """Price of the order line.""" + """ + Price of the order line. + """ totalPrice: Money! } union TaxSourceLine = CheckoutLine | OrderLine -"""_Any value scalar as defined by Federation spec.""" +""" +_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 +""" +_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.""" +""" +_Service manifest as defined by Federation spec. +""" type _Service { sdl: String } diff --git a/apps/search/.eslintrc b/apps/search/.eslintrc index 0784400..5470783 100644 --- a/apps/search/.eslintrc +++ b/apps/search/.eslintrc @@ -1,3 +1,4 @@ { + "root": true, "extends": ["saleor"] } diff --git a/apps/slack/.env.example b/apps/slack/.env.example new file mode 100644 index 0000000..fd1a7cc --- /dev/null +++ b/apps/slack/.env.example @@ -0,0 +1,2 @@ +# Encryption key used by the EncryptedSettingsManager. Required by the production builds +SECRET_KEY= diff --git a/apps/slack/.eslintrc b/apps/slack/.eslintrc new file mode 100644 index 0000000..5470783 --- /dev/null +++ b/apps/slack/.eslintrc @@ -0,0 +1,4 @@ +{ + "root": true, + "extends": ["saleor"] +} diff --git a/apps/slack/.graphqlrc.yml b/apps/slack/.graphqlrc.yml new file mode 100644 index 0000000..ee7c7af --- /dev/null +++ b/apps/slack/.graphqlrc.yml @@ -0,0 +1,20 @@ +schema: graphql/schema.graphql +documents: [graphql/**/*.graphql, src/**/*.ts, src/**/*.tsx] +extensions: + codegen: + overwrite: true + generates: + generated/graphql.ts: + config: + dedupeFragments: true + plugins: + - typescript + - typescript-operations + - urql-introspection + - typescript-urql: + documentVariablePrefix: "Untyped" + fragmentVariablePrefix: "Untyped" + - typed-document-node + generated/schema.graphql: + plugins: + - schema-ast diff --git a/apps/slack/README.md b/apps/slack/README.md new file mode 100644 index 0000000..1f56119 --- /dev/null +++ b/apps/slack/README.md @@ -0,0 +1,92 @@ +# Saleor App Slack + +Saleor application to send Slack messages based on `order_created` events. + +![](docs/images/readme.jpg) + +### What's included? + +- Connection between Saleor and Slack using webhook +- Example `order_created` webhook that triggers Slack bot to send message + +### The stack + +Slack app is based on App Template - you can check it [here](https://github.com/saleor/saleor-app-template) + +## How to use this project + +### Select your APL + +If you want to develop single tenant application - use already configured `FileAPL` for local development. + +If you need to support multiple tenants application or you want to deploy your application - use `UpstashAPL`. Follow [How to configure Upstash](docs/upstash.md) for more info. + +To read more about storing auth data, read the [APL documentation](https://github.com/saleor/saleor-app-sdk/blob/main/docs/apl.md) + +### Saleor CLI for the win 🚀 + +[Saleor CLI](https://github.com/saleor/saleor-cli) is designed to save you from the repetitive chores around Saleor development, including creating Apps. It will take the burden of spawning new apps locally, connecting them with Saleor environments, and establishing a tunnel for local development in seconds. + +[Full Saleor CLI reference](https://docs.saleor.io/docs/3.x/developer/cli) + +If you don't have (free developer) Saleor Cloud account create one with the following command: + +``` +saleor register +``` + +Now you're ready to run this application in development mode: + +``` +pnpm run dev +``` + +Having your app running, the final thing you want to establish is a tunnel with your Saleor environment. Go to your app's directory first and run: + +``` +saleor app tunnel +``` + +Your local application should be available now to the outside world (Saleor instance) for accepting all the events via webhooks. + +A quick note: the next time you come back to your project, it is enough to launch your app in a standard way (and then launch your tunnel as described earlier): + +``` +pnpm dev +``` + +### Local development without CLI + +Add URL of your Saleor instance to the `.env` file: + +``` +NEXT_PUBLIC_SALEOR_HOST_URL=https://your-saleor-instance.com +``` + +Install dependencies `pnpm install` + +Start local server `pnpm run dev` + +Follow the guide [how install your app](https://docs.saleor.io/docs/3.x/developer/extending/apps/installing-apps#installation-using-graphql-api) and use tunneling tools like [localtunnel](https://github.com/localtunnel/localtunnel) or [ngrok](https://ngrok.com/) in order to expose your local server. + +If you use [saleor-dashboard](https://github.com/saleor/saleor-dashboard) and your local server is exposed, you can install your app by following this link: + +``` +[YOUR_SALEOR_DASHBOARD_URL]/apps/install?manifestUrl=[YOUR_APPS_MANIFEST_URL] +``` + +### Connecting your application to Slack + +Read how to connect the app with the Slack [here](./docs/setup-slack-app.md) + +### Generated schema and typings + +Commands `build` and `dev` would generate schema and typed functions using Saleor's GraphQL endpoint. Commit `generated` folder to your repo as they are necessary for queries and keeping track of the schema changes. + +[Learn more](https://www.graphql-code-generator.com/) about GraphQL code generation. + +### Learn more about Saleor Apps + +[Apps guide](https://docs.saleor.io/docs/3.x/developer/extending/apps/key-concepts) + +[Configuring apps in dashboard](https://docs.saleor.io/docs/3.x/dashboard/apps) diff --git a/apps/slack/docs/images/dashboard-config.jpg b/apps/slack/docs/images/dashboard-config.jpg new file mode 100644 index 0000000..daa574b Binary files /dev/null and b/apps/slack/docs/images/dashboard-config.jpg differ diff --git a/apps/slack/docs/images/install-slack.jpg b/apps/slack/docs/images/install-slack.jpg new file mode 100644 index 0000000..beed457 Binary files /dev/null and b/apps/slack/docs/images/install-slack.jpg differ diff --git a/apps/slack/docs/images/readme.jpg b/apps/slack/docs/images/readme.jpg new file mode 100644 index 0000000..59ac100 Binary files /dev/null and b/apps/slack/docs/images/readme.jpg differ diff --git a/apps/slack/docs/images/slack-permissions.jpg b/apps/slack/docs/images/slack-permissions.jpg new file mode 100644 index 0000000..9e39847 Binary files /dev/null and b/apps/slack/docs/images/slack-permissions.jpg differ diff --git a/apps/slack/docs/images/slack-webhook-copy.jpg b/apps/slack/docs/images/slack-webhook-copy.jpg new file mode 100644 index 0000000..f69bdf9 Binary files /dev/null and b/apps/slack/docs/images/slack-webhook-copy.jpg differ diff --git a/apps/slack/docs/images/slack-webook-channel.jpg b/apps/slack/docs/images/slack-webook-channel.jpg new file mode 100644 index 0000000..3791b35 Binary files /dev/null and b/apps/slack/docs/images/slack-webook-channel.jpg differ diff --git a/apps/slack/docs/images/slack-workspace-button.jpg b/apps/slack/docs/images/slack-workspace-button.jpg new file mode 100644 index 0000000..1d0fd9b Binary files /dev/null and b/apps/slack/docs/images/slack-workspace-button.jpg differ diff --git a/apps/slack/docs/images/slack-workspace.jpg b/apps/slack/docs/images/slack-workspace.jpg new file mode 100644 index 0000000..1e14511 Binary files /dev/null and b/apps/slack/docs/images/slack-workspace.jpg differ diff --git a/apps/slack/docs/images/upstash.jpg b/apps/slack/docs/images/upstash.jpg new file mode 100644 index 0000000..2d1d8ec Binary files /dev/null and b/apps/slack/docs/images/upstash.jpg differ diff --git a/apps/slack/docs/setup-slack-app.md b/apps/slack/docs/setup-slack-app.md new file mode 100644 index 0000000..d4deca9 --- /dev/null +++ b/apps/slack/docs/setup-slack-app.md @@ -0,0 +1,41 @@ +# How to setup your Slack application + +## Install Saleor App Slack + +Use [readme](./../README.md) to get started + +## Create new Slack application + +Click `Install Slack application` link on main view of Saleor App Slack in your Saleor Dashboard + +![](images/install-slack.jpg) + +Follow instructions in Slack - select your workspace + +![](images/slack-workspace.jpg) + +On the next modal review app & click `Create` + +![](images/slack-permissions.jpg) + +It is time to install application in your workspace - follow Slack instructions + +![](images/slack-workspace-button.jpg) + +You will get redirected to new page where you can select channel that will receive Saleor messages. Select one and click `Allow` + +![](images/slack-webook-channel.jpg) + +You should return to previous `Basic information` page. Find `Incoming Webhooks` page under `Features` section. Inside this page you will find `Webhook URLs for Your Workspace` where you can find `Webhook URL`. Click `Copy` button to copy URL to your clipboard. + +![](images/slack-webhook-copy.jpg) + +Take this copied URL and paste it inside Saleor App configuration in Saleor Dashboard + +![](images/dashboard-config.jpg) + +Right now you can create an order e.g using Saleor Dashboard to see message in your selected Slack channel + +## Useful links + +- [Block Kit Builder](https://app.slack.com/block-kit-builder). Visual tool that helps with building & previewing Slack messages. diff --git a/apps/slack/docs/upstash.md b/apps/slack/docs/upstash.md new file mode 100644 index 0000000..3ce3879 --- /dev/null +++ b/apps/slack/docs/upstash.md @@ -0,0 +1,17 @@ +# How to configure Upstash + +## Get credentials from Upstash + +Create or login to [Upstash](https://upstash.com/). In your [console](https://console.upstash.com/) select Redis database. On `Details` page scroll down to `REST API` section and copy `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN`. + +![](images/upstash.jpg) + +## Create env file + +Create `.env.local` file with Upstash APL env variables. + +``` +APL=upstash +UPSTASH_URL= +UPSTASH_TOKEN= +``` diff --git a/apps/slack/env.d.ts b/apps/slack/env.d.ts new file mode 100644 index 0000000..9ecaf06 --- /dev/null +++ b/apps/slack/env.d.ts @@ -0,0 +1,5 @@ +namespace NodeJS { + interface ProcessEnv { + APL: "file" | "vercel" | "upstash" | "saleor-cloud"; + } +} diff --git a/apps/slack/generated/graphql.ts b/apps/slack/generated/graphql.ts new file mode 100644 index 0000000..683330a --- /dev/null +++ b/apps/slack/generated/graphql.ts @@ -0,0 +1,72884 @@ +import gql from "graphql-tag"; +import * as Urql from "urql"; +import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"; +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 }; +export type Omit = Pick>; +/** 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; + /** + * 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; + /** + * Positive Decimal scalar implementation. + * + * Should be used in places where value must be positive. + */ + 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; +}; + +/** + * Create a new address for the customer. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type AccountAddressCreate = { + __typename?: "AccountAddressCreate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + address?: Maybe
; + errors: Array; + /** A user instance for which the address was created. */ + user?: Maybe; +}; + +/** Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. */ +export type AccountAddressDelete = { + __typename?: "AccountAddressDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + address?: Maybe
; + errors: Array; + /** A user instance for which the address was deleted. */ + user?: Maybe; +}; + +/** Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. */ +export type AccountAddressUpdate = { + __typename?: "AccountAddressUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + address?: Maybe
; + errors: Array; + /** A user object for which the address was edited. */ + user?: Maybe; +}; + +/** + * Remove user account. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type AccountDelete = { + __typename?: "AccountDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + user?: Maybe; +}; + +export type AccountError = { + __typename?: "AccountError"; + /** A type of address that causes the error. */ + addressType?: Maybe; + /** The error code. */ + code: AccountErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum AccountErrorCode { + AccountNotConfirmed = "ACCOUNT_NOT_CONFIRMED", + ActivateOwnAccount = "ACTIVATE_OWN_ACCOUNT", + ActivateSuperuserAccount = "ACTIVATE_SUPERUSER_ACCOUNT", + ChannelInactive = "CHANNEL_INACTIVE", + DeactivateOwnAccount = "DEACTIVATE_OWN_ACCOUNT", + DeactivateSuperuserAccount = "DEACTIVATE_SUPERUSER_ACCOUNT", + DeleteNonStaffUser = "DELETE_NON_STAFF_USER", + DeleteOwnAccount = "DELETE_OWN_ACCOUNT", + DeleteStaffAccount = "DELETE_STAFF_ACCOUNT", + DeleteSuperuserAccount = "DELETE_SUPERUSER_ACCOUNT", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + GraphqlError = "GRAPHQL_ERROR", + Inactive = "INACTIVE", + Invalid = "INVALID", + InvalidCredentials = "INVALID_CREDENTIALS", + InvalidPassword = "INVALID_PASSWORD", + JwtDecodeError = "JWT_DECODE_ERROR", + JwtInvalidCsrfToken = "JWT_INVALID_CSRF_TOKEN", + JwtInvalidToken = "JWT_INVALID_TOKEN", + JwtMissingToken = "JWT_MISSING_TOKEN", + JwtSignatureExpired = "JWT_SIGNATURE_EXPIRED", + LeftNotManageablePermission = "LEFT_NOT_MANAGEABLE_PERMISSION", + MissingChannelSlug = "MISSING_CHANNEL_SLUG", + NotFound = "NOT_FOUND", + OutOfScopeGroup = "OUT_OF_SCOPE_GROUP", + OutOfScopePermission = "OUT_OF_SCOPE_PERMISSION", + OutOfScopeUser = "OUT_OF_SCOPE_USER", + PasswordEntirelyNumeric = "PASSWORD_ENTIRELY_NUMERIC", + PasswordTooCommon = "PASSWORD_TOO_COMMON", + PasswordTooShort = "PASSWORD_TOO_SHORT", + PasswordTooSimilar = "PASSWORD_TOO_SIMILAR", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export type AccountInput = { + /** Billing address of the customer. */ + defaultBillingAddress?: InputMaybe; + /** Shipping address of the customer. */ + defaultShippingAddress?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User language code. */ + languageCode?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; +}; + +/** Register a new user. */ +export type AccountRegister = { + __typename?: "AccountRegister"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** Informs whether users need to confirm their email address. */ + requiresConfirmation?: Maybe; + user?: Maybe; +}; + +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; +}; + +/** + * Sends an email with the account removal link for the logged-in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type AccountRequestDeletion = { + __typename?: "AccountRequestDeletion"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; +}; + +/** + * Sets a default address for the authenticated user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type AccountSetDefaultAddress = { + __typename?: "AccountSetDefaultAddress"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** An updated user instance. */ + user?: Maybe; +}; + +/** + * Updates the account of the logged-in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type AccountUpdate = { + __typename?: "AccountUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + user?: Maybe; +}; + +/** Represents user address data. */ +export type Address = Node & { + __typename?: "Address"; + city: Scalars["String"]; + cityArea: Scalars["String"]; + companyName: Scalars["String"]; + /** Shop's default country. */ + country: CountryDisplay; + countryArea: Scalars["String"]; + firstName: Scalars["String"]; + id: Scalars["ID"]; + /** Address is user's default billing address. */ + isDefaultBillingAddress?: Maybe; + /** Address is user's default shipping address. */ + isDefaultShippingAddress?: Maybe; + lastName: Scalars["String"]; + phone?: Maybe; + postalCode: Scalars["String"]; + streetAddress1: Scalars["String"]; + streetAddress2: Scalars["String"]; +}; + +/** + * Creates user address. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type AddressCreate = { + __typename?: "AddressCreate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + address?: Maybe
; + errors: Array; + /** A user instance for which the address was created. */ + user?: Maybe; +}; + +/** + * Deletes an address. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type AddressDelete = { + __typename?: "AddressDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + address?: Maybe
; + errors: Array; + /** A user instance for which the address was deleted. */ + user?: Maybe; +}; + +export type AddressInput = { + /** City. */ + city?: InputMaybe; + /** District. */ + cityArea?: 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; +}; + +/** + * Sets a default address for the given user. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type AddressSetDefault = { + __typename?: "AddressSetDefault"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** An updated user instance. */ + user?: Maybe; +}; + +/** An enumeration. */ +export enum AddressTypeEnum { + Billing = "BILLING", + Shipping = "SHIPPING", +} + +/** + * Updates an address. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type AddressUpdate = { + __typename?: "AddressUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + address?: Maybe
; + errors: Array; + /** A user object for which the address was edited. */ + user?: Maybe; +}; + +export type AddressValidationData = { + __typename?: "AddressValidationData"; + addressFormat: Scalars["String"]; + addressLatinFormat: Scalars["String"]; + allowedFields: Array; + cityAreaChoices: Array; + cityAreaType: Scalars["String"]; + cityChoices: Array; + cityType: Scalars["String"]; + countryAreaChoices: Array; + countryAreaType: Scalars["String"]; + countryCode: Scalars["String"]; + countryName: Scalars["String"]; + postalCodeExamples: Array; + postalCodeMatchers: Array; + postalCodePrefix: Scalars["String"]; + postalCodeType: Scalars["String"]; + requiredFields: Array; + upperFields: Array; +}; + +/** Represents allocation. */ +export type Allocation = Node & { + __typename?: "Allocation"; + id: Scalars["ID"]; + /** + * Quantity allocated for orders. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + quantity: Scalars["Int"]; + /** + * The warehouse were items were allocated. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + warehouse: Warehouse; +}; + +/** Represents app data. */ +export type App = Node & + ObjectWithMetadata & { + __typename?: "App"; + /** Description of this app. */ + aboutApp?: Maybe; + /** JWT token used to authenticate by thridparty app. */ + accessToken?: Maybe; + /** Url to iframe with the app. */ + appUrl?: Maybe; + /** Url to iframe with the configuration for the app. */ + configurationUrl?: Maybe; + /** The date and time when the app was created. */ + created?: Maybe; + /** Description of the data privacy defined for this app. */ + dataPrivacy?: Maybe; + /** Url to details about the privacy policy on the app owner page. */ + dataPrivacyUrl?: Maybe; + /** + * 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: Array; + /** Homepage of the app. */ + homepageUrl?: Maybe; + id: Scalars["ID"]; + /** Determine if app will be set active or not. */ + isActive?: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Name of the app. */ + name?: Maybe; + /** List of the app's permissions. */ + permissions?: Maybe>; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Support page for the app. */ + supportUrl?: Maybe; + /** + * Last 4 characters of the tokens. + * + * Requires one of the following permissions: MANAGE_APPS, OWNER. + */ + tokens?: Maybe>; + /** Type of the app. */ + type?: Maybe; + /** Version number of the app. */ + version?: Maybe; + /** + * List of webhooks assigned to this app. + * + * Requires one of the following permissions: MANAGE_APPS, OWNER. + */ + webhooks?: Maybe>; + }; + +/** Represents app data. */ +export type AppMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents app data. */ +export type AppMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents app data. */ +export type AppPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents app data. */ +export type AppPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * Activate the app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppActivate = { + __typename?: "AppActivate"; + app?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + errors: Array; +}; + +export type AppCountableConnection = { + __typename?: "AppCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type AppCountableEdge = { + __typename?: "AppCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: App; +}; + +/** Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. */ +export type AppCreate = { + __typename?: "AppCreate"; + app?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + /** The newly created authentication token. */ + authToken?: Maybe; + errors: Array; +}; + +/** + * Deactivate the app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppDeactivate = { + __typename?: "AppDeactivate"; + app?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + errors: Array; +}; + +/** + * Deletes an app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppDelete = { + __typename?: "AppDelete"; + app?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + errors: Array; +}; + +/** + * Delete failed installation. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppDeleteFailedInstallation = { + __typename?: "AppDeleteFailedInstallation"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + appInstallation?: Maybe; + errors: Array; +}; + +export type AppDeleted = Event & { + __typename?: "AppDeleted"; + /** + * The application the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + app?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type AppError = { + __typename?: "AppError"; + /** The error code. */ + code: AppErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of permissions which causes the error. */ + permissions?: Maybe>; +}; + +/** An enumeration. */ +export enum AppErrorCode { + Forbidden = "FORBIDDEN", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + InvalidManifestFormat = "INVALID_MANIFEST_FORMAT", + InvalidPermission = "INVALID_PERMISSION", + InvalidStatus = "INVALID_STATUS", + InvalidUrlFormat = "INVALID_URL_FORMAT", + ManifestUrlCantConnect = "MANIFEST_URL_CANT_CONNECT", + NotFound = "NOT_FOUND", + OutOfScopeApp = "OUT_OF_SCOPE_APP", + OutOfScopePermission = "OUT_OF_SCOPE_PERMISSION", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +/** Represents app data. */ +export type AppExtension = Node & { + __typename?: "AppExtension"; + /** JWT token used to authenticate by thridparty app extension. */ + accessToken?: Maybe; + app: App; + id: Scalars["ID"]; + /** Label of the extension to show in the dashboard. */ + label: Scalars["String"]; + /** Place where given extension will be mounted. */ + mount: AppExtensionMountEnum; + /** List of the app extension's permissions. */ + permissions: Array; + /** Type of way how app extension will be opened. */ + target: AppExtensionTargetEnum; + /** URL of a view where extension's iframe is placed. */ + url: Scalars["String"]; +}; + +export type AppExtensionCountableConnection = { + __typename?: "AppExtensionCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type AppExtensionCountableEdge = { + __typename?: "AppExtensionCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: AppExtension; +}; + +export type AppExtensionFilterInput = { + mount?: InputMaybe>; + target?: InputMaybe; +}; + +/** All places where app extension can be mounted. */ +export enum AppExtensionMountEnum { + NavigationCatalog = "NAVIGATION_CATALOG", + NavigationCustomers = "NAVIGATION_CUSTOMERS", + NavigationDiscounts = "NAVIGATION_DISCOUNTS", + NavigationOrders = "NAVIGATION_ORDERS", + NavigationPages = "NAVIGATION_PAGES", + NavigationTranslations = "NAVIGATION_TRANSLATIONS", + OrderDetailsMoreActions = "ORDER_DETAILS_MORE_ACTIONS", + OrderOverviewCreate = "ORDER_OVERVIEW_CREATE", + OrderOverviewMoreActions = "ORDER_OVERVIEW_MORE_ACTIONS", + ProductDetailsMoreActions = "PRODUCT_DETAILS_MORE_ACTIONS", + ProductOverviewCreate = "PRODUCT_OVERVIEW_CREATE", + ProductOverviewMoreActions = "PRODUCT_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 { + AppPage = "APP_PAGE", + Popup = "POPUP", +} + +/** + * Fetch and validate manifest. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppFetchManifest = { + __typename?: "AppFetchManifest"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + errors: Array; + manifest?: Maybe; +}; + +export type AppFilterInput = { + isActive?: InputMaybe; + search?: InputMaybe; + type?: InputMaybe; +}; + +export type AppInput = { + /** Name of the app. */ + name?: InputMaybe; + /** List of permission code names to assign to this app. */ + permissions?: InputMaybe>; +}; + +/** Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. */ +export type AppInstall = { + __typename?: "AppInstall"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + appInstallation?: Maybe; + errors: Array; +}; + +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; + /** List of permission code names to assign to this app. */ + permissions?: InputMaybe>; +}; + +/** Represents ongoing installation of app. */ +export type AppInstallation = Job & + Node & { + __typename?: "AppInstallation"; + appName: Scalars["String"]; + /** Created date time of job in ISO 8601 format. */ + createdAt: Scalars["DateTime"]; + id: Scalars["ID"]; + manifestUrl: Scalars["String"]; + /** Job message. */ + message?: Maybe; + /** Job status. */ + status: JobStatusEnum; + /** Date time of job last update in ISO 8601 format. */ + updatedAt: Scalars["DateTime"]; + }; + +export type AppInstalled = Event & { + __typename?: "AppInstalled"; + /** + * The application the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + app?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type AppManifestExtension = { + __typename?: "AppManifestExtension"; + /** Label of the extension to show in the dashboard. */ + label: Scalars["String"]; + /** Place where given extension will be mounted. */ + mount: AppExtensionMountEnum; + /** List of the app extension's permissions. */ + permissions: Array; + /** Type of way how app extension will be opened. */ + target: AppExtensionTargetEnum; + /** URL of a view where extension's iframe is placed. */ + url: Scalars["String"]; +}; + +/** + * Retry failed installation of new app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppRetryInstall = { + __typename?: "AppRetryInstall"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + appInstallation?: Maybe; + errors: Array; +}; + +export enum AppSortField { + /** Sort apps by creation date. */ + CreationDate = "CREATION_DATE", + /** Sort apps by name. */ + Name = "NAME", +} + +export type AppSortingInput = { + /** Specifies the direction in which to sort products. */ + direction: OrderDirection; + /** Sort apps by the selected field. */ + field: AppSortField; +}; + +export type AppStatusChanged = Event & { + __typename?: "AppStatusChanged"; + /** + * The application the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + app?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** Represents token data. */ +export type AppToken = Node & { + __typename?: "AppToken"; + /** Last 4 characters of the token. */ + authToken?: Maybe; + id: Scalars["ID"]; + /** Name of the authenticated token. */ + name?: Maybe; +}; + +/** + * Creates a new token. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppTokenCreate = { + __typename?: "AppTokenCreate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + appToken?: Maybe; + /** The newly created authentication token. */ + authToken?: Maybe; + errors: Array; +}; + +/** + * Deletes an authentication token assigned to app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppTokenDelete = { + __typename?: "AppTokenDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + appToken?: Maybe; + errors: Array; +}; + +export type AppTokenInput = { + /** ID of app. */ + app: Scalars["ID"]; + /** Name of the token. */ + name?: InputMaybe; +}; + +/** Verify provided app token. */ +export type AppTokenVerify = { + __typename?: "AppTokenVerify"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + errors: Array; + /** Determine if token is valid or not. */ + valid: Scalars["Boolean"]; +}; + +/** 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", +} + +/** + * Updates an existing app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type AppUpdate = { + __typename?: "AppUpdate"; + app?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + appErrors: Array; + errors: Array; +}; + +export type AppUpdated = Event & { + __typename?: "AppUpdated"; + /** + * The application the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + app?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** An enumeration. */ +export enum AreaUnitsEnum { + SqCm = "SQ_CM", + SqFt = "SQ_FT", + SqInch = "SQ_INCH", + SqKm = "SQ_KM", + SqM = "SQ_M", + SqYd = "SQ_YD", +} + +/** + * Assigns storefront's navigation menus. + * + * Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. + */ +export type AssignNavigation = { + __typename?: "AssignNavigation"; + errors: Array; + /** Assigned navigation menu. */ + menu?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; +}; + +/** + * Represents assigned attribute to variant with variant selection attached. + * + * Added in Saleor 3.1. + */ +export type AssignedVariantAttribute = { + __typename?: "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: Scalars["Boolean"]; +}; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type Attribute = Node & + ObjectWithMetadata & { + __typename?: "Attribute"; + /** 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: Scalars["Boolean"]; + /** List of attribute's values. */ + choices?: Maybe; + /** The entity type which can be used as a reference. */ + entityType?: Maybe; + /** 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: Scalars["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: Scalars["Boolean"]; + id: Scalars["ID"]; + /** The input type to use for entering attribute values in the dashboard. */ + inputType?: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Name of an attribute displayed in the interface. */ + name?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + productTypes: ProductTypeCountableConnection; + productVariantTypes: ProductTypeCountableConnection; + /** Internal representation of an attribute name. */ + slug?: Maybe; + /** 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: Scalars["Int"]; + /** Returns translated attribute fields for the given language code. */ + translation?: Maybe; + /** The attribute type. */ + type?: Maybe; + /** The unit of attribute values. */ + unit?: Maybe; + /** 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: Scalars["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: Scalars["Boolean"]; + /** Flag indicating that attribute has predefined choices. */ + withChoices: Scalars["Boolean"]; + }; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type AttributeChoicesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type AttributeMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type AttributeMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type AttributePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type AttributePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type AttributeProductTypesArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type AttributeProductVariantTypesArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ +export type AttributeTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Deletes attributes. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type AttributeBulkDelete = { + __typename?: "AttributeBulkDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; +}; + +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 AttributeCountableConnection = { + __typename?: "AttributeCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type AttributeCountableEdge = { + __typename?: "AttributeCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Attribute; +}; + +/** Creates an attribute. */ +export type AttributeCreate = { + __typename?: "AttributeCreate"; + attribute?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + errors: Array; +}; + +export type AttributeCreateInput = { + /** Whether the attribute can be displayed in the admin product list. */ + availableInGrid?: InputMaybe; + /** The entity type which can be used as a reference. */ + entityType?: InputMaybe; + /** Whether the attribute can be filtered in dashboard. */ + filterableInDashboard?: InputMaybe; + /** Whether the attribute can be filtered in storefront. */ + 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). */ + 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; +}; + +/** + * Deletes an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type AttributeDelete = { + __typename?: "AttributeDelete"; + attribute?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + errors: Array; +}; + +/** An enumeration. */ +export enum AttributeEntityTypeEnum { + Page = "PAGE", + Product = "PRODUCT", +} + +export type AttributeError = { + __typename?: "AttributeError"; + /** The error code. */ + code: AttributeErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum AttributeErrorCode { + AlreadyExists = "ALREADY_EXISTS", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export type AttributeFilterInput = { + availableInGrid?: 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; + 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; +}; + +/** An enumeration. */ +export enum AttributeInputTypeEnum { + Boolean = "BOOLEAN", + Date = "DATE", + DateTime = "DATE_TIME", + Dropdown = "DROPDOWN", + File = "FILE", + Multiselect = "MULTISELECT", + Numeric = "NUMERIC", + Reference = "REFERENCE", + RichText = "RICH_TEXT", + Swatch = "SWATCH", +} + +/** + * Reorder the values of an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type AttributeReorderValues = { + __typename?: "AttributeReorderValues"; + /** Attribute from which values are reordered. */ + attribute?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + errors: Array; +}; + +export enum AttributeSortField { + /** Sort attributes based on whether they can be displayed or not in a product grid. */ + AvailableInGrid = "AVAILABLE_IN_GRID", + /** Sort attributes by the filterable in dashboard flag */ + FilterableInDashboard = "FILTERABLE_IN_DASHBOARD", + /** Sort attributes by the filterable in storefront flag */ + FilterableInStorefront = "FILTERABLE_IN_STOREFRONT", + /** Sort attributes by the variant only flag */ + IsVariantOnly = "IS_VARIANT_ONLY", + /** Sort attributes by name */ + Name = "NAME", + /** Sort attributes by slug */ + Slug = "SLUG", + /** Sort attributes by their position in storefront */ + StorefrontSearchPosition = "STOREFRONT_SEARCH_POSITION", + /** Sort attributes by the value required flag */ + ValueRequired = "VALUE_REQUIRED", + /** Sort attributes by visibility in the storefront */ + VisibleInStorefront = "VISIBLE_IN_STOREFRONT", +} + +export type AttributeSortingInput = { + /** Specifies the direction in which to sort products. */ + direction: OrderDirection; + /** Sort attributes by the selected field. */ + field: AttributeSortField; +}; + +export type AttributeTranslatableContent = Node & { + __typename?: "AttributeTranslatableContent"; + /** + * Custom attribute of a product. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + attribute?: Maybe; + id: Scalars["ID"]; + name: Scalars["String"]; + /** Returns translated attribute fields for the given language code. */ + translation?: Maybe; +}; + +export type AttributeTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for an attribute. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type AttributeTranslate = { + __typename?: "AttributeTranslate"; + attribute?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type AttributeTranslation = Node & { + __typename?: "AttributeTranslation"; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name: Scalars["String"]; +}; + +/** An enumeration. */ +export enum AttributeTypeEnum { + PageType = "PAGE_TYPE", + ProductType = "PRODUCT_TYPE", +} + +/** + * Updates attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type AttributeUpdate = { + __typename?: "AttributeUpdate"; + attribute?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + errors: Array; +}; + +export type AttributeUpdateInput = { + /** New values to be created for this attribute. */ + addValues?: InputMaybe>; + /** Whether the attribute can be displayed in the admin product list. */ + availableInGrid?: InputMaybe; + /** Whether the attribute can be filtered in dashboard. */ + filterableInDashboard?: InputMaybe; + /** Whether the attribute can be filtered in storefront. */ + 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). */ + 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; +}; + +/** Represents a value of an attribute. */ +export type AttributeValue = Node & { + __typename?: "AttributeValue"; + /** Represents the boolean value of the attribute value. */ + boolean?: Maybe; + /** Represents the date value of the attribute value. */ + date?: Maybe; + /** Represents the date/time value of the attribute value. */ + dateTime?: Maybe; + /** Represents file URL and content type (if attribute value is a file). */ + file?: Maybe; + id: Scalars["ID"]; + /** The input type to use for entering attribute values in the dashboard. */ + inputType?: Maybe; + /** Name of a value displayed in the interface. */ + name?: Maybe; + /** The ID of the attribute reference. */ + reference?: Maybe; + /** + * Represents the text of the attribute value, includes formatting. + * + * Rich text format. For reference see https://editorjs.io/ + */ + richText?: Maybe; + /** Internal representation of a value (unique per attribute). */ + slug?: Maybe; + /** Returns translated attribute value fields for the given language code. */ + translation?: Maybe; + /** Represent value of the attribute value (e.g. color values for swatch attributes). */ + value?: Maybe; +}; + +/** Represents a value of an attribute. */ +export type AttributeValueTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Deletes values of attributes. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type AttributeValueBulkDelete = { + __typename?: "AttributeValueBulkDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; +}; + +export type AttributeValueCountableConnection = { + __typename?: "AttributeValueCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type AttributeValueCountableEdge = { + __typename?: "AttributeValueCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: AttributeValue; +}; + +/** + * Creates a value for an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type AttributeValueCreate = { + __typename?: "AttributeValueCreate"; + /** The updated attribute. */ + attribute?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + attributeValue?: Maybe; + errors: Array; +}; + +export type AttributeValueCreateInput = { + /** File content type. */ + contentType?: 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, includes formatting. + * + * Rich text format. For reference see https://editorjs.io/ + */ + richText?: InputMaybe; + /** Represent value of the attribute value (e.g. color values for swatch attributes). */ + value?: InputMaybe; +}; + +/** + * Deletes a value of an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type AttributeValueDelete = { + __typename?: "AttributeValueDelete"; + /** The updated attribute. */ + attribute?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + attributeValue?: Maybe; + errors: Array; +}; + +export type AttributeValueFilterInput = { + ids?: InputMaybe>; + search?: InputMaybe; +}; + +export type AttributeValueInput = { + /** 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; + /** URL of the file attribute. Every time, a new value is created. */ + file?: InputMaybe; + /** ID of the selected attribute. */ + id?: InputMaybe; + /** List of entity IDs that will be used as references. */ + references?: InputMaybe>; + /** Text content in JSON format. */ + richText?: InputMaybe; + /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ + values?: InputMaybe>; +}; + +export type AttributeValueTranslatableContent = Node & { + __typename?: "AttributeValueTranslatableContent"; + /** + * Represents a value of an attribute. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + attributeValue?: Maybe; + id: Scalars["ID"]; + name: Scalars["String"]; + /** + * Attribute value. + * + * Rich text format. For reference see https://editorjs.io/ + */ + richText?: Maybe; + /** Returns translated attribute value fields for the given language code. */ + translation?: Maybe; +}; + +export type AttributeValueTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for an attribute value. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type AttributeValueTranslate = { + __typename?: "AttributeValueTranslate"; + attributeValue?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type AttributeValueTranslation = Node & { + __typename?: "AttributeValueTranslation"; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name: Scalars["String"]; + /** + * Attribute value. + * + * Rich text format. For reference see https://editorjs.io/ + */ + richText?: Maybe; +}; + +export type AttributeValueTranslationInput = { + name?: InputMaybe; + /** + * Translated text. + * + * Rich text format. For reference see https://editorjs.io/ + */ + richText?: InputMaybe; +}; + +/** + * Updates value of an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type AttributeValueUpdate = { + __typename?: "AttributeValueUpdate"; + /** The updated attribute. */ + attribute?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + attributeErrors: Array; + attributeValue?: Maybe; + errors: Array; +}; + +export type AttributeValueUpdateInput = { + /** File content type. */ + contentType?: 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, includes formatting. + * + * Rich text format. For reference see https://editorjs.io/ + */ + richText?: InputMaybe; + /** Represent value of the attribute value (e.g. color values for swatch attributes). */ + value?: InputMaybe; +}; + +export type BulkAttributeValueInput = { + /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ + boolean?: InputMaybe; + /** 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>; +}; + +export type BulkProductError = { + __typename?: "BulkProductError"; + /** List of attributes IDs which causes the error. */ + attributes?: Maybe>; + /** List of channel IDs which causes the error. */ + channels?: Maybe>; + /** The error code. */ + code: ProductErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** Index of an input list item that caused the error. */ + index?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of attribute values IDs which causes the error. */ + values?: Maybe>; + /** List of warehouse IDs which causes the error. */ + warehouses?: Maybe>; +}; + +export type BulkStockError = { + __typename?: "BulkStockError"; + /** List of attributes IDs which causes the error. */ + attributes?: Maybe>; + /** The error code. */ + code: ProductErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** Index of an input list item that caused the error. */ + index?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of attribute values IDs which causes the error. */ + values?: Maybe>; +}; + +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 = { + /** 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. + * + * Added in Saleor 3.1. + */ + variants?: InputMaybe>; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type Category = Node & + ObjectWithMetadata & { + __typename?: "Category"; + /** List of ancestors of the category. */ + ancestors?: Maybe; + backgroundImage?: Maybe; + /** List of children of the category. */ + children?: Maybe; + /** + * Description of the category. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Description of the category. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + level: Scalars["Int"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + parent?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** List of products in the category. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + products?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; + slug: Scalars["String"]; + /** Returns translated category fields for the given language code. */ + translation?: Maybe; + }; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryAncestorsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryBackgroundImageArgs = { + size?: InputMaybe; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryChildrenArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryProductsArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ +export type CategoryTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Deletes categories. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CategoryBulkDelete = { + __typename?: "CategoryBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type CategoryCountableConnection = { + __typename?: "CategoryCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type CategoryCountableEdge = { + __typename?: "CategoryCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Category; +}; + +/** + * Creates a new category. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CategoryCreate = { + __typename?: "CategoryCreate"; + category?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type CategoryCreated = Event & { + __typename?: "CategoryCreated"; + /** + * The category the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + category?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Deletes a category. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CategoryDelete = { + __typename?: "CategoryDelete"; + category?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type CategoryDeleted = Event & { + __typename?: "CategoryDeleted"; + /** + * The category the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + category?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type CategoryFilterInput = { + ids?: InputMaybe>; + metadata?: InputMaybe>; + search?: 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; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Category slug. */ + slug?: InputMaybe; +}; + +export enum CategorySortField { + /** Sort categories by name. */ + Name = "NAME", + /** Sort categories by product count. */ + ProductCount = "PRODUCT_COUNT", + /** Sort categories by subcategory count. */ + SubcategoryCount = "SUBCATEGORY_COUNT", +} + +export type CategorySortingInput = { + /** + * 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 products. */ + direction: OrderDirection; + /** Sort categories by the selected field. */ + field: CategorySortField; +}; + +export type CategoryTranslatableContent = Node & { + __typename?: "CategoryTranslatableContent"; + /** + * Represents a single category of products. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + category?: Maybe; + /** + * Description of the category. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Description of the category. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + name: Scalars["String"]; + seoDescription?: Maybe; + seoTitle?: Maybe; + /** Returns translated category fields for the given language code. */ + translation?: Maybe; +}; + +export type CategoryTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for a category. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type CategoryTranslate = { + __typename?: "CategoryTranslate"; + category?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type CategoryTranslation = Node & { + __typename?: "CategoryTranslation"; + /** + * Translated description of the category. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Translated description of the category. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; +}; + +/** + * Updates a category. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CategoryUpdate = { + __typename?: "CategoryUpdate"; + category?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type CategoryUpdated = Event & { + __typename?: "CategoryUpdated"; + /** + * The category the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + category?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** Represents channel. */ +export type Channel = Node & { + __typename?: "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. + */ + defaultCountry: CountryDisplay; + /** + * Whether a channel has associated orders. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ + hasOrders: Scalars["Boolean"]; + id: Scalars["ID"]; + isActive: Scalars["Boolean"]; + name: Scalars["String"]; + slug: Scalars["String"]; +}; + +/** + * Activate a channel. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ +export type ChannelActivate = { + __typename?: "ChannelActivate"; + /** Activated channel. */ + channel?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + channelErrors: Array; + errors: Array; +}; + +/** + * Creates new channel. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ +export type ChannelCreate = { + __typename?: "ChannelCreate"; + channel?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + channelErrors: Array; + errors: Array; +}; + +export type ChannelCreateInput = { + /** List of shipping zones to assign to the channel. */ + addShippingZones?: InputMaybe>; + /** 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. + */ + defaultCountry: CountryCode; + /** isActive flag. */ + isActive?: InputMaybe; + /** Name of the channel. */ + name: Scalars["String"]; + /** Slug of the channel. */ + slug: Scalars["String"]; +}; + +export type ChannelCreated = Event & { + __typename?: "ChannelCreated"; + /** + * The channel the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + channel?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Deactivate a channel. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ +export type ChannelDeactivate = { + __typename?: "ChannelDeactivate"; + /** Deactivated channel. */ + channel?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + channelErrors: Array; + errors: Array; +}; + +/** + * 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. + */ +export type ChannelDelete = { + __typename?: "ChannelDelete"; + channel?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + channelErrors: Array; + errors: Array; +}; + +export type ChannelDeleteInput = { + /** ID of channel to migrate orders from origin channel. */ + channelId: Scalars["ID"]; +}; + +export type ChannelDeleted = Event & { + __typename?: "ChannelDeleted"; + /** + * The channel the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + channel?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ChannelError = { + __typename?: "ChannelError"; + /** The error code. */ + code: ChannelErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of shipping zone IDs which causes the error. */ + shippingZones?: Maybe>; +}; + +/** An enumeration. */ +export enum ChannelErrorCode { + AlreadyExists = "ALREADY_EXISTS", + ChannelsCurrencyMustBeTheSame = "CHANNELS_CURRENCY_MUST_BE_THE_SAME", + ChannelWithOrders = "CHANNEL_WITH_ORDERS", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export type ChannelStatusChanged = Event & { + __typename?: "ChannelStatusChanged"; + /** + * The channel the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + channel?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Update a channel. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ +export type ChannelUpdate = { + __typename?: "ChannelUpdate"; + channel?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + channelErrors: Array; + errors: Array; +}; + +export type ChannelUpdateInput = { + /** List of shipping zones to assign to the channel. */ + addShippingZones?: 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; + /** List of shipping zones to unassign from the channel. */ + removeShippingZones?: InputMaybe>; + /** Slug of the channel. */ + slug?: InputMaybe; +}; + +export type ChannelUpdated = Event & { + __typename?: "ChannelUpdated"; + /** + * The channel the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + channel?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** Checkout object. */ +export type Checkout = Node & + ObjectWithMetadata & { + __typename?: "Checkout"; + /** + * 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: Array; + /** List of available payment gateways. */ + availablePaymentGateways: Array; + /** + * Shipping methods that can be used with this checkout. + * @deprecated This field will be removed in Saleor 4.0. Use `shippingMethods` instead. + */ + availableShippingMethods: Array; + billingAddress?: Maybe
; + channel: Channel; + created: Scalars["DateTime"]; + /** + * 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?: Maybe; + discount?: Maybe; + discountName?: Maybe; + /** Email of a customer. */ + email?: Maybe; + /** List of gift cards associated with this checkout. */ + giftCards: Array; + id: Scalars["ID"]; + /** Returns True, if checkout requires shipping. */ + isShippingRequired: Scalars["Boolean"]; + /** Checkout language code. */ + languageCode: LanguageCodeEnum; + lastChange: Scalars["DateTime"]; + /** A list of checkout lines, each containing information about an item in the checkout. */ + lines: Array; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + note: Scalars["String"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** The number of items purchased. */ + quantity: Scalars["Int"]; + shippingAddress?: Maybe
; + /** + * The shipping method related with checkout. + * @deprecated This field will be removed in Saleor 4.0. Use `deliveryMethod` instead. + */ + shippingMethod?: Maybe; + /** Shipping methods that can be used with this checkout. */ + shippingMethods: Array; + /** The price of the shipping, with all the taxes included. */ + shippingPrice: TaxedMoney; + /** + * Date when oldest stock reservation for this checkout expires or null if no stock is reserved. + * + * Added in Saleor 3.1. + */ + stockReservationExpires?: Maybe; + /** The price of the checkout before shipping, with taxes included. */ + subtotalPrice: TaxedMoney; + /** The checkout's token. */ + token: Scalars["UUID"]; + /** The sum of the the checkout line prices, with all the taxes,shipping costs, and discounts included. */ + totalPrice: TaxedMoney; + /** + * 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?: Maybe>; + translatedDiscountName?: Maybe; + user?: Maybe; + voucherCode?: Maybe; + }; + +/** Checkout object. */ +export type CheckoutMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Checkout object. */ +export type CheckoutMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Checkout object. */ +export type CheckoutPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Checkout object. */ +export type CheckoutPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Adds a gift card or a voucher to a checkout. */ +export type CheckoutAddPromoCode = { + __typename?: "CheckoutAddPromoCode"; + /** The checkout with the added gift card or voucher. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** Update billing address in the existing checkout. */ +export type CheckoutBillingAddressUpdate = { + __typename?: "CheckoutBillingAddressUpdate"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** 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. */ +export type CheckoutComplete = { + __typename?: "CheckoutComplete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + /** Confirmation data used to process additional authorization steps. */ + confirmationData?: Maybe; + /** Set to true if payment needs to be confirmed before checkout is complete. */ + confirmationNeeded: Scalars["Boolean"]; + errors: Array; + /** Placed order. */ + order?: Maybe; +}; + +export type CheckoutCountableConnection = { + __typename?: "CheckoutCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type CheckoutCountableEdge = { + __typename?: "CheckoutCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Checkout; +}; + +/** Create a new checkout. */ +export type CheckoutCreate = { + __typename?: "CheckoutCreate"; + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + /** + * 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. + * @deprecated This field will be removed in Saleor 4.0. Always returns `true`. + */ + created?: Maybe; + errors: Array; +}; + +export type CheckoutCreateInput = { + /** 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; +}; + +export type CheckoutCreated = Event & { + __typename?: "CheckoutCreated"; + /** + * The checkout the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + checkout?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Sets the customer as the owner of the checkout. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. + */ +export type CheckoutCustomerAttach = { + __typename?: "CheckoutCustomerAttach"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** + * Removes the user assigned as the owner of the checkout. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. + */ +export type CheckoutCustomerDetach = { + __typename?: "CheckoutCustomerDetach"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** + * 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. + */ +export type CheckoutDeliveryMethodUpdate = { + __typename?: "CheckoutDeliveryMethodUpdate"; + /** An updated checkout. */ + checkout?: Maybe; + errors: Array; +}; + +/** Updates email address in the existing checkout object. */ +export type CheckoutEmailUpdate = { + __typename?: "CheckoutEmailUpdate"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +export type CheckoutError = { + __typename?: "CheckoutError"; + /** A type of address that causes the error. */ + addressType?: Maybe; + /** The error code. */ + code: CheckoutErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** List of line Ids which cause the error. */ + lines?: Maybe>; + /** The error message. */ + message?: Maybe; + /** List of varint IDs which causes the error. */ + variants?: Maybe>; +}; + +/** An enumeration. */ +export enum CheckoutErrorCode { + BillingAddressNotSet = "BILLING_ADDRESS_NOT_SET", + ChannelInactive = "CHANNEL_INACTIVE", + CheckoutNotFullyPaid = "CHECKOUT_NOT_FULLY_PAID", + DeliveryMethodNotApplicable = "DELIVERY_METHOD_NOT_APPLICABLE", + EmailNotSet = "EMAIL_NOT_SET", + GiftCardNotApplicable = "GIFT_CARD_NOT_APPLICABLE", + GraphqlError = "GRAPHQL_ERROR", + InsufficientStock = "INSUFFICIENT_STOCK", + Invalid = "INVALID", + InvalidShippingMethod = "INVALID_SHIPPING_METHOD", + MissingChannelSlug = "MISSING_CHANNEL_SLUG", + NotFound = "NOT_FOUND", + NoLines = "NO_LINES", + PaymentError = "PAYMENT_ERROR", + ProductNotPublished = "PRODUCT_NOT_PUBLISHED", + ProductUnavailableForPurchase = "PRODUCT_UNAVAILABLE_FOR_PURCHASE", + QuantityGreaterThanLimit = "QUANTITY_GREATER_THAN_LIMIT", + Required = "REQUIRED", + ShippingAddressNotSet = "SHIPPING_ADDRESS_NOT_SET", + ShippingMethodNotApplicable = "SHIPPING_METHOD_NOT_APPLICABLE", + ShippingMethodNotSet = "SHIPPING_METHOD_NOT_SET", + ShippingNotRequired = "SHIPPING_NOT_REQUIRED", + TaxError = "TAX_ERROR", + UnavailableVariantInChannel = "UNAVAILABLE_VARIANT_IN_CHANNEL", + Unique = "UNIQUE", + VoucherNotApplicable = "VOUCHER_NOT_APPLICABLE", + ZeroQuantity = "ZERO_QUANTITY", +} + +export type CheckoutFilterInput = { + channels?: InputMaybe>; + created?: InputMaybe; + customer?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; +}; + +/** Update language code in the existing checkout. */ +export type CheckoutLanguageCodeUpdate = { + __typename?: "CheckoutLanguageCodeUpdate"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** Represents an item in the checkout. */ +export type CheckoutLine = Node & { + __typename?: "CheckoutLine"; + id: Scalars["ID"]; + quantity: Scalars["Int"]; + /** Indicates whether the item need to be delivered. */ + requiresShipping: Scalars["Boolean"]; + /** The sum of the checkout line price, taxes and discounts. */ + totalPrice: TaxedMoney; + /** The sum of the checkout line price, without discounts. */ + undiscountedTotalPrice: Money; + /** The unit price of the checkout line, without discounts. */ + undiscountedUnitPrice: Money; + /** The unit price of the checkout line, with taxes and discounts. */ + unitPrice: TaxedMoney; + variant: ProductVariant; +}; + +export type CheckoutLineCountableConnection = { + __typename?: "CheckoutLineCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type CheckoutLineCountableEdge = { + __typename?: "CheckoutLineCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: CheckoutLine; +}; + +/** Deletes a CheckoutLine. */ +export type CheckoutLineDelete = { + __typename?: "CheckoutLineDelete"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +export type 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?: InputMaybe; + /** The number of items purchased. */ + quantity: Scalars["Int"]; + /** ID of the product variant. */ + variantId: Scalars["ID"]; +}; + +export type 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?: InputMaybe; + /** The number of items purchased. Optional for apps, required for any other users. */ + quantity?: InputMaybe; + /** ID of the product variant. */ + variantId: Scalars["ID"]; +}; + +/** Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased. */ +export type CheckoutLinesAdd = { + __typename?: "CheckoutLinesAdd"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** Deletes checkout lines. */ +export type CheckoutLinesDelete = { + __typename?: "CheckoutLinesDelete"; + /** An updated checkout. */ + checkout?: Maybe; + errors: Array; +}; + +/** Updates checkout line in the existing checkout. */ +export type CheckoutLinesUpdate = { + __typename?: "CheckoutLinesUpdate"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** Create a new payment for given checkout. */ +export type CheckoutPaymentCreate = { + __typename?: "CheckoutPaymentCreate"; + /** Related checkout object. */ + checkout?: Maybe; + errors: Array; + /** A newly created payment. */ + payment?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + paymentErrors: Array; +}; + +/** Remove a gift card or a voucher from a checkout. */ +export type CheckoutRemovePromoCode = { + __typename?: "CheckoutRemovePromoCode"; + /** The checkout with the removed gift card or voucher. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** Update shipping address in the existing checkout. */ +export type CheckoutShippingAddressUpdate = { + __typename?: "CheckoutShippingAddressUpdate"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +/** Updates the shipping method of the checkout. */ +export type CheckoutShippingMethodUpdate = { + __typename?: "CheckoutShippingMethodUpdate"; + /** An updated checkout. */ + checkout?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + checkoutErrors: Array; + errors: Array; +}; + +export enum CheckoutSortField { + /** Sort checkouts by creation date. */ + CreationDate = "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 CheckoutUpdated = Event & { + __typename?: "CheckoutUpdated"; + /** + * The checkout the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + checkout?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ChoiceValue = { + __typename?: "ChoiceValue"; + raw?: Maybe; + verbose?: Maybe; +}; + +/** Represents a collection of products. */ +export type Collection = Node & + ObjectWithMetadata & { + __typename?: "Collection"; + backgroundImage?: Maybe; + /** Channel given to retrieve this collection. Also used by federation gateway to resolve this object in a federated query. */ + channel?: Maybe; + /** + * List of channels in which the collection is available. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + channelListings?: Maybe>; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** List of products in this collection. */ + products?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; + slug: Scalars["String"]; + /** Returns translated collection fields for the given language code. */ + translation?: Maybe; + }; + +/** Represents a collection of products. */ +export type CollectionBackgroundImageArgs = { + size?: InputMaybe; +}; + +/** Represents a collection of products. */ +export type CollectionMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a collection of products. */ +export type CollectionMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a collection of products. */ +export type CollectionPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a collection of products. */ +export type CollectionPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a collection of products. */ +export type CollectionProductsArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +/** Represents a collection of products. */ +export type CollectionTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Adds products to a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CollectionAddProducts = { + __typename?: "CollectionAddProducts"; + /** Collection to which products will be added. */ + collection?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + collectionErrors: Array; + errors: Array; +}; + +/** + * Deletes collections. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CollectionBulkDelete = { + __typename?: "CollectionBulkDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + collectionErrors: Array; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; +}; + +/** Represents collection channel listing. */ +export type CollectionChannelListing = Node & { + __typename?: "CollectionChannelListing"; + channel: Channel; + id: Scalars["ID"]; + isPublished: Scalars["Boolean"]; + /** @deprecated This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date. */ + publicationDate?: Maybe; + /** + * The collection publication date. + * + * Added in Saleor 3.3. + */ + publishedAt?: Maybe; +}; + +export type CollectionChannelListingError = { + __typename?: "CollectionChannelListingError"; + /** List of attributes IDs which causes the error. */ + attributes?: Maybe>; + /** List of channels IDs which causes the error. */ + channels?: Maybe>; + /** The error code. */ + code: ProductErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of attribute values IDs which causes the error. */ + values?: Maybe>; +}; + +/** + * Manage collection's availability in channels. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CollectionChannelListingUpdate = { + __typename?: "CollectionChannelListingUpdate"; + /** An updated collection instance. */ + collection?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + collectionChannelListingErrors: Array; + errors: Array; +}; + +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 CollectionCountableConnection = { + __typename?: "CollectionCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type CollectionCountableEdge = { + __typename?: "CollectionCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Collection; +}; + +/** + * Creates a new collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CollectionCreate = { + __typename?: "CollectionCreate"; + collection?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + collectionErrors: Array; + errors: Array; +}; + +export type CollectionCreateInput = { + /** 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; + /** Name of the collection. */ + name?: InputMaybe; + /** List of products to be added to the collection. */ + products?: 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 type CollectionCreated = Event & { + __typename?: "CollectionCreated"; + /** + * The collection the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + collection?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type CollectionCreatedCollectionArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CollectionDelete = { + __typename?: "CollectionDelete"; + collection?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + collectionErrors: Array; + errors: Array; +}; + +export type CollectionDeleted = Event & { + __typename?: "CollectionDeleted"; + /** + * The collection the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + collection?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type CollectionDeletedCollectionArgs = { + channel?: InputMaybe; +}; + +export type CollectionError = { + __typename?: "CollectionError"; + /** The error code. */ + code: CollectionErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of products IDs which causes the error. */ + products?: Maybe>; +}; + +/** An enumeration. */ +export enum CollectionErrorCode { + CannotManageProductWithoutVariant = "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "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; +}; + +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; + /** Name of the collection. */ + name?: 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 { + Hidden = "HIDDEN", + Published = "PUBLISHED", +} + +/** + * Remove products from a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CollectionRemoveProducts = { + __typename?: "CollectionRemoveProducts"; + /** Collection from which products will be removed. */ + collection?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + collectionErrors: Array; + errors: Array; +}; + +/** + * Reorder the products of a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CollectionReorderProducts = { + __typename?: "CollectionReorderProducts"; + /** Collection from which products are reordered. */ + collection?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + collectionErrors: Array; + errors: Array; +}; + +export enum CollectionSortField { + /** + * 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. */ + ProductCount = "PRODUCT_COUNT", + /** + * Sort collections by publication date. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + PublicationDate = "PUBLICATION_DATE", + /** + * Sort collections by publication date. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + PublishedAt = "PUBLISHED_AT", +} + +export type CollectionSortingInput = { + /** + * 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 products. */ + direction: OrderDirection; + /** Sort collections by the selected field. */ + field: CollectionSortField; +}; + +export type CollectionTranslatableContent = Node & { + __typename?: "CollectionTranslatableContent"; + /** + * Represents a collection of products. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + collection?: Maybe; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + name: Scalars["String"]; + seoDescription?: Maybe; + seoTitle?: Maybe; + /** Returns translated collection fields for the given language code. */ + translation?: Maybe; +}; + +export type CollectionTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for a collection. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type CollectionTranslate = { + __typename?: "CollectionTranslate"; + collection?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type CollectionTranslation = Node & { + __typename?: "CollectionTranslation"; + /** + * Translated description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Translated description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; +}; + +/** + * Updates a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type CollectionUpdate = { + __typename?: "CollectionUpdate"; + collection?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + collectionErrors: Array; + errors: Array; +}; + +export type CollectionUpdated = Event & { + __typename?: "CollectionUpdated"; + /** + * The collection the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + collection?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type CollectionUpdatedCollectionArgs = { + channel?: InputMaybe; +}; + +/** Stores information about a single configuration field. */ +export type ConfigurationItem = { + __typename?: "ConfigurationItem"; + /** Help text for the field. */ + helpText?: Maybe; + /** Label for the field. */ + label?: Maybe; + /** Name of the field. */ + name: Scalars["String"]; + /** Type of the field. */ + type?: Maybe; + /** Current value of the field. */ + value?: Maybe; +}; + +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 { + Boolean = "BOOLEAN", + Multiline = "MULTILINE", + Output = "OUTPUT", + Password = "PASSWORD", + Secret = "SECRET", + Secretmultiline = "SECRETMULTILINE", + String = "STRING", +} + +/** Confirm user account with token sent by email during registration. */ +export type ConfirmAccount = { + __typename?: "ConfirmAccount"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** An activated user account. */ + user?: Maybe; +}; + +/** + * Confirm the email change of the logged-in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type ConfirmEmailChange = { + __typename?: "ConfirmEmailChange"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** A user instance with a new email. */ + user?: Maybe; +}; + +/** An enumeration. */ +export enum CountryCode { + Ad = "AD", + Ae = "AE", + Af = "AF", + Ag = "AG", + Ai = "AI", + Al = "AL", + Am = "AM", + Ao = "AO", + Aq = "AQ", + Ar = "AR", + As = "AS", + At = "AT", + Au = "AU", + Aw = "AW", + Ax = "AX", + Az = "AZ", + Ba = "BA", + Bb = "BB", + Bd = "BD", + Be = "BE", + Bf = "BF", + Bg = "BG", + Bh = "BH", + Bi = "BI", + Bj = "BJ", + Bl = "BL", + Bm = "BM", + Bn = "BN", + Bo = "BO", + Bq = "BQ", + Br = "BR", + Bs = "BS", + Bt = "BT", + Bv = "BV", + Bw = "BW", + By = "BY", + Bz = "BZ", + Ca = "CA", + Cc = "CC", + Cd = "CD", + Cf = "CF", + Cg = "CG", + Ch = "CH", + Ci = "CI", + Ck = "CK", + Cl = "CL", + Cm = "CM", + Cn = "CN", + Co = "CO", + Cr = "CR", + Cu = "CU", + Cv = "CV", + Cw = "CW", + Cx = "CX", + Cy = "CY", + Cz = "CZ", + De = "DE", + Dj = "DJ", + Dk = "DK", + Dm = "DM", + Do = "DO", + Dz = "DZ", + Ec = "EC", + Ee = "EE", + Eg = "EG", + Eh = "EH", + Er = "ER", + Es = "ES", + Et = "ET", + Eu = "EU", + Fi = "FI", + Fj = "FJ", + Fk = "FK", + Fm = "FM", + Fo = "FO", + Fr = "FR", + Ga = "GA", + Gb = "GB", + Gd = "GD", + Ge = "GE", + Gf = "GF", + Gg = "GG", + Gh = "GH", + Gi = "GI", + Gl = "GL", + Gm = "GM", + Gn = "GN", + Gp = "GP", + Gq = "GQ", + Gr = "GR", + Gs = "GS", + Gt = "GT", + Gu = "GU", + Gw = "GW", + Gy = "GY", + Hk = "HK", + Hm = "HM", + Hn = "HN", + Hr = "HR", + Ht = "HT", + Hu = "HU", + Id = "ID", + Ie = "IE", + Il = "IL", + Im = "IM", + In = "IN", + Io = "IO", + Iq = "IQ", + Ir = "IR", + Is = "IS", + It = "IT", + Je = "JE", + Jm = "JM", + Jo = "JO", + Jp = "JP", + Ke = "KE", + Kg = "KG", + Kh = "KH", + Ki = "KI", + Km = "KM", + Kn = "KN", + Kp = "KP", + Kr = "KR", + Kw = "KW", + Ky = "KY", + Kz = "KZ", + La = "LA", + Lb = "LB", + Lc = "LC", + Li = "LI", + Lk = "LK", + Lr = "LR", + Ls = "LS", + Lt = "LT", + Lu = "LU", + Lv = "LV", + Ly = "LY", + Ma = "MA", + Mc = "MC", + Md = "MD", + Me = "ME", + Mf = "MF", + Mg = "MG", + Mh = "MH", + Mk = "MK", + Ml = "ML", + Mm = "MM", + Mn = "MN", + Mo = "MO", + Mp = "MP", + Mq = "MQ", + Mr = "MR", + Ms = "MS", + Mt = "MT", + Mu = "MU", + Mv = "MV", + Mw = "MW", + Mx = "MX", + My = "MY", + Mz = "MZ", + Na = "NA", + Nc = "NC", + Ne = "NE", + Nf = "NF", + Ng = "NG", + Ni = "NI", + Nl = "NL", + No = "NO", + Np = "NP", + Nr = "NR", + Nu = "NU", + Nz = "NZ", + Om = "OM", + Pa = "PA", + Pe = "PE", + Pf = "PF", + Pg = "PG", + Ph = "PH", + Pk = "PK", + Pl = "PL", + 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", + Sa = "SA", + Sb = "SB", + Sc = "SC", + Sd = "SD", + Se = "SE", + 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", + 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", + Tw = "TW", + Tz = "TZ", + Ua = "UA", + Ug = "UG", + Um = "UM", + Us = "US", + Uy = "UY", + Uz = "UZ", + Va = "VA", + Vc = "VC", + Ve = "VE", + Vg = "VG", + Vi = "VI", + Vn = "VN", + Vu = "VU", + Wf = "WF", + Ws = "WS", + Ye = "YE", + Yt = "YT", + Za = "ZA", + Zm = "ZM", + Zw = "ZW", +} + +export type CountryDisplay = { + __typename?: "CountryDisplay"; + /** Country code. */ + code: Scalars["String"]; + /** Country name. */ + country: Scalars["String"]; + /** Country tax. */ + vat?: Maybe; +}; + +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; +}; + +/** Create JWT token. */ +export type CreateToken = { + __typename?: "CreateToken"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + /** CSRF token required to re-generate access token. */ + csrfToken?: Maybe; + errors: Array; + /** JWT refresh token, required to re-generate access token. */ + refreshToken?: Maybe; + /** JWT token, required to authenticate. */ + token?: Maybe; + /** A user instance. */ + user?: Maybe; +}; + +export type CreditCard = { + __typename?: "CreditCard"; + /** Card brand. */ + brand: Scalars["String"]; + /** Two-digit number representing the card’s expiration month. */ + expMonth?: Maybe; + /** Four-digit number representing the card’s expiration year. */ + expYear?: Maybe; + /** First 4 digits of the card number. */ + firstDigits?: Maybe; + /** Last 4 digits of the card number. */ + lastDigits: Scalars["String"]; +}; + +/** + * Deletes customers. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type CustomerBulkDelete = { + __typename?: "CustomerBulkDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; +}; + +/** + * Creates a new customer. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type CustomerCreate = { + __typename?: "CustomerCreate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + user?: Maybe; +}; + +export type CustomerCreated = Event & { + __typename?: "CustomerCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The user the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + user?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Deletes a customer. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type CustomerDelete = { + __typename?: "CustomerDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + user?: Maybe; +}; + +/** History log of the customer. */ +export type CustomerEvent = Node & { + __typename?: "CustomerEvent"; + /** App that performed the action. */ + app?: Maybe; + /** Number of objects concerned by the event. */ + count?: Maybe; + /** Date when event happened at in ISO 8601 format. */ + date?: Maybe; + id: Scalars["ID"]; + /** Content of the event. */ + message?: Maybe; + /** The concerned order. */ + order?: Maybe; + /** The concerned order line. */ + orderLine?: Maybe; + /** Customer event type. */ + type?: Maybe; + /** User who performed the action. */ + user?: Maybe; +}; + +/** An enumeration. */ +export enum CustomerEventsEnum { + AccountCreated = "ACCOUNT_CREATED", + CustomerDeleted = "CUSTOMER_DELETED", + DigitalLinkDownloaded = "DIGITAL_LINK_DOWNLOADED", + EmailAssigned = "EMAIL_ASSIGNED", + EmailChanged = "EMAIL_CHANGED", + EmailChangedRequest = "EMAIL_CHANGED_REQUEST", + NameAssigned = "NAME_ASSIGNED", + NoteAdded = "NOTE_ADDED", + NoteAddedToOrder = "NOTE_ADDED_TO_ORDER", + PasswordChanged = "PASSWORD_CHANGED", + PasswordReset = "PASSWORD_RESET", + PasswordResetLinkSent = "PASSWORD_RESET_LINK_SENT", + PlacedOrder = "PLACED_ORDER", +} + +export type CustomerFilterInput = { + dateJoined?: InputMaybe; + metadata?: InputMaybe>; + numberOfOrders?: InputMaybe; + placedOrders?: InputMaybe; + search?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CustomerInput = { + /** Billing address of the customer. */ + defaultBillingAddress?: InputMaybe; + /** Shipping address of the customer. */ + defaultShippingAddress?: InputMaybe; + /** The unique email address of the user. */ + email?: 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; +}; + +/** + * Updates an existing customer. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type CustomerUpdate = { + __typename?: "CustomerUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + user?: Maybe; +}; + +export type CustomerUpdated = Event & { + __typename?: "CustomerUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The user the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + user?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type DateRangeInput = { + /** Start date. */ + gte?: InputMaybe; + /** End date. */ + lte?: InputMaybe; +}; + +export type DateTimeRangeInput = { + /** Start date. */ + gte?: InputMaybe; + /** End date. */ + lte?: InputMaybe; +}; + +/** + * Deactivate all JWT tokens of the currently authenticated user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type DeactivateAllUserTokens = { + __typename?: "DeactivateAllUserTokens"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; +}; + +/** Delete metadata of an object. To use it, you need to have access to the modified object. */ +export type DeleteMetadata = { + __typename?: "DeleteMetadata"; + errors: Array; + item?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + metadataErrors: Array; +}; + +/** 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. */ +export type DeletePrivateMetadata = { + __typename?: "DeletePrivateMetadata"; + errors: Array; + item?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + metadataErrors: Array; +}; + +/** + * 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. + */ +export type DeliveryMethod = ShippingMethod | Warehouse; + +export type DigitalContent = Node & + ObjectWithMetadata & { + __typename?: "DigitalContent"; + automaticFulfillment: Scalars["Boolean"]; + contentFile: Scalars["String"]; + id: Scalars["ID"]; + maxDownloads?: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Product variant assigned to digital content. */ + productVariant: ProductVariant; + urlValidDays?: Maybe; + /** List of URLs for the digital variant. */ + urls?: Maybe>; + useDefaultSettings: Scalars["Boolean"]; + }; + +export type DigitalContentMetafieldArgs = { + key: Scalars["String"]; +}; + +export type DigitalContentMetafieldsArgs = { + keys?: InputMaybe>; +}; + +export type DigitalContentPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +export type DigitalContentPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +export type DigitalContentCountableConnection = { + __typename?: "DigitalContentCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type DigitalContentCountableEdge = { + __typename?: "DigitalContentCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: DigitalContent; +}; + +/** + * 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. + */ +export type DigitalContentCreate = { + __typename?: "DigitalContentCreate"; + content?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + variant?: Maybe; +}; + +/** + * Remove digital content assigned to given variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type DigitalContentDelete = { + __typename?: "DigitalContentDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + variant?: Maybe; +}; + +export type DigitalContentInput = { + /** Overwrite default automatic_fulfillment setting for variant. */ + automaticFulfillment?: InputMaybe; + /** 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; + /** Use default digital content settings for this product. */ + useDefaultSettings: Scalars["Boolean"]; +}; + +/** + * Update digital content. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type DigitalContentUpdate = { + __typename?: "DigitalContentUpdate"; + content?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + variant?: Maybe; +}; + +export type DigitalContentUploadInput = { + /** 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; + /** 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 DigitalContentUrl = Node & { + __typename?: "DigitalContentUrl"; + content: DigitalContent; + created: Scalars["DateTime"]; + downloadNum: Scalars["Int"]; + id: Scalars["ID"]; + /** UUID of digital content. */ + token: Scalars["UUID"]; + /** URL for digital content. */ + url?: Maybe; +}; + +/** + * Generate new URL to digital content. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type DigitalContentUrlCreate = { + __typename?: "DigitalContentUrlCreate"; + digitalContentUrl?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type DigitalContentUrlCreateInput = { + /** Digital content ID which URL will belong to. */ + content: Scalars["ID"]; +}; + +export type DiscountError = { + __typename?: "DiscountError"; + /** List of channels IDs which causes the error. */ + channels?: Maybe>; + /** The error code. */ + code: DiscountErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of products IDs which causes the error. */ + products?: Maybe>; +}; + +/** An enumeration. */ +export enum DiscountErrorCode { + AlreadyExists = "ALREADY_EXISTS", + CannotManageProductWithoutVariant = "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export enum DiscountStatusEnum { + Active = "ACTIVE", + Expired = "EXPIRED", + Scheduled = "SCHEDULED", +} + +export enum DiscountValueTypeEnum { + Fixed = "FIXED", + Percentage = "PERCENTAGE", +} + +/** An enumeration. */ +export enum DistanceUnitsEnum { + Cm = "CM", + Ft = "FT", + Inch = "INCH", + Km = "KM", + M = "M", + Yd = "YD", +} + +/** Represents shop's domain. */ +export type Domain = { + __typename?: "Domain"; + /** The host name of the domain. */ + host: Scalars["String"]; + /** Inform if SSL is enabled. */ + sslEnabled: Scalars["Boolean"]; + /** Shop's absolute URL. */ + url: Scalars["String"]; +}; + +/** + * Deletes draft orders. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type DraftOrderBulkDelete = { + __typename?: "DraftOrderBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** + * Completes creating an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type DraftOrderComplete = { + __typename?: "DraftOrderComplete"; + errors: Array; + /** Completed order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** + * Creates a new draft order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type DraftOrderCreate = { + __typename?: "DraftOrderCreate"; + errors: Array; + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type DraftOrderCreateInput = { + /** Billing address of the customer. */ + billingAddress?: InputMaybe; + /** ID of the channel associated with the order. */ + channelId?: InputMaybe; + /** A note from a customer. Visible by customers in the order summary. */ + customerNote?: InputMaybe; + /** Discount amount for the order. */ + discount?: 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 DraftOrderCreated = Event & { + __typename?: "DraftOrderCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Deletes a draft order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type DraftOrderDelete = { + __typename?: "DraftOrderDelete"; + errors: Array; + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type DraftOrderDeleted = Event & { + __typename?: "DraftOrderDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type DraftOrderInput = { + /** Billing address of the customer. */ + billingAddress?: InputMaybe; + /** ID of the channel associated with the order. */ + channelId?: InputMaybe; + /** A note from a customer. Visible by customers in the order summary. */ + customerNote?: InputMaybe; + /** Discount amount for the order. */ + discount?: 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; +}; + +/** + * Deletes order lines. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type DraftOrderLinesBulkDelete = { + __typename?: "DraftOrderLinesBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** + * Updates a draft order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type DraftOrderUpdate = { + __typename?: "DraftOrderUpdate"; + errors: Array; + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type DraftOrderUpdated = Event & { + __typename?: "DraftOrderUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type Event = { + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** Event delivery. */ +export type EventDelivery = Node & { + __typename?: "EventDelivery"; + /** Event delivery attempts. */ + attempts?: Maybe; + createdAt: Scalars["DateTime"]; + /** Webhook event type. */ + eventType: WebhookEventTypeEnum; + id: Scalars["ID"]; + /** Event payload. */ + payload?: Maybe; + /** Event delivery status. */ + status: EventDeliveryStatusEnum; +}; + +/** Event delivery. */ +export type EventDeliveryAttemptsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +/** Event delivery attempts. */ +export type EventDeliveryAttempt = Node & { + __typename?: "EventDeliveryAttempt"; + /** Event delivery creation date and time. */ + createdAt: Scalars["DateTime"]; + /** Delivery attempt duration. */ + duration?: Maybe; + id: Scalars["ID"]; + /** Request headers for delivery attempt. */ + requestHeaders?: Maybe; + /** Delivery attempt response content. */ + response?: Maybe; + /** Response headers for delivery attempt. */ + responseHeaders?: Maybe; + /** Delivery attempt response status code. */ + responseStatusCode?: Maybe; + /** Event delivery status. */ + status: EventDeliveryStatusEnum; + /** Task id for delivery attempt. */ + taskId?: Maybe; +}; + +export type EventDeliveryAttemptCountableConnection = { + __typename?: "EventDeliveryAttemptCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type EventDeliveryAttemptCountableEdge = { + __typename?: "EventDeliveryAttemptCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: EventDeliveryAttempt; +}; + +export enum EventDeliveryAttemptSortField { + /** Sort event delivery attempts by created at. */ + CreatedAt = "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 EventDeliveryCountableConnection = { + __typename?: "EventDeliveryCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type EventDeliveryCountableEdge = { + __typename?: "EventDeliveryCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: EventDelivery; +}; + +export type EventDeliveryFilterInput = { + eventType?: InputMaybe; + status?: InputMaybe; +}; + +/** + * Retries event delivery. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type EventDeliveryRetry = { + __typename?: "EventDeliveryRetry"; + /** Event delivery. */ + delivery?: Maybe; + errors: Array; +}; + +export enum EventDeliverySortField { + /** Sort event deliveries by created at. */ + CreatedAt = "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 { + Failed = "FAILED", + Pending = "PENDING", + Success = "SUCCESS", +} + +export type ExportError = { + __typename?: "ExportError"; + /** The error code. */ + code: ExportErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum ExportErrorCode { + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", +} + +/** History log of export file. */ +export type ExportEvent = Node & { + __typename?: "ExportEvent"; + /** App which performed the action. Requires one of the following permissions: OWNER, MANAGE_APPS. */ + app?: Maybe; + /** Date when event happened at in ISO 8601 format. */ + date: Scalars["DateTime"]; + /** The ID of the object. */ + id: Scalars["ID"]; + /** Content of the event. */ + message: Scalars["String"]; + /** Export event type. */ + type: ExportEventsEnum; + /** User who performed the action. Requires one of the following permissions: OWNER, MANAGE_STAFF. */ + user?: Maybe; +}; + +/** An enumeration. */ +export enum ExportEventsEnum { + ExportedFileSent = "EXPORTED_FILE_SENT", + ExportDeleted = "EXPORT_DELETED", + ExportFailed = "EXPORT_FAILED", + ExportFailedInfoSent = "EXPORT_FAILED_INFO_SENT", + ExportPending = "EXPORT_PENDING", + ExportSuccess = "EXPORT_SUCCESS", +} + +/** Represents a job data of exported file. */ +export type ExportFile = Job & + Node & { + __typename?: "ExportFile"; + app?: Maybe; + /** Created date time of job in ISO 8601 format. */ + createdAt: Scalars["DateTime"]; + /** List of events associated with the export. */ + events?: Maybe>; + id: Scalars["ID"]; + /** Job message. */ + message?: Maybe; + /** Job status. */ + status: JobStatusEnum; + /** Date time of job last update in ISO 8601 format. */ + updatedAt: Scalars["DateTime"]; + /** The URL of field to download. */ + url?: Maybe; + user?: Maybe; + }; + +export type ExportFileCountableConnection = { + __typename?: "ExportFileCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type ExportFileCountableEdge = { + __typename?: "ExportFileCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: ExportFile; +}; + +export type ExportFileFilterInput = { + app?: InputMaybe; + createdAt?: InputMaybe; + status?: InputMaybe; + updatedAt?: InputMaybe; + user?: InputMaybe; +}; + +export enum ExportFileSortField { + CreatedAt = "CREATED_AT", + LastModifiedAt = "LAST_MODIFIED_AT", + Status = "STATUS", + UpdatedAt = "UPDATED_AT", +} + +export type 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. + */ +export type ExportGiftCards = { + __typename?: "ExportGiftCards"; + errors: Array; + /** The newly created export file job which is responsible for export data. */ + exportFile?: Maybe; +}; + +export type ExportGiftCardsInput = { + /** Type of exported file. */ + fileType: FileTypesEnum; + /** Filtering options for gift cards. */ + filter?: InputMaybe; + /** List of gift cards IDs to export. */ + ids?: InputMaybe>; + /** Determine which gift cards should be exported. */ + scope: ExportScope; +}; + +export type ExportInfoInput = { + /** List of attribute ids witch should be exported. */ + attributes?: 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 products to csv file. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ExportProducts = { + __typename?: "ExportProducts"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + exportErrors: Array; + /** The newly created export file job which is responsible for export data. */ + exportFile?: Maybe; +}; + +export type ExportProductsInput = { + /** 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 the filtered products. */ + Filter = "FILTER", + /** Export products with given ids. */ + Ids = "IDS", +} + +export type ExternalAuthentication = { + __typename?: "ExternalAuthentication"; + /** ID of external authentication plugin. */ + id: Scalars["String"]; + /** Name of external authentication plugin. */ + name?: Maybe; +}; + +/** Prepare external authentication url for user by custom plugin. */ +export type ExternalAuthenticationUrl = { + __typename?: "ExternalAuthenticationUrl"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + /** The data returned by authentication plugin. */ + authenticationData?: Maybe; + errors: Array; +}; + +/** Logout user by custom plugin. */ +export type ExternalLogout = { + __typename?: "ExternalLogout"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** The data returned by authentication plugin. */ + logoutData?: Maybe; +}; + +export type ExternalNotificationError = { + __typename?: "ExternalNotificationError"; + /** The error code. */ + code: ExternalNotificationErrorCodes; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum ExternalNotificationErrorCodes { + ChannelInactive = "CHANNEL_INACTIVE", + InvalidModelType = "INVALID_MODEL_TYPE", + NotFound = "NOT_FOUND", + Required = "REQUIRED", +} + +/** + * 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. + */ +export type ExternalNotificationTrigger = { + __typename?: "ExternalNotificationTrigger"; + errors: Array; +}; + +export type ExternalNotificationTriggerInput = { + /** 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; +}; + +/** Obtain external access tokens for user by custom plugin. */ +export type ExternalObtainAccessTokens = { + __typename?: "ExternalObtainAccessTokens"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + /** CSRF token required to re-generate external access token. */ + csrfToken?: Maybe; + errors: Array; + /** The refresh token, required to re-generate external access token. */ + refreshToken?: Maybe; + /** The token, required to authenticate. */ + token?: Maybe; + /** A user instance. */ + user?: Maybe; +}; + +/** Refresh user's access by custom plugin. */ +export type ExternalRefresh = { + __typename?: "ExternalRefresh"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + /** CSRF token required to re-generate external access token. */ + csrfToken?: Maybe; + errors: Array; + /** The refresh token, required to re-generate external access token. */ + refreshToken?: Maybe; + /** The token, required to authenticate. */ + token?: Maybe; + /** A user instance. */ + user?: Maybe; +}; + +/** Verify external authentication data by plugin. */ +export type ExternalVerify = { + __typename?: "ExternalVerify"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** Determine if authentication data is valid or not. */ + isValid: Scalars["Boolean"]; + /** User assigned to data. */ + user?: Maybe; + /** External data. */ + verifyData?: Maybe; +}; + +export type File = { + __typename?: "File"; + /** Content type of the file. */ + contentType?: Maybe; + /** The URL of the file. */ + url: Scalars["String"]; +}; + +/** An enumeration. */ +export enum FileTypesEnum { + Csv = "CSV", + Xlsx = "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. + */ +export type FileUpload = { + __typename?: "FileUpload"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + uploadErrors: Array; + uploadedFile?: Maybe; +}; + +/** Represents order fulfillment. */ +export type Fulfillment = Node & + ObjectWithMetadata & { + __typename?: "Fulfillment"; + created: Scalars["DateTime"]; + fulfillmentOrder: Scalars["Int"]; + id: Scalars["ID"]; + /** List of lines for the fulfillment. */ + lines?: Maybe>; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + status: FulfillmentStatus; + /** User-friendly fulfillment status. */ + statusDisplay?: Maybe; + trackingNumber: Scalars["String"]; + /** Warehouse from fulfillment was fulfilled. */ + warehouse?: Maybe; + }; + +/** Represents order fulfillment. */ +export type FulfillmentMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents order fulfillment. */ +export type FulfillmentMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents order fulfillment. */ +export type FulfillmentPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents order fulfillment. */ +export type FulfillmentPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * Approve existing fulfillment. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type FulfillmentApprove = { + __typename?: "FulfillmentApprove"; + errors: Array; + /** An approved fulfillment. */ + fulfillment?: Maybe; + /** Order which fulfillment was approved. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** + * Cancels existing fulfillment and optionally restocks items. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type FulfillmentCancel = { + __typename?: "FulfillmentCancel"; + errors: Array; + /** A canceled fulfillment. */ + fulfillment?: Maybe; + /** Order which fulfillment was cancelled. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type FulfillmentCancelInput = { + /** ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. */ + warehouseId?: InputMaybe; +}; + +export type FulfillmentCanceled = Event & { + __typename?: "FulfillmentCanceled"; + /** + * The fulfillment the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + fulfillment?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the fulfillment belongs to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type FulfillmentCreated = Event & { + __typename?: "FulfillmentCreated"; + /** + * The fulfillment the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + fulfillment?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the fulfillment belongs to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** Represents line of the fulfillment. */ +export type FulfillmentLine = Node & { + __typename?: "FulfillmentLine"; + id: Scalars["ID"]; + orderLine?: Maybe; + quantity: Scalars["Int"]; +}; + +/** + * Refund products. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type FulfillmentRefundProducts = { + __typename?: "FulfillmentRefundProducts"; + errors: Array; + /** A refunded fulfillment. */ + fulfillment?: Maybe; + /** Order which fulfillment was refunded. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** + * Return products. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type FulfillmentReturnProducts = { + __typename?: "FulfillmentReturnProducts"; + errors: Array; + /** Order which fulfillment was returned. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; + /** A replace fulfillment. */ + replaceFulfillment?: Maybe; + /** A draft order which was created for products with replace flag. */ + replaceOrder?: Maybe; + /** A return fulfillment. */ + returnFulfillment?: Maybe; +}; + +/** An enumeration. */ +export enum FulfillmentStatus { + Canceled = "CANCELED", + Fulfilled = "FULFILLED", + Refunded = "REFUNDED", + RefundedAndReturned = "REFUNDED_AND_RETURNED", + Replaced = "REPLACED", + Returned = "RETURNED", + WaitingForApproval = "WAITING_FOR_APPROVAL", +} + +/** + * Updates a fulfillment for an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type FulfillmentUpdateTracking = { + __typename?: "FulfillmentUpdateTracking"; + errors: Array; + /** A fulfillment with updated tracking. */ + fulfillment?: Maybe; + /** Order for which fulfillment was updated. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type FulfillmentUpdateTrackingInput = { + /** If true, send an email notification to the customer. */ + notifyCustomer?: InputMaybe; + /** Fulfillment tracking number. */ + trackingNumber?: InputMaybe; +}; + +/** Payment gateway client configuration key and value pair. */ +export type GatewayConfigLine = { + __typename?: "GatewayConfigLine"; + /** Gateway config key. */ + field: Scalars["String"]; + /** Gateway config value for key. */ + value?: Maybe; +}; + +/** 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. */ +export type GiftCard = Node & + ObjectWithMetadata & { + __typename?: "GiftCard"; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** 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: Scalars["String"]; + created: Scalars["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?: Maybe; + /** + * 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?: Maybe; + currentBalance?: Maybe; + /** Code in format which allows displaying in a user interface. */ + displayCode: Scalars["String"]; + /** + * End date of gift card. + * @deprecated This field will be removed in Saleor 4.0. Use `expiryDate` field instead. + */ + endDate?: Maybe; + /** + * 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: Array; + expiryDate?: Maybe; + id: Scalars["ID"]; + initialBalance?: Maybe; + isActive: Scalars["Boolean"]; + /** Last 4 characters of gift card code. */ + last4CodeChars: Scalars["String"]; + lastUsedOn?: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * Start date of gift card. + * @deprecated This field will be removed in Saleor 4.0. + */ + startDate?: Maybe; + /** + * 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: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * The customer who bought a gift card. + * @deprecated This field will be removed in Saleor 4.0. Use `createdBy` field instead. + */ + user?: Maybe; + }; + +/** 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. */ +export type GiftCardEventsArgs = { + filter?: InputMaybe; +}; + +/** 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. */ +export type GiftCardMetafieldArgs = { + key: Scalars["String"]; +}; + +/** 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. */ +export type GiftCardMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** 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. */ +export type GiftCardPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** 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. */ +export type GiftCardPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * Activate a gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ +export type GiftCardActivate = { + __typename?: "GiftCardActivate"; + errors: Array; + /** Activated gift card. */ + giftCard?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + giftCardErrors: Array; +}; + +/** + * 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. + */ +export type GiftCardAddNote = { + __typename?: "GiftCardAddNote"; + errors: Array; + /** Gift card note created. */ + event?: Maybe; + /** Gift card with the note added. */ + giftCard?: Maybe; +}; + +export type GiftCardAddNoteInput = { + /** Note message. */ + message: Scalars["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. + */ +export type GiftCardBulkActivate = { + __typename?: "GiftCardBulkActivate"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; +}; + +/** + * 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. + */ +export type GiftCardBulkCreate = { + __typename?: "GiftCardBulkCreate"; + /** Returns how many objects were created. */ + count: Scalars["Int"]; + errors: Array; + /** List of created gift cards. */ + giftCards: Array; +}; + +export type GiftCardBulkCreateInput = { + /** Balance of the gift card. */ + balance: PriceInput; + /** 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>; +}; + +/** + * 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. + */ +export type GiftCardBulkDeactivate = { + __typename?: "GiftCardBulkDeactivate"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; +}; + +/** + * 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. + */ +export type GiftCardBulkDelete = { + __typename?: "GiftCardBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; +}; + +export type GiftCardCountableConnection = { + __typename?: "GiftCardCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type GiftCardCountableEdge = { + __typename?: "GiftCardCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: GiftCard; +}; + +/** + * Creates a new gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ +export type GiftCardCreate = { + __typename?: "GiftCardCreate"; + errors: Array; + giftCard?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + giftCardErrors: Array; +}; + +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>; + /** Balance of the gift card. */ + balance: PriceInput; + /** + * 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; + /** + * 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. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + expiryDate?: 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"]; + /** + * 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; +}; + +export type GiftCardCreated = Event & { + __typename?: "GiftCardCreated"; + /** + * The gift card the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + giftCard?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Deactivate a gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ +export type GiftCardDeactivate = { + __typename?: "GiftCardDeactivate"; + errors: Array; + /** Deactivated gift card. */ + giftCard?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + giftCardErrors: Array; +}; + +/** + * 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. + */ +export type GiftCardDelete = { + __typename?: "GiftCardDelete"; + errors: Array; + giftCard?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + giftCardErrors: Array; +}; + +export type GiftCardDeleted = Event & { + __typename?: "GiftCardDeleted"; + /** + * The gift card the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + giftCard?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type GiftCardError = { + __typename?: "GiftCardError"; + /** The error code. */ + code: GiftCardErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of tag values that cause the error. */ + tags?: Maybe>; +}; + +/** An enumeration. */ +export enum GiftCardErrorCode { + AlreadyExists = "ALREADY_EXISTS", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + ExpiredGiftCard = "EXPIRED_GIFT_CARD", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +/** + * 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. + */ +export type GiftCardEvent = Node & { + __typename?: "GiftCardEvent"; + /** App that performed the action. Requires one of the following permissions: MANAGE_APPS, OWNER. */ + app?: Maybe; + /** The gift card balance. */ + balance?: Maybe; + /** Date when event happened at in ISO 8601 format. */ + date?: Maybe; + /** Email of the customer. */ + email?: Maybe; + /** The gift card expiry date. */ + expiryDate?: Maybe; + id: Scalars["ID"]; + /** Content of the event. */ + message?: Maybe; + /** Previous gift card expiry date. */ + oldExpiryDate?: Maybe; + /** The list of old gift card tags. */ + oldTags?: Maybe>; + /** The order ID where gift card was used or bought. */ + orderId?: Maybe; + /** User-friendly number of an order where gift card was used or bought. */ + orderNumber?: Maybe; + /** The list of gift card tags. */ + tags?: Maybe>; + /** Gift card event type. */ + type?: Maybe; + /** User who performed the action. Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER. */ + user?: Maybe; +}; + +export type GiftCardEventBalance = { + __typename?: "GiftCardEventBalance"; + /** Current balance of the gift card. */ + currentBalance: Money; + /** Initial balance of the gift card. */ + initialBalance?: Maybe; + /** Previous current balance of the gift card. */ + oldCurrentBalance?: Maybe; + /** Previous initial balance of the gift card. */ + oldInitialBalance?: Maybe; +}; + +export type GiftCardEventFilterInput = { + orders?: InputMaybe>; + type?: InputMaybe; +}; + +/** An enumeration. */ +export enum GiftCardEventsEnum { + Activated = "ACTIVATED", + BalanceReset = "BALANCE_RESET", + Bought = "BOUGHT", + Deactivated = "DEACTIVATED", + ExpiryDateUpdated = "EXPIRY_DATE_UPDATED", + Issued = "ISSUED", + NoteAdded = "NOTE_ADDED", + Resent = "RESENT", + SentToCustomer = "SENT_TO_CUSTOMER", + TagsUpdated = "TAGS_UPDATED", + Updated = "UPDATED", + UsedInOrder = "USED_IN_ORDER", +} + +export type GiftCardFilterInput = { + code?: InputMaybe; + currency?: InputMaybe; + currentBalance?: InputMaybe; + initialBalance?: InputMaybe; + isActive?: InputMaybe; + metadata?: InputMaybe>; + products?: InputMaybe>; + tags?: InputMaybe>; + used?: InputMaybe; + usedBy?: InputMaybe>; +}; + +/** + * 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. + */ +export type GiftCardResend = { + __typename?: "GiftCardResend"; + errors: Array; + /** Gift card which has been sent. */ + giftCard?: Maybe; +}; + +export type GiftCardResendInput = { + /** 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"]; +}; + +/** Gift card related settings from site settings. */ +export type GiftCardSettings = { + __typename?: "GiftCardSettings"; + /** The gift card expiry period settings. */ + expiryPeriod?: Maybe; + /** The gift card expiry type settings. */ + expiryType: GiftCardSettingsExpiryTypeEnum; +}; + +export type GiftCardSettingsError = { + __typename?: "GiftCardSettingsError"; + /** The error code. */ + code: GiftCardSettingsErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum GiftCardSettingsErrorCode { + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + Required = "REQUIRED", +} + +/** An enumeration. */ +export enum GiftCardSettingsExpiryTypeEnum { + ExpiryPeriod = "EXPIRY_PERIOD", + NeverExpire = "NEVER_EXPIRE", +} + +/** + * Update gift card settings. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ +export type GiftCardSettingsUpdate = { + __typename?: "GiftCardSettingsUpdate"; + errors: Array; + /** Gift card settings. */ + giftCardSettings?: Maybe; +}; + +export type GiftCardSettingsUpdateInput = { + /** Defines gift card expiry period. */ + expiryPeriod?: InputMaybe; + /** Defines gift card default expiry settings. */ + expiryType?: InputMaybe; +}; + +export enum GiftCardSortField { + /** Sort orders by current balance. */ + CurrentBalance = "CURRENT_BALANCE", + /** Sort orders by product. */ + Product = "PRODUCT", + /** Sort orders by used by. */ + UsedBy = "USED_BY", +} + +export type GiftCardSortingInput = { + /** Specifies the direction in which to sort products. */ + direction: OrderDirection; + /** Sort gift cards by the selected field. */ + field: GiftCardSortField; +}; + +export type GiftCardStatusChanged = Event & { + __typename?: "GiftCardStatusChanged"; + /** + * The gift card the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + giftCard?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * 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. + */ +export type GiftCardTag = Node & { + __typename?: "GiftCardTag"; + id: Scalars["ID"]; + name: Scalars["String"]; +}; + +export type GiftCardTagCountableConnection = { + __typename?: "GiftCardTagCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type GiftCardTagCountableEdge = { + __typename?: "GiftCardTagCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: GiftCardTag; +}; + +export type GiftCardTagFilterInput = { + search?: InputMaybe; +}; + +/** + * Update a gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ +export type GiftCardUpdate = { + __typename?: "GiftCardUpdate"; + errors: Array; + giftCard?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + giftCardErrors: Array; +}; + +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 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; + /** + * 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. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + 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>; + /** + * Start date of the gift card in ISO 8601 format. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + startDate?: InputMaybe; +}; + +export type GiftCardUpdated = Event & { + __typename?: "GiftCardUpdated"; + /** + * The gift card the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + giftCard?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** Represents permission group data. */ +export type Group = Node & { + __typename?: "Group"; + id: Scalars["ID"]; + name: Scalars["String"]; + /** List of group permissions */ + permissions?: Maybe>; + /** True, if the currently authenticated user has rights to manage a group. */ + userCanManage: Scalars["Boolean"]; + /** + * List of group users + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + users?: Maybe>; +}; + +export type GroupCountableConnection = { + __typename?: "GroupCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type GroupCountableEdge = { + __typename?: "GroupCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Group; +}; + +/** Represents an image. */ +export type Image = { + __typename?: "Image"; + /** Alt text for an image. */ + alt?: Maybe; + /** The URL of the image. */ + url: Scalars["String"]; +}; + +export type IntRangeInput = { + /** Value greater than or equal to. */ + gte?: InputMaybe; + /** Value less than or equal to. */ + lte?: InputMaybe; +}; + +/** Represents an Invoice. */ +export type Invoice = Job & + Node & + ObjectWithMetadata & { + __typename?: "Invoice"; + createdAt: Scalars["DateTime"]; + externalUrl?: Maybe; + /** The ID of the object. */ + id: Scalars["ID"]; + message?: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + number?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Job status. */ + status: JobStatusEnum; + updatedAt: Scalars["DateTime"]; + /** URL to download an invoice. */ + url?: Maybe; + }; + +/** Represents an Invoice. */ +export type InvoiceMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents an Invoice. */ +export type InvoiceMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents an Invoice. */ +export type InvoicePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents an Invoice. */ +export type InvoicePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * Creates a ready to send invoice. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type InvoiceCreate = { + __typename?: "InvoiceCreate"; + errors: Array; + invoice?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + invoiceErrors: Array; +}; + +export type InvoiceCreateInput = { + /** Invoice number. */ + number: Scalars["String"]; + /** URL of an invoice to download. */ + url: Scalars["String"]; +}; + +/** + * Deletes an invoice. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type InvoiceDelete = { + __typename?: "InvoiceDelete"; + errors: Array; + invoice?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + invoiceErrors: Array; +}; + +export type InvoiceDeleted = Event & { + __typename?: "InvoiceDeleted"; + /** + * The invoice the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + invoice?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type InvoiceError = { + __typename?: "InvoiceError"; + /** The error code. */ + code: InvoiceErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum InvoiceErrorCode { + EmailNotSet = "EMAIL_NOT_SET", + InvalidStatus = "INVALID_STATUS", + NotFound = "NOT_FOUND", + NotReady = "NOT_READY", + NoInvoicePlugin = "NO_INVOICE_PLUGIN", + NumberNotSet = "NUMBER_NOT_SET", + Required = "REQUIRED", + UrlNotSet = "URL_NOT_SET", +} + +/** + * Request an invoice for the order using plugin. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type InvoiceRequest = { + __typename?: "InvoiceRequest"; + errors: Array; + invoice?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + invoiceErrors: Array; + /** Order related to an invoice. */ + order?: Maybe; +}; + +/** + * Requests deletion of an invoice. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type InvoiceRequestDelete = { + __typename?: "InvoiceRequestDelete"; + errors: Array; + invoice?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + invoiceErrors: Array; +}; + +export type InvoiceRequested = Event & { + __typename?: "InvoiceRequested"; + /** + * The invoice the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + invoice?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Send an invoice notification to the customer. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type InvoiceSendNotification = { + __typename?: "InvoiceSendNotification"; + errors: Array; + invoice?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + invoiceErrors: Array; +}; + +export type InvoiceSent = Event & { + __typename?: "InvoiceSent"; + /** + * The invoice the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + invoice?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Updates an invoice. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type InvoiceUpdate = { + __typename?: "InvoiceUpdate"; + errors: Array; + invoice?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + invoiceErrors: Array; +}; + +export type IssuingPrincipal = App | User; + +export type Job = { + /** Created date time of job in ISO 8601 format. */ + createdAt: Scalars["DateTime"]; + /** Job message. */ + message?: Maybe; + /** Job status. */ + status: JobStatusEnum; + /** Date time of job last update in ISO 8601 format. */ + updatedAt: Scalars["DateTime"]; +}; + +/** An enumeration. */ +export enum JobStatusEnum { + Deleted = "DELETED", + Failed = "FAILED", + Pending = "PENDING", + Success = "SUCCESS", +} + +/** An enumeration. */ +export enum LanguageCodeEnum { + Af = "AF", + AfNa = "AF_NA", + AfZa = "AF_ZA", + Agq = "AGQ", + AgqCm = "AGQ_CM", + Ak = "AK", + AkGh = "AK_GH", + Am = "AM", + AmEt = "AM_ET", + Ar = "AR", + ArAe = "AR_AE", + ArBh = "AR_BH", + ArDj = "AR_DJ", + ArDz = "AR_DZ", + ArEg = "AR_EG", + ArEh = "AR_EH", + ArEr = "AR_ER", + ArIl = "AR_IL", + ArIq = "AR_IQ", + ArJo = "AR_JO", + ArKm = "AR_KM", + ArKw = "AR_KW", + ArLb = "AR_LB", + ArLy = "AR_LY", + ArMa = "AR_MA", + ArMr = "AR_MR", + ArOm = "AR_OM", + ArPs = "AR_PS", + ArQa = "AR_QA", + ArSa = "AR_SA", + ArSd = "AR_SD", + ArSo = "AR_SO", + ArSs = "AR_SS", + ArSy = "AR_SY", + ArTd = "AR_TD", + ArTn = "AR_TN", + ArYe = "AR_YE", + As = "AS", + Asa = "ASA", + AsaTz = "ASA_TZ", + Ast = "AST", + AstEs = "AST_ES", + AsIn = "AS_IN", + Az = "AZ", + AzCyrl = "AZ_CYRL", + AzCyrlAz = "AZ_CYRL_AZ", + AzLatn = "AZ_LATN", + AzLatnAz = "AZ_LATN_AZ", + Bas = "BAS", + BasCm = "BAS_CM", + Be = "BE", + Bem = "BEM", + BemZm = "BEM_ZM", + Bez = "BEZ", + BezTz = "BEZ_TZ", + BeBy = "BE_BY", + Bg = "BG", + BgBg = "BG_BG", + Bm = "BM", + BmMl = "BM_ML", + Bn = "BN", + BnBd = "BN_BD", + BnIn = "BN_IN", + Bo = "BO", + BoCn = "BO_CN", + BoIn = "BO_IN", + Br = "BR", + Brx = "BRX", + BrxIn = "BRX_IN", + BrFr = "BR_FR", + Bs = "BS", + BsCyrl = "BS_CYRL", + BsCyrlBa = "BS_CYRL_BA", + BsLatn = "BS_LATN", + BsLatnBa = "BS_LATN_BA", + Ca = "CA", + CaAd = "CA_AD", + CaEs = "CA_ES", + CaEsValencia = "CA_ES_VALENCIA", + CaFr = "CA_FR", + CaIt = "CA_IT", + Ccp = "CCP", + CcpBd = "CCP_BD", + CcpIn = "CCP_IN", + Ce = "CE", + Ceb = "CEB", + CebPh = "CEB_PH", + CeRu = "CE_RU", + Cgg = "CGG", + CggUg = "CGG_UG", + Chr = "CHR", + ChrUs = "CHR_US", + Ckb = "CKB", + CkbIq = "CKB_IQ", + CkbIr = "CKB_IR", + Cs = "CS", + CsCz = "CS_CZ", + Cu = "CU", + CuRu = "CU_RU", + Cy = "CY", + CyGb = "CY_GB", + Da = "DA", + Dav = "DAV", + DavKe = "DAV_KE", + DaDk = "DA_DK", + DaGl = "DA_GL", + De = "DE", + DeAt = "DE_AT", + DeBe = "DE_BE", + DeCh = "DE_CH", + DeDe = "DE_DE", + DeIt = "DE_IT", + DeLi = "DE_LI", + DeLu = "DE_LU", + Dje = "DJE", + DjeNe = "DJE_NE", + Dsb = "DSB", + DsbDe = "DSB_DE", + Dua = "DUA", + DuaCm = "DUA_CM", + Dyo = "DYO", + DyoSn = "DYO_SN", + Dz = "DZ", + DzBt = "DZ_BT", + Ebu = "EBU", + EbuKe = "EBU_KE", + Ee = "EE", + EeGh = "EE_GH", + EeTg = "EE_TG", + El = "EL", + ElCy = "EL_CY", + ElGr = "EL_GR", + En = "EN", + EnAe = "EN_AE", + EnAg = "EN_AG", + EnAi = "EN_AI", + EnAs = "EN_AS", + EnAt = "EN_AT", + EnAu = "EN_AU", + EnBb = "EN_BB", + EnBe = "EN_BE", + EnBi = "EN_BI", + EnBm = "EN_BM", + EnBs = "EN_BS", + EnBw = "EN_BW", + EnBz = "EN_BZ", + EnCa = "EN_CA", + EnCc = "EN_CC", + EnCh = "EN_CH", + EnCk = "EN_CK", + EnCm = "EN_CM", + EnCx = "EN_CX", + EnCy = "EN_CY", + EnDe = "EN_DE", + EnDg = "EN_DG", + EnDk = "EN_DK", + EnDm = "EN_DM", + EnEr = "EN_ER", + EnFi = "EN_FI", + EnFj = "EN_FJ", + EnFk = "EN_FK", + EnFm = "EN_FM", + EnGb = "EN_GB", + EnGd = "EN_GD", + EnGg = "EN_GG", + EnGh = "EN_GH", + EnGi = "EN_GI", + EnGm = "EN_GM", + EnGu = "EN_GU", + EnGy = "EN_GY", + EnHk = "EN_HK", + EnIe = "EN_IE", + EnIl = "EN_IL", + EnIm = "EN_IM", + EnIn = "EN_IN", + EnIo = "EN_IO", + EnJe = "EN_JE", + EnJm = "EN_JM", + EnKe = "EN_KE", + EnKi = "EN_KI", + EnKn = "EN_KN", + EnKy = "EN_KY", + EnLc = "EN_LC", + EnLr = "EN_LR", + EnLs = "EN_LS", + EnMg = "EN_MG", + EnMh = "EN_MH", + EnMo = "EN_MO", + EnMp = "EN_MP", + EnMs = "EN_MS", + EnMt = "EN_MT", + EnMu = "EN_MU", + EnMw = "EN_MW", + EnMy = "EN_MY", + EnNa = "EN_NA", + EnNf = "EN_NF", + EnNg = "EN_NG", + EnNl = "EN_NL", + EnNr = "EN_NR", + EnNu = "EN_NU", + EnNz = "EN_NZ", + EnPg = "EN_PG", + EnPh = "EN_PH", + EnPk = "EN_PK", + EnPn = "EN_PN", + EnPr = "EN_PR", + EnPw = "EN_PW", + EnRw = "EN_RW", + EnSb = "EN_SB", + EnSc = "EN_SC", + EnSd = "EN_SD", + EnSe = "EN_SE", + EnSg = "EN_SG", + EnSh = "EN_SH", + EnSi = "EN_SI", + EnSl = "EN_SL", + EnSs = "EN_SS", + EnSx = "EN_SX", + EnSz = "EN_SZ", + EnTc = "EN_TC", + EnTk = "EN_TK", + EnTo = "EN_TO", + EnTt = "EN_TT", + EnTv = "EN_TV", + EnTz = "EN_TZ", + EnUg = "EN_UG", + EnUm = "EN_UM", + EnUs = "EN_US", + EnVc = "EN_VC", + EnVg = "EN_VG", + EnVi = "EN_VI", + EnVu = "EN_VU", + EnWs = "EN_WS", + EnZa = "EN_ZA", + EnZm = "EN_ZM", + EnZw = "EN_ZW", + Eo = "EO", + Es = "ES", + EsAr = "ES_AR", + EsBo = "ES_BO", + EsBr = "ES_BR", + EsBz = "ES_BZ", + EsCl = "ES_CL", + EsCo = "ES_CO", + EsCr = "ES_CR", + EsCu = "ES_CU", + EsDo = "ES_DO", + EsEa = "ES_EA", + EsEc = "ES_EC", + EsEs = "ES_ES", + EsGq = "ES_GQ", + EsGt = "ES_GT", + EsHn = "ES_HN", + EsIc = "ES_IC", + EsMx = "ES_MX", + EsNi = "ES_NI", + EsPa = "ES_PA", + EsPe = "ES_PE", + EsPh = "ES_PH", + EsPr = "ES_PR", + EsPy = "ES_PY", + EsSv = "ES_SV", + EsUs = "ES_US", + EsUy = "ES_UY", + EsVe = "ES_VE", + Et = "ET", + EtEe = "ET_EE", + Eu = "EU", + EuEs = "EU_ES", + Ewo = "EWO", + EwoCm = "EWO_CM", + Fa = "FA", + FaAf = "FA_AF", + FaIr = "FA_IR", + Ff = "FF", + FfAdlm = "FF_ADLM", + FfAdlmBf = "FF_ADLM_BF", + FfAdlmCm = "FF_ADLM_CM", + FfAdlmGh = "FF_ADLM_GH", + FfAdlmGm = "FF_ADLM_GM", + FfAdlmGn = "FF_ADLM_GN", + FfAdlmGw = "FF_ADLM_GW", + FfAdlmLr = "FF_ADLM_LR", + FfAdlmMr = "FF_ADLM_MR", + FfAdlmNe = "FF_ADLM_NE", + FfAdlmNg = "FF_ADLM_NG", + FfAdlmSl = "FF_ADLM_SL", + FfAdlmSn = "FF_ADLM_SN", + FfLatn = "FF_LATN", + FfLatnBf = "FF_LATN_BF", + FfLatnCm = "FF_LATN_CM", + FfLatnGh = "FF_LATN_GH", + FfLatnGm = "FF_LATN_GM", + FfLatnGn = "FF_LATN_GN", + FfLatnGw = "FF_LATN_GW", + FfLatnLr = "FF_LATN_LR", + FfLatnMr = "FF_LATN_MR", + FfLatnNe = "FF_LATN_NE", + FfLatnNg = "FF_LATN_NG", + FfLatnSl = "FF_LATN_SL", + FfLatnSn = "FF_LATN_SN", + Fi = "FI", + Fil = "FIL", + FilPh = "FIL_PH", + FiFi = "FI_FI", + Fo = "FO", + FoDk = "FO_DK", + FoFo = "FO_FO", + Fr = "FR", + FrBe = "FR_BE", + FrBf = "FR_BF", + FrBi = "FR_BI", + FrBj = "FR_BJ", + FrBl = "FR_BL", + FrCa = "FR_CA", + FrCd = "FR_CD", + FrCf = "FR_CF", + FrCg = "FR_CG", + FrCh = "FR_CH", + FrCi = "FR_CI", + FrCm = "FR_CM", + FrDj = "FR_DJ", + FrDz = "FR_DZ", + FrFr = "FR_FR", + FrGa = "FR_GA", + FrGf = "FR_GF", + FrGn = "FR_GN", + FrGp = "FR_GP", + FrGq = "FR_GQ", + FrHt = "FR_HT", + FrKm = "FR_KM", + FrLu = "FR_LU", + FrMa = "FR_MA", + FrMc = "FR_MC", + FrMf = "FR_MF", + FrMg = "FR_MG", + FrMl = "FR_ML", + FrMq = "FR_MQ", + FrMr = "FR_MR", + FrMu = "FR_MU", + FrNc = "FR_NC", + FrNe = "FR_NE", + FrPf = "FR_PF", + FrPm = "FR_PM", + FrRe = "FR_RE", + FrRw = "FR_RW", + FrSc = "FR_SC", + FrSn = "FR_SN", + FrSy = "FR_SY", + FrTd = "FR_TD", + FrTg = "FR_TG", + FrTn = "FR_TN", + FrVu = "FR_VU", + FrWf = "FR_WF", + FrYt = "FR_YT", + Fur = "FUR", + FurIt = "FUR_IT", + Fy = "FY", + FyNl = "FY_NL", + Ga = "GA", + GaGb = "GA_GB", + GaIe = "GA_IE", + Gd = "GD", + GdGb = "GD_GB", + Gl = "GL", + GlEs = "GL_ES", + Gsw = "GSW", + GswCh = "GSW_CH", + GswFr = "GSW_FR", + GswLi = "GSW_LI", + Gu = "GU", + Guz = "GUZ", + GuzKe = "GUZ_KE", + GuIn = "GU_IN", + Gv = "GV", + GvIm = "GV_IM", + Ha = "HA", + Haw = "HAW", + HawUs = "HAW_US", + HaGh = "HA_GH", + HaNe = "HA_NE", + HaNg = "HA_NG", + He = "HE", + HeIl = "HE_IL", + Hi = "HI", + HiIn = "HI_IN", + Hr = "HR", + HrBa = "HR_BA", + HrHr = "HR_HR", + Hsb = "HSB", + HsbDe = "HSB_DE", + Hu = "HU", + HuHu = "HU_HU", + Hy = "HY", + HyAm = "HY_AM", + Ia = "IA", + Id = "ID", + IdId = "ID_ID", + Ig = "IG", + IgNg = "IG_NG", + Ii = "II", + IiCn = "II_CN", + Is = "IS", + IsIs = "IS_IS", + It = "IT", + ItCh = "IT_CH", + ItIt = "IT_IT", + ItSm = "IT_SM", + ItVa = "IT_VA", + Ja = "JA", + JaJp = "JA_JP", + Jgo = "JGO", + JgoCm = "JGO_CM", + Jmc = "JMC", + JmcTz = "JMC_TZ", + Jv = "JV", + JvId = "JV_ID", + Ka = "KA", + Kab = "KAB", + KabDz = "KAB_DZ", + Kam = "KAM", + KamKe = "KAM_KE", + KaGe = "KA_GE", + Kde = "KDE", + KdeTz = "KDE_TZ", + Kea = "KEA", + KeaCv = "KEA_CV", + Khq = "KHQ", + KhqMl = "KHQ_ML", + Ki = "KI", + KiKe = "KI_KE", + Kk = "KK", + Kkj = "KKJ", + KkjCm = "KKJ_CM", + KkKz = "KK_KZ", + Kl = "KL", + Kln = "KLN", + KlnKe = "KLN_KE", + KlGl = "KL_GL", + Km = "KM", + KmKh = "KM_KH", + Kn = "KN", + KnIn = "KN_IN", + Ko = "KO", + Kok = "KOK", + KokIn = "KOK_IN", + KoKp = "KO_KP", + KoKr = "KO_KR", + Ks = "KS", + Ksb = "KSB", + KsbTz = "KSB_TZ", + Ksf = "KSF", + KsfCm = "KSF_CM", + Ksh = "KSH", + KshDe = "KSH_DE", + KsArab = "KS_ARAB", + KsArabIn = "KS_ARAB_IN", + Ku = "KU", + KuTr = "KU_TR", + Kw = "KW", + KwGb = "KW_GB", + Ky = "KY", + KyKg = "KY_KG", + Lag = "LAG", + LagTz = "LAG_TZ", + Lb = "LB", + LbLu = "LB_LU", + Lg = "LG", + LgUg = "LG_UG", + Lkt = "LKT", + LktUs = "LKT_US", + Ln = "LN", + LnAo = "LN_AO", + LnCd = "LN_CD", + LnCf = "LN_CF", + LnCg = "LN_CG", + Lo = "LO", + LoLa = "LO_LA", + Lrc = "LRC", + LrcIq = "LRC_IQ", + LrcIr = "LRC_IR", + Lt = "LT", + LtLt = "LT_LT", + Lu = "LU", + Luo = "LUO", + LuoKe = "LUO_KE", + Luy = "LUY", + LuyKe = "LUY_KE", + LuCd = "LU_CD", + Lv = "LV", + LvLv = "LV_LV", + Mai = "MAI", + MaiIn = "MAI_IN", + Mas = "MAS", + MasKe = "MAS_KE", + MasTz = "MAS_TZ", + Mer = "MER", + MerKe = "MER_KE", + Mfe = "MFE", + MfeMu = "MFE_MU", + Mg = "MG", + Mgh = "MGH", + MghMz = "MGH_MZ", + Mgo = "MGO", + MgoCm = "MGO_CM", + MgMg = "MG_MG", + Mi = "MI", + MiNz = "MI_NZ", + Mk = "MK", + MkMk = "MK_MK", + Ml = "ML", + MlIn = "ML_IN", + Mn = "MN", + Mni = "MNI", + MniBeng = "MNI_BENG", + MniBengIn = "MNI_BENG_IN", + MnMn = "MN_MN", + Mr = "MR", + MrIn = "MR_IN", + Ms = "MS", + MsBn = "MS_BN", + MsId = "MS_ID", + MsMy = "MS_MY", + MsSg = "MS_SG", + Mt = "MT", + MtMt = "MT_MT", + Mua = "MUA", + MuaCm = "MUA_CM", + My = "MY", + MyMm = "MY_MM", + Mzn = "MZN", + MznIr = "MZN_IR", + Naq = "NAQ", + NaqNa = "NAQ_NA", + Nb = "NB", + NbNo = "NB_NO", + NbSj = "NB_SJ", + Nd = "ND", + Nds = "NDS", + NdsDe = "NDS_DE", + NdsNl = "NDS_NL", + NdZw = "ND_ZW", + Ne = "NE", + NeIn = "NE_IN", + NeNp = "NE_NP", + Nl = "NL", + NlAw = "NL_AW", + NlBe = "NL_BE", + NlBq = "NL_BQ", + NlCw = "NL_CW", + NlNl = "NL_NL", + NlSr = "NL_SR", + NlSx = "NL_SX", + Nmg = "NMG", + NmgCm = "NMG_CM", + Nn = "NN", + Nnh = "NNH", + NnhCm = "NNH_CM", + NnNo = "NN_NO", + Nus = "NUS", + NusSs = "NUS_SS", + Nyn = "NYN", + NynUg = "NYN_UG", + Om = "OM", + OmEt = "OM_ET", + OmKe = "OM_KE", + Or = "OR", + OrIn = "OR_IN", + Os = "OS", + OsGe = "OS_GE", + OsRu = "OS_RU", + Pa = "PA", + PaArab = "PA_ARAB", + PaArabPk = "PA_ARAB_PK", + PaGuru = "PA_GURU", + PaGuruIn = "PA_GURU_IN", + Pcm = "PCM", + PcmNg = "PCM_NG", + Pl = "PL", + PlPl = "PL_PL", + Prg = "PRG", + Ps = "PS", + PsAf = "PS_AF", + PsPk = "PS_PK", + Pt = "PT", + PtAo = "PT_AO", + PtBr = "PT_BR", + PtCh = "PT_CH", + PtCv = "PT_CV", + PtGq = "PT_GQ", + PtGw = "PT_GW", + PtLu = "PT_LU", + PtMo = "PT_MO", + PtMz = "PT_MZ", + PtPt = "PT_PT", + PtSt = "PT_ST", + PtTl = "PT_TL", + Qu = "QU", + QuBo = "QU_BO", + QuEc = "QU_EC", + QuPe = "QU_PE", + Rm = "RM", + RmCh = "RM_CH", + Rn = "RN", + RnBi = "RN_BI", + Ro = "RO", + Rof = "ROF", + RofTz = "ROF_TZ", + RoMd = "RO_MD", + RoRo = "RO_RO", + Ru = "RU", + RuBy = "RU_BY", + RuKg = "RU_KG", + RuKz = "RU_KZ", + RuMd = "RU_MD", + RuRu = "RU_RU", + RuUa = "RU_UA", + Rw = "RW", + Rwk = "RWK", + RwkTz = "RWK_TZ", + RwRw = "RW_RW", + Sah = "SAH", + SahRu = "SAH_RU", + Saq = "SAQ", + SaqKe = "SAQ_KE", + Sat = "SAT", + SatOlck = "SAT_OLCK", + SatOlckIn = "SAT_OLCK_IN", + Sbp = "SBP", + SbpTz = "SBP_TZ", + Sd = "SD", + SdArab = "SD_ARAB", + SdArabPk = "SD_ARAB_PK", + SdDeva = "SD_DEVA", + SdDevaIn = "SD_DEVA_IN", + Se = "SE", + Seh = "SEH", + SehMz = "SEH_MZ", + Ses = "SES", + SesMl = "SES_ML", + SeFi = "SE_FI", + SeNo = "SE_NO", + SeSe = "SE_SE", + Sg = "SG", + SgCf = "SG_CF", + Shi = "SHI", + ShiLatn = "SHI_LATN", + ShiLatnMa = "SHI_LATN_MA", + ShiTfng = "SHI_TFNG", + ShiTfngMa = "SHI_TFNG_MA", + Si = "SI", + SiLk = "SI_LK", + Sk = "SK", + SkSk = "SK_SK", + Sl = "SL", + SlSi = "SL_SI", + Smn = "SMN", + SmnFi = "SMN_FI", + Sn = "SN", + SnZw = "SN_ZW", + So = "SO", + SoDj = "SO_DJ", + SoEt = "SO_ET", + SoKe = "SO_KE", + SoSo = "SO_SO", + Sq = "SQ", + SqAl = "SQ_AL", + SqMk = "SQ_MK", + SqXk = "SQ_XK", + Sr = "SR", + SrCyrl = "SR_CYRL", + SrCyrlBa = "SR_CYRL_BA", + SrCyrlMe = "SR_CYRL_ME", + SrCyrlRs = "SR_CYRL_RS", + SrCyrlXk = "SR_CYRL_XK", + SrLatn = "SR_LATN", + SrLatnBa = "SR_LATN_BA", + SrLatnMe = "SR_LATN_ME", + SrLatnRs = "SR_LATN_RS", + SrLatnXk = "SR_LATN_XK", + Su = "SU", + SuLatn = "SU_LATN", + SuLatnId = "SU_LATN_ID", + Sv = "SV", + SvAx = "SV_AX", + SvFi = "SV_FI", + SvSe = "SV_SE", + Sw = "SW", + SwCd = "SW_CD", + SwKe = "SW_KE", + SwTz = "SW_TZ", + SwUg = "SW_UG", + Ta = "TA", + TaIn = "TA_IN", + TaLk = "TA_LK", + TaMy = "TA_MY", + TaSg = "TA_SG", + Te = "TE", + Teo = "TEO", + TeoKe = "TEO_KE", + TeoUg = "TEO_UG", + TeIn = "TE_IN", + Tg = "TG", + TgTj = "TG_TJ", + Th = "TH", + ThTh = "TH_TH", + Ti = "TI", + TiEr = "TI_ER", + TiEt = "TI_ET", + Tk = "TK", + TkTm = "TK_TM", + To = "TO", + ToTo = "TO_TO", + Tr = "TR", + TrCy = "TR_CY", + TrTr = "TR_TR", + Tt = "TT", + TtRu = "TT_RU", + Twq = "TWQ", + TwqNe = "TWQ_NE", + Tzm = "TZM", + TzmMa = "TZM_MA", + Ug = "UG", + UgCn = "UG_CN", + Uk = "UK", + UkUa = "UK_UA", + Ur = "UR", + UrIn = "UR_IN", + UrPk = "UR_PK", + Uz = "UZ", + UzArab = "UZ_ARAB", + UzArabAf = "UZ_ARAB_AF", + UzCyrl = "UZ_CYRL", + UzCyrlUz = "UZ_CYRL_UZ", + UzLatn = "UZ_LATN", + UzLatnUz = "UZ_LATN_UZ", + Vai = "VAI", + VaiLatn = "VAI_LATN", + VaiLatnLr = "VAI_LATN_LR", + VaiVaii = "VAI_VAII", + VaiVaiiLr = "VAI_VAII_LR", + Vi = "VI", + ViVn = "VI_VN", + Vo = "VO", + Vun = "VUN", + VunTz = "VUN_TZ", + Wae = "WAE", + WaeCh = "WAE_CH", + Wo = "WO", + WoSn = "WO_SN", + Xh = "XH", + XhZa = "XH_ZA", + Xog = "XOG", + XogUg = "XOG_UG", + Yav = "YAV", + YavCm = "YAV_CM", + Yi = "YI", + Yo = "YO", + YoBj = "YO_BJ", + YoNg = "YO_NG", + Yue = "YUE", + YueHans = "YUE_HANS", + YueHansCn = "YUE_HANS_CN", + YueHant = "YUE_HANT", + YueHantHk = "YUE_HANT_HK", + Zgh = "ZGH", + ZghMa = "ZGH_MA", + Zh = "ZH", + ZhHans = "ZH_HANS", + ZhHansCn = "ZH_HANS_CN", + ZhHansHk = "ZH_HANS_HK", + ZhHansMo = "ZH_HANS_MO", + ZhHansSg = "ZH_HANS_SG", + ZhHant = "ZH_HANT", + ZhHantHk = "ZH_HANT_HK", + ZhHantMo = "ZH_HANT_MO", + ZhHantTw = "ZH_HANT_TW", + Zu = "ZU", + ZuZa = "ZU_ZA", +} + +export type LanguageDisplay = { + __typename?: "LanguageDisplay"; + /** ISO 639 representation of the language name. */ + code: LanguageCodeEnum; + /** Full name of the language. */ + language: Scalars["String"]; +}; + +export type LimitInfo = { + __typename?: "LimitInfo"; + /** Defines the allowed maximum resource usage, null means unlimited. */ + allowedUsage: Limits; + /** Defines the current resource usage. */ + currentUsage: Limits; +}; + +export type Limits = { + __typename?: "Limits"; + channels?: Maybe; + orders?: Maybe; + productVariants?: Maybe; + staffUsers?: Maybe; + warehouses?: Maybe; +}; + +/** The manifest definition. */ +export type Manifest = { + __typename?: "Manifest"; + about?: Maybe; + appUrl?: Maybe; + configurationUrl?: Maybe; + dataPrivacy?: Maybe; + dataPrivacyUrl?: Maybe; + extensions: Array; + homepageUrl?: Maybe; + identifier: Scalars["String"]; + name: Scalars["String"]; + permissions?: Maybe>; + supportUrl?: Maybe; + tokenTargetUrl?: Maybe; + version: Scalars["String"]; +}; + +export type Margin = { + __typename?: "Margin"; + start?: Maybe; + stop?: Maybe; +}; + +/** An enumeration. */ +export enum MeasurementUnitsEnum { + AcreFt = "ACRE_FT", + AcreIn = "ACRE_IN", + Cm = "CM", + CubicCentimeter = "CUBIC_CENTIMETER", + CubicDecimeter = "CUBIC_DECIMETER", + CubicFoot = "CUBIC_FOOT", + CubicInch = "CUBIC_INCH", + CubicMeter = "CUBIC_METER", + CubicMillimeter = "CUBIC_MILLIMETER", + CubicYard = "CUBIC_YARD", + FlOz = "FL_OZ", + Ft = "FT", + G = "G", + Inch = "INCH", + Kg = "KG", + Km = "KM", + Lb = "LB", + Liter = "LITER", + M = "M", + Oz = "OZ", + Pint = "PINT", + Qt = "QT", + SqCm = "SQ_CM", + SqFt = "SQ_FT", + SqInch = "SQ_INCH", + SqKm = "SQ_KM", + SqM = "SQ_M", + SqYd = "SQ_YD", + Tonne = "TONNE", + Yd = "YD", +} + +/** Represents a single menu - an object that is used to help navigate through the store. */ +export type Menu = Node & + ObjectWithMetadata & { + __typename?: "Menu"; + id: Scalars["ID"]; + items?: Maybe>; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + slug: Scalars["String"]; + }; + +/** Represents a single menu - an object that is used to help navigate through the store. */ +export type MenuMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a single menu - an object that is used to help navigate through the store. */ +export type MenuMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a single menu - an object that is used to help navigate through the store. */ +export type MenuPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a single menu - an object that is used to help navigate through the store. */ +export type MenuPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * Deletes menus. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ +export type MenuBulkDelete = { + __typename?: "MenuBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; +}; + +export type MenuCountableConnection = { + __typename?: "MenuCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type MenuCountableEdge = { + __typename?: "MenuCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Menu; +}; + +/** + * Creates a new Menu. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ +export type MenuCreate = { + __typename?: "MenuCreate"; + errors: Array; + menu?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; +}; + +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; +}; + +export type MenuCreated = Event & { + __typename?: "MenuCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The menu the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + menu?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type MenuCreatedMenuArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a menu. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ +export type MenuDelete = { + __typename?: "MenuDelete"; + errors: Array; + menu?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; +}; + +export type MenuDeleted = Event & { + __typename?: "MenuDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The menu the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + menu?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type MenuDeletedMenuArgs = { + channel?: InputMaybe; +}; + +export type MenuError = { + __typename?: "MenuError"; + /** The error code. */ + code: MenuErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum MenuErrorCode { + CannotAssignNode = "CANNOT_ASSIGN_NODE", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + InvalidMenuItem = "INVALID_MENU_ITEM", + NotFound = "NOT_FOUND", + NoMenuItemProvided = "NO_MENU_ITEM_PROVIDED", + Required = "REQUIRED", + TooManyMenuItems = "TOO_MANY_MENU_ITEMS", + Unique = "UNIQUE", +} + +export type MenuFilterInput = { + metadata?: InputMaybe>; + search?: InputMaybe; + slug?: InputMaybe>; +}; + +export type MenuInput = { + /** Name of the menu. */ + name?: InputMaybe; + /** Slug of the menu. */ + slug?: InputMaybe; +}; + +/** Represents a single item of the related menu. Can store categories, collection or pages. */ +export type MenuItem = Node & + ObjectWithMetadata & { + __typename?: "MenuItem"; + category?: Maybe; + children?: Maybe>; + /** 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?: Maybe; + id: Scalars["ID"]; + level: Scalars["Int"]; + menu: Menu; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** A page associated with this menu item. Requires one of the following permissions to include unpublished items: MANAGE_PAGES. */ + page?: Maybe; + parent?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Returns translated menu item fields for the given language code. */ + translation?: Maybe; + /** URL to the menu item. */ + url?: Maybe; + }; + +/** Represents a single item of the related menu. Can store categories, collection or pages. */ +export type MenuItemMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a single item of the related menu. Can store categories, collection or pages. */ +export type MenuItemMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a single item of the related menu. Can store categories, collection or pages. */ +export type MenuItemPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a single item of the related menu. Can store categories, collection or pages. */ +export type MenuItemPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a single item of the related menu. Can store categories, collection or pages. */ +export type MenuItemTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Deletes menu items. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ +export type MenuItemBulkDelete = { + __typename?: "MenuItemBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; +}; + +export type MenuItemCountableConnection = { + __typename?: "MenuItemCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type MenuItemCountableEdge = { + __typename?: "MenuItemCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: MenuItem; +}; + +/** + * Creates a new menu item. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ +export type MenuItemCreate = { + __typename?: "MenuItemCreate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; + menuItem?: Maybe; +}; + +export type MenuItemCreateInput = { + /** Category to which item points. */ + category?: InputMaybe; + /** Collection to which item points. */ + collection?: 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 MenuItemCreated = Event & { + __typename?: "MenuItemCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The menu item the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + menuItem?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type MenuItemCreatedMenuItemArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a menu item. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ +export type MenuItemDelete = { + __typename?: "MenuItemDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; + menuItem?: Maybe; +}; + +export type MenuItemDeleted = Event & { + __typename?: "MenuItemDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The menu item the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + menuItem?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type MenuItemDeletedMenuItemArgs = { + channel?: InputMaybe; +}; + +export type MenuItemFilterInput = { + metadata?: InputMaybe>; + search?: InputMaybe; +}; + +export type MenuItemInput = { + /** 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; +}; + +/** + * Moves items of menus. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ +export type MenuItemMove = { + __typename?: "MenuItemMove"; + errors: Array; + /** Assigned menu to move within. */ + menu?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; +}; + +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 type MenuItemTranslatableContent = Node & { + __typename?: "MenuItemTranslatableContent"; + id: Scalars["ID"]; + /** + * Represents a single item of the related menu. Can store categories, collection or pages. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + menuItem?: Maybe; + name: Scalars["String"]; + /** Returns translated menu item fields for the given language code. */ + translation?: Maybe; +}; + +export type MenuItemTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for a menu item. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type MenuItemTranslate = { + __typename?: "MenuItemTranslate"; + errors: Array; + menuItem?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type MenuItemTranslation = Node & { + __typename?: "MenuItemTranslation"; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name: Scalars["String"]; +}; + +/** + * Updates a menu item. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ +export type MenuItemUpdate = { + __typename?: "MenuItemUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; + menuItem?: Maybe; +}; + +export type MenuItemUpdated = Event & { + __typename?: "MenuItemUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The menu item the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + menuItem?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type MenuItemUpdatedMenuItemArgs = { + channel?: InputMaybe; +}; + +export enum MenuItemsSortField { + /** Sort menu items by name. */ + Name = "NAME", +} + +export enum MenuSortField { + /** Sort menus by items count. */ + ItemsCount = "ITEMS_COUNT", + /** Sort menus by name. */ + Name = "NAME", +} + +export type 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. + */ +export type MenuUpdate = { + __typename?: "MenuUpdate"; + errors: Array; + menu?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + menuErrors: Array; +}; + +export type MenuUpdated = Event & { + __typename?: "MenuUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The menu the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + menu?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type MenuUpdatedMenuArgs = { + channel?: InputMaybe; +}; + +export type MetadataError = { + __typename?: "MetadataError"; + /** The error code. */ + code: MetadataErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum MetadataErrorCode { + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + NotUpdated = "NOT_UPDATED", + Required = "REQUIRED", +} + +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 MetadataItem = { + __typename?: "MetadataItem"; + /** Key of a metadata item. */ + key: Scalars["String"]; + /** Value of a metadata item. */ + value: Scalars["String"]; +}; + +/** Represents amount of money in specific currency. */ +export type Money = { + __typename?: "Money"; + /** Amount of money. */ + amount: Scalars["Float"]; + /** Currency code. */ + currency: Scalars["String"]; +}; + +export type MoneyInput = { + /** Amount of money. */ + amount: Scalars["PositiveDecimal"]; + /** Currency code. */ + currency: Scalars["String"]; +}; + +/** Represents a range of amounts of money. */ +export type MoneyRange = { + __typename?: "MoneyRange"; + /** Lower bound of a price range. */ + start?: Maybe; + /** Upper bound of a price range. */ + stop?: Maybe; +}; + +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 Mutation = { + __typename?: "Mutation"; + /** + * Create a new address for the customer. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + accountAddressCreate?: Maybe; + /** Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. */ + accountAddressDelete?: Maybe; + /** Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. */ + accountAddressUpdate?: Maybe; + /** + * Remove user account. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + accountDelete?: Maybe; + /** Register a new user. */ + accountRegister?: Maybe; + /** + * Sends an email with the account removal link for the logged-in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + accountRequestDeletion?: Maybe; + /** + * Sets a default address for the authenticated user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + accountSetDefaultAddress?: Maybe; + /** + * Updates the account of the logged-in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + accountUpdate?: Maybe; + /** + * Creates user address. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + addressCreate?: Maybe; + /** + * Deletes an address. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + addressDelete?: Maybe; + /** + * Sets a default address for the given user. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + addressSetDefault?: Maybe; + /** + * Updates an address. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + addressUpdate?: Maybe; + /** + * Activate the app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appActivate?: Maybe; + /** Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. */ + appCreate?: Maybe; + /** + * Deactivate the app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appDeactivate?: Maybe; + /** + * Deletes an app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appDelete?: Maybe; + /** + * Delete failed installation. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appDeleteFailedInstallation?: Maybe; + /** + * Fetch and validate manifest. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appFetchManifest?: Maybe; + /** Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. */ + appInstall?: Maybe; + /** + * Retry failed installation of new app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appRetryInstall?: Maybe; + /** + * Creates a new token. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appTokenCreate?: Maybe; + /** + * Deletes an authentication token assigned to app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appTokenDelete?: Maybe; + /** Verify provided app token. */ + appTokenVerify?: Maybe; + /** + * Updates an existing app. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appUpdate?: Maybe; + /** + * Assigns storefront's navigation menus. + * + * Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. + */ + assignNavigation?: Maybe; + /** + * Add shipping zone to given warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + assignWarehouseShippingZone?: Maybe; + /** + * Deletes attributes. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + attributeBulkDelete?: Maybe; + /** Creates an attribute. */ + attributeCreate?: Maybe; + /** + * Deletes an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + attributeDelete?: Maybe; + /** + * Reorder the values of an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + attributeReorderValues?: Maybe; + /** + * Creates/updates translations for an attribute. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + attributeTranslate?: Maybe; + /** + * Updates attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + attributeUpdate?: Maybe; + /** + * Deletes values of attributes. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + attributeValueBulkDelete?: Maybe; + /** + * Creates a value for an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + attributeValueCreate?: Maybe; + /** + * Deletes a value of an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + attributeValueDelete?: Maybe; + /** + * Creates/updates translations for an attribute value. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + attributeValueTranslate?: Maybe; + /** + * Updates value of an attribute. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + attributeValueUpdate?: Maybe; + /** + * Deletes categories. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + categoryBulkDelete?: Maybe; + /** + * Creates a new category. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + categoryCreate?: Maybe; + /** + * Deletes a category. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + categoryDelete?: Maybe; + /** + * Creates/updates translations for a category. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + categoryTranslate?: Maybe; + /** + * Updates a category. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + categoryUpdate?: Maybe; + /** + * Activate a channel. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ + channelActivate?: Maybe; + /** + * Creates new channel. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ + channelCreate?: Maybe; + /** + * Deactivate a channel. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ + channelDeactivate?: Maybe; + /** + * 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?: Maybe; + /** + * Update a channel. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ + channelUpdate?: Maybe; + /** Adds a gift card or a voucher to a checkout. */ + checkoutAddPromoCode?: Maybe; + /** Update billing address in the existing checkout. */ + checkoutBillingAddressUpdate?: Maybe; + /** 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?: Maybe; + /** Create a new checkout. */ + checkoutCreate?: Maybe; + /** + * Sets the customer as the owner of the checkout. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. + */ + checkoutCustomerAttach?: Maybe; + /** + * Removes the user assigned as the owner of the checkout. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. + */ + checkoutCustomerDetach?: Maybe; + /** + * 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?: Maybe; + /** Updates email address in the existing checkout object. */ + checkoutEmailUpdate?: Maybe; + /** Update language code in the existing checkout. */ + checkoutLanguageCodeUpdate?: Maybe; + /** + * Deletes a CheckoutLine. + * @deprecated DEPRECATED: Will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead. + */ + checkoutLineDelete?: Maybe; + /** Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased. */ + checkoutLinesAdd?: Maybe; + /** Deletes checkout lines. */ + checkoutLinesDelete?: Maybe; + /** Updates checkout line in the existing checkout. */ + checkoutLinesUpdate?: Maybe; + /** Create a new payment for given checkout. */ + checkoutPaymentCreate?: Maybe; + /** Remove a gift card or a voucher from a checkout. */ + checkoutRemovePromoCode?: Maybe; + /** Update shipping address in the existing checkout. */ + checkoutShippingAddressUpdate?: Maybe; + /** + * Updates the shipping method of the checkout. + * @deprecated This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead. + */ + checkoutShippingMethodUpdate?: Maybe; + /** + * Adds products to a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + collectionAddProducts?: Maybe; + /** + * Deletes collections. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + collectionBulkDelete?: Maybe; + /** + * Manage collection's availability in channels. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + collectionChannelListingUpdate?: Maybe; + /** + * Creates a new collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + collectionCreate?: Maybe; + /** + * Deletes a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + collectionDelete?: Maybe; + /** + * Remove products from a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + collectionRemoveProducts?: Maybe; + /** + * Reorder the products of a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + collectionReorderProducts?: Maybe; + /** + * Creates/updates translations for a collection. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + collectionTranslate?: Maybe; + /** + * Updates a collection. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + collectionUpdate?: Maybe; + /** Confirm user account with token sent by email during registration. */ + confirmAccount?: Maybe; + /** + * Confirm the email change of the logged-in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + confirmEmailChange?: Maybe; + /** + * Creates new warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + createWarehouse?: Maybe; + /** + * Deletes customers. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + customerBulkDelete?: Maybe; + /** + * Creates a new customer. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + customerCreate?: Maybe; + /** + * Deletes a customer. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + customerDelete?: Maybe; + /** + * Updates an existing customer. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + customerUpdate?: Maybe; + /** Delete metadata of an object. To use it, you need to have access to the modified object. */ + deleteMetadata?: Maybe; + /** 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?: Maybe; + /** + * Deletes selected warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + deleteWarehouse?: Maybe; + /** + * 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?: Maybe; + /** + * Remove digital content assigned to given variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + digitalContentDelete?: Maybe; + /** + * Update digital content. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + digitalContentUpdate?: Maybe; + /** + * Generate new URL to digital content. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + digitalContentUrlCreate?: Maybe; + /** + * Deletes draft orders. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + draftOrderBulkDelete?: Maybe; + /** + * Completes creating an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + draftOrderComplete?: Maybe; + /** + * Creates a new draft order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + draftOrderCreate?: Maybe; + /** + * Deletes a draft order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + draftOrderDelete?: Maybe; + /** + * Deletes order lines. + * + * Requires one of the following permissions: MANAGE_ORDERS. + * @deprecated This field will be removed in Saleor 4.0. + */ + draftOrderLinesBulkDelete?: Maybe; + /** + * Updates a draft order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + draftOrderUpdate?: Maybe; + /** + * Retries event delivery. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + eventDeliveryRetry?: Maybe; + /** + * 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?: Maybe; + /** + * Export products to csv file. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + exportProducts?: Maybe; + /** Prepare external authentication url for user by custom plugin. */ + externalAuthenticationUrl?: Maybe; + /** Logout user by custom plugin. */ + externalLogout?: Maybe; + /** + * 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?: Maybe; + /** Obtain external access tokens for user by custom plugin. */ + externalObtainAccessTokens?: Maybe; + /** Refresh user's access by custom plugin. */ + externalRefresh?: Maybe; + /** Verify external authentication data by plugin. */ + externalVerify?: Maybe; + /** + * 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?: Maybe; + /** + * Activate a gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + giftCardActivate?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * Creates a new gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + giftCardCreate?: Maybe; + /** + * Deactivate a gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + giftCardDeactivate?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * Update gift card settings. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + giftCardSettingsUpdate?: Maybe; + /** + * Update a gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + giftCardUpdate?: Maybe; + /** + * Creates a ready to send invoice. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + invoiceCreate?: Maybe; + /** + * Deletes an invoice. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + invoiceDelete?: Maybe; + /** + * Request an invoice for the order using plugin. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + invoiceRequest?: Maybe; + /** + * Requests deletion of an invoice. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + invoiceRequestDelete?: Maybe; + /** + * Send an invoice notification to the customer. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + invoiceSendNotification?: Maybe; + /** + * Updates an invoice. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + invoiceUpdate?: Maybe; + /** + * Deletes menus. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuBulkDelete?: Maybe; + /** + * Creates a new Menu. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuCreate?: Maybe; + /** + * Deletes a menu. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuDelete?: Maybe; + /** + * Deletes menu items. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuItemBulkDelete?: Maybe; + /** + * Creates a new menu item. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuItemCreate?: Maybe; + /** + * Deletes a menu item. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuItemDelete?: Maybe; + /** + * Moves items of menus. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuItemMove?: Maybe; + /** + * Creates/updates translations for a menu item. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + menuItemTranslate?: Maybe; + /** + * Updates a menu item. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuItemUpdate?: Maybe; + /** + * Updates a menu. + * + * Requires one of the following permissions: MANAGE_MENUS. + */ + menuUpdate?: Maybe; + /** + * Adds note to the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderAddNote?: Maybe; + /** + * Cancels orders. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderBulkCancel?: Maybe; + /** + * Cancel an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderCancel?: Maybe; + /** + * Capture an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderCapture?: Maybe; + /** + * Confirms an unconfirmed order by changing status to unfulfilled. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderConfirm?: Maybe; + /** + * 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?: Maybe; + /** + * Adds discount to the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderDiscountAdd?: Maybe; + /** + * Remove discount from the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderDiscountDelete?: Maybe; + /** + * Update discount for the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderDiscountUpdate?: Maybe; + /** + * Creates new fulfillments for an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderFulfill?: Maybe; + /** + * Approve existing fulfillment. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderFulfillmentApprove?: Maybe; + /** + * Cancels existing fulfillment and optionally restocks items. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderFulfillmentCancel?: Maybe; + /** + * Refund products. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderFulfillmentRefundProducts?: Maybe; + /** + * Return products. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderFulfillmentReturnProducts?: Maybe; + /** + * Updates a fulfillment for an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderFulfillmentUpdateTracking?: Maybe; + /** + * Deletes an order line from an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderLineDelete?: Maybe; + /** + * Remove discount applied to the order line. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderLineDiscountRemove?: Maybe; + /** + * Update discount for the order line. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderLineDiscountUpdate?: Maybe; + /** + * Updates an order line of an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderLineUpdate?: Maybe; + /** + * Create order lines for an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderLinesCreate?: Maybe; + /** + * Mark order as manually paid. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderMarkAsPaid?: Maybe; + /** + * Refund an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderRefund?: Maybe; + /** + * Update shop order settings. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderSettingsUpdate?: Maybe; + /** + * Updates an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderUpdate?: Maybe; + /** + * 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?: Maybe; + /** + * Void an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderVoid?: Maybe; + /** + * Assign attributes to a given page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + pageAttributeAssign?: Maybe; + /** + * Unassign attributes from a given page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + pageAttributeUnassign?: Maybe; + /** + * Deletes pages. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ + pageBulkDelete?: Maybe; + /** + * Publish pages. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ + pageBulkPublish?: Maybe; + /** + * Creates a new page. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ + pageCreate?: Maybe; + /** + * Deletes a page. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ + pageDelete?: Maybe; + /** + * Reorder page attribute values. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ + pageReorderAttributeValues?: Maybe; + /** + * Creates/updates translations for a page. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + pageTranslate?: Maybe; + /** + * Delete page types. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + pageTypeBulkDelete?: Maybe; + /** + * Create a new page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + pageTypeCreate?: Maybe; + /** + * Delete a page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + pageTypeDelete?: Maybe; + /** + * Reorder the attributes of a page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + pageTypeReorderAttributes?: Maybe; + /** + * Update page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + pageTypeUpdate?: Maybe; + /** + * Updates an existing page. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ + pageUpdate?: Maybe; + /** + * Change the password of the logged in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + passwordChange?: Maybe; + /** + * Captures the authorized payment amount. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + paymentCapture?: Maybe; + /** Check payment balance. */ + paymentCheckBalance?: Maybe; + /** Initializes payment process when it is required by gateway. */ + paymentInitialize?: Maybe; + /** + * Refunds the captured payment amount. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + paymentRefund?: Maybe; + /** + * Voids the authorized payment. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + paymentVoid?: Maybe; + /** + * Create new permission group. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + permissionGroupCreate?: Maybe; + /** + * Delete permission group. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + permissionGroupDelete?: Maybe; + /** + * Update permission group. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + permissionGroupUpdate?: Maybe; + /** + * Update plugin configuration. + * + * Requires one of the following permissions: MANAGE_PLUGINS. + */ + pluginUpdate?: Maybe; + /** + * Assign attributes to a given product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + productAttributeAssign?: Maybe; + /** + * 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?: Maybe; + /** + * Un-assign attributes from a given product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + productAttributeUnassign?: Maybe; + /** + * Deletes products. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productBulkDelete?: Maybe; + /** + * Manage product's availability in channels. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productChannelListingUpdate?: Maybe; + /** + * Creates a new product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productCreate?: Maybe; + /** + * Deletes a product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productDelete?: Maybe; + /** + * Deletes product media. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productMediaBulkDelete?: Maybe; + /** + * 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?: Maybe; + /** + * Deletes a product media. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productMediaDelete?: Maybe; + /** + * Changes ordering of the product media. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productMediaReorder?: Maybe; + /** + * Updates a product media. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productMediaUpdate?: Maybe; + /** + * Reorder product attribute values. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productReorderAttributeValues?: Maybe; + /** + * Creates/updates translations for a product. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + productTranslate?: Maybe; + /** + * Deletes product types. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + productTypeBulkDelete?: Maybe; + /** + * Creates a new product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + productTypeCreate?: Maybe; + /** + * Deletes a product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + productTypeDelete?: Maybe; + /** + * Reorder the attributes of a product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + productTypeReorderAttributes?: Maybe; + /** + * Updates an existing product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ + productTypeUpdate?: Maybe; + /** + * Updates an existing product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productUpdate?: Maybe; + /** + * Creates product variants for a given product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantBulkCreate?: Maybe; + /** + * Deletes product variants. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantBulkDelete?: Maybe; + /** + * Manage product variant prices in channels. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantChannelListingUpdate?: Maybe; + /** + * Creates a new variant for a product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantCreate?: Maybe; + /** + * Deletes a product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantDelete?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * Reorder product variant attribute values. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantReorderAttributeValues?: Maybe; + /** + * Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantSetDefault?: Maybe; + /** + * Creates stocks for product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantStocksCreate?: Maybe; + /** + * Delete stocks from product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantStocksDelete?: Maybe; + /** + * Update stocks for product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantStocksUpdate?: Maybe; + /** + * Creates/updates translations for a product variant. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + productVariantTranslate?: Maybe; + /** + * Updates an existing variant for product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + productVariantUpdate?: Maybe; + /** + * Request email change of the logged in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + requestEmailChange?: Maybe; + /** Sends an email with the account password modification link. */ + requestPasswordReset?: Maybe; + /** + * Deletes sales. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + saleBulkDelete?: Maybe; + /** + * Adds products, categories, collections to a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + saleCataloguesAdd?: Maybe; + /** + * Removes products, categories, collections from a sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + saleCataloguesRemove?: Maybe; + /** + * Manage sale's availability in channels. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + saleChannelListingUpdate?: Maybe; + /** + * Creates a new sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + saleCreate?: Maybe; + /** + * Deletes a sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + saleDelete?: Maybe; + /** + * Creates/updates translations for a sale. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + saleTranslate?: Maybe; + /** + * Updates a sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + saleUpdate?: Maybe; + /** Sets the user's password from the token sent by email using the RequestPasswordReset mutation. */ + setPassword?: Maybe; + /** + * Manage shipping method's availability in channels. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingMethodChannelListingUpdate?: Maybe; + /** + * Deletes shipping prices. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingPriceBulkDelete?: Maybe; + /** + * Creates a new shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingPriceCreate?: Maybe; + /** + * Deletes a shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingPriceDelete?: Maybe; + /** + * Exclude products from shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingPriceExcludeProducts?: Maybe; + /** + * Remove product from excluded list for shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingPriceRemoveProductFromExclude?: Maybe; + /** + * Creates/updates translations for a shipping method. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + shippingPriceTranslate?: Maybe; + /** + * Updates a new shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingPriceUpdate?: Maybe; + /** + * Deletes shipping zones. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingZoneBulkDelete?: Maybe; + /** + * Creates a new shipping zone. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingZoneCreate?: Maybe; + /** + * Deletes a shipping zone. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingZoneDelete?: Maybe; + /** + * Updates a new shipping zone. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingZoneUpdate?: Maybe; + /** + * 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?: Maybe; + /** + * Updates site domain of the shop. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + shopDomainUpdate?: Maybe; + /** + * Fetch tax rates. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + shopFetchTaxRates?: Maybe; + /** + * Creates/updates translations for shop settings. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + shopSettingsTranslate?: Maybe; + /** + * Updates shop settings. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + shopSettingsUpdate?: Maybe; + /** + * Deletes staff users. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + staffBulkDelete?: Maybe; + /** + * Creates a new staff user. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + staffCreate?: Maybe; + /** + * Deletes a staff user. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + staffDelete?: Maybe; + /** + * Creates a new staff notification recipient. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + staffNotificationRecipientCreate?: Maybe; + /** + * Delete staff notification recipient. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + staffNotificationRecipientDelete?: Maybe; + /** + * Updates a staff notification recipient. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + staffNotificationRecipientUpdate?: Maybe; + /** + * Updates an existing staff user. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + staffUpdate?: Maybe; + /** Create JWT token. */ + tokenCreate?: Maybe; + /** 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?: Maybe; + /** Verify JWT token. */ + tokenVerify?: Maybe; + /** + * Deactivate all JWT tokens of the currently authenticated user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ + tokensDeactivateAll?: Maybe; + /** + * Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + transactionCreate?: Maybe; + /** + * 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, MANAGE_ORDERS. + */ + transactionRequestAction?: Maybe; + /** + * Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + transactionUpdate?: Maybe; + /** + * Remove shipping zone from given warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + unassignWarehouseShippingZone?: Maybe; + /** Updates metadata of an object. To use it, you need to have access to the modified object. */ + updateMetadata?: Maybe; + /** 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?: Maybe; + /** + * Updates given warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + updateWarehouse?: Maybe; + /** + * Deletes a user avatar. Only for staff members. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER. + */ + userAvatarDelete?: Maybe; + /** + * 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?: Maybe; + /** + * Activate or deactivate users. + * + * Requires one of the following permissions: MANAGE_USERS. + */ + userBulkSetActive?: Maybe; + /** + * Assign an media to a product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + variantMediaAssign?: Maybe; + /** + * Unassign an media from a product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + variantMediaUnassign?: Maybe; + /** + * Deletes vouchers. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucherBulkDelete?: Maybe; + /** + * Adds products, categories, collections to a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucherCataloguesAdd?: Maybe; + /** + * Removes products, categories, collections from a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucherCataloguesRemove?: Maybe; + /** + * Manage voucher's availability in channels. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucherChannelListingUpdate?: Maybe; + /** + * Creates a new voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucherCreate?: Maybe; + /** + * Deletes a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucherDelete?: Maybe; + /** + * Creates/updates translations for a voucher. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + voucherTranslate?: Maybe; + /** + * Updates a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucherUpdate?: Maybe; + /** + * Creates a new webhook subscription. + * + * Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. + */ + webhookCreate?: Maybe; + /** + * Deletes a webhook subscription. + * + * Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. + */ + webhookDelete?: Maybe; + /** + * Updates a webhook subscription. + * + * Requires one of the following permissions: MANAGE_APPS. + */ + webhookUpdate?: Maybe; +}; + +export type MutationAccountAddressCreateArgs = { + input: AddressInput; + type?: InputMaybe; +}; + +export type MutationAccountAddressDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationAccountAddressUpdateArgs = { + id: Scalars["ID"]; + input: AddressInput; +}; + +export type MutationAccountDeleteArgs = { + token: Scalars["String"]; +}; + +export type MutationAccountRegisterArgs = { + input: AccountRegisterInput; +}; + +export type MutationAccountRequestDeletionArgs = { + channel?: InputMaybe; + redirectUrl: Scalars["String"]; +}; + +export type MutationAccountSetDefaultAddressArgs = { + id: Scalars["ID"]; + type: AddressTypeEnum; +}; + +export type MutationAccountUpdateArgs = { + input: AccountInput; +}; + +export type MutationAddressCreateArgs = { + input: AddressInput; + userId: Scalars["ID"]; +}; + +export type MutationAddressDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationAddressSetDefaultArgs = { + addressId: Scalars["ID"]; + type: AddressTypeEnum; + userId: Scalars["ID"]; +}; + +export type MutationAddressUpdateArgs = { + id: Scalars["ID"]; + input: AddressInput; +}; + +export type MutationAppActivateArgs = { + id: Scalars["ID"]; +}; + +export type MutationAppCreateArgs = { + input: AppInput; +}; + +export type MutationAppDeactivateArgs = { + id: Scalars["ID"]; +}; + +export type MutationAppDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationAppDeleteFailedInstallationArgs = { + id: Scalars["ID"]; +}; + +export type MutationAppFetchManifestArgs = { + manifestUrl: Scalars["String"]; +}; + +export type MutationAppInstallArgs = { + input: AppInstallInput; +}; + +export type MutationAppRetryInstallArgs = { + activateAfterInstallation?: InputMaybe; + id: Scalars["ID"]; +}; + +export type MutationAppTokenCreateArgs = { + input: AppTokenInput; +}; + +export type MutationAppTokenDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationAppTokenVerifyArgs = { + token: Scalars["String"]; +}; + +export type MutationAppUpdateArgs = { + id: Scalars["ID"]; + input: AppInput; +}; + +export type MutationAssignNavigationArgs = { + menu?: InputMaybe; + navigationType: NavigationType; +}; + +export type MutationAssignWarehouseShippingZoneArgs = { + id: Scalars["ID"]; + shippingZoneIds: Array; +}; + +export type MutationAttributeBulkDeleteArgs = { + ids: Array; +}; + +export type MutationAttributeCreateArgs = { + input: AttributeCreateInput; +}; + +export type MutationAttributeDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationAttributeReorderValuesArgs = { + attributeId: Scalars["ID"]; + moves: Array; +}; + +export type MutationAttributeTranslateArgs = { + id: Scalars["ID"]; + input: NameTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationAttributeUpdateArgs = { + id: Scalars["ID"]; + input: AttributeUpdateInput; +}; + +export type MutationAttributeValueBulkDeleteArgs = { + ids: Array; +}; + +export type MutationAttributeValueCreateArgs = { + attribute: Scalars["ID"]; + input: AttributeValueCreateInput; +}; + +export type MutationAttributeValueDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationAttributeValueTranslateArgs = { + id: Scalars["ID"]; + input: AttributeValueTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationAttributeValueUpdateArgs = { + id: Scalars["ID"]; + input: AttributeValueUpdateInput; +}; + +export type MutationCategoryBulkDeleteArgs = { + ids: Array; +}; + +export type MutationCategoryCreateArgs = { + input: CategoryInput; + parent?: InputMaybe; +}; + +export type MutationCategoryDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationCategoryTranslateArgs = { + id: Scalars["ID"]; + input: TranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationCategoryUpdateArgs = { + id: Scalars["ID"]; + input: CategoryInput; +}; + +export type MutationChannelActivateArgs = { + id: Scalars["ID"]; +}; + +export type MutationChannelCreateArgs = { + input: ChannelCreateInput; +}; + +export type MutationChannelDeactivateArgs = { + id: Scalars["ID"]; +}; + +export type MutationChannelDeleteArgs = { + id: Scalars["ID"]; + input?: InputMaybe; +}; + +export type MutationChannelUpdateArgs = { + id: Scalars["ID"]; + input: ChannelUpdateInput; +}; + +export type MutationCheckoutAddPromoCodeArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + promoCode: Scalars["String"]; + token?: InputMaybe; +}; + +export type MutationCheckoutBillingAddressUpdateArgs = { + billingAddress: AddressInput; + checkoutId?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; +}; + +export type MutationCheckoutCompleteArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + paymentData?: InputMaybe; + redirectUrl?: InputMaybe; + storeSource?: InputMaybe; + token?: InputMaybe; +}; + +export type MutationCheckoutCreateArgs = { + input: CheckoutCreateInput; +}; + +export type MutationCheckoutCustomerAttachArgs = { + checkoutId?: InputMaybe; + customerId?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; +}; + +export type MutationCheckoutCustomerDetachArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; +}; + +export type MutationCheckoutDeliveryMethodUpdateArgs = { + deliveryMethodId?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; +}; + +export type MutationCheckoutEmailUpdateArgs = { + checkoutId?: InputMaybe; + email: Scalars["String"]; + id?: InputMaybe; + token?: InputMaybe; +}; + +export type MutationCheckoutLanguageCodeUpdateArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCodeEnum; + token?: InputMaybe; +}; + +export type MutationCheckoutLineDeleteArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + lineId?: InputMaybe; + token?: InputMaybe; +}; + +export type MutationCheckoutLinesAddArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + lines: Array; + token?: InputMaybe; +}; + +export type MutationCheckoutLinesDeleteArgs = { + id?: InputMaybe; + linesIds: Array; + token?: InputMaybe; +}; + +export type MutationCheckoutLinesUpdateArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + lines: Array; + token?: InputMaybe; +}; + +export type MutationCheckoutPaymentCreateArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + input: PaymentInput; + token?: InputMaybe; +}; + +export type MutationCheckoutRemovePromoCodeArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + promoCode?: InputMaybe; + promoCodeId?: InputMaybe; + token?: InputMaybe; +}; + +export type MutationCheckoutShippingAddressUpdateArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + shippingAddress: AddressInput; + token?: InputMaybe; +}; + +export type MutationCheckoutShippingMethodUpdateArgs = { + checkoutId?: InputMaybe; + id?: InputMaybe; + shippingMethodId: Scalars["ID"]; + token?: InputMaybe; +}; + +export type MutationCollectionAddProductsArgs = { + collectionId: Scalars["ID"]; + products: Array; +}; + +export type MutationCollectionBulkDeleteArgs = { + ids: Array; +}; + +export type MutationCollectionChannelListingUpdateArgs = { + id: Scalars["ID"]; + input: CollectionChannelListingUpdateInput; +}; + +export type MutationCollectionCreateArgs = { + input: CollectionCreateInput; +}; + +export type MutationCollectionDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationCollectionRemoveProductsArgs = { + collectionId: Scalars["ID"]; + products: Array; +}; + +export type MutationCollectionReorderProductsArgs = { + collectionId: Scalars["ID"]; + moves: Array; +}; + +export type MutationCollectionTranslateArgs = { + id: Scalars["ID"]; + input: TranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationCollectionUpdateArgs = { + id: Scalars["ID"]; + input: CollectionInput; +}; + +export type MutationConfirmAccountArgs = { + email: Scalars["String"]; + token: Scalars["String"]; +}; + +export type MutationConfirmEmailChangeArgs = { + channel?: InputMaybe; + token: Scalars["String"]; +}; + +export type MutationCreateWarehouseArgs = { + input: WarehouseCreateInput; +}; + +export type MutationCustomerBulkDeleteArgs = { + ids: Array; +}; + +export type MutationCustomerCreateArgs = { + input: UserCreateInput; +}; + +export type MutationCustomerDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationCustomerUpdateArgs = { + id: Scalars["ID"]; + input: CustomerInput; +}; + +export type MutationDeleteMetadataArgs = { + id: Scalars["ID"]; + keys: Array; +}; + +export type MutationDeletePrivateMetadataArgs = { + id: Scalars["ID"]; + keys: Array; +}; + +export type MutationDeleteWarehouseArgs = { + id: Scalars["ID"]; +}; + +export type MutationDigitalContentCreateArgs = { + input: DigitalContentUploadInput; + variantId: Scalars["ID"]; +}; + +export type MutationDigitalContentDeleteArgs = { + variantId: Scalars["ID"]; +}; + +export type MutationDigitalContentUpdateArgs = { + input: DigitalContentInput; + variantId: Scalars["ID"]; +}; + +export type MutationDigitalContentUrlCreateArgs = { + input: DigitalContentUrlCreateInput; +}; + +export type MutationDraftOrderBulkDeleteArgs = { + ids: Array; +}; + +export type MutationDraftOrderCompleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationDraftOrderCreateArgs = { + input: DraftOrderCreateInput; +}; + +export type MutationDraftOrderDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationDraftOrderLinesBulkDeleteArgs = { + ids: Array; +}; + +export type MutationDraftOrderUpdateArgs = { + id: Scalars["ID"]; + input: DraftOrderInput; +}; + +export type MutationEventDeliveryRetryArgs = { + id: Scalars["ID"]; +}; + +export type MutationExportGiftCardsArgs = { + input: ExportGiftCardsInput; +}; + +export type MutationExportProductsArgs = { + input: ExportProductsInput; +}; + +export type MutationExternalAuthenticationUrlArgs = { + input: Scalars["JSONString"]; + pluginId: Scalars["String"]; +}; + +export type MutationExternalLogoutArgs = { + input: Scalars["JSONString"]; + pluginId: Scalars["String"]; +}; + +export type MutationExternalNotificationTriggerArgs = { + channel: Scalars["String"]; + input: ExternalNotificationTriggerInput; + pluginId?: InputMaybe; +}; + +export type MutationExternalObtainAccessTokensArgs = { + input: Scalars["JSONString"]; + pluginId: Scalars["String"]; +}; + +export type MutationExternalRefreshArgs = { + input: Scalars["JSONString"]; + pluginId: Scalars["String"]; +}; + +export type MutationExternalVerifyArgs = { + input: Scalars["JSONString"]; + pluginId: Scalars["String"]; +}; + +export type MutationFileUploadArgs = { + file: Scalars["Upload"]; +}; + +export type MutationGiftCardActivateArgs = { + id: Scalars["ID"]; +}; + +export type MutationGiftCardAddNoteArgs = { + id: Scalars["ID"]; + input: GiftCardAddNoteInput; +}; + +export type MutationGiftCardBulkActivateArgs = { + ids: Array; +}; + +export type MutationGiftCardBulkCreateArgs = { + input: GiftCardBulkCreateInput; +}; + +export type MutationGiftCardBulkDeactivateArgs = { + ids: Array; +}; + +export type MutationGiftCardBulkDeleteArgs = { + ids: Array; +}; + +export type MutationGiftCardCreateArgs = { + input: GiftCardCreateInput; +}; + +export type MutationGiftCardDeactivateArgs = { + id: Scalars["ID"]; +}; + +export type MutationGiftCardDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationGiftCardResendArgs = { + input: GiftCardResendInput; +}; + +export type MutationGiftCardSettingsUpdateArgs = { + input: GiftCardSettingsUpdateInput; +}; + +export type MutationGiftCardUpdateArgs = { + id: Scalars["ID"]; + input: GiftCardUpdateInput; +}; + +export type MutationInvoiceCreateArgs = { + input: InvoiceCreateInput; + orderId: Scalars["ID"]; +}; + +export type MutationInvoiceDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationInvoiceRequestArgs = { + number?: InputMaybe; + orderId: Scalars["ID"]; +}; + +export type MutationInvoiceRequestDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationInvoiceSendNotificationArgs = { + id: Scalars["ID"]; +}; + +export type MutationInvoiceUpdateArgs = { + id: Scalars["ID"]; + input: UpdateInvoiceInput; +}; + +export type MutationMenuBulkDeleteArgs = { + ids: Array; +}; + +export type MutationMenuCreateArgs = { + input: MenuCreateInput; +}; + +export type MutationMenuDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationMenuItemBulkDeleteArgs = { + ids: Array; +}; + +export type MutationMenuItemCreateArgs = { + input: MenuItemCreateInput; +}; + +export type MutationMenuItemDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationMenuItemMoveArgs = { + menu: Scalars["ID"]; + moves: Array; +}; + +export type MutationMenuItemTranslateArgs = { + id: Scalars["ID"]; + input: NameTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationMenuItemUpdateArgs = { + id: Scalars["ID"]; + input: MenuItemInput; +}; + +export type MutationMenuUpdateArgs = { + id: Scalars["ID"]; + input: MenuInput; +}; + +export type MutationOrderAddNoteArgs = { + input: OrderAddNoteInput; + order: Scalars["ID"]; +}; + +export type MutationOrderBulkCancelArgs = { + ids: Array; +}; + +export type MutationOrderCancelArgs = { + id: Scalars["ID"]; +}; + +export type MutationOrderCaptureArgs = { + amount: Scalars["PositiveDecimal"]; + id: Scalars["ID"]; +}; + +export type MutationOrderConfirmArgs = { + id: Scalars["ID"]; +}; + +export type MutationOrderCreateFromCheckoutArgs = { + id: Scalars["ID"]; + removeCheckout?: InputMaybe; +}; + +export type MutationOrderDiscountAddArgs = { + input: OrderDiscountCommonInput; + orderId: Scalars["ID"]; +}; + +export type MutationOrderDiscountDeleteArgs = { + discountId: Scalars["ID"]; +}; + +export type MutationOrderDiscountUpdateArgs = { + discountId: Scalars["ID"]; + input: OrderDiscountCommonInput; +}; + +export type MutationOrderFulfillArgs = { + input: OrderFulfillInput; + order?: InputMaybe; +}; + +export type MutationOrderFulfillmentApproveArgs = { + allowStockToBeExceeded?: InputMaybe; + id: Scalars["ID"]; + notifyCustomer: Scalars["Boolean"]; +}; + +export type MutationOrderFulfillmentCancelArgs = { + id: Scalars["ID"]; + input?: InputMaybe; +}; + +export type MutationOrderFulfillmentRefundProductsArgs = { + input: OrderRefundProductsInput; + order: Scalars["ID"]; +}; + +export type MutationOrderFulfillmentReturnProductsArgs = { + input: OrderReturnProductsInput; + order: Scalars["ID"]; +}; + +export type MutationOrderFulfillmentUpdateTrackingArgs = { + id: Scalars["ID"]; + input: FulfillmentUpdateTrackingInput; +}; + +export type MutationOrderLineDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationOrderLineDiscountRemoveArgs = { + orderLineId: Scalars["ID"]; +}; + +export type MutationOrderLineDiscountUpdateArgs = { + input: OrderDiscountCommonInput; + orderLineId: Scalars["ID"]; +}; + +export type MutationOrderLineUpdateArgs = { + id: Scalars["ID"]; + input: OrderLineInput; +}; + +export type MutationOrderLinesCreateArgs = { + id: Scalars["ID"]; + input: Array; +}; + +export type MutationOrderMarkAsPaidArgs = { + id: Scalars["ID"]; + transactionReference?: InputMaybe; +}; + +export type MutationOrderRefundArgs = { + amount: Scalars["PositiveDecimal"]; + id: Scalars["ID"]; +}; + +export type MutationOrderSettingsUpdateArgs = { + input: OrderSettingsUpdateInput; +}; + +export type MutationOrderUpdateArgs = { + id: Scalars["ID"]; + input: OrderUpdateInput; +}; + +export type MutationOrderUpdateShippingArgs = { + input: OrderUpdateShippingInput; + order: Scalars["ID"]; +}; + +export type MutationOrderVoidArgs = { + id: Scalars["ID"]; +}; + +export type MutationPageAttributeAssignArgs = { + attributeIds: Array; + pageTypeId: Scalars["ID"]; +}; + +export type MutationPageAttributeUnassignArgs = { + attributeIds: Array; + pageTypeId: Scalars["ID"]; +}; + +export type MutationPageBulkDeleteArgs = { + ids: Array; +}; + +export type MutationPageBulkPublishArgs = { + ids: Array; + isPublished: Scalars["Boolean"]; +}; + +export type MutationPageCreateArgs = { + input: PageCreateInput; +}; + +export type MutationPageDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationPageReorderAttributeValuesArgs = { + attributeId: Scalars["ID"]; + moves: Array; + pageId: Scalars["ID"]; +}; + +export type MutationPageTranslateArgs = { + id: Scalars["ID"]; + input: PageTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationPageTypeBulkDeleteArgs = { + ids: Array; +}; + +export type MutationPageTypeCreateArgs = { + input: PageTypeCreateInput; +}; + +export type MutationPageTypeDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationPageTypeReorderAttributesArgs = { + moves: Array; + pageTypeId: Scalars["ID"]; +}; + +export type MutationPageTypeUpdateArgs = { + id?: InputMaybe; + input: PageTypeUpdateInput; +}; + +export type MutationPageUpdateArgs = { + id: Scalars["ID"]; + input: PageInput; +}; + +export type MutationPasswordChangeArgs = { + newPassword: Scalars["String"]; + oldPassword: Scalars["String"]; +}; + +export type MutationPaymentCaptureArgs = { + amount?: InputMaybe; + paymentId: Scalars["ID"]; +}; + +export type MutationPaymentCheckBalanceArgs = { + input: PaymentCheckBalanceInput; +}; + +export type MutationPaymentInitializeArgs = { + channel?: InputMaybe; + gateway: Scalars["String"]; + paymentData?: InputMaybe; +}; + +export type MutationPaymentRefundArgs = { + amount?: InputMaybe; + paymentId: Scalars["ID"]; +}; + +export type MutationPaymentVoidArgs = { + paymentId: Scalars["ID"]; +}; + +export type MutationPermissionGroupCreateArgs = { + input: PermissionGroupCreateInput; +}; + +export type MutationPermissionGroupDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationPermissionGroupUpdateArgs = { + id: Scalars["ID"]; + input: PermissionGroupUpdateInput; +}; + +export type MutationPluginUpdateArgs = { + channelId?: InputMaybe; + id: Scalars["ID"]; + input: PluginUpdateInput; +}; + +export type MutationProductAttributeAssignArgs = { + operations: Array; + productTypeId: Scalars["ID"]; +}; + +export type MutationProductAttributeAssignmentUpdateArgs = { + operations: Array; + productTypeId: Scalars["ID"]; +}; + +export type MutationProductAttributeUnassignArgs = { + attributeIds: Array; + productTypeId: Scalars["ID"]; +}; + +export type MutationProductBulkDeleteArgs = { + ids: Array; +}; + +export type MutationProductChannelListingUpdateArgs = { + id: Scalars["ID"]; + input: ProductChannelListingUpdateInput; +}; + +export type MutationProductCreateArgs = { + input: ProductCreateInput; +}; + +export type MutationProductDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationProductMediaBulkDeleteArgs = { + ids: Array; +}; + +export type MutationProductMediaCreateArgs = { + input: ProductMediaCreateInput; +}; + +export type MutationProductMediaDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationProductMediaReorderArgs = { + mediaIds: Array; + productId: Scalars["ID"]; +}; + +export type MutationProductMediaUpdateArgs = { + id: Scalars["ID"]; + input: ProductMediaUpdateInput; +}; + +export type MutationProductReorderAttributeValuesArgs = { + attributeId: Scalars["ID"]; + moves: Array; + productId: Scalars["ID"]; +}; + +export type MutationProductTranslateArgs = { + id: Scalars["ID"]; + input: TranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationProductTypeBulkDeleteArgs = { + ids: Array; +}; + +export type MutationProductTypeCreateArgs = { + input: ProductTypeInput; +}; + +export type MutationProductTypeDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationProductTypeReorderAttributesArgs = { + moves: Array; + productTypeId: Scalars["ID"]; + type: ProductAttributeType; +}; + +export type MutationProductTypeUpdateArgs = { + id: Scalars["ID"]; + input: ProductTypeInput; +}; + +export type MutationProductUpdateArgs = { + id: Scalars["ID"]; + input: ProductInput; +}; + +export type MutationProductVariantBulkCreateArgs = { + product: Scalars["ID"]; + variants: Array; +}; + +export type MutationProductVariantBulkDeleteArgs = { + ids: Array; +}; + +export type MutationProductVariantChannelListingUpdateArgs = { + id: Scalars["ID"]; + input: Array; +}; + +export type MutationProductVariantCreateArgs = { + input: ProductVariantCreateInput; +}; + +export type MutationProductVariantDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationProductVariantPreorderDeactivateArgs = { + id: Scalars["ID"]; +}; + +export type MutationProductVariantReorderArgs = { + moves: Array; + productId: Scalars["ID"]; +}; + +export type MutationProductVariantReorderAttributeValuesArgs = { + attributeId: Scalars["ID"]; + moves: Array; + variantId: Scalars["ID"]; +}; + +export type MutationProductVariantSetDefaultArgs = { + productId: Scalars["ID"]; + variantId: Scalars["ID"]; +}; + +export type MutationProductVariantStocksCreateArgs = { + stocks: Array; + variantId: Scalars["ID"]; +}; + +export type MutationProductVariantStocksDeleteArgs = { + variantId: Scalars["ID"]; + warehouseIds?: InputMaybe>; +}; + +export type MutationProductVariantStocksUpdateArgs = { + stocks: Array; + variantId: Scalars["ID"]; +}; + +export type MutationProductVariantTranslateArgs = { + id: Scalars["ID"]; + input: NameTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationProductVariantUpdateArgs = { + id: Scalars["ID"]; + input: ProductVariantInput; +}; + +export type MutationRequestEmailChangeArgs = { + channel?: InputMaybe; + newEmail: Scalars["String"]; + password: Scalars["String"]; + redirectUrl: Scalars["String"]; +}; + +export type MutationRequestPasswordResetArgs = { + channel?: InputMaybe; + email: Scalars["String"]; + redirectUrl: Scalars["String"]; +}; + +export type MutationSaleBulkDeleteArgs = { + ids: Array; +}; + +export type MutationSaleCataloguesAddArgs = { + id: Scalars["ID"]; + input: CatalogueInput; +}; + +export type MutationSaleCataloguesRemoveArgs = { + id: Scalars["ID"]; + input: CatalogueInput; +}; + +export type MutationSaleChannelListingUpdateArgs = { + id: Scalars["ID"]; + input: SaleChannelListingInput; +}; + +export type MutationSaleCreateArgs = { + input: SaleInput; +}; + +export type MutationSaleDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationSaleTranslateArgs = { + id: Scalars["ID"]; + input: NameTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationSaleUpdateArgs = { + id: Scalars["ID"]; + input: SaleInput; +}; + +export type MutationSetPasswordArgs = { + email: Scalars["String"]; + password: Scalars["String"]; + token: Scalars["String"]; +}; + +export type MutationShippingMethodChannelListingUpdateArgs = { + id: Scalars["ID"]; + input: ShippingMethodChannelListingInput; +}; + +export type MutationShippingPriceBulkDeleteArgs = { + ids: Array; +}; + +export type MutationShippingPriceCreateArgs = { + input: ShippingPriceInput; +}; + +export type MutationShippingPriceDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationShippingPriceExcludeProductsArgs = { + id: Scalars["ID"]; + input: ShippingPriceExcludeProductsInput; +}; + +export type MutationShippingPriceRemoveProductFromExcludeArgs = { + id: Scalars["ID"]; + products: Array; +}; + +export type MutationShippingPriceTranslateArgs = { + id: Scalars["ID"]; + input: ShippingPriceTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationShippingPriceUpdateArgs = { + id: Scalars["ID"]; + input: ShippingPriceInput; +}; + +export type MutationShippingZoneBulkDeleteArgs = { + ids: Array; +}; + +export type MutationShippingZoneCreateArgs = { + input: ShippingZoneCreateInput; +}; + +export type MutationShippingZoneDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationShippingZoneUpdateArgs = { + id: Scalars["ID"]; + input: ShippingZoneUpdateInput; +}; + +export type MutationShopAddressUpdateArgs = { + input?: InputMaybe; +}; + +export type MutationShopDomainUpdateArgs = { + input?: InputMaybe; +}; + +export type MutationShopSettingsTranslateArgs = { + input: ShopSettingsTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationShopSettingsUpdateArgs = { + input: ShopSettingsInput; +}; + +export type MutationStaffBulkDeleteArgs = { + ids: Array; +}; + +export type MutationStaffCreateArgs = { + input: StaffCreateInput; +}; + +export type MutationStaffDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationStaffNotificationRecipientCreateArgs = { + input: StaffNotificationRecipientInput; +}; + +export type MutationStaffNotificationRecipientDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationStaffNotificationRecipientUpdateArgs = { + id: Scalars["ID"]; + input: StaffNotificationRecipientInput; +}; + +export type MutationStaffUpdateArgs = { + id: Scalars["ID"]; + input: StaffUpdateInput; +}; + +export type MutationTokenCreateArgs = { + email: Scalars["String"]; + password: Scalars["String"]; +}; + +export type MutationTokenRefreshArgs = { + csrfToken?: InputMaybe; + refreshToken?: InputMaybe; +}; + +export type MutationTokenVerifyArgs = { + token: Scalars["String"]; +}; + +export type MutationTransactionCreateArgs = { + id: Scalars["ID"]; + transaction: TransactionCreateInput; + transactionEvent?: InputMaybe; +}; + +export type MutationTransactionRequestActionArgs = { + actionType: TransactionActionEnum; + amount?: InputMaybe; + id: Scalars["ID"]; +}; + +export type MutationTransactionUpdateArgs = { + id: Scalars["ID"]; + transaction?: InputMaybe; + transactionEvent?: InputMaybe; +}; + +export type MutationUnassignWarehouseShippingZoneArgs = { + id: Scalars["ID"]; + shippingZoneIds: Array; +}; + +export type MutationUpdateMetadataArgs = { + id: Scalars["ID"]; + input: Array; +}; + +export type MutationUpdatePrivateMetadataArgs = { + id: Scalars["ID"]; + input: Array; +}; + +export type MutationUpdateWarehouseArgs = { + id: Scalars["ID"]; + input: WarehouseUpdateInput; +}; + +export type MutationUserAvatarUpdateArgs = { + image: Scalars["Upload"]; +}; + +export type MutationUserBulkSetActiveArgs = { + ids: Array; + isActive: Scalars["Boolean"]; +}; + +export type MutationVariantMediaAssignArgs = { + mediaId: Scalars["ID"]; + variantId: Scalars["ID"]; +}; + +export type MutationVariantMediaUnassignArgs = { + mediaId: Scalars["ID"]; + variantId: Scalars["ID"]; +}; + +export type MutationVoucherBulkDeleteArgs = { + ids: Array; +}; + +export type MutationVoucherCataloguesAddArgs = { + id: Scalars["ID"]; + input: CatalogueInput; +}; + +export type MutationVoucherCataloguesRemoveArgs = { + id: Scalars["ID"]; + input: CatalogueInput; +}; + +export type MutationVoucherChannelListingUpdateArgs = { + id: Scalars["ID"]; + input: VoucherChannelListingInput; +}; + +export type MutationVoucherCreateArgs = { + input: VoucherInput; +}; + +export type MutationVoucherDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationVoucherTranslateArgs = { + id: Scalars["ID"]; + input: NameTranslationInput; + languageCode: LanguageCodeEnum; +}; + +export type MutationVoucherUpdateArgs = { + id: Scalars["ID"]; + input: VoucherInput; +}; + +export type MutationWebhookCreateArgs = { + input: WebhookCreateInput; +}; + +export type MutationWebhookDeleteArgs = { + id: Scalars["ID"]; +}; + +export type MutationWebhookUpdateArgs = { + id: Scalars["ID"]; + input: WebhookUpdateInput; +}; + +export type NameTranslationInput = { + name?: InputMaybe; +}; + +export enum NavigationType { + /** Main storefront navigation. */ + Main = "MAIN", + /** Secondary storefront navigation. */ + Secondary = "SECONDARY", +} + +/** An object with an ID */ +export type Node = { + /** The ID of the object. */ + id: Scalars["ID"]; +}; + +export type ObjectWithMetadata = { + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; +}; + +export type ObjectWithMetadataMetafieldArgs = { + key: Scalars["String"]; +}; + +export type ObjectWithMetadataMetafieldsArgs = { + keys?: InputMaybe>; +}; + +export type ObjectWithMetadataPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +export type ObjectWithMetadataPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents an order in the shop. */ +export type Order = Node & + ObjectWithMetadata & { + __typename?: "Order"; + /** List of actions that can be performed in the current state of an order. */ + actions: Array; + /** + * 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; + /** + * 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: Array; + /** + * Shipping methods that can be used with this order. + * @deprecated Use `shippingMethods`, this field will be removed in 4.0 + */ + availableShippingMethods?: Maybe>; + /** 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?: Maybe
; + /** Informs whether a draft order can be finalized(turned into a regular order). */ + canFinalize: Scalars["Boolean"]; + channel: Channel; + /** + * 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; + collectionPointName?: Maybe; + created: Scalars["DateTime"]; + customerNote: Scalars["String"]; + /** + * 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?: Maybe; + /** + * Returns applied discount. + * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. + */ + discount?: Maybe; + /** + * Discount name. + * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. + */ + discountName?: Maybe; + /** List of all discounts assigned to the order. */ + discounts: Array; + displayGrossPrices: Scalars["Boolean"]; + /** List of errors that occurred during order validation. */ + errors: Array; + /** + * List of events associated with the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + events: Array; + /** List of shipments for the order. */ + fulfillments: Array; + /** List of user gift cards. */ + giftCards: Array; + id: Scalars["ID"]; + /** 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: Array; + /** Informs if an order is fully paid. */ + isPaid: Scalars["Boolean"]; + /** Returns True, if order requires shipping. */ + isShippingRequired: Scalars["Boolean"]; + /** @deprecated This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. */ + languageCode: Scalars["String"]; + /** Order language code. */ + languageCodeEnum: LanguageCodeEnum; + /** List of order lines. */ + lines: Array; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** User-friendly number of an order. */ + number: Scalars["String"]; + /** The order origin. */ + origin: OrderOriginEnum; + /** The ID of the order that was the base for this order. */ + original?: Maybe; + /** Internal payment status. */ + paymentStatus: PaymentChargeStatusEnum; + /** User-friendly payment status. */ + paymentStatusDisplay: Scalars["String"]; + /** List of payments for the order. */ + payments: Array; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + redirectUrl?: Maybe; + /** 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?: Maybe
; + /** + * Shipping method for this order. + * @deprecated This field will be removed in Saleor 4.0. Use `deliveryMethod` instead. + */ + shippingMethod?: Maybe; + shippingMethodName?: Maybe; + /** Shipping methods related to this order. */ + shippingMethods: Array; + /** Total price of shipping. */ + shippingPrice: TaxedMoney; + shippingTaxRate: Scalars["Float"]; + status: OrderStatus; + /** User-friendly order status. */ + statusDisplay: Scalars["String"]; + /** The sum of line prices not including shipping. */ + subtotal: TaxedMoney; + /** @deprecated This field will be removed in Saleor 4.0. Use `id` instead. */ + token: Scalars["String"]; + /** Total amount of the order. */ + total: TaxedMoney; + /** Amount authorized for the order. */ + totalAuthorized: Money; + /** The difference between the paid and the order total amount. */ + totalBalance: Money; + /** Amount captured by payment. */ + totalCaptured: Money; + trackingClientId: Scalars["String"]; + /** + * 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: Array; + /** + * Translated discount name. + * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. + */ + translatedDiscountName?: Maybe; + /** Undiscounted total amount of the order. */ + undiscountedTotal: TaxedMoney; + updatedAt: Scalars["DateTime"]; + /** 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?: Maybe; + /** 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?: Maybe; + voucher?: Maybe; + weight: Weight; + }; + +/** Represents an order in the shop. */ +export type OrderMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents an order in the shop. */ +export type OrderMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents an order in the shop. */ +export type OrderPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents an order in the shop. */ +export type OrderPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +export enum OrderAction { + /** Represents the capture action. */ + Capture = "CAPTURE", + /** Represents a mark-as-paid action. */ + MarkAsPaid = "MARK_AS_PAID", + /** Represents a refund action. */ + Refund = "REFUND", + /** Represents a void action. */ + Void = "VOID", +} + +/** + * Adds note to the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderAddNote = { + __typename?: "OrderAddNote"; + errors: Array; + /** Order note created. */ + event?: Maybe; + /** Order with the note added. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +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 { + Full = "FULL", + None = "NONE", + Partial = "PARTIAL", +} + +/** + * Cancels orders. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderBulkCancel = { + __typename?: "OrderBulkCancel"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** + * Cancel an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderCancel = { + __typename?: "OrderCancel"; + errors: Array; + /** Canceled order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type OrderCancelled = Event & { + __typename?: "OrderCancelled"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Capture an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderCapture = { + __typename?: "OrderCapture"; + errors: Array; + /** Captured order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** + * 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 { + Full = "FULL", + None = "NONE", + Overcharged = "OVERCHARGED", + Partial = "PARTIAL", +} + +/** + * Confirms an unconfirmed order by changing status to unfulfilled. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderConfirm = { + __typename?: "OrderConfirm"; + errors: Array; + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type OrderConfirmed = Event & { + __typename?: "OrderConfirmed"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type OrderCountableConnection = { + __typename?: "OrderCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type OrderCountableEdge = { + __typename?: "OrderCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Order; +}; + +/** + * 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. + */ +export type OrderCreateFromCheckout = { + __typename?: "OrderCreateFromCheckout"; + errors: Array; + /** Placed order. */ + order?: Maybe; +}; + +export type OrderCreateFromCheckoutError = { + __typename?: "OrderCreateFromCheckoutError"; + /** The error code. */ + code: OrderCreateFromCheckoutErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** List of line Ids which cause the error. */ + lines?: Maybe>; + /** The error message. */ + message?: Maybe; + /** List of variant IDs which causes the error. */ + variants?: Maybe>; +}; + +/** An enumeration. */ +export enum OrderCreateFromCheckoutErrorCode { + BillingAddressNotSet = "BILLING_ADDRESS_NOT_SET", + ChannelInactive = "CHANNEL_INACTIVE", + CheckoutNotFound = "CHECKOUT_NOT_FOUND", + EmailNotSet = "EMAIL_NOT_SET", + GiftCardNotApplicable = "GIFT_CARD_NOT_APPLICABLE", + GraphqlError = "GRAPHQL_ERROR", + InsufficientStock = "INSUFFICIENT_STOCK", + InvalidShippingMethod = "INVALID_SHIPPING_METHOD", + NoLines = "NO_LINES", + ShippingAddressNotSet = "SHIPPING_ADDRESS_NOT_SET", + ShippingMethodNotSet = "SHIPPING_METHOD_NOT_SET", + TaxError = "TAX_ERROR", + UnavailableVariantInChannel = "UNAVAILABLE_VARIANT_IN_CHANNEL", + VoucherNotApplicable = "VOUCHER_NOT_APPLICABLE", +} + +export type OrderCreated = Event & { + __typename?: "OrderCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export enum OrderDirection { + /** Specifies an ascending sort order. */ + Asc = "ASC", + /** Specifies a descending sort order. */ + Desc = "DESC", +} + +/** Contains all details related to the applied discount to the order. */ +export type OrderDiscount = Node & { + __typename?: "OrderDiscount"; + /** Returns amount of discount. */ + amount: Money; + id: Scalars["ID"]; + name?: Maybe; + /** + * Explanation for the applied discount. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + reason?: Maybe; + translatedName?: Maybe; + type: OrderDiscountType; + /** Value of the discount. Can store fixed value or percent value */ + value: Scalars["PositiveDecimal"]; + /** Type of the discount: fixed or percent */ + valueType: DiscountValueTypeEnum; +}; + +/** + * Adds discount to the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderDiscountAdd = { + __typename?: "OrderDiscountAdd"; + errors: Array; + /** Order which has been discounted. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type OrderDiscountCommonInput = { + /** 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; +}; + +/** + * Remove discount from the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderDiscountDelete = { + __typename?: "OrderDiscountDelete"; + errors: Array; + /** Order which has removed discount. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** An enumeration. */ +export enum OrderDiscountType { + Manual = "MANUAL", + Voucher = "VOUCHER", +} + +/** + * Update discount for the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderDiscountUpdate = { + __typename?: "OrderDiscountUpdate"; + errors: Array; + /** Order which has been discounted. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type OrderDraftFilterInput = { + channels?: InputMaybe>; + created?: InputMaybe; + customer?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; +}; + +export type OrderError = { + __typename?: "OrderError"; + /** A type of address that causes the error. */ + addressType?: Maybe; + /** The error code. */ + code: OrderErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of order line IDs that cause the error. */ + orderLines?: Maybe>; + /** List of product variants that are associated with the error */ + variants?: Maybe>; + /** Warehouse ID which causes the error. */ + warehouse?: Maybe; +}; + +/** An enumeration. */ +export enum OrderErrorCode { + BillingAddressNotSet = "BILLING_ADDRESS_NOT_SET", + CannotCancelFulfillment = "CANNOT_CANCEL_FULFILLMENT", + CannotCancelOrder = "CANNOT_CANCEL_ORDER", + CannotDelete = "CANNOT_DELETE", + CannotDiscount = "CANNOT_DISCOUNT", + CannotFulfillUnpaidOrder = "CANNOT_FULFILL_UNPAID_ORDER", + CannotRefund = "CANNOT_REFUND", + CaptureInactivePayment = "CAPTURE_INACTIVE_PAYMENT", + ChannelInactive = "CHANNEL_INACTIVE", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + FulfillOrderLine = "FULFILL_ORDER_LINE", + GiftCardLine = "GIFT_CARD_LINE", + GraphqlError = "GRAPHQL_ERROR", + InsufficientStock = "INSUFFICIENT_STOCK", + Invalid = "INVALID", + InvalidQuantity = "INVALID_QUANTITY", + MissingTransactionActionRequestWebhook = "MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK", + NotAvailableInChannel = "NOT_AVAILABLE_IN_CHANNEL", + NotEditable = "NOT_EDITABLE", + NotFound = "NOT_FOUND", + OrderNoShippingAddress = "ORDER_NO_SHIPPING_ADDRESS", + PaymentError = "PAYMENT_ERROR", + PaymentMissing = "PAYMENT_MISSING", + ProductNotPublished = "PRODUCT_NOT_PUBLISHED", + ProductUnavailableForPurchase = "PRODUCT_UNAVAILABLE_FOR_PURCHASE", + Required = "REQUIRED", + ShippingMethodNotApplicable = "SHIPPING_METHOD_NOT_APPLICABLE", + ShippingMethodRequired = "SHIPPING_METHOD_REQUIRED", + TaxError = "TAX_ERROR", + Unique = "UNIQUE", + VoidInactivePayment = "VOID_INACTIVE_PAYMENT", + ZeroQuantity = "ZERO_QUANTITY", +} + +/** History log of the order. */ +export type OrderEvent = Node & { + __typename?: "OrderEvent"; + /** Amount of money. */ + amount?: Maybe; + /** App that performed the action. Requires of of the following permissions: MANAGE_APPS, MANAGE_ORDERS, OWNER. */ + app?: Maybe; + /** Composed ID of the Fulfillment. */ + composedId?: Maybe; + /** Date when event happened at in ISO 8601 format. */ + date?: Maybe; + /** The discount applied to the order. */ + discount?: Maybe; + /** Email of the customer. */ + email?: Maybe; + /** Type of an email sent to the customer. */ + emailType?: Maybe; + /** The lines fulfilled. */ + fulfilledItems?: Maybe>; + id: Scalars["ID"]; + /** Number of an invoice related to the order. */ + invoiceNumber?: Maybe; + /** The concerned lines. */ + lines?: Maybe>; + /** Content of the event. */ + message?: Maybe; + /** User-friendly number of an order. */ + orderNumber?: Maybe; + /** List of oversold lines names. */ + oversoldItems?: Maybe>; + /** The payment gateway of the payment. */ + paymentGateway?: Maybe; + /** The payment reference from the payment provider. */ + paymentId?: Maybe; + /** Number of items. */ + quantity?: Maybe; + /** The reference of payment's transaction. */ + reference?: Maybe; + /** The order which is related to this order. */ + relatedOrder?: Maybe; + /** Define if shipping costs were included to the refund. */ + shippingCostsIncluded?: Maybe; + /** The status of payment's transaction. */ + status?: Maybe; + /** The transaction reference of captured payment. */ + transactionReference?: Maybe; + /** Order event type. */ + type?: Maybe; + /** User who performed the action. */ + user?: Maybe; + /** The warehouse were items were restocked. */ + warehouse?: Maybe; +}; + +export type OrderEventCountableConnection = { + __typename?: "OrderEventCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type OrderEventCountableEdge = { + __typename?: "OrderEventCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: OrderEvent; +}; + +export type OrderEventDiscountObject = { + __typename?: "OrderEventDiscountObject"; + /** Returns amount of discount. */ + amount?: Maybe; + /** Returns amount of discount. */ + oldAmount?: Maybe; + /** Value of the discount. Can store fixed value or percent value. */ + oldValue?: Maybe; + /** Type of the discount: fixed or percent. */ + oldValueType?: Maybe; + /** Explanation for the applied discount. */ + reason?: Maybe; + /** Value of the discount. Can store fixed value or percent value. */ + value: Scalars["PositiveDecimal"]; + /** Type of the discount: fixed or percent. */ + valueType: DiscountValueTypeEnum; +}; + +export type OrderEventOrderLineObject = { + __typename?: "OrderEventOrderLineObject"; + /** The discount applied to the order line. */ + discount?: Maybe; + /** The variant name. */ + itemName?: Maybe; + /** The order line. */ + orderLine?: Maybe; + /** The variant quantity. */ + quantity?: Maybe; +}; + +/** An enumeration. */ +export enum OrderEventsEmailsEnum { + Confirmed = "CONFIRMED", + DigitalLinks = "DIGITAL_LINKS", + FulfillmentConfirmation = "FULFILLMENT_CONFIRMATION", + OrderCancel = "ORDER_CANCEL", + OrderConfirmation = "ORDER_CONFIRMATION", + OrderRefund = "ORDER_REFUND", + PaymentConfirmation = "PAYMENT_CONFIRMATION", + ShippingConfirmation = "SHIPPING_CONFIRMATION", + TrackingUpdated = "TRACKING_UPDATED", +} + +/** An enumeration. */ +export enum OrderEventsEnum { + AddedProducts = "ADDED_PRODUCTS", + Canceled = "CANCELED", + Confirmed = "CONFIRMED", + DraftCreated = "DRAFT_CREATED", + DraftCreatedFromReplace = "DRAFT_CREATED_FROM_REPLACE", + EmailSent = "EMAIL_SENT", + ExternalServiceNotification = "EXTERNAL_SERVICE_NOTIFICATION", + FulfillmentAwaitsApproval = "FULFILLMENT_AWAITS_APPROVAL", + FulfillmentCanceled = "FULFILLMENT_CANCELED", + FulfillmentFulfilledItems = "FULFILLMENT_FULFILLED_ITEMS", + FulfillmentRefunded = "FULFILLMENT_REFUNDED", + FulfillmentReplaced = "FULFILLMENT_REPLACED", + FulfillmentRestockedItems = "FULFILLMENT_RESTOCKED_ITEMS", + FulfillmentReturned = "FULFILLMENT_RETURNED", + InvoiceGenerated = "INVOICE_GENERATED", + InvoiceRequested = "INVOICE_REQUESTED", + InvoiceSent = "INVOICE_SENT", + InvoiceUpdated = "INVOICE_UPDATED", + NoteAdded = "NOTE_ADDED", + OrderDiscountAdded = "ORDER_DISCOUNT_ADDED", + OrderDiscountAutomaticallyUpdated = "ORDER_DISCOUNT_AUTOMATICALLY_UPDATED", + OrderDiscountDeleted = "ORDER_DISCOUNT_DELETED", + OrderDiscountUpdated = "ORDER_DISCOUNT_UPDATED", + OrderFullyPaid = "ORDER_FULLY_PAID", + OrderLineDiscountRemoved = "ORDER_LINE_DISCOUNT_REMOVED", + OrderLineDiscountUpdated = "ORDER_LINE_DISCOUNT_UPDATED", + OrderLineProductDeleted = "ORDER_LINE_PRODUCT_DELETED", + OrderLineVariantDeleted = "ORDER_LINE_VARIANT_DELETED", + OrderMarkedAsPaid = "ORDER_MARKED_AS_PAID", + OrderReplacementCreated = "ORDER_REPLACEMENT_CREATED", + Other = "OTHER", + OversoldItems = "OVERSOLD_ITEMS", + PaymentAuthorized = "PAYMENT_AUTHORIZED", + PaymentCaptured = "PAYMENT_CAPTURED", + PaymentFailed = "PAYMENT_FAILED", + PaymentRefunded = "PAYMENT_REFUNDED", + PaymentVoided = "PAYMENT_VOIDED", + Placed = "PLACED", + PlacedFromDraft = "PLACED_FROM_DRAFT", + RemovedProducts = "REMOVED_PRODUCTS", + TrackingUpdated = "TRACKING_UPDATED", + TransactionCaptureRequested = "TRANSACTION_CAPTURE_REQUESTED", + TransactionEvent = "TRANSACTION_EVENT", + TransactionRefundRequested = "TRANSACTION_REFUND_REQUESTED", + TransactionVoidRequested = "TRANSACTION_VOID_REQUESTED", + UpdatedAddress = "UPDATED_ADDRESS", +} + +export type OrderFilterInput = { + authorizeStatus?: InputMaybe>; + channels?: InputMaybe>; + chargeStatus?: InputMaybe>; + created?: InputMaybe; + customer?: InputMaybe; + giftCardBought?: InputMaybe; + giftCardUsed?: InputMaybe; + ids?: InputMaybe>; + isClickAndCollect?: InputMaybe; + isPreorder?: InputMaybe; + metadata?: InputMaybe>; + numbers?: InputMaybe>; + paymentStatus?: InputMaybe>; + search?: InputMaybe; + status?: InputMaybe>; + updatedAt?: InputMaybe; +}; + +/** + * Creates new fulfillments for an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderFulfill = { + __typename?: "OrderFulfill"; + errors: Array; + /** List of created fulfillments. */ + fulfillments?: Maybe>; + /** Fulfilled order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +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; +}; + +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"]; +}; + +export type OrderFulfilled = Event & { + __typename?: "OrderFulfilled"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type OrderFullyPaid = Event & { + __typename?: "OrderFullyPaid"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** Represents order line of particular order. */ +export type OrderLine = Node & { + __typename?: "OrderLine"; + /** + * List of allocations across warehouses. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + allocations?: Maybe>; + digitalContentUrl?: Maybe; + id: Scalars["ID"]; + isShippingRequired: Scalars["Boolean"]; + productName: Scalars["String"]; + productSku?: Maybe; + productVariantId?: Maybe; + quantity: Scalars["Int"]; + quantityFulfilled: Scalars["Int"]; + /** + * A quantity of items remaining to be fulfilled. + * + * Added in Saleor 3.1. + */ + quantityToFulfill: Scalars["Int"]; + taxRate: Scalars["Float"]; + /** The main thumbnail for the ordered product. */ + thumbnail?: Maybe; + /** Price of the order line. */ + totalPrice: TaxedMoney; + /** Product name in the customer's language */ + translatedProductName: Scalars["String"]; + /** Variant name in the customer's language */ + translatedVariantName: Scalars["String"]; + /** 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; + unitDiscountReason?: Maybe; + /** Type of the discount: fixed or percent */ + unitDiscountType?: Maybe; + /** Value of the discount. Can store fixed value or percent value */ + unitDiscountValue: Scalars["PositiveDecimal"]; + /** Price of the single item in the order line. */ + unitPrice: 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?: Maybe; + variantName: Scalars["String"]; +}; + +/** Represents order line of particular order. */ +export type OrderLineThumbnailArgs = { + size?: InputMaybe; +}; + +export type OrderLineCreateInput = { + /** Number of variant items ordered. */ + quantity: Scalars["Int"]; + /** Product variant ID. */ + variantId: Scalars["ID"]; +}; + +/** + * Deletes an order line from an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderLineDelete = { + __typename?: "OrderLineDelete"; + errors: Array; + /** A related order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; + /** An order line that was deleted. */ + orderLine?: Maybe; +}; + +/** + * Remove discount applied to the order line. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderLineDiscountRemove = { + __typename?: "OrderLineDiscountRemove"; + errors: Array; + /** Order which is related to line which has removed discount. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; + /** Order line which has removed discount. */ + orderLine?: Maybe; +}; + +/** + * Update discount for the order line. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderLineDiscountUpdate = { + __typename?: "OrderLineDiscountUpdate"; + errors: Array; + /** Order which is related to the discounted line. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; + /** Order line which has been discounted. */ + orderLine?: Maybe; +}; + +export type OrderLineInput = { + /** Number of variant items ordered. */ + quantity: Scalars["Int"]; +}; + +/** + * Updates an order line of an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderLineUpdate = { + __typename?: "OrderLineUpdate"; + errors: Array; + /** Related order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; + orderLine?: Maybe; +}; + +/** + * Create order lines for an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderLinesCreate = { + __typename?: "OrderLinesCreate"; + errors: Array; + /** Related order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; + /** List of added order lines. */ + orderLines?: Maybe>; +}; + +/** + * Mark order as manually paid. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderMarkAsPaid = { + __typename?: "OrderMarkAsPaid"; + errors: Array; + /** Order marked as paid. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** An enumeration. */ +export enum OrderOriginEnum { + Checkout = "CHECKOUT", + Draft = "DRAFT", + Reissue = "REISSUE", +} + +/** + * Refund an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderRefund = { + __typename?: "OrderRefund"; + errors: Array; + /** A refunded order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +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 = { + /** 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 = { + /** 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 = { + /** 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; +}; + +/** Order related settings from site settings. */ +export type OrderSettings = { + __typename?: "OrderSettings"; + automaticallyConfirmAllNewOrders: Scalars["Boolean"]; + automaticallyFulfillNonShippableGiftCard: Scalars["Boolean"]; +}; + +export type OrderSettingsError = { + __typename?: "OrderSettingsError"; + /** The error code. */ + code: OrderSettingsErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum OrderSettingsErrorCode { + Invalid = "INVALID", +} + +/** + * Update shop order settings. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderSettingsUpdate = { + __typename?: "OrderSettingsUpdate"; + errors: Array; + /** Order settings. */ + orderSettings?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderSettingsErrors: Array; +}; + +export type OrderSettingsUpdateInput = { + /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. */ + automaticallyConfirmAllNewOrders?: InputMaybe; + /** When enabled, all non-shippable gift card orders will be fulfilled automatically. */ + automaticallyFulfillNonShippableGiftCard?: InputMaybe; +}; + +export enum OrderSortField { + /** + * Sort orders by creation date. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + CreatedAt = "CREATED_AT", + /** + * Sort orders by creation date. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + CreationDate = "CREATION_DATE", + /** Sort orders by customer. */ + Customer = "CUSTOMER", + /** Sort orders by fulfillment status. */ + FulfillmentStatus = "FULFILLMENT_STATUS", + /** Sort orders by last modified at. */ + LastModifiedAt = "LAST_MODIFIED_AT", + /** Sort orders by number. */ + Number = "NUMBER", + /** Sort orders by payment. */ + Payment = "PAYMENT", +} + +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 { + Canceled = "CANCELED", + Draft = "DRAFT", + Fulfilled = "FULFILLED", + PartiallyFulfilled = "PARTIALLY_FULFILLED", + PartiallyReturned = "PARTIALLY_RETURNED", + Returned = "RETURNED", + Unconfirmed = "UNCONFIRMED", + Unfulfilled = "UNFULFILLED", +} + +export enum OrderStatusFilter { + Canceled = "CANCELED", + Fulfilled = "FULFILLED", + PartiallyFulfilled = "PARTIALLY_FULFILLED", + ReadyToCapture = "READY_TO_CAPTURE", + ReadyToFulfill = "READY_TO_FULFILL", + Unconfirmed = "UNCONFIRMED", + Unfulfilled = "UNFULFILLED", +} + +/** + * Updates an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderUpdate = { + __typename?: "OrderUpdate"; + errors: Array; + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type OrderUpdateInput = { + /** Billing address of the customer. */ + billingAddress?: InputMaybe; + /** Shipping address of the customer. */ + shippingAddress?: InputMaybe; + /** Email address of the customer. */ + userEmail?: InputMaybe; +}; + +/** + * 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. + */ +export type OrderUpdateShipping = { + __typename?: "OrderUpdateShipping"; + errors: Array; + /** Order with updated shipping method. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +export type OrderUpdateShippingInput = { + /** ID of the selected shipping method, pass null to remove currently assigned shipping method. */ + shippingMethod?: InputMaybe; +}; + +export type OrderUpdated = Event & { + __typename?: "OrderUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The order the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + order?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Void an order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type OrderVoid = { + __typename?: "OrderVoid"; + errors: Array; + /** A voided order. */ + order?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + orderErrors: Array; +}; + +/** A static page that can be manually added by a shop operator through the dashboard. */ +export type Page = Node & + ObjectWithMetadata & { + __typename?: "Page"; + /** List of attributes assigned to this product. */ + attributes: Array; + /** + * Content of the page. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: Maybe; + /** + * Content of the page. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `content` field instead. + */ + contentJson: Scalars["JSONString"]; + created: Scalars["DateTime"]; + id: Scalars["ID"]; + isPublished: Scalars["Boolean"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + pageType: PageType; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date. */ + publicationDate?: Maybe; + /** + * The page publication date. + * + * Added in Saleor 3.3. + */ + publishedAt?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; + slug: Scalars["String"]; + title: Scalars["String"]; + /** Returns translated page fields for the given language code. */ + translation?: Maybe; + }; + +/** A static page that can be manually added by a shop operator through the dashboard. */ +export type PageMetafieldArgs = { + key: Scalars["String"]; +}; + +/** A static page that can be manually added by a shop operator through the dashboard. */ +export type PageMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** A static page that can be manually added by a shop operator through the dashboard. */ +export type PagePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** A static page that can be manually added by a shop operator through the dashboard. */ +export type PagePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** A static page that can be manually added by a shop operator through the dashboard. */ +export type PageTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Assign attributes to a given page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type PageAttributeAssign = { + __typename?: "PageAttributeAssign"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; + /** The updated page type. */ + pageType?: Maybe; +}; + +/** + * Unassign attributes from a given page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type PageAttributeUnassign = { + __typename?: "PageAttributeUnassign"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; + /** The updated page type. */ + pageType?: Maybe; +}; + +/** + * Deletes pages. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ +export type PageBulkDelete = { + __typename?: "PageBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; +}; + +/** + * Publish pages. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ +export type PageBulkPublish = { + __typename?: "PageBulkPublish"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; +}; + +export type PageCountableConnection = { + __typename?: "PageCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type PageCountableEdge = { + __typename?: "PageCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Page; +}; + +/** + * Creates a new page. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ +export type PageCreate = { + __typename?: "PageCreate"; + errors: Array; + page?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; +}; + +export type PageCreateInput = { + /** List of attributes. */ + attributes?: InputMaybe>; + /** + * Page content. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: 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. + * + * 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; + /** Page internal name. */ + slug?: InputMaybe; + /** Page title. */ + title?: InputMaybe; +}; + +export type PageCreated = Event & { + __typename?: "PageCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The page the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + page?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Deletes a page. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ +export type PageDelete = { + __typename?: "PageDelete"; + errors: Array; + page?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; +}; + +export type PageDeleted = Event & { + __typename?: "PageDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The page the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + page?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type PageError = { + __typename?: "PageError"; + /** List of attributes IDs which causes the error. */ + attributes?: Maybe>; + /** The error code. */ + code: PageErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of attribute values IDs which causes the error. */ + values?: Maybe>; +}; + +/** An enumeration. */ +export enum PageErrorCode { + AttributeAlreadyAssigned = "ATTRIBUTE_ALREADY_ASSIGNED", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export type PageFilterInput = { + ids?: InputMaybe>; + metadata?: InputMaybe>; + pageTypes?: InputMaybe>; + search?: InputMaybe; +}; + +/** The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. */ +export type PageInfo = { + __typename?: "PageInfo"; + /** When paginating forwards, the cursor to continue. */ + endCursor?: Maybe; + /** When paginating forwards, are there more items? */ + hasNextPage: Scalars["Boolean"]; + /** When paginating backwards, are there more items? */ + hasPreviousPage: Scalars["Boolean"]; + /** When paginating backwards, the cursor to continue. */ + startCursor?: Maybe; +}; + +export type PageInput = { + /** List of attributes. */ + attributes?: InputMaybe>; + /** + * Page content. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: 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; + /** Page internal name. */ + slug?: InputMaybe; + /** Page title. */ + title?: InputMaybe; +}; + +/** + * Reorder page attribute values. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ +export type PageReorderAttributeValues = { + __typename?: "PageReorderAttributeValues"; + errors: Array; + /** Page from which attribute values are reordered. */ + page?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; +}; + +export enum PageSortField { + /** Sort pages by creation date. */ + CreationDate = "CREATION_DATE", + /** + * Sort pages by publication date. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + PublicationDate = "PUBLICATION_DATE", + /** + * Sort pages by publication date. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + PublishedAt = "PUBLISHED_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. */ + direction: OrderDirection; + /** Sort pages by the selected field. */ + field: PageSortField; +}; + +export type PageTranslatableContent = Node & { + __typename?: "PageTranslatableContent"; + /** List of page content attribute values that can be translated. */ + attributeValues: Array; + /** + * Content of the page. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: Maybe; + /** + * Content of the page. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `content` field instead. + */ + contentJson?: Maybe; + id: Scalars["ID"]; + /** + * A static page that can be manually added by a shop operator through the dashboard. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + page?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; + title: Scalars["String"]; + /** Returns translated page fields for the given language code. */ + translation?: Maybe; +}; + +export type PageTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for a page. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type PageTranslate = { + __typename?: "PageTranslate"; + errors: Array; + page?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type PageTranslation = Node & { + __typename?: "PageTranslation"; + /** + * Translated content of the page. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: Maybe; + /** + * Translated description of the page. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `content` field instead. + */ + contentJson?: Maybe; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + seoDescription?: Maybe; + seoTitle?: Maybe; + title?: Maybe; +}; + +export type PageTranslationInput = { + /** + * Translated page content. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: InputMaybe; + seoDescription?: InputMaybe; + seoTitle?: InputMaybe; + title?: InputMaybe; +}; + +/** Represents a type of page. It defines what attributes are available to pages of this type. */ +export type PageType = Node & + ObjectWithMetadata & { + __typename?: "PageType"; + /** Page attributes of that page type. */ + attributes?: Maybe>; + /** + * Attributes that can be assigned to the page type. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ + availableAttributes?: Maybe; + /** + * Whether page type has pages assigned. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ + hasPages?: Maybe; + id: Scalars["ID"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + slug: Scalars["String"]; + }; + +/** Represents a type of page. It defines what attributes are available to pages of this type. */ +export type PageTypeAvailableAttributesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Represents a type of page. It defines what attributes are available to pages of this type. */ +export type PageTypeMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a type of page. It defines what attributes are available to pages of this type. */ +export type PageTypeMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a type of page. It defines what attributes are available to pages of this type. */ +export type PageTypePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a type of page. It defines what attributes are available to pages of this type. */ +export type PageTypePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * Delete page types. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type PageTypeBulkDelete = { + __typename?: "PageTypeBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; +}; + +export type PageTypeCountableConnection = { + __typename?: "PageTypeCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type PageTypeCountableEdge = { + __typename?: "PageTypeCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: PageType; +}; + +/** + * Create a new page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type PageTypeCreate = { + __typename?: "PageTypeCreate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; + pageType?: Maybe; +}; + +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; +}; + +/** + * Delete a page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type PageTypeDelete = { + __typename?: "PageTypeDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; + pageType?: Maybe; +}; + +export type PageTypeFilterInput = { + search?: InputMaybe; +}; + +/** + * Reorder the attributes of a page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type PageTypeReorderAttributes = { + __typename?: "PageTypeReorderAttributes"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; + /** Page type from which attributes are reordered. */ + pageType?: Maybe; +}; + +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; +}; + +/** + * Update page type. + * + * Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ +export type PageTypeUpdate = { + __typename?: "PageTypeUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; + pageType?: Maybe; +}; + +export type PageTypeUpdateInput = { + /** 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; +}; + +/** + * Updates an existing page. + * + * Requires one of the following permissions: MANAGE_PAGES. + */ +export type PageUpdate = { + __typename?: "PageUpdate"; + errors: Array; + page?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pageErrors: Array; +}; + +export type PageUpdated = Event & { + __typename?: "PageUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The page the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + page?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Change the password of the logged in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type PasswordChange = { + __typename?: "PasswordChange"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** A user instance with a new password. */ + user?: Maybe; +}; + +/** Represents a payment of a given type. */ +export type Payment = Node & + ObjectWithMetadata & { + __typename?: "Payment"; + /** + * List of actions that can be performed in the current state of a payment. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + actions: Array; + /** + * Maximum amount of money that can be captured. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + availableCaptureAmount?: Maybe; + /** + * Maximum amount of money that can be refunded. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + availableRefundAmount?: Maybe; + /** Total amount captured for this payment. */ + capturedAmount?: Maybe; + /** Internal payment status. */ + chargeStatus: PaymentChargeStatusEnum; + checkout?: Maybe; + created: Scalars["DateTime"]; + /** The details of the card used for this payment. */ + creditCard?: Maybe; + /** + * IP address of the user who created the payment. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + customerIpAddress?: Maybe; + gateway: Scalars["String"]; + id: Scalars["ID"]; + isActive: Scalars["Boolean"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + modified: Scalars["DateTime"]; + order?: Maybe; + paymentMethodType: Scalars["String"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + token: Scalars["String"]; + /** Total amount of the payment. */ + total?: Maybe; + /** + * List of all transactions within this payment. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + transactions?: Maybe>; + }; + +/** Represents a payment of a given type. */ +export type PaymentMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a payment of a given type. */ +export type PaymentMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a payment of a given type. */ +export type PaymentPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a payment of a given type. */ +export type PaymentPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * Captures the authorized payment amount. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type PaymentCapture = { + __typename?: "PaymentCapture"; + errors: Array; + /** Updated payment. */ + payment?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + paymentErrors: Array; +}; + +/** An enumeration. */ +export enum PaymentChargeStatusEnum { + Cancelled = "CANCELLED", + FullyCharged = "FULLY_CHARGED", + FullyRefunded = "FULLY_REFUNDED", + NotCharged = "NOT_CHARGED", + PartiallyCharged = "PARTIALLY_CHARGED", + PartiallyRefunded = "PARTIALLY_REFUNDED", + Pending = "PENDING", + Refused = "REFUSED", +} + +/** Check payment balance. */ +export type PaymentCheckBalance = { + __typename?: "PaymentCheckBalance"; + /** Response from the gateway. */ + data?: Maybe; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + paymentErrors: Array; +}; + +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"]; +}; + +export type PaymentCountableConnection = { + __typename?: "PaymentCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type PaymentCountableEdge = { + __typename?: "PaymentCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Payment; +}; + +export type PaymentError = { + __typename?: "PaymentError"; + /** The error code. */ + code: PaymentErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of varint IDs which causes the error. */ + variants?: Maybe>; +}; + +/** An enumeration. */ +export enum PaymentErrorCode { + BalanceCheckError = "BALANCE_CHECK_ERROR", + BillingAddressNotSet = "BILLING_ADDRESS_NOT_SET", + ChannelInactive = "CHANNEL_INACTIVE", + CheckoutEmailNotSet = "CHECKOUT_EMAIL_NOT_SET", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + InvalidShippingMethod = "INVALID_SHIPPING_METHOD", + NotFound = "NOT_FOUND", + NotSupportedGateway = "NOT_SUPPORTED_GATEWAY", + NoCheckoutLines = "NO_CHECKOUT_LINES", + PartialPaymentNotAllowed = "PARTIAL_PAYMENT_NOT_ALLOWED", + PaymentError = "PAYMENT_ERROR", + Required = "REQUIRED", + ShippingAddressNotSet = "SHIPPING_ADDRESS_NOT_SET", + ShippingMethodNotSet = "SHIPPING_METHOD_NOT_SET", + UnavailableVariantInChannel = "UNAVAILABLE_VARIANT_IN_CHANNEL", + Unique = "UNIQUE", +} + +export type PaymentFilterInput = { + checkouts?: InputMaybe>; +}; + +/** Available payment gateway backend with configuration necessary to setup client. */ +export type PaymentGateway = { + __typename?: "PaymentGateway"; + /** Payment gateway client configuration. */ + config: Array; + /** Payment gateway supported currencies. */ + currencies: Array; + /** Payment gateway ID. */ + id: Scalars["ID"]; + /** Payment gateway name. */ + name: Scalars["String"]; +}; + +/** Initializes payment process when it is required by gateway. */ +export type PaymentInitialize = { + __typename?: "PaymentInitialize"; + errors: Array; + initializedPayment?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + paymentErrors: Array; +}; + +/** Server-side data generated by a payment gateway. Optional step when the payment provider requires an additional action to initialize payment session. */ +export type PaymentInitialized = { + __typename?: "PaymentInitialized"; + /** Initialized data by gateway. */ + data?: Maybe; + /** ID of a payment gateway. */ + gateway: Scalars["String"]; + /** Payment gateway name. */ + name: Scalars["String"]; +}; + +export type PaymentInput = { + /** 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; + /** + * Payment store type. + * + * Added in Saleor 3.1. + */ + storePaymentMethod?: InputMaybe; + /** Client-side generated payment token, representing customer's billing data in a secure manner. */ + token?: InputMaybe; +}; + +/** + * Refunds the captured payment amount. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type PaymentRefund = { + __typename?: "PaymentRefund"; + errors: Array; + /** Updated payment. */ + payment?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + paymentErrors: Array; +}; + +/** Represents a payment source stored for user in payment gateway, such as credit card. */ +export type PaymentSource = { + __typename?: "PaymentSource"; + /** Stored credit card details if available. */ + creditCardInfo?: Maybe; + /** Payment gateway name. */ + gateway: Scalars["String"]; + /** + * List of public metadata items. + * + * Added in Saleor 3.1. + * + * Can be accessed without permissions. + */ + metadata: Array; + /** ID of stored payment method. */ + paymentMethodId?: Maybe; +}; + +/** + * Voids the authorized payment. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ +export type PaymentVoid = { + __typename?: "PaymentVoid"; + errors: Array; + /** Updated payment. */ + payment?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + paymentErrors: Array; +}; + +/** Represents a permission object in a friendly form. */ +export type Permission = { + __typename?: "Permission"; + /** Internal code for permission. */ + code: PermissionEnum; + /** Describe action(s) allowed to do by permission. */ + name: Scalars["String"]; +}; + +/** An enumeration. */ +export enum PermissionEnum { + HandleCheckouts = "HANDLE_CHECKOUTS", + HandlePayments = "HANDLE_PAYMENTS", + ImpersonateUser = "IMPERSONATE_USER", + ManageApps = "MANAGE_APPS", + ManageChannels = "MANAGE_CHANNELS", + ManageCheckouts = "MANAGE_CHECKOUTS", + ManageDiscounts = "MANAGE_DISCOUNTS", + ManageGiftCard = "MANAGE_GIFT_CARD", + ManageMenus = "MANAGE_MENUS", + ManageObservability = "MANAGE_OBSERVABILITY", + ManageOrders = "MANAGE_ORDERS", + ManagePages = "MANAGE_PAGES", + ManagePageTypesAndAttributes = "MANAGE_PAGE_TYPES_AND_ATTRIBUTES", + ManagePlugins = "MANAGE_PLUGINS", + ManageProducts = "MANAGE_PRODUCTS", + ManageProductTypesAndAttributes = "MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES", + ManageSettings = "MANAGE_SETTINGS", + ManageShipping = "MANAGE_SHIPPING", + ManageStaff = "MANAGE_STAFF", + ManageTranslations = "MANAGE_TRANSLATIONS", + ManageUsers = "MANAGE_USERS", +} + +/** + * Create new permission group. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ +export type PermissionGroupCreate = { + __typename?: "PermissionGroupCreate"; + errors: Array; + group?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + permissionGroupErrors: Array; +}; + +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"]; +}; + +/** + * Delete permission group. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ +export type PermissionGroupDelete = { + __typename?: "PermissionGroupDelete"; + errors: Array; + group?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + permissionGroupErrors: Array; +}; + +export type PermissionGroupError = { + __typename?: "PermissionGroupError"; + /** The error code. */ + code: PermissionGroupErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of permissions which causes the error. */ + permissions?: Maybe>; + /** List of user IDs which causes the error. */ + users?: Maybe>; +}; + +/** An enumeration. */ +export enum PermissionGroupErrorCode { + AssignNonStaffMember = "ASSIGN_NON_STAFF_MEMBER", + CannotRemoveFromLastGroup = "CANNOT_REMOVE_FROM_LAST_GROUP", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + LeftNotManageablePermission = "LEFT_NOT_MANAGEABLE_PERMISSION", + OutOfScopePermission = "OUT_OF_SCOPE_PERMISSION", + OutOfScopeUser = "OUT_OF_SCOPE_USER", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export type PermissionGroupFilterInput = { + ids?: InputMaybe>; + search?: 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; +}; + +/** + * Update permission group. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ +export type PermissionGroupUpdate = { + __typename?: "PermissionGroupUpdate"; + errors: Array; + group?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + permissionGroupErrors: Array; +}; + +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>; +}; + +/** Plugin. */ +export type Plugin = { + __typename?: "Plugin"; + /** Channel-specific plugin configuration. */ + channelConfigurations: Array; + /** Description of the plugin. */ + description: Scalars["String"]; + /** Global configuration of the plugin (not channel-specific). */ + globalConfiguration?: Maybe; + /** Identifier of the plugin. */ + id: Scalars["ID"]; + /** Name of the plugin. */ + name: Scalars["String"]; +}; + +/** Stores information about a configuration of plugin. */ +export type PluginConfiguration = { + __typename?: "PluginConfiguration"; + /** Determines if plugin is active or not. */ + active: Scalars["Boolean"]; + /** The channel to which the plugin configuration is assigned to. */ + channel?: Maybe; + /** Configuration of the plugin. */ + configuration?: Maybe>; +}; + +export enum PluginConfigurationType { + Global = "GLOBAL", + PerChannel = "PER_CHANNEL", +} + +export type PluginCountableConnection = { + __typename?: "PluginCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type PluginCountableEdge = { + __typename?: "PluginCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Plugin; +}; + +export type PluginError = { + __typename?: "PluginError"; + /** The error code. */ + code: PluginErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum PluginErrorCode { + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + PluginMisconfigured = "PLUGIN_MISCONFIGURED", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export type PluginFilterInput = { + search?: InputMaybe; + statusInChannels?: InputMaybe; + type?: InputMaybe; +}; + +export enum PluginSortField { + IsActive = "IS_ACTIVE", + Name = "NAME", +} + +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; +}; + +/** + * Update plugin configuration. + * + * Requires one of the following permissions: MANAGE_PLUGINS. + */ +export type PluginUpdate = { + __typename?: "PluginUpdate"; + errors: Array; + plugin?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + pluginsErrors: Array; +}; + +export type PluginUpdateInput = { + /** Indicates whether the plugin should be enabled. */ + active?: InputMaybe; + /** Configuration of the plugin. */ + configuration?: InputMaybe>; +}; + +/** An enumeration. */ +export enum PostalCodeRuleInclusionTypeEnum { + Exclude = "EXCLUDE", + Include = "INCLUDE", +} + +/** Represents preorder settings for product variant. */ +export type PreorderData = { + __typename?: "PreorderData"; + /** Preorder end date. */ + endDate?: Maybe; + /** + * Total number of sold product variant during preorder. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + globalSoldUnits: Scalars["Int"]; + /** + * The global preorder threshold for product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + globalThreshold?: Maybe; +}; + +export type PreorderSettingsInput = { + /** The end date for preorder. */ + endDate?: InputMaybe; + /** The global threshold for preorder variant. */ + globalThreshold?: InputMaybe; +}; + +/** Represents preorder variant data for channel. */ +export type PreorderThreshold = { + __typename?: "PreorderThreshold"; + /** Preorder threshold for product variant in this channel. */ + quantity?: Maybe; + /** Number of sold product variant in this channel. */ + soldUnits: Scalars["Int"]; +}; + +export type PriceInput = { + /** Amount of money. */ + amount: Scalars["PositiveDecimal"]; + /** Currency code. */ + currency: Scalars["String"]; +}; + +export type PriceRangeInput = { + /** Price greater than or equal to. */ + gte?: InputMaybe; + /** Price less than or equal to. */ + lte?: InputMaybe; +}; + +/** Represents an individual item for sale in the storefront. */ +export type Product = Node & + ObjectWithMetadata & { + __typename?: "Product"; + /** List of attributes assigned to this product. */ + attributes: Array; + /** + * Date when product is available for purchase. + * @deprecated This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date. + */ + availableForPurchase?: Maybe; + /** Date when product is available for purchase. */ + availableForPurchaseAt?: Maybe; + category?: Maybe; + /** Channel given to retrieve this product. Also used by federation gateway to resolve this object in a federated query. */ + channel?: Maybe; + /** + * List of availability in channels for the product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + channelListings?: Maybe>; + chargeTaxes: Scalars["Boolean"]; + /** List of collections for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + collections?: Maybe>; + created: Scalars["DateTime"]; + defaultVariant?: Maybe; + /** + * Description of the product. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Description of the product. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + /** + * Get a single product image by ID. + * @deprecated This field will be removed in Saleor 4.0. Use the `mediaById` field instead. + */ + imageById?: Maybe; + /** + * List of images for the product. + * @deprecated This field will be removed in Saleor 4.0. Use the `media` field instead. + */ + images?: Maybe>; + /** Whether the product is in stock and visible or not. */ + isAvailable?: Maybe; + /** Whether the product is available for purchase. */ + isAvailableForPurchase?: Maybe; + /** List of media for the product. */ + media?: Maybe>; + /** Get a single product media by ID. */ + mediaById?: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** Lists the storefront product's pricing, the current price and discounts, only meant for displaying. */ + pricing?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + productType: ProductType; + rating?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; + slug: Scalars["String"]; + /** A type of tax. Assigned by enabled tax gateway */ + taxType?: Maybe; + /** The main thumbnail for a product. */ + thumbnail?: Maybe; + /** Returns translated product fields for the given language code. */ + translation?: Maybe; + updatedAt: Scalars["DateTime"]; + /** List of variants for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + variants?: Maybe>; + weight?: Maybe; + }; + +/** Represents an individual item for sale in the storefront. */ +export type ProductImageByIdArgs = { + id?: InputMaybe; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductIsAvailableArgs = { + address?: InputMaybe; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductMediaByIdArgs = { + id?: InputMaybe; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductPricingArgs = { + address?: InputMaybe; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductThumbnailArgs = { + size?: InputMaybe; +}; + +/** Represents an individual item for sale in the storefront. */ +export type ProductTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Assign attributes to a given product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type ProductAttributeAssign = { + __typename?: "ProductAttributeAssign"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + /** The updated product type. */ + productType?: Maybe; +}; + +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; +}; + +/** + * 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. + */ +export type ProductAttributeAssignmentUpdate = { + __typename?: "ProductAttributeAssignmentUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + /** The updated product type. */ + productType?: Maybe; +}; + +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", +} + +/** + * Un-assign attributes from a given product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type ProductAttributeUnassign = { + __typename?: "ProductAttributeUnassign"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + /** The updated product type. */ + productType?: Maybe; +}; + +/** + * Deletes products. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductBulkDelete = { + __typename?: "ProductBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +/** Represents product channel listing. */ +export type ProductChannelListing = Node & { + __typename?: "ProductChannelListing"; + /** @deprecated This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date. */ + availableForPurchase?: Maybe; + /** + * The product available for purchase date time. + * + * Added in Saleor 3.3. + */ + availableForPurchaseAt?: Maybe; + channel: Channel; + /** The price of the cheapest variant (including discounts). */ + discountedPrice?: Maybe; + id: Scalars["ID"]; + /** Whether the product is available for purchase. */ + isAvailableForPurchase?: Maybe; + isPublished: Scalars["Boolean"]; + /** + * Range of margin percentage value. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + margin?: Maybe; + /** Lists the storefront product's pricing, the current price and discounts, only meant for displaying. */ + pricing?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date. */ + publicationDate?: Maybe; + /** + * The product publication date time. + * + * Added in Saleor 3.3. + */ + publishedAt?: Maybe; + /** + * Purchase cost of product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + purchaseCost?: Maybe; + visibleInListings: Scalars["Boolean"]; +}; + +/** Represents product channel listing. */ +export type ProductChannelListingPricingArgs = { + address?: 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; + /** + * 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; + /** 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 ProductChannelListingError = { + __typename?: "ProductChannelListingError"; + /** List of attributes IDs which causes the error. */ + attributes?: Maybe>; + /** List of channels IDs which causes the error. */ + channels?: Maybe>; + /** The error code. */ + code: ProductErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of attribute values IDs which causes the error. */ + values?: Maybe>; + /** List of variants IDs which causes the error. */ + variants?: Maybe>; +}; + +/** + * Manage product's availability in channels. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductChannelListingUpdate = { + __typename?: "ProductChannelListingUpdate"; + errors: Array; + /** An updated product instance. */ + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productChannelListingErrors: Array; +}; + +export type ProductChannelListingUpdateInput = { + /** 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 ProductCountableConnection = { + __typename?: "ProductCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type ProductCountableEdge = { + __typename?: "ProductCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Product; +}; + +/** + * Creates a new product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductCreate = { + __typename?: "ProductCreate"; + errors: Array; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +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. */ + 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; + /** 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; + /** Tax rate for enabled tax gateway. */ + taxCode?: InputMaybe; + /** Weight of the Product. */ + weight?: InputMaybe; +}; + +export type ProductCreated = Event & { + __typename?: "ProductCreated"; + /** + * The category of the product. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + category?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The product the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + product?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ProductCreatedProductArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductDelete = { + __typename?: "ProductDelete"; + errors: Array; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type ProductDeleted = Event & { + __typename?: "ProductDeleted"; + /** + * The category of the product. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + category?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The product the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + product?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ProductDeletedProductArgs = { + channel?: InputMaybe; +}; + +export type ProductError = { + __typename?: "ProductError"; + /** List of attributes IDs which causes the error. */ + attributes?: Maybe>; + /** The error code. */ + code: ProductErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of attribute values IDs which causes the error. */ + values?: Maybe>; +}; + +/** An enumeration. */ +export enum ProductErrorCode { + AlreadyExists = "ALREADY_EXISTS", + AttributeAlreadyAssigned = "ATTRIBUTE_ALREADY_ASSIGNED", + AttributeCannotBeAssigned = "ATTRIBUTE_CANNOT_BE_ASSIGNED", + AttributeVariantsDisabled = "ATTRIBUTE_VARIANTS_DISABLED", + CannotManageProductWithoutVariant = "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + MediaAlreadyAssigned = "MEDIA_ALREADY_ASSIGNED", + NotFound = "NOT_FOUND", + NotProductsImage = "NOT_PRODUCTS_IMAGE", + NotProductsVariant = "NOT_PRODUCTS_VARIANT", + PreorderVariantCannotBeDeactivated = "PREORDER_VARIANT_CANNOT_BE_DEACTIVATED", + ProductNotAssignedToChannel = "PRODUCT_NOT_ASSIGNED_TO_CHANNEL", + ProductWithoutCategory = "PRODUCT_WITHOUT_CATEGORY", + Required = "REQUIRED", + Unique = "UNIQUE", + UnsupportedMediaProvider = "UNSUPPORTED_MEDIA_PROVIDER", + VariantNoDigitalContent = "VARIANT_NO_DIGITAL_CONTENT", +} + +export enum ProductFieldEnum { + Category = "CATEGORY", + ChargeTaxes = "CHARGE_TAXES", + Collections = "COLLECTIONS", + Description = "DESCRIPTION", + Name = "NAME", + ProductMedia = "PRODUCT_MEDIA", + ProductType = "PRODUCT_TYPE", + ProductWeight = "PRODUCT_WEIGHT", + VariantId = "VARIANT_ID", + VariantMedia = "VARIANT_MEDIA", + VariantSku = "VARIANT_SKU", + VariantWeight = "VARIANT_WEIGHT", +} + +export type ProductFilterInput = { + attributes?: 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>; + giftCard?: InputMaybe; + hasCategory?: InputMaybe; + hasPreorderedVariants?: InputMaybe; + ids?: InputMaybe>; + isPublished?: InputMaybe; + metadata?: InputMaybe>; + minimalPrice?: InputMaybe; + price?: InputMaybe; + productTypes?: InputMaybe>; + search?: InputMaybe; + stockAvailability?: InputMaybe; + stocks?: InputMaybe; + updatedAt?: InputMaybe; +}; + +/** Represents a product image. */ +export type ProductImage = { + __typename?: "ProductImage"; + /** The alt text of the image. */ + alt?: Maybe; + /** The ID of the image. */ + 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?: Maybe; + /** The URL of the image. */ + url: Scalars["String"]; +}; + +/** Represents a product image. */ +export type ProductImageUrlArgs = { + size?: 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. */ + 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; + /** Defines the product rating value. */ + rating?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Product slug. */ + slug?: InputMaybe; + /** Tax rate for enabled tax gateway. */ + taxCode?: InputMaybe; + /** Weight of the Product. */ + weight?: InputMaybe; +}; + +/** Represents a product media. */ +export type ProductMedia = Node & { + __typename?: "ProductMedia"; + alt: Scalars["String"]; + id: Scalars["ID"]; + oembedData: Scalars["JSONString"]; + sortOrder?: Maybe; + type: ProductMediaType; + /** The URL of the media. */ + url: Scalars["String"]; +}; + +/** Represents a product media. */ +export type ProductMediaUrlArgs = { + size?: InputMaybe; +}; + +/** + * Deletes product media. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductMediaBulkDelete = { + __typename?: "ProductMediaBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +/** + * 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. + */ +export type ProductMediaCreate = { + __typename?: "ProductMediaCreate"; + errors: Array; + media?: Maybe; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type ProductMediaCreateInput = { + /** 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; + /** ID of an product. */ + product: Scalars["ID"]; +}; + +/** + * Deletes a product media. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductMediaDelete = { + __typename?: "ProductMediaDelete"; + errors: Array; + media?: Maybe; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +/** + * Changes ordering of the product media. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductMediaReorder = { + __typename?: "ProductMediaReorder"; + errors: Array; + media?: Maybe>; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +/** An enumeration. */ +export enum ProductMediaType { + Image = "IMAGE", + Video = "VIDEO", +} + +/** + * Updates a product media. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductMediaUpdate = { + __typename?: "ProductMediaUpdate"; + errors: Array; + media?: Maybe; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type ProductMediaUpdateInput = { + /** Alt text for a product media. */ + alt?: InputMaybe; +}; + +export type ProductOrder = { + /** + * 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; + /** 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 update date. */ + Date = "DATE", + /** Sort products by update date. */ + LastModified = "LAST_MODIFIED", + /** Sort products by update date. */ + LastModifiedAt = "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. + */ + MinimalPrice = "MINIMAL_PRICE", + /** Sort products by name. */ + Name = "NAME", + /** + * Sort products by price. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + Price = "PRICE", + /** + * Sort products by publication date. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + PublicationDate = "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. + */ + PublishedAt = "PUBLISHED_AT", + /** 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 type. */ + Type = "TYPE", +} + +/** Represents availability of a product in the storefront. */ +export type ProductPricingInfo = { + __typename?: "ProductPricingInfo"; + /** The discount amount if in sale (null otherwise). */ + discount?: Maybe; + /** The discount amount in the local currency. */ + discountLocalCurrency?: Maybe; + /** Whether it is in sale or not. */ + onSale?: Maybe; + /** The discounted price range of the product variants. */ + priceRange?: Maybe; + /** The discounted price range of the product variants in the local currency. */ + priceRangeLocalCurrency?: Maybe; + /** The undiscounted price range of the product variants. */ + priceRangeUndiscounted?: Maybe; +}; + +/** + * Reorder product attribute values. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductReorderAttributeValues = { + __typename?: "ProductReorderAttributeValues"; + errors: Array; + /** Product from which attribute values are reordered. */ + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type ProductStockFilterInput = { + quantity?: InputMaybe; + warehouseIds?: InputMaybe>; +}; + +export type ProductTranslatableContent = Node & { + __typename?: "ProductTranslatableContent"; + /** List of product attribute values that can be translated. */ + attributeValues: Array; + /** + * Description of the product. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Description of the product. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + name: Scalars["String"]; + /** + * Represents an individual item for sale in the storefront. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + product?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; + /** Returns translated product fields for the given language code. */ + translation?: Maybe; +}; + +export type ProductTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for a product. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type ProductTranslate = { + __typename?: "ProductTranslate"; + errors: Array; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type ProductTranslation = Node & { + __typename?: "ProductTranslation"; + /** + * Translated description of the product. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * Translated description of the product. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson?: Maybe; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name?: Maybe; + seoDescription?: Maybe; + seoTitle?: Maybe; +}; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductType = Node & + ObjectWithMetadata & { + __typename?: "ProductType"; + /** + * Variant attributes of that product type with attached variant selection. + * + * Added in Saleor 3.1. + */ + assignedVariantAttributes?: Maybe>; + /** + * List of attributes which can be assigned to this product type. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + availableAttributes?: Maybe; + hasVariants: Scalars["Boolean"]; + id: Scalars["ID"]; + isDigital: Scalars["Boolean"]; + isShippingRequired: Scalars["Boolean"]; + /** The product type kind. */ + kind: ProductTypeKindEnum; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Product attributes of that product type. */ + productAttributes?: Maybe>; + /** + * List of products of this type. + * @deprecated This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter. + */ + products?: Maybe; + slug: Scalars["String"]; + /** A type of tax. Assigned by enabled tax gateway */ + taxType?: Maybe; + /** + * Variant attributes of that product type. + * @deprecated This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead. + */ + variantAttributes?: Maybe>; + weight?: Maybe; + }; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductTypeAssignedVariantAttributesArgs = { + variantSelection?: InputMaybe; +}; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductTypeAvailableAttributesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductTypeMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductTypeMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductTypePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductTypePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductTypeProductsArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Represents a type of product. It defines what attributes are available to products of this type. */ +export type ProductTypeVariantAttributesArgs = { + variantSelection?: InputMaybe; +}; + +/** + * Deletes product types. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type ProductTypeBulkDelete = { + __typename?: "ProductTypeBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export enum ProductTypeConfigurable { + Configurable = "CONFIGURABLE", + Simple = "SIMPLE", +} + +export type ProductTypeCountableConnection = { + __typename?: "ProductTypeCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type ProductTypeCountableEdge = { + __typename?: "ProductTypeCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: ProductType; +}; + +/** + * Creates a new product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type ProductTypeCreate = { + __typename?: "ProductTypeCreate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + productType?: Maybe; +}; + +/** + * Deletes a product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type ProductTypeDelete = { + __typename?: "ProductTypeDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + productType?: Maybe; +}; + +export enum ProductTypeEnum { + Digital = "DIGITAL", + Shippable = "SHIPPABLE", +} + +export type ProductTypeFilterInput = { + configurable?: InputMaybe; + ids?: InputMaybe>; + kind?: InputMaybe; + metadata?: InputMaybe>; + productType?: InputMaybe; + search?: InputMaybe; +}; + +export type ProductTypeInput = { + /** 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; + /** Determines if products are digital. */ + isDigital?: 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; + /** Tax rate for enabled tax gateway. */ + taxCode?: 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 { + GiftCard = "GIFT_CARD", + Normal = "NORMAL", +} + +/** + * Reorder the attributes of a product type. + * + * Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + */ +export type ProductTypeReorderAttributes = { + __typename?: "ProductTypeReorderAttributes"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + /** Product type from which attributes are reordered. */ + productType?: Maybe; +}; + +export enum ProductTypeSortField { + /** Sort products by type. */ + Digital = "DIGITAL", + /** Sort products by name. */ + Name = "NAME", + /** Sort products by shipping. */ + ShippingRequired = "SHIPPING_REQUIRED", +} + +export type 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. + */ +export type ProductTypeUpdate = { + __typename?: "ProductTypeUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + productType?: Maybe; +}; + +/** + * Updates an existing product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductUpdate = { + __typename?: "ProductUpdate"; + errors: Array; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export type ProductUpdated = Event & { + __typename?: "ProductUpdated"; + /** + * The category of the product. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + category?: Maybe; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The product the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + product?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ProductUpdatedProductArgs = { + channel?: InputMaybe; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariant = Node & + ObjectWithMetadata & { + __typename?: "ProductVariant"; + /** List of attributes assigned to this variant. */ + attributes: Array; + /** Channel given to retrieve this product variant. Also used by federation gateway to resolve this object in a federated query. */ + channel?: Maybe; + /** + * List of price information in channels for the product. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + channelListings?: Maybe>; + created: Scalars["DateTime"]; + /** + * Digital content for the product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + digitalContent?: Maybe; + id: Scalars["ID"]; + /** + * List of images for the product variant. + * @deprecated This field will be removed in Saleor 4.0. Use the `media` field instead. + */ + images?: Maybe>; + /** Gross margin percentage value. */ + margin?: Maybe; + /** List of media for the product variant. */ + media?: Maybe>; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** + * 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?: Maybe; + /** Lists the storefront variant's pricing, the current price and discounts, only meant for displaying. */ + pricing?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + product: Product; + /** 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?: Maybe; + quantityLimitPerCustomer?: Maybe; + /** + * Total quantity ordered. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + quantityOrdered?: Maybe; + /** + * 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?: Maybe; + sku?: Maybe; + /** + * Stocks for the product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + stocks?: Maybe>; + trackInventory: Scalars["Boolean"]; + /** Returns translated product variant fields for the given language code. */ + translation?: Maybe; + updatedAt: Scalars["DateTime"]; + weight?: Maybe; + }; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantAttributesArgs = { + variantSelection?: InputMaybe; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantPricingArgs = { + address?: InputMaybe; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantQuantityAvailableArgs = { + address?: InputMaybe; + countryCode?: InputMaybe; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantRevenueArgs = { + period?: InputMaybe; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantStocksArgs = { + address?: InputMaybe; + countryCode?: InputMaybe; +}; + +/** Represents a version of a product such as different size or color. */ +export type ProductVariantTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +export type ProductVariantBackInStock = Event & { + __typename?: "ProductVariantBackInStock"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The product variant the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariant?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; + /** + * Look up a warehouse. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + warehouse?: Maybe; +}; + +export type ProductVariantBackInStockProductVariantArgs = { + channel?: InputMaybe; +}; + +/** + * Creates product variants for a given product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantBulkCreate = { + __typename?: "ProductVariantBulkCreate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + bulkProductErrors: Array; + /** Returns how many objects were created. */ + count: Scalars["Int"]; + errors: Array; + /** List of the created variants. */ + productVariants: Array; +}; + +export type ProductVariantBulkCreateInput = { + /** List of attributes specific to this variant. */ + attributes: Array; + /** List of prices assigned to channels. */ + channelListings?: 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; + /** 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; +}; + +/** + * Deletes product variants. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantBulkDelete = { + __typename?: "ProductVariantBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +/** Represents product varaint channel listing. */ +export type ProductVariantChannelListing = Node & { + __typename?: "ProductVariantChannelListing"; + channel: Channel; + /** Cost price of the variant. */ + costPrice?: Maybe; + id: Scalars["ID"]; + /** + * Gross margin percentage value. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + margin?: Maybe; + /** + * 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?: Maybe; + price?: Maybe; +}; + +export type ProductVariantChannelListingAddInput = { + /** ID of a channel. */ + channelId: Scalars["ID"]; + /** 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"]; +}; + +/** + * Manage product variant prices in channels. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantChannelListingUpdate = { + __typename?: "ProductVariantChannelListingUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productChannelListingErrors: Array; + /** An updated product variant instance. */ + variant?: Maybe; +}; + +export type ProductVariantCountableConnection = { + __typename?: "ProductVariantCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type ProductVariantCountableEdge = { + __typename?: "ProductVariantCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: ProductVariant; +}; + +/** + * Creates a new variant for a product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantCreate = { + __typename?: "ProductVariantCreate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + productVariant?: Maybe; +}; + +export type ProductVariantCreateInput = { + /** List of attributes specific to this variant. */ + attributes: Array; + /** + * 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; + /** 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. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + 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 ProductVariantCreated = Event & { + __typename?: "ProductVariantCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The product variant the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariant?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ProductVariantCreatedProductVariantArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantDelete = { + __typename?: "ProductVariantDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + productVariant?: Maybe; +}; + +export type ProductVariantDeleted = Event & { + __typename?: "ProductVariantDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The product variant the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariant?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ProductVariantDeletedProductVariantArgs = { + channel?: InputMaybe; +}; + +export type ProductVariantFilterInput = { + isPreorder?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; + sku?: InputMaybe>; + updatedAt?: InputMaybe; +}; + +export type ProductVariantInput = { + /** List of attributes specific to this variant. */ + attributes?: 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; + /** 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 type ProductVariantOutOfStock = Event & { + __typename?: "ProductVariantOutOfStock"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The product variant the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariant?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; + /** + * Look up a warehouse. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + warehouse?: Maybe; +}; + +export type ProductVariantOutOfStockProductVariantArgs = { + channel?: InputMaybe; +}; + +/** + * 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. + */ +export type ProductVariantPreorderDeactivate = { + __typename?: "ProductVariantPreorderDeactivate"; + errors: Array; + /** Product variant with ended preorder. */ + productVariant?: Maybe; +}; + +/** + * 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. + */ +export type ProductVariantReorder = { + __typename?: "ProductVariantReorder"; + errors: Array; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +/** + * Reorder product variant attribute values. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantReorderAttributeValues = { + __typename?: "ProductVariantReorderAttributeValues"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + /** Product variant from which attribute values are reordered. */ + productVariant?: Maybe; +}; + +/** + * Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantSetDefault = { + __typename?: "ProductVariantSetDefault"; + errors: Array; + product?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; +}; + +export enum ProductVariantSortField { + /** Sort products variants by last modified at. */ + LastModifiedAt = "LAST_MODIFIED_AT", +} + +export type 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. + */ +export type ProductVariantStocksCreate = { + __typename?: "ProductVariantStocksCreate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + bulkStockErrors: Array; + errors: Array; + /** Updated product variant. */ + productVariant?: Maybe; +}; + +/** + * Delete stocks from product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantStocksDelete = { + __typename?: "ProductVariantStocksDelete"; + errors: Array; + /** Updated product variant. */ + productVariant?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + stockErrors: Array; +}; + +/** + * Update stocks for product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantStocksUpdate = { + __typename?: "ProductVariantStocksUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + bulkStockErrors: Array; + errors: Array; + /** Updated product variant. */ + productVariant?: Maybe; +}; + +export type ProductVariantTranslatableContent = Node & { + __typename?: "ProductVariantTranslatableContent"; + /** List of product variant attribute values that can be translated. */ + attributeValues: Array; + id: Scalars["ID"]; + name: Scalars["String"]; + /** + * Represents a version of a product such as different size or color. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + productVariant?: Maybe; + /** Returns translated product variant fields for the given language code. */ + translation?: Maybe; +}; + +export type ProductVariantTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for a product variant. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type ProductVariantTranslate = { + __typename?: "ProductVariantTranslate"; + errors: Array; + productVariant?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type ProductVariantTranslation = Node & { + __typename?: "ProductVariantTranslation"; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name: Scalars["String"]; +}; + +/** + * Updates an existing variant for product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type ProductVariantUpdate = { + __typename?: "ProductVariantUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + productVariant?: Maybe; +}; + +export type ProductVariantUpdated = Event & { + __typename?: "ProductVariantUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** + * The product variant the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariant?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ProductVariantUpdatedProductVariantArgs = { + channel?: 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 Query = { + __typename?: "Query"; + _entities?: Maybe>>; + _service?: Maybe<_Service>; + /** Look up an address by ID. */ + address?: Maybe
; + /** Returns address validation rules. */ + addressValidationRules?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * List of the apps. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, MANAGE_APPS. + */ + apps?: Maybe; + /** + * List of all apps installations + * + * Requires one of the following permissions: MANAGE_APPS. + */ + appsInstallations: Array; + /** Look up an attribute by ID. */ + attribute?: Maybe; + /** List of the shop's attributes. */ + attributes?: Maybe; + /** List of the shop's categories. */ + categories?: Maybe; + /** Look up a category by ID or slug. */ + category?: Maybe; + /** + * Look up a channel by ID. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + channel?: Maybe; + /** + * List of all channels. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + channels?: Maybe>; + /** Look up a checkout by token and slug of channel. */ + checkout?: Maybe; + /** + * List of checkout lines. + * + * Requires one of the following permissions: MANAGE_CHECKOUTS. + */ + checkoutLines?: Maybe; + /** + * List of checkouts. + * + * Requires one of the following permissions: MANAGE_CHECKOUTS. + */ + checkouts?: Maybe; + /** Look up a collection by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + collection?: Maybe; + /** List of the shop's collections. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + collections?: Maybe; + /** + * List of the shop's customers. + * + * Requires one of the following permissions: MANAGE_ORDERS, MANAGE_USERS. + */ + customers?: Maybe; + /** + * Look up digital content by ID. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + digitalContent?: Maybe; + /** + * List of digital content. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + digitalContents?: Maybe; + /** + * List of draft orders. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + draftOrders?: Maybe; + /** + * Look up a export file by ID. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + exportFile?: Maybe; + /** + * List of export files. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + exportFiles?: Maybe; + /** + * Look up a gift card by ID. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + giftCard?: Maybe; + /** + * 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: Array; + /** + * Gift card related settings from site settings. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + giftCardSettings: GiftCardSettings; + /** + * 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?: Maybe; + /** + * List of gift cards. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + giftCards?: Maybe; + /** + * 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?: Maybe; + /** Return the currently authenticated user. */ + me?: Maybe; + /** Look up a navigation menu by ID or name. */ + menu?: Maybe; + /** Look up a menu item by ID. */ + menuItem?: Maybe; + /** List of the storefronts's menu items. */ + menuItems?: Maybe; + /** List of the storefront's menus. */ + menus?: Maybe; + /** Look up an order by ID. */ + order?: Maybe; + /** + * Look up an order by token. + * @deprecated This field will be removed in Saleor 4.0. + */ + orderByToken?: Maybe; + /** + * Order related settings from site settings. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orderSettings?: Maybe; + /** + * List of orders. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + orders?: Maybe; + /** + * Return the total sales amount from a specific period. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + ordersTotal?: Maybe; + /** Look up a page by ID or slug. */ + page?: Maybe; + /** Look up a page type by ID. */ + pageType?: Maybe; + /** List of the page types. */ + pageTypes?: Maybe; + /** List of the shop's pages. */ + pages?: Maybe; + /** + * Look up a payment by ID. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + payment?: Maybe; + /** + * List of payments. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + payments?: Maybe; + /** + * Look up permission group by ID. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + permissionGroup?: Maybe; + /** + * List of permission groups. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + permissionGroups?: Maybe; + /** + * Look up a plugin by ID. + * + * Requires one of the following permissions: MANAGE_PLUGINS. + */ + plugin?: Maybe; + /** + * List of plugins. + * + * Requires one of the following permissions: MANAGE_PLUGINS. + */ + plugins?: Maybe; + /** Look up a product by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + product?: Maybe; + /** Look up a product type by ID. */ + productType?: Maybe; + /** List of the shop's product types. */ + productTypes?: Maybe; + /** 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?: Maybe; + /** List of product variants. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + productVariants?: Maybe; + /** List of the shop's products. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + products?: Maybe; + /** + * List of top selling products. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + reportProductSales?: Maybe; + /** + * Look up a sale by ID. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + sale?: Maybe; + /** + * List of the shop's sales. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + sales?: Maybe; + /** + * Look up a shipping zone by ID. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingZone?: Maybe; + /** + * List of the shop's shipping zones. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + shippingZones?: Maybe; + /** Return information about the shop. */ + shop: Shop; + /** + * List of the shop's staff users. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ + staffUsers?: Maybe; + /** + * Look up a stock by ID + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + stock?: Maybe; + /** + * List of stocks. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + stocks?: Maybe; + /** List of all tax rates available from tax gateway. */ + taxTypes?: Maybe>; + /** + * Lookup a translatable item by ID. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + translation?: Maybe; + /** + * Returns a list of all translatable items of a given kind. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ + translations?: Maybe; + /** + * Look up a user by ID or email address. + * + * Requires one of the following permissions: MANAGE_STAFF, MANAGE_USERS, MANAGE_ORDERS. + */ + user?: Maybe; + /** + * Look up a voucher by ID. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucher?: Maybe; + /** + * List of the shop's vouchers. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + vouchers?: Maybe; + /** + * Look up a warehouse by ID. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS, MANAGE_SHIPPING. + */ + warehouse?: Maybe; + /** + * List of warehouses. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS, MANAGE_SHIPPING. + */ + warehouses?: Maybe; + /** Look up a webhook by ID. Requires one of the following permissions: MANAGE_APPS, OWNER. */ + webhook?: Maybe; + /** + * List of all available webhook events. + * + * Requires one of the following permissions: MANAGE_APPS. + * @deprecated This field will be removed in Saleor 4.0. Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types. + */ + webhookEvents?: Maybe>; + /** 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?: Maybe; +}; + +export type Query_EntitiesArgs = { + representations?: InputMaybe>>; +}; + +export type QueryAddressArgs = { + id: Scalars["ID"]; +}; + +export type QueryAddressValidationRulesArgs = { + city?: InputMaybe; + cityArea?: InputMaybe; + countryArea?: InputMaybe; + countryCode: CountryCode; +}; + +export type QueryAppArgs = { + id?: InputMaybe; +}; + +export type QueryAppExtensionArgs = { + id: Scalars["ID"]; +}; + +export type QueryAppExtensionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type QueryAppsArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryAttributeArgs = { + id?: InputMaybe; + slug?: InputMaybe; +}; + +export type QueryAttributesArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryCategoriesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + level?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryCategoryArgs = { + id?: InputMaybe; + slug?: InputMaybe; +}; + +export type QueryChannelArgs = { + id?: InputMaybe; +}; + +export type QueryCheckoutArgs = { + id?: InputMaybe; + token?: InputMaybe; +}; + +export type QueryCheckoutLinesArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type QueryCheckoutsArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryCollectionArgs = { + channel?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; +}; + +export type QueryCollectionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryCustomersArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryDigitalContentArgs = { + id: Scalars["ID"]; +}; + +export type QueryDigitalContentsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type QueryDraftOrdersArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryExportFileArgs = { + id: Scalars["ID"]; +}; + +export type QueryExportFilesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryGiftCardArgs = { + id: Scalars["ID"]; +}; + +export type QueryGiftCardTagsArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type QueryGiftCardsArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryHomepageEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type QueryMenuArgs = { + channel?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; +}; + +export type QueryMenuItemArgs = { + channel?: InputMaybe; + id: Scalars["ID"]; +}; + +export type QueryMenuItemsArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryMenusArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryOrderArgs = { + id: Scalars["ID"]; +}; + +export type QueryOrderByTokenArgs = { + token: Scalars["UUID"]; +}; + +export type QueryOrdersArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryOrdersTotalArgs = { + channel?: InputMaybe; + period?: InputMaybe; +}; + +export type QueryPageArgs = { + id?: InputMaybe; + slug?: InputMaybe; +}; + +export type QueryPageTypeArgs = { + id: Scalars["ID"]; +}; + +export type QueryPageTypesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryPagesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryPaymentArgs = { + id: Scalars["ID"]; +}; + +export type QueryPaymentsArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type QueryPermissionGroupArgs = { + id: Scalars["ID"]; +}; + +export type QueryPermissionGroupsArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryPluginArgs = { + id: Scalars["ID"]; +}; + +export type QueryPluginsArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryProductArgs = { + channel?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; +}; + +export type QueryProductTypeArgs = { + id: Scalars["ID"]; +}; + +export type QueryProductTypesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryProductVariantArgs = { + channel?: InputMaybe; + id?: InputMaybe; + sku?: InputMaybe; +}; + +export type QueryProductVariantsArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + ids?: InputMaybe>; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryProductsArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryReportProductSalesArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel: Scalars["String"]; + first?: InputMaybe; + last?: InputMaybe; + period: ReportingPeriod; +}; + +export type QuerySaleArgs = { + channel?: InputMaybe; + id: Scalars["ID"]; +}; + +export type QuerySalesArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + query?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryShippingZoneArgs = { + channel?: InputMaybe; + id: Scalars["ID"]; +}; + +export type QueryShippingZonesArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type QueryStaffUsersArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryStockArgs = { + id: Scalars["ID"]; +}; + +export type QueryStocksArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type QueryTranslationArgs = { + id: Scalars["ID"]; + kind: TranslatableKinds; +}; + +export type QueryTranslationsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + kind: TranslatableKinds; + last?: InputMaybe; +}; + +export type QueryUserArgs = { + email?: InputMaybe; + id?: InputMaybe; +}; + +export type QueryVoucherArgs = { + channel?: InputMaybe; + id: Scalars["ID"]; +}; + +export type QueryVouchersArgs = { + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + query?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryWarehouseArgs = { + id: Scalars["ID"]; +}; + +export type QueryWarehousesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +export type QueryWebhookArgs = { + id: Scalars["ID"]; +}; + +export type QueryWebhookSamplePayloadArgs = { + eventType: WebhookSampleEventTypeEnum; +}; + +/** Represents a reduced VAT rate for a particular type of goods. */ +export type ReducedRate = { + __typename?: "ReducedRate"; + /** Reduced VAT rate in percent. */ + rate: Scalars["Float"]; + /** A type of goods. */ + rateType: Scalars["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. */ +export type RefreshToken = { + __typename?: "RefreshToken"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** JWT token, required to authenticate. */ + token?: Maybe; + /** A user instance. */ + user?: Maybe; +}; + +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 { + ThisMonth = "THIS_MONTH", + Today = "TODAY", +} + +/** + * Request email change of the logged in user. + * + * Requires one of the following permissions: AUTHENTICATED_USER. + */ +export type RequestEmailChange = { + __typename?: "RequestEmailChange"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** A user instance. */ + user?: Maybe; +}; + +/** Sends an email with the account password modification link. */ +export type RequestPasswordReset = { + __typename?: "RequestPasswordReset"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type Sale = Node & + ObjectWithMetadata & { + __typename?: "Sale"; + /** List of categories this sale applies to. */ + categories?: Maybe; + /** + * List of channels available for the sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + channelListings?: Maybe>; + /** + * List of collections this sale applies to. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + collections?: Maybe; + created: Scalars["DateTime"]; + /** Currency code for sale. */ + currency?: Maybe; + /** Sale value. */ + discountValue?: Maybe; + endDate?: Maybe; + id: Scalars["ID"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * List of products this sale applies to. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + products?: Maybe; + startDate: Scalars["DateTime"]; + /** Returns translated sale fields for the given language code. */ + translation?: Maybe; + type: SaleType; + updatedAt: Scalars["DateTime"]; + /** + * List of product variants this sale applies to. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + variants?: Maybe; + }; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SaleCategoriesArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SaleCollectionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SaleMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SaleMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SalePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SalePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SaleProductsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SaleTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ +export type SaleVariantsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** + * Adds products, categories, collections to a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type SaleAddCatalogues = { + __typename?: "SaleAddCatalogues"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + /** Sale of which catalogue IDs will be modified. */ + sale?: Maybe; +}; + +/** + * Deletes sales. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type SaleBulkDelete = { + __typename?: "SaleBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; +}; + +/** Represents sale channel listing. */ +export type SaleChannelListing = Node & { + __typename?: "SaleChannelListing"; + channel: Channel; + currency: Scalars["String"]; + discountValue: Scalars["Float"]; + id: Scalars["ID"]; +}; + +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>; +}; + +/** + * Manage sale's availability in channels. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type SaleChannelListingUpdate = { + __typename?: "SaleChannelListingUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + /** An updated sale instance. */ + sale?: Maybe; +}; + +export type SaleCountableConnection = { + __typename?: "SaleCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type SaleCountableEdge = { + __typename?: "SaleCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Sale; +}; + +/** + * Creates a new sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type SaleCreate = { + __typename?: "SaleCreate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + sale?: Maybe; +}; + +export type SaleCreated = Event & { + __typename?: "SaleCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The sale the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + sale?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type SaleCreatedSaleArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type SaleDelete = { + __typename?: "SaleDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + sale?: Maybe; +}; + +export type SaleDeleted = Event & { + __typename?: "SaleDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The sale the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + sale?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type SaleDeletedSaleArgs = { + channel?: InputMaybe; +}; + +export type SaleFilterInput = { + metadata?: InputMaybe>; + saleType?: InputMaybe; + search?: InputMaybe; + started?: InputMaybe; + status?: InputMaybe>; + updatedAt?: InputMaybe; +}; + +export type SaleInput = { + /** Categories related to the discount. */ + categories?: InputMaybe>; + /** Collections related to the discount. */ + collections?: 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>; +}; + +/** + * Removes products, categories, collections from a sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type SaleRemoveCatalogues = { + __typename?: "SaleRemoveCatalogues"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + /** Sale of which catalogue IDs will be modified. */ + sale?: Maybe; +}; + +export enum SaleSortField { + /** Sort sales by created at. */ + CreatedAt = "CREATED_AT", + /** Sort sales by end date. */ + EndDate = "END_DATE", + /** Sort sales by last modified at. */ + LastModifiedAt = "LAST_MODIFIED_AT", + /** Sort sales by name. */ + Name = "NAME", + /** Sort sales by start date. */ + StartDate = "START_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", +} + +export type SaleSortingInput = { + /** + * 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 products. */ + direction: OrderDirection; + /** Sort sales by the selected field. */ + field: SaleSortField; +}; + +export type SaleTranslatableContent = Node & { + __typename?: "SaleTranslatableContent"; + id: Scalars["ID"]; + name: Scalars["String"]; + /** + * Sales allow creating discounts for categories, collections or products and are visible to all the customers. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + sale?: Maybe; + /** Returns translated sale fields for the given language code. */ + translation?: Maybe; +}; + +export type SaleTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for a sale. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type SaleTranslate = { + __typename?: "SaleTranslate"; + errors: Array; + sale?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type SaleTranslation = Node & { + __typename?: "SaleTranslation"; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name?: Maybe; +}; + +export enum SaleType { + Fixed = "FIXED", + Percentage = "PERCENTAGE", +} + +/** + * Updates a sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type SaleUpdate = { + __typename?: "SaleUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + sale?: Maybe; +}; + +export type SaleUpdated = Event & { + __typename?: "SaleUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The sale the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + sale?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type SaleUpdatedSaleArgs = { + channel?: InputMaybe; +}; + +/** Represents a custom attribute. */ +export type SelectedAttribute = { + __typename?: "SelectedAttribute"; + /** Name of an attribute displayed in the interface. */ + attribute: Attribute; + /** Values of an attribute. */ + values: Array; +}; + +export type SeoInput = { + /** SEO description. */ + description?: InputMaybe; + /** SEO title. */ + title?: InputMaybe; +}; + +/** Sets the user's password from the token sent by email using the RequestPasswordReset mutation. */ +export type SetPassword = { + __typename?: "SetPassword"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + /** CSRF token required to re-generate access token. */ + csrfToken?: Maybe; + errors: Array; + /** JWT refresh token, required to re-generate access token. */ + refreshToken?: Maybe; + /** JWT token, required to authenticate. */ + token?: Maybe; + /** A user instance. */ + user?: Maybe; +}; + +export type ShippingError = { + __typename?: "ShippingError"; + /** List of channels IDs which causes the error. */ + channels?: Maybe>; + /** The error code. */ + code: ShippingErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; + /** List of warehouse IDs which causes the error. */ + warehouses?: Maybe>; +}; + +/** An enumeration. */ +export enum ShippingErrorCode { + AlreadyExists = "ALREADY_EXISTS", + DuplicatedInputItem = "DUPLICATED_INPUT_ITEM", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + MaxLessThanMin = "MAX_LESS_THAN_MIN", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +/** Shipping methods that can be used as means of shipping for orders and checkouts. */ +export type ShippingMethod = Node & + ObjectWithMetadata & { + __typename?: "ShippingMethod"; + /** Describes if this shipping method is active and can be selected. */ + active: Scalars["Boolean"]; + /** + * Shipping method description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** Unique ID of ShippingMethod available for Order. */ + id: Scalars["ID"]; + /** Maximum delivery days for this shipping method. */ + maximumDeliveryDays?: Maybe; + /** Maximum order price for this shipping method. */ + maximumOrderPrice?: Maybe; + /** + * Maximum order weight for this shipping method. + * @deprecated This field will be removed in Saleor 4.0. + */ + maximumOrderWeight?: Maybe; + /** Message connected to this shipping method. */ + message?: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Minimum delivery days for this shipping method. */ + minimumDeliveryDays?: Maybe; + /** Minimal order price for this shipping method. */ + minimumOrderPrice?: Maybe; + /** + * Minimum order weight for this shipping method. + * @deprecated This field will be removed in Saleor 4.0. + */ + minimumOrderWeight?: Maybe; + /** Shipping method name. */ + name: Scalars["String"]; + /** The price of selected shipping method. */ + price: Money; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Returns translated shipping method fields for the given language code. */ + translation?: Maybe; + /** + * Type of the shipping method. + * @deprecated This field will be removed in Saleor 4.0. + */ + type?: Maybe; + }; + +/** Shipping methods that can be used as means of shipping for orders and checkouts. */ +export type ShippingMethodMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Shipping methods that can be used as means of shipping for orders and checkouts. */ +export type ShippingMethodMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Shipping methods that can be used as means of shipping for orders and checkouts. */ +export type ShippingMethodPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Shipping methods that can be used as means of shipping for orders and checkouts. */ +export type ShippingMethodPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Shipping methods that can be used as means of shipping for orders and checkouts. */ +export type ShippingMethodTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** Represents shipping method channel listing. */ +export type ShippingMethodChannelListing = Node & { + __typename?: "ShippingMethodChannelListing"; + channel: Channel; + id: Scalars["ID"]; + maximumOrderPrice?: Maybe; + minimumOrderPrice?: Maybe; + price?: Maybe; +}; + +export type ShippingMethodChannelListingAddInput = { + /** ID of a channel. */ + channelId: Scalars["ID"]; + /** 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 = { + /** 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>; +}; + +/** + * Manage shipping method's availability in channels. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingMethodChannelListingUpdate = { + __typename?: "ShippingMethodChannelListingUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + /** An updated shipping method instance. */ + shippingMethod?: Maybe; +}; + +/** Represents shipping method postal code rule. */ +export type ShippingMethodPostalCodeRule = Node & { + __typename?: "ShippingMethodPostalCodeRule"; + /** End address range. */ + end?: Maybe; + /** The ID of the object. */ + id: Scalars["ID"]; + /** Inclusion type of the postal code rule. */ + inclusionType?: Maybe; + /** Start address range. */ + start?: Maybe; +}; + +export type ShippingMethodTranslatableContent = Node & { + __typename?: "ShippingMethodTranslatableContent"; + /** + * Description of the shipping method. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + id: Scalars["ID"]; + name: Scalars["String"]; + /** + * 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. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + shippingMethod?: Maybe; + /** Returns translated shipping method fields for the given language code. */ + translation?: Maybe; +}; + +export type ShippingMethodTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +export type ShippingMethodTranslation = Node & { + __typename?: "ShippingMethodTranslation"; + /** + * Translated description of the shipping method. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name?: Maybe; +}; + +/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ +export type ShippingMethodType = Node & + ObjectWithMetadata & { + __typename?: "ShippingMethodType"; + /** + * List of channels available for the method. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + channelListings?: Maybe>; + /** + * Shipping method description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: Maybe; + /** + * List of excluded products for the shipping method. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + excludedProducts?: Maybe; + /** Shipping method ID. */ + id: Scalars["ID"]; + /** Maximum number of days for delivery. */ + maximumDeliveryDays?: Maybe; + /** The price of the cheapest variant (including discounts). */ + maximumOrderPrice?: Maybe; + /** Maximum order weight to use this shipping method. */ + maximumOrderWeight?: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Minimal number of days for delivery. */ + minimumDeliveryDays?: Maybe; + /** The price of the cheapest variant (including discounts). */ + minimumOrderPrice?: Maybe; + /** Minimum order weight to use this shipping method. */ + minimumOrderWeight?: Maybe; + /** Shipping method name. */ + name: Scalars["String"]; + /** Postal code ranges rule of exclusion or inclusion of the shipping method. */ + postalCodeRules?: Maybe>; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Returns translated shipping method fields for the given language code. */ + translation?: Maybe; + /** Type of the shipping method. */ + type?: Maybe; + }; + +/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ +export type ShippingMethodTypeExcludedProductsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ +export type ShippingMethodTypeMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ +export type ShippingMethodTypeMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ +export type ShippingMethodTypePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ +export type ShippingMethodTypePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ +export type ShippingMethodTypeTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** An enumeration. */ +export enum ShippingMethodTypeEnum { + Price = "PRICE", + Weight = "WEIGHT", +} + +export type ShippingPostalCodeRulesCreateInputRange = { + /** End range of the postal code. */ + end?: InputMaybe; + /** Start range of the postal code. */ + start: Scalars["String"]; +}; + +/** + * Deletes shipping prices. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingPriceBulkDelete = { + __typename?: "ShippingPriceBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; +}; + +/** + * Creates a new shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingPriceCreate = { + __typename?: "ShippingPriceCreate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + shippingMethod?: Maybe; + /** A shipping zone to which the shipping method belongs. */ + shippingZone?: Maybe; +}; + +export type ShippingPriceCreated = Event & { + __typename?: "ShippingPriceCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The shipping method the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingMethod?: Maybe; + /** + * The shipping zone the shipping method belongs to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingZone?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ShippingPriceCreatedShippingMethodArgs = { + channel?: InputMaybe; +}; + +export type ShippingPriceCreatedShippingZoneArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingPriceDelete = { + __typename?: "ShippingPriceDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + /** A shipping method to delete. */ + shippingMethod?: Maybe; + /** A shipping zone to which the shipping method belongs. */ + shippingZone?: Maybe; +}; + +export type ShippingPriceDeleted = Event & { + __typename?: "ShippingPriceDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The shipping method the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingMethod?: Maybe; + /** + * The shipping zone the shipping method belongs to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingZone?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ShippingPriceDeletedShippingMethodArgs = { + channel?: InputMaybe; +}; + +export type ShippingPriceDeletedShippingZoneArgs = { + channel?: InputMaybe; +}; + +/** + * Exclude products from shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingPriceExcludeProducts = { + __typename?: "ShippingPriceExcludeProducts"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + /** A shipping method with new list of excluded products. */ + shippingMethod?: Maybe; +}; + +export type ShippingPriceExcludeProductsInput = { + /** List of products which will be excluded. */ + products: Array; +}; + +export type ShippingPriceInput = { + /** 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; + /** Shipping type: price or weight based. */ + type?: InputMaybe; +}; + +/** + * Remove product from excluded list for shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingPriceRemoveProductFromExclude = { + __typename?: "ShippingPriceRemoveProductFromExclude"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + /** A shipping method with new list of excluded products. */ + shippingMethod?: Maybe; +}; + +/** + * Creates/updates translations for a shipping method. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type ShippingPriceTranslate = { + __typename?: "ShippingPriceTranslate"; + errors: Array; + shippingMethod?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type ShippingPriceTranslationInput = { + /** + * Translated shipping method description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + name?: InputMaybe; +}; + +/** + * Updates a new shipping price. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingPriceUpdate = { + __typename?: "ShippingPriceUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + shippingMethod?: Maybe; + /** A shipping zone to which the shipping method belongs. */ + shippingZone?: Maybe; +}; + +export type ShippingPriceUpdated = Event & { + __typename?: "ShippingPriceUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The shipping method the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingMethod?: Maybe; + /** + * The shipping zone the shipping method belongs to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingZone?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ShippingPriceUpdatedShippingMethodArgs = { + channel?: InputMaybe; +}; + +export type ShippingPriceUpdatedShippingZoneArgs = { + channel?: InputMaybe; +}; + +/** 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. */ +export type ShippingZone = Node & + ObjectWithMetadata & { + __typename?: "ShippingZone"; + /** List of channels for shipping zone. */ + channels: Array; + /** List of countries available for the method. */ + countries: Array; + default: Scalars["Boolean"]; + /** Description of a shipping zone. */ + description?: Maybe; + id: Scalars["ID"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** Lowest and highest prices for the shipping. */ + priceRange?: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** List of shipping methods available for orders shipped to countries within this shipping zone. */ + shippingMethods?: Maybe>; + /** List of warehouses for shipping zone. */ + warehouses: Array; + }; + +/** 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. */ +export type ShippingZoneMetafieldArgs = { + key: Scalars["String"]; +}; + +/** 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. */ +export type ShippingZoneMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** 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. */ +export type ShippingZonePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** 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. */ +export type ShippingZonePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * Deletes shipping zones. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingZoneBulkDelete = { + __typename?: "ShippingZoneBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; +}; + +export type ShippingZoneCountableConnection = { + __typename?: "ShippingZoneCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type ShippingZoneCountableEdge = { + __typename?: "ShippingZoneCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: ShippingZone; +}; + +/** + * Creates a new shipping zone. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingZoneCreate = { + __typename?: "ShippingZoneCreate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + shippingZone?: Maybe; +}; + +export type ShippingZoneCreateInput = { + /** 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; + /** Description of the shipping zone. */ + description?: InputMaybe; + /** Shipping zone's name. Visible only to the staff. */ + name?: InputMaybe; +}; + +export type ShippingZoneCreated = Event & { + __typename?: "ShippingZoneCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The shipping zone the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingZone?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ShippingZoneCreatedShippingZoneArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a shipping zone. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingZoneDelete = { + __typename?: "ShippingZoneDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + shippingZone?: Maybe; +}; + +export type ShippingZoneDeleted = Event & { + __typename?: "ShippingZoneDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The shipping zone the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingZone?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ShippingZoneDeletedShippingZoneArgs = { + channel?: InputMaybe; +}; + +export type ShippingZoneFilterInput = { + channels?: InputMaybe>; + search?: InputMaybe; +}; + +/** + * Updates a new shipping zone. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ +export type ShippingZoneUpdate = { + __typename?: "ShippingZoneUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shippingErrors: Array; + shippingZone?: Maybe; +}; + +export type ShippingZoneUpdateInput = { + /** 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; + /** 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>; +}; + +export type ShippingZoneUpdated = Event & { + __typename?: "ShippingZoneUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The shipping zone the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + shippingZone?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type ShippingZoneUpdatedShippingZoneArgs = { + channel?: InputMaybe; +}; + +/** Represents a shop resource containing general shop data and configuration. */ +export type Shop = { + __typename?: "Shop"; + /** + * Enable automatic fulfillment for all digital products. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + automaticFulfillmentDigitalProducts?: Maybe; + /** List of available external authentications. */ + availableExternalAuthentications: Array; + /** List of available payment gateways. */ + availablePaymentGateways: Array; + /** Shipping methods that are available for the shop. */ + availableShippingMethods?: Maybe>; + /** + * 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: Array; + /** Charge taxes on shipping. */ + chargeTaxesOnShipping: Scalars["Boolean"]; + /** Company address. */ + companyAddress?: Maybe
; + /** List of countries available in the shop. */ + countries: Array; + /** URL of a view where customers can set their password. */ + customerSetPasswordUrl?: Maybe; + /** Shop's default country. */ + defaultCountry?: Maybe; + /** + * Default number of max downloads per digital content URL. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + defaultDigitalMaxDownloads?: Maybe; + /** + * Default number of days which digital content URL will be valid. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + defaultDigitalUrlValidDays?: Maybe; + /** + * Default shop's email sender's address. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + defaultMailSenderAddress?: Maybe; + /** + * Default shop's email sender's name. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + defaultMailSenderName?: Maybe; + /** Default weight unit. */ + defaultWeightUnit?: Maybe; + /** Shop's description. */ + description?: Maybe; + /** Display prices with tax in store. */ + displayGrossPrices: Scalars["Boolean"]; + /** Shop's domain data. */ + domain: Domain; + /** + * Allow to approve fulfillments which are unpaid. + * + * Added in Saleor 3.1. + */ + fulfillmentAllowUnpaid: Scalars["Boolean"]; + /** + * Automatically approve all new fulfillments. + * + * Added in Saleor 3.1. + */ + fulfillmentAutoApprove: Scalars["Boolean"]; + /** Header text. */ + headerText?: Maybe; + /** Include taxes in prices. */ + includeTaxesInPrices: Scalars["Boolean"]; + /** List of the shops's supported languages. */ + languages: Array; + /** + * 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?: Maybe; + /** + * Resource limitations and current usage if any set for a shop + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER. + */ + limits: LimitInfo; + /** Shop's name. */ + name: Scalars["String"]; + /** List of available permissions. */ + permissions: Array; + /** List of possible phone prefixes. */ + phonePrefixes: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * List of staff notification recipients. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ + staffNotificationRecipients?: Maybe>; + /** Enable inventory tracking. */ + trackInventoryByDefault?: Maybe; + /** Returns translated shop fields for the given language code. */ + translation?: Maybe; + /** + * Saleor API version. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. + */ + version: Scalars["String"]; +}; + +/** Represents a shop resource containing general shop data and configuration. */ +export type ShopAvailablePaymentGatewaysArgs = { + channel?: InputMaybe; + currency?: InputMaybe; +}; + +/** Represents a shop resource containing general shop data and configuration. */ +export type ShopAvailableShippingMethodsArgs = { + address?: InputMaybe; + channel: Scalars["String"]; +}; + +/** Represents a shop resource containing general shop data and configuration. */ +export type ShopCountriesArgs = { + filter?: InputMaybe; + languageCode?: InputMaybe; +}; + +/** Represents a shop resource containing general shop data and configuration. */ +export type ShopTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * 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. + */ +export type ShopAddressUpdate = { + __typename?: "ShopAddressUpdate"; + errors: Array; + /** Updated shop. */ + shop?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shopErrors: Array; +}; + +/** + * Updates site domain of the shop. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ +export type ShopDomainUpdate = { + __typename?: "ShopDomainUpdate"; + errors: Array; + /** Updated shop. */ + shop?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shopErrors: Array; +}; + +export type ShopError = { + __typename?: "ShopError"; + /** The error code. */ + code: ShopErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum ShopErrorCode { + AlreadyExists = "ALREADY_EXISTS", + CannotFetchTaxRates = "CANNOT_FETCH_TAX_RATES", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +/** + * Fetch tax rates. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ +export type ShopFetchTaxRates = { + __typename?: "ShopFetchTaxRates"; + errors: Array; + /** Updated shop. */ + shop?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shopErrors: Array; +}; + +export type ShopSettingsInput = { + /** Enable automatic fulfillment for all digital products. */ + automaticFulfillmentDigitalProducts?: InputMaybe; + /** Charge taxes on shipping. */ + 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. */ + displayGrossPrices?: InputMaybe; + /** + * Enable ability to approve fulfillments which are unpaid. + * + * Added in Saleor 3.1. + */ + fulfillmentAllowUnpaid?: InputMaybe; + /** + * Enable automatic approval of all new fulfillments. + * + * Added in Saleor 3.1. + */ + fulfillmentAutoApprove?: InputMaybe; + /** Header text. */ + headerText?: InputMaybe; + /** Include taxes in prices. */ + 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. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + limitQuantityPerCheckout?: 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; + /** Enable inventory tracking. */ + trackInventoryByDefault?: InputMaybe; +}; + +/** + * Creates/updates translations for shop settings. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type ShopSettingsTranslate = { + __typename?: "ShopSettingsTranslate"; + errors: Array; + /** Updated shop settings. */ + shop?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; +}; + +export type ShopSettingsTranslationInput = { + description?: InputMaybe; + headerText?: InputMaybe; +}; + +/** + * Updates shop settings. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ +export type ShopSettingsUpdate = { + __typename?: "ShopSettingsUpdate"; + errors: Array; + /** Updated shop. */ + shop?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shopErrors: Array; +}; + +export type ShopTranslation = Node & { + __typename?: "ShopTranslation"; + description: Scalars["String"]; + headerText: Scalars["String"]; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; +}; + +export type SiteDomainInput = { + /** Domain name for shop. */ + domain?: InputMaybe; + /** Shop site name. */ + name?: InputMaybe; +}; + +/** + * Deletes staff users. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ +export type StaffBulkDelete = { + __typename?: "StaffBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + staffErrors: Array; +}; + +/** + * Creates a new staff user. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ +export type StaffCreate = { + __typename?: "StaffCreate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + staffErrors: Array; + user?: Maybe; +}; + +export type StaffCreateInput = { + /** 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; +}; + +/** + * Deletes a staff user. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ +export type StaffDelete = { + __typename?: "StaffDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + staffErrors: Array; + user?: Maybe; +}; + +export type StaffError = { + __typename?: "StaffError"; + /** A type of address that causes the error. */ + addressType?: Maybe; + /** The error code. */ + code: AccountErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** List of permission group IDs which cause the error. */ + groups?: Maybe>; + /** The error message. */ + message?: Maybe; + /** List of permissions which causes the error. */ + permissions?: Maybe>; + /** List of user IDs which causes the error. */ + users?: Maybe>; +}; + +export enum StaffMemberStatus { + /** User account has been activated. */ + Active = "ACTIVE", + /** User account has not been activated yet. */ + Deactivated = "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. */ +export type StaffNotificationRecipient = Node & { + __typename?: "StaffNotificationRecipient"; + /** Determines if a notification active. */ + active?: Maybe; + /** Returns email address of a user subscribed to email notifications. */ + email?: Maybe; + id: Scalars["ID"]; + /** Returns a user subscribed to email notifications. */ + user?: Maybe; +}; + +/** + * Creates a new staff notification recipient. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ +export type StaffNotificationRecipientCreate = { + __typename?: "StaffNotificationRecipientCreate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shopErrors: Array; + staffNotificationRecipient?: Maybe; +}; + +/** + * Delete staff notification recipient. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ +export type StaffNotificationRecipientDelete = { + __typename?: "StaffNotificationRecipientDelete"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shopErrors: Array; + staffNotificationRecipient?: Maybe; +}; + +export type StaffNotificationRecipientInput = { + /** 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; +}; + +/** + * Updates a staff notification recipient. + * + * Requires one of the following permissions: MANAGE_SETTINGS. + */ +export type StaffNotificationRecipientUpdate = { + __typename?: "StaffNotificationRecipientUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + shopErrors: Array; + staffNotificationRecipient?: Maybe; +}; + +/** + * Updates an existing staff user. + * + * Requires one of the following permissions: MANAGE_STAFF. + */ +export type StaffUpdate = { + __typename?: "StaffUpdate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + staffErrors: Array; + user?: Maybe; +}; + +export type StaffUpdateInput = { + /** 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 = { + ids?: InputMaybe>; + search?: InputMaybe; + status?: InputMaybe; +}; + +/** Represents stock. */ +export type Stock = Node & { + __typename?: "Stock"; + id: Scalars["ID"]; + 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: Scalars["Int"]; + /** + * Quantity allocated for orders. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + quantityAllocated: Scalars["Int"]; + /** + * Quantity reserved for checkouts. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + quantityReserved: Scalars["Int"]; + warehouse: Warehouse; +}; + +export enum StockAvailability { + InStock = "IN_STOCK", + OutOfStock = "OUT_OF_STOCK", +} + +export type StockCountableConnection = { + __typename?: "StockCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type StockCountableEdge = { + __typename?: "StockCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Stock; +}; + +export type StockError = { + __typename?: "StockError"; + /** The error code. */ + code: StockErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum StockErrorCode { + AlreadyExists = "ALREADY_EXISTS", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export type StockFilterInput = { + quantity?: InputMaybe; + search?: InputMaybe; +}; + +export type StockInput = { + /** Quantity of items available for sell. */ + quantity: Scalars["Int"]; + /** Warehouse in which stock is located. */ + warehouse: Scalars["ID"]; +}; + +/** Enum representing the type of a payment storage in a gateway. */ +export enum StorePaymentMethodEnum { + /** 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. */ + OffSession = "OFF_SESSION", + /** On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. */ + OnSession = "ON_SESSION", +} + +export type Subscription = { + __typename?: "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?: Maybe; +}; + +/** Representation of tax types fetched from tax gateway. */ +export type TaxType = { + __typename?: "TaxType"; + /** Description of the tax type. */ + description?: Maybe; + /** External tax code used to identify given tax group. */ + taxCode?: Maybe; +}; + +/** Represents a monetary value with taxes. In cases where taxes were not applied, net and gross values will be equal. */ +export type TaxedMoney = { + __typename?: "TaxedMoney"; + /** Currency code. */ + currency: Scalars["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. */ +export type TaxedMoneyRange = { + __typename?: "TaxedMoneyRange"; + /** Lower bound of a price range. */ + start?: Maybe; + /** Upper bound of a price range. */ + stop?: Maybe; +}; + +export type TimePeriod = { + __typename?: "TimePeriod"; + /** The length of the period. */ + amount: Scalars["Int"]; + /** The type of the period. */ + type: TimePeriodTypeEnum; +}; + +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", + Month = "MONTH", + Week = "WEEK", + Year = "YEAR", +} + +/** An object representing a single payment. */ +export type Transaction = Node & { + __typename?: "Transaction"; + /** Total amount of the transaction. */ + amount?: Maybe; + created: Scalars["DateTime"]; + error?: Maybe; + gatewayResponse: Scalars["JSONString"]; + id: Scalars["ID"]; + isSuccess: Scalars["Boolean"]; + kind: TransactionKind; + payment: Payment; + token: Scalars["String"]; +}; + +export type TransactionAction = { + __typename?: "TransactionAction"; + /** Determines the action type. */ + actionType: TransactionActionEnum; + /** Transaction request amount. Null when action type is VOID. */ + amount?: Maybe; +}; + +/** + * 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. + */ +export enum TransactionActionEnum { + Charge = "CHARGE", + Refund = "REFUND", + Void = "VOID", +} + +export type TransactionActionRequest = Event & { + __typename?: "TransactionActionRequest"; + /** + * 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. + */ + action: TransactionAction; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * 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. + */ + transaction?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +/** + * Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ +export type TransactionCreate = { + __typename?: "TransactionCreate"; + errors: Array; + transaction?: Maybe; +}; + +export type TransactionCreateError = { + __typename?: "TransactionCreateError"; + /** The error code. */ + code: TransactionCreateErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum TransactionCreateErrorCode { + GraphqlError = "GRAPHQL_ERROR", + IncorrectCurrency = "INCORRECT_CURRENCY", + Invalid = "INVALID", + MetadataKeyRequired = "METADATA_KEY_REQUIRED", + NotFound = "NOT_FOUND", +} + +export type TransactionCreateInput = { + /** 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. */ + amountVoided?: InputMaybe; + /** List of all possible actions for the transaction */ + availableActions?: InputMaybe>; + /** Payment public metadata. */ + metadata?: InputMaybe>; + /** Payment private metadata. */ + privateMetadata?: InputMaybe>; + /** Reference of the transaction. */ + reference?: InputMaybe; + /** Status of the transaction. */ + status: Scalars["String"]; + /** Payment type used for this transaction. */ + type: Scalars["String"]; +}; + +/** Represents transaction's event. */ +export type TransactionEvent = Node & { + __typename?: "TransactionEvent"; + createdAt: Scalars["DateTime"]; + /** The ID of the object. */ + id: Scalars["ID"]; + /** Name of the transaction's event. */ + name?: Maybe; + /** Reference of transaction's event. */ + reference: Scalars["String"]; + /** Status of transaction's event. */ + status: TransactionStatus; +}; + +export type TransactionEventInput = { + /** Name of the transaction. */ + name?: InputMaybe; + /** Reference of the transaction. */ + reference?: InputMaybe; + /** Current status of the payment transaction. */ + status: TransactionStatus; +}; + +/** + * 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. + */ +export type TransactionItem = Node & + ObjectWithMetadata & { + __typename?: "TransactionItem"; + /** List of actions that can be performed in the current state of a payment. */ + actions: Array; + /** Total amount authorized for this payment. */ + authorizedAmount: Money; + /** Total amount charged for this payment. */ + chargedAmount: Money; + createdAt: Scalars["DateTime"]; + /** List of all transaction's events. */ + events: Array; + /** The ID of the object. */ + id: Scalars["ID"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + modifiedAt: Scalars["DateTime"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** Reference of transaction. */ + reference: Scalars["String"]; + /** Total amount refunded for this payment. */ + refundedAmount: Money; + /** Status of transaction. */ + status: Scalars["String"]; + /** Type of transaction. */ + type: Scalars["String"]; + /** Total amount voided for this payment. */ + voidedAmount: Money; + }; + +/** + * 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. + */ +export type TransactionItemMetafieldArgs = { + key: Scalars["String"]; +}; + +/** + * 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. + */ +export type TransactionItemMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** + * 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. + */ +export type TransactionItemPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** + * 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. + */ +export type TransactionItemPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** An enumeration. */ +export enum TransactionKind { + ActionToConfirm = "ACTION_TO_CONFIRM", + Auth = "AUTH", + Cancel = "CANCEL", + Capture = "CAPTURE", + Confirm = "CONFIRM", + External = "EXTERNAL", + Pending = "PENDING", + Refund = "REFUND", + RefundOngoing = "REFUND_ONGOING", + Void = "VOID", +} + +/** + * 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, MANAGE_ORDERS. + */ +export type TransactionRequestAction = { + __typename?: "TransactionRequestAction"; + errors: Array; + transaction?: Maybe; +}; + +export type TransactionRequestActionError = { + __typename?: "TransactionRequestActionError"; + /** The error code. */ + code: TransactionRequestActionErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum TransactionRequestActionErrorCode { + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + MissingTransactionActionRequestWebhook = "MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK", + NotFound = "NOT_FOUND", +} + +/** An enumeration. */ +export enum TransactionStatus { + Failure = "FAILURE", + Pending = "PENDING", + Success = "SUCCESS", +} + +/** + * Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ +export type TransactionUpdate = { + __typename?: "TransactionUpdate"; + errors: Array; + transaction?: Maybe; +}; + +export type TransactionUpdateError = { + __typename?: "TransactionUpdateError"; + /** The error code. */ + code: TransactionUpdateErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum TransactionUpdateErrorCode { + GraphqlError = "GRAPHQL_ERROR", + IncorrectCurrency = "INCORRECT_CURRENCY", + Invalid = "INVALID", + MetadataKeyRequired = "METADATA_KEY_REQUIRED", + NotFound = "NOT_FOUND", +} + +export type TransactionUpdateInput = { + /** 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. */ + amountVoided?: InputMaybe; + /** List of all possible actions for the transaction */ + availableActions?: InputMaybe>; + /** Payment public metadata. */ + metadata?: InputMaybe>; + /** Payment private metadata. */ + privateMetadata?: InputMaybe>; + /** Reference of the transaction. */ + reference?: InputMaybe; + /** Status of the transaction. */ + status?: InputMaybe; + /** Payment type used for this transaction. */ + type?: InputMaybe; +}; + +export type TranslatableItem = + | AttributeTranslatableContent + | AttributeValueTranslatableContent + | CategoryTranslatableContent + | CollectionTranslatableContent + | MenuItemTranslatableContent + | PageTranslatableContent + | ProductTranslatableContent + | ProductVariantTranslatableContent + | SaleTranslatableContent + | ShippingMethodTranslatableContent + | VoucherTranslatableContent; + +export type TranslatableItemConnection = { + __typename?: "TranslatableItemConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type TranslatableItemEdge = { + __typename?: "TranslatableItemEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: TranslatableItem; +}; + +export enum TranslatableKinds { + Attribute = "ATTRIBUTE", + AttributeValue = "ATTRIBUTE_VALUE", + Category = "CATEGORY", + Collection = "COLLECTION", + MenuItem = "MENU_ITEM", + Page = "PAGE", + Product = "PRODUCT", + Sale = "SALE", + ShippingMethod = "SHIPPING_METHOD", + Variant = "VARIANT", + Voucher = "VOUCHER", +} + +export type TranslationCreated = Event & { + __typename?: "TranslationCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The translation the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + translation?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type TranslationError = { + __typename?: "TranslationError"; + /** The error code. */ + code: TranslationErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum TranslationErrorCode { + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", +} + +export type TranslationInput = { + /** + * Translated description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + name?: InputMaybe; + seoDescription?: InputMaybe; + seoTitle?: InputMaybe; +}; + +export type TranslationTypes = + | AttributeTranslation + | AttributeValueTranslation + | CategoryTranslation + | CollectionTranslation + | MenuItemTranslation + | PageTranslation + | ProductTranslation + | ProductVariantTranslation + | SaleTranslation + | ShippingMethodTranslation + | VoucherTranslation; + +export type TranslationUpdated = Event & { + __typename?: "TranslationUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** + * The translation the event relates to. + * + * Added in Saleor 3.2. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + translation?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; +}; + +export type UpdateInvoiceInput = { + /** Invoice number */ + number?: InputMaybe; + /** URL of an invoice to download. */ + url?: InputMaybe; +}; + +/** Updates metadata of an object. To use it, you need to have access to the modified object. */ +export type UpdateMetadata = { + __typename?: "UpdateMetadata"; + errors: Array; + item?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + metadataErrors: Array; +}; + +/** 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. */ +export type UpdatePrivateMetadata = { + __typename?: "UpdatePrivateMetadata"; + errors: Array; + item?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + metadataErrors: Array; +}; + +export type UploadError = { + __typename?: "UploadError"; + /** The error code. */ + code: UploadErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum UploadErrorCode { + GraphqlError = "GRAPHQL_ERROR", +} + +/** Represents user data. */ +export type User = Node & + ObjectWithMetadata & { + __typename?: "User"; + /** List of all user's addresses. */ + addresses?: Maybe>; + avatar?: Maybe; + /** + * Returns the last open checkout of this user. + * @deprecated This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts. + */ + checkout?: Maybe; + /** Returns the checkout ID's assigned to this user. */ + checkoutIds?: Maybe>; + /** + * Returns the checkout UUID's assigned to this user. + * @deprecated This field will be removed in Saleor 4.0. Use `checkoutIds` instead. + */ + checkoutTokens?: Maybe>; + dateJoined: Scalars["DateTime"]; + defaultBillingAddress?: Maybe
; + defaultShippingAddress?: Maybe
; + /** List of user's permission groups which user can manage. */ + editableGroups?: Maybe>; + email: Scalars["String"]; + /** + * List of events associated with the user. + * + * Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. + */ + events?: Maybe>; + firstName: Scalars["String"]; + /** List of the user gift cards. */ + giftCards?: Maybe; + id: Scalars["ID"]; + isActive: Scalars["Boolean"]; + isStaff: Scalars["Boolean"]; + /** User language code. */ + languageCode: LanguageCodeEnum; + lastLogin?: Maybe; + lastName: Scalars["String"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * A note about the customer. + * + * Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. + */ + note?: Maybe; + /** List of user's orders. Requires one of the following permissions: MANAGE_STAFF, OWNER. */ + orders?: Maybe; + /** List of user's permission groups. */ + permissionGroups?: Maybe>; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** List of stored payment sources. */ + storedPaymentSources?: Maybe>; + updatedAt: Scalars["DateTime"]; + /** List of user's permissions. */ + userPermissions?: Maybe>; + }; + +/** Represents user data. */ +export type UserAvatarArgs = { + size?: InputMaybe; +}; + +/** Represents user data. */ +export type UserCheckoutIdsArgs = { + channel?: InputMaybe; +}; + +/** Represents user data. */ +export type UserCheckoutTokensArgs = { + channel?: InputMaybe; +}; + +/** Represents user data. */ +export type UserGiftCardsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Represents user data. */ +export type UserMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents user data. */ +export type UserMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents user data. */ +export type UserOrdersArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Represents user data. */ +export type UserPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents user data. */ +export type UserPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents user data. */ +export type UserStoredPaymentSourcesArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a user avatar. Only for staff members. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER. + */ +export type UserAvatarDelete = { + __typename?: "UserAvatarDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** An updated user instance. */ + user?: Maybe; +}; + +/** + * 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. + */ +export type UserAvatarUpdate = { + __typename?: "UserAvatarUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** An updated user instance. */ + user?: Maybe; +}; + +/** + * Activate or deactivate users. + * + * Requires one of the following permissions: MANAGE_USERS. + */ +export type UserBulkSetActive = { + __typename?: "UserBulkSetActive"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + errors: Array; +}; + +export type UserCountableConnection = { + __typename?: "UserCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type UserCountableEdge = { + __typename?: "UserCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: User; +}; + +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; + /** The unique email address of the user. */ + email?: 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; +}; + +export type UserPermission = { + __typename?: "UserPermission"; + /** Internal code for permission. */ + code: PermissionEnum; + /** Describe action(s) allowed to do by permission. */ + name: Scalars["String"]; + /** List of user permission groups which contains this permission. */ + sourcePermissionGroups?: Maybe>; +}; + +export type UserPermissionSourcePermissionGroupsArgs = { + userId: Scalars["ID"]; +}; + +export enum UserSortField { + /** Sort users by created at. */ + CreatedAt = "CREATED_AT", + /** Sort users by email. */ + Email = "EMAIL", + /** Sort users by first name. */ + FirstName = "FIRST_NAME", + /** Sort users by last modified at. */ + LastModifiedAt = "LAST_MODIFIED_AT", + /** Sort users by last name. */ + LastName = "LAST_NAME", + /** Sort users by order count. */ + OrderCount = "ORDER_COUNT", +} + +export type 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. */ +export type Vat = { + __typename?: "VAT"; + /** Country code. */ + countryCode: Scalars["String"]; + /** Country's VAT rate exceptions for specific types of goods. */ + reducedRates: Array; + /** Standard VAT rate in percent. */ + standardRate?: Maybe; +}; + +export enum VariantAttributeScope { + All = "ALL", + NotVariantSelection = "NOT_VARIANT_SELECTION", + VariantSelection = "VARIANT_SELECTION", +} + +/** + * Assign an media to a product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type VariantMediaAssign = { + __typename?: "VariantMediaAssign"; + errors: Array; + media?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + productVariant?: Maybe; +}; + +/** + * Unassign an media from a product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type VariantMediaUnassign = { + __typename?: "VariantMediaUnassign"; + errors: Array; + media?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + productErrors: Array; + productVariant?: Maybe; +}; + +/** Represents availability of a variant in the storefront. */ +export type VariantPricingInfo = { + __typename?: "VariantPricingInfo"; + /** The discount amount if in sale (null otherwise). */ + discount?: Maybe; + /** The discount amount in the local currency. */ + discountLocalCurrency?: Maybe; + /** Whether it is in sale or not. */ + onSale?: Maybe; + /** The price, with any discount subtracted. */ + price?: Maybe; + /** The discounted price in the local currency. */ + priceLocalCurrency?: Maybe; + /** The price without any discount. */ + priceUndiscounted?: Maybe; +}; + +/** Verify JWT token. */ +export type VerifyToken = { + __typename?: "VerifyToken"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + accountErrors: Array; + errors: Array; + /** Determine if token is valid or not. */ + isValid: Scalars["Boolean"]; + /** JWT payload. */ + payload?: Maybe; + /** User assigned to token. */ + user?: Maybe; +}; + +/** An enumeration. */ +export enum VolumeUnitsEnum { + AcreFt = "ACRE_FT", + AcreIn = "ACRE_IN", + CubicCentimeter = "CUBIC_CENTIMETER", + CubicDecimeter = "CUBIC_DECIMETER", + CubicFoot = "CUBIC_FOOT", + CubicInch = "CUBIC_INCH", + CubicMeter = "CUBIC_METER", + CubicMillimeter = "CUBIC_MILLIMETER", + CubicYard = "CUBIC_YARD", + FlOz = "FL_OZ", + Liter = "LITER", + Pint = "PINT", + Qt = "QT", +} + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type Voucher = Node & + ObjectWithMetadata & { + __typename?: "Voucher"; + applyOncePerCustomer: Scalars["Boolean"]; + applyOncePerOrder: Scalars["Boolean"]; + /** List of categories this voucher applies to. */ + categories?: Maybe; + /** + * List of availability in channels for the voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + channelListings?: Maybe>; + code: Scalars["String"]; + /** + * List of collections this voucher applies to. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + collections?: Maybe; + /** List of countries available for the shipping voucher. */ + countries?: Maybe>; + /** Currency code for voucher. */ + currency?: Maybe; + /** Voucher value. */ + discountValue?: Maybe; + /** Determines a type of discount for voucher - value or percentage */ + discountValueType: DiscountValueTypeEnum; + endDate?: Maybe; + id: Scalars["ID"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + minCheckoutItemsQuantity?: Maybe; + /** Minimum order value to apply voucher. */ + minSpent?: Maybe; + name?: Maybe; + onlyForStaff: Scalars["Boolean"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + /** + * List of products this voucher applies to. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + products?: Maybe; + startDate: Scalars["DateTime"]; + /** Returns translated voucher fields for the given language code. */ + translation?: Maybe; + /** Determines a type of voucher. */ + type: VoucherTypeEnum; + usageLimit?: Maybe; + used: Scalars["Int"]; + /** + * List of product variants this voucher applies to. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + variants?: Maybe; + }; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherCategoriesArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherCollectionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherPrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherProductsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ +export type VoucherVariantsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** + * Adds products, categories, collections to a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type VoucherAddCatalogues = { + __typename?: "VoucherAddCatalogues"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + /** Voucher of which catalogue IDs will be modified. */ + voucher?: Maybe; +}; + +/** + * Deletes vouchers. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type VoucherBulkDelete = { + __typename?: "VoucherBulkDelete"; + /** Returns how many objects were affected. */ + count: Scalars["Int"]; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; +}; + +/** Represents voucher channel listing. */ +export type VoucherChannelListing = Node & { + __typename?: "VoucherChannelListing"; + channel: Channel; + currency: Scalars["String"]; + discountValue: Scalars["Float"]; + id: Scalars["ID"]; + minSpent?: Maybe; +}; + +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>; +}; + +/** + * Manage voucher's availability in channels. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type VoucherChannelListingUpdate = { + __typename?: "VoucherChannelListingUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + /** An updated voucher instance. */ + voucher?: Maybe; +}; + +export type VoucherCountableConnection = { + __typename?: "VoucherCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type VoucherCountableEdge = { + __typename?: "VoucherCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Voucher; +}; + +/** + * Creates a new voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type VoucherCreate = { + __typename?: "VoucherCreate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + voucher?: Maybe; +}; + +export type VoucherCreated = Event & { + __typename?: "VoucherCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; + /** + * The voucher the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + voucher?: Maybe; +}; + +export type VoucherCreatedVoucherArgs = { + channel?: InputMaybe; +}; + +/** + * Deletes a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type VoucherDelete = { + __typename?: "VoucherDelete"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + voucher?: Maybe; +}; + +export type VoucherDeleted = Event & { + __typename?: "VoucherDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; + /** + * The voucher the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + voucher?: Maybe; +}; + +export type VoucherDeletedVoucherArgs = { + channel?: InputMaybe; +}; + +export enum VoucherDiscountType { + Fixed = "FIXED", + Percentage = "PERCENTAGE", + Shipping = "SHIPPING", +} + +export type VoucherFilterInput = { + discountType?: InputMaybe>; + metadata?: InputMaybe>; + search?: InputMaybe; + started?: InputMaybe; + status?: InputMaybe>; + timesUsed?: InputMaybe; +}; + +export type VoucherInput = { + /** 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; + /** 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>; +}; + +/** + * Removes products, categories, collections from a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type VoucherRemoveCatalogues = { + __typename?: "VoucherRemoveCatalogues"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + /** Voucher of which catalogue IDs will be modified. */ + voucher?: Maybe; +}; + +export enum VoucherSortField { + /** Sort vouchers by code. */ + Code = "CODE", + /** Sort vouchers by end date. */ + EndDate = "END_DATE", + /** + * Sort vouchers by minimum spent amount. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + MinimumSpentAmount = "MINIMUM_SPENT_AMOUNT", + /** Sort vouchers by start date. */ + StartDate = "START_DATE", + /** Sort vouchers by type. */ + Type = "TYPE", + /** Sort vouchers by usage limit. */ + UsageLimit = "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 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 products. */ + direction: OrderDirection; + /** Sort vouchers by the selected field. */ + field: VoucherSortField; +}; + +export type VoucherTranslatableContent = Node & { + __typename?: "VoucherTranslatableContent"; + id: Scalars["ID"]; + name?: Maybe; + /** Returns translated voucher fields for the given language code. */ + translation?: Maybe; + /** + * 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. + * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. + */ + voucher?: Maybe; +}; + +export type VoucherTranslatableContentTranslationArgs = { + languageCode: LanguageCodeEnum; +}; + +/** + * Creates/updates translations for a voucher. + * + * Requires one of the following permissions: MANAGE_TRANSLATIONS. + */ +export type VoucherTranslate = { + __typename?: "VoucherTranslate"; + errors: Array; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + translationErrors: Array; + voucher?: Maybe; +}; + +export type VoucherTranslation = Node & { + __typename?: "VoucherTranslation"; + id: Scalars["ID"]; + /** Translation language. */ + language: LanguageDisplay; + name?: Maybe; +}; + +export enum VoucherTypeEnum { + EntireOrder = "ENTIRE_ORDER", + Shipping = "SHIPPING", + SpecificProduct = "SPECIFIC_PRODUCT", +} + +/** + * Updates a voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ +export type VoucherUpdate = { + __typename?: "VoucherUpdate"; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + discountErrors: Array; + errors: Array; + voucher?: Maybe; +}; + +export type VoucherUpdated = Event & { + __typename?: "VoucherUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; + /** + * The voucher the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + voucher?: Maybe; +}; + +export type VoucherUpdatedVoucherArgs = { + channel?: InputMaybe; +}; + +/** Represents warehouse. */ +export type Warehouse = Node & + ObjectWithMetadata & { + __typename?: "Warehouse"; + address: Address; + /** + * 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; + /** + * Warehouse company name. + * @deprecated This field will be removed in Saleor 4.0. Use `Address.companyName` instead. + */ + companyName: Scalars["String"]; + email: Scalars["String"]; + id: Scalars["ID"]; + isPrivate: Scalars["Boolean"]; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + name: Scalars["String"]; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * 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?: Maybe; + /** + * 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?: Maybe; + shippingZones: ShippingZoneCountableConnection; + slug: Scalars["String"]; + }; + +/** Represents warehouse. */ +export type WarehouseMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents warehouse. */ +export type WarehouseMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents warehouse. */ +export type WarehousePrivateMetafieldArgs = { + key: Scalars["String"]; +}; + +/** Represents warehouse. */ +export type WarehousePrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents warehouse. */ +export type WarehouseShippingZonesArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +/** An enumeration. */ +export enum WarehouseClickAndCollectOptionEnum { + All = "ALL", + Disabled = "DISABLED", + Local = "LOCAL", +} + +export type WarehouseCountableConnection = { + __typename?: "WarehouseCountableConnection"; + edges: Array; + /** Pagination data for this connection. */ + pageInfo: PageInfo; + /** A total count of items in the collection. */ + totalCount?: Maybe; +}; + +export type WarehouseCountableEdge = { + __typename?: "WarehouseCountableEdge"; + /** A cursor for use in pagination. */ + cursor: Scalars["String"]; + /** The item at the end of the edge. */ + node: Warehouse; +}; + +/** + * Creates new warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type WarehouseCreate = { + __typename?: "WarehouseCreate"; + errors: Array; + warehouse?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + warehouseErrors: Array; +}; + +export type WarehouseCreateInput = { + /** Address of the warehouse. */ + address: AddressInput; + /** The email address of the warehouse. */ + email?: InputMaybe; + /** Warehouse name. */ + name: Scalars["String"]; + /** Shipping zones supported by the warehouse. */ + shippingZones?: InputMaybe>; + /** Warehouse slug. */ + slug?: InputMaybe; +}; + +export type WarehouseCreated = Event & { + __typename?: "WarehouseCreated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; + /** + * The warehouse the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + warehouse?: Maybe; +}; + +/** + * Deletes selected warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type WarehouseDelete = { + __typename?: "WarehouseDelete"; + errors: Array; + warehouse?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + warehouseErrors: Array; +}; + +export type WarehouseDeleted = Event & { + __typename?: "WarehouseDeleted"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; + /** + * The warehouse the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + warehouse?: Maybe; +}; + +export type WarehouseError = { + __typename?: "WarehouseError"; + /** The error code. */ + code: WarehouseErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum WarehouseErrorCode { + AlreadyExists = "ALREADY_EXISTS", + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +export type WarehouseFilterInput = { + clickAndCollectOption?: InputMaybe; + ids?: InputMaybe>; + isPrivate?: InputMaybe; + search?: InputMaybe; +}; + +/** + * Add shipping zone to given warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type WarehouseShippingZoneAssign = { + __typename?: "WarehouseShippingZoneAssign"; + errors: Array; + warehouse?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + warehouseErrors: Array; +}; + +/** + * Remove shipping zone from given warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type WarehouseShippingZoneUnassign = { + __typename?: "WarehouseShippingZoneUnassign"; + errors: Array; + warehouse?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + warehouseErrors: Array; +}; + +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; +}; + +/** + * Updates given warehouse. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ +export type WarehouseUpdate = { + __typename?: "WarehouseUpdate"; + errors: Array; + warehouse?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + warehouseErrors: Array; +}; + +export type WarehouseUpdateInput = { + /** 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; + /** The email address of the warehouse. */ + email?: 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 WarehouseUpdated = Event & { + __typename?: "WarehouseUpdated"; + /** Time of the event. */ + issuedAt?: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe; + /** The application receiving the webhook. */ + recipient?: Maybe; + /** Saleor version that triggered the event. */ + version?: Maybe; + /** + * The warehouse the event relates to. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + warehouse?: Maybe; +}; + +/** Webhook. */ +export type Webhook = Node & { + __typename?: "Webhook"; + app: App; + /** List of asynchronous webhook events. */ + asyncEvents: Array; + /** Event deliveries. */ + eventDeliveries?: Maybe; + /** + * List of webhook events. + * @deprecated This field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. + */ + events: Array; + id: Scalars["ID"]; + /** Informs if webhook is activated. */ + isActive: Scalars["Boolean"]; + name: Scalars["String"]; + /** Used to create a hash signature with each payload. */ + secretKey?: Maybe; + /** Used to define payloads for specific events. */ + subscriptionQuery?: Maybe; + /** List of synchronous webhook events. */ + syncEvents: Array; + /** Target URL for webhook. */ + targetUrl: Scalars["String"]; +}; + +/** Webhook. */ +export type WebhookEventDeliveriesArgs = { + after?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sortBy?: InputMaybe; +}; + +/** + * Creates a new webhook subscription. + * + * Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. + */ +export type WebhookCreate = { + __typename?: "WebhookCreate"; + errors: Array; + webhook?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + webhookErrors: Array; +}; + +export type WebhookCreateInput = { + /** ID of the app to which webhook belongs. */ + app?: InputMaybe; + /** The asynchronous events that webhook wants to subscribe. */ + asyncEvents?: 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 name of the webhook. */ + name?: 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 secret key used to create a hash signature with each payload. */ + secretKey?: InputMaybe; + /** The synchronous events that webhook wants to subscribe. */ + syncEvents?: InputMaybe>; + /** The url to receive the payload. */ + targetUrl?: InputMaybe; +}; + +/** + * Deletes a webhook subscription. + * + * Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. + */ +export type WebhookDelete = { + __typename?: "WebhookDelete"; + errors: Array; + webhook?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + webhookErrors: Array; +}; + +export type WebhookError = { + __typename?: "WebhookError"; + /** The error code. */ + code: WebhookErrorCode; + /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ + field?: Maybe; + /** The error message. */ + message?: Maybe; +}; + +/** An enumeration. */ +export enum WebhookErrorCode { + GraphqlError = "GRAPHQL_ERROR", + Invalid = "INVALID", + NotFound = "NOT_FOUND", + Required = "REQUIRED", + Unique = "UNIQUE", +} + +/** Webhook event. */ +export type WebhookEvent = { + __typename?: "WebhookEvent"; + /** Internal name of the event type. */ + eventType: WebhookEventTypeEnum; + /** Display name of the event. */ + name: Scalars["String"]; +}; + +/** Asynchronous webhook event. */ +export type WebhookEventAsync = { + __typename?: "WebhookEventAsync"; + /** Internal name of the event type. */ + eventType: WebhookEventTypeAsyncEnum; + /** Display name of the event. */ + name: Scalars["String"]; +}; + +/** Synchronous webhook event. */ +export type WebhookEventSync = { + __typename?: "WebhookEventSync"; + /** Internal name of the event type. */ + eventType: WebhookEventTypeSyncEnum; + /** Display name of the event. */ + name: Scalars["String"]; +}; + +/** Enum determining type of webhook. */ +export enum WebhookEventTypeAsyncEnum { + /** All the events. */ + AnyEvents = "ANY_EVENTS", + /** An app deleted. */ + AppDeleted = "APP_DELETED", + /** A new app installed. */ + AppInstalled = "APP_INSTALLED", + /** An app status is changed. */ + AppStatusChanged = "APP_STATUS_CHANGED", + /** An app updated. */ + AppUpdated = "APP_UPDATED", + /** A new category created. */ + CategoryCreated = "CATEGORY_CREATED", + /** A category is deleted. */ + CategoryDeleted = "CATEGORY_DELETED", + /** A category is updated. */ + CategoryUpdated = "CATEGORY_UPDATED", + /** A new channel created. */ + ChannelCreated = "CHANNEL_CREATED", + /** A channel is deleted. */ + ChannelDeleted = "CHANNEL_DELETED", + /** A channel status is changed. */ + ChannelStatusChanged = "CHANNEL_STATUS_CHANGED", + /** A channel is updated. */ + ChannelUpdated = "CHANNEL_UPDATED", + /** A new checkout is created. */ + CheckoutCreated = "CHECKOUT_CREATED", + /** A checkout is updated. It also triggers all updates related to the checkout. */ + CheckoutUpdated = "CHECKOUT_UPDATED", + /** A new collection is created. */ + CollectionCreated = "COLLECTION_CREATED", + /** A collection is deleted. */ + CollectionDeleted = "COLLECTION_DELETED", + /** A collection is updated. */ + CollectionUpdated = "COLLECTION_UPDATED", + /** A new customer account is created. */ + CustomerCreated = "CUSTOMER_CREATED", + /** A customer account is updated. */ + CustomerUpdated = "CUSTOMER_UPDATED", + DraftOrderCreated = "DRAFT_ORDER_CREATED", + DraftOrderDeleted = "DRAFT_ORDER_DELETED", + DraftOrderUpdated = "DRAFT_ORDER_UPDATED", + /** A fulfillment is cancelled. */ + FulfillmentCanceled = "FULFILLMENT_CANCELED", + /** A new fulfillment is created. */ + FulfillmentCreated = "FULFILLMENT_CREATED", + /** A new gift card created. */ + GiftCardCreated = "GIFT_CARD_CREATED", + /** A gift card is deleted. */ + GiftCardDeleted = "GIFT_CARD_DELETED", + /** A gift card status is changed. */ + GiftCardStatusChanged = "GIFT_CARD_STATUS_CHANGED", + /** A gift card is updated. */ + GiftCardUpdated = "GIFT_CARD_UPDATED", + /** An invoice is deleted. */ + InvoiceDeleted = "INVOICE_DELETED", + /** An invoice for order requested. */ + InvoiceRequested = "INVOICE_REQUESTED", + /** Invoice has been sent. */ + InvoiceSent = "INVOICE_SENT", + /** A new menu created. */ + MenuCreated = "MENU_CREATED", + /** A menu is deleted. */ + MenuDeleted = "MENU_DELETED", + /** A new menu item created. */ + MenuItemCreated = "MENU_ITEM_CREATED", + /** A menu item is deleted. */ + MenuItemDeleted = "MENU_ITEM_DELETED", + /** A menu item is updated. */ + MenuItemUpdated = "MENU_ITEM_UPDATED", + /** A menu is updated. */ + MenuUpdated = "MENU_UPDATED", + /** User notification triggered. */ + NotifyUser = "NOTIFY_USER", + /** An observability event is created. */ + Observability = "OBSERVABILITY", + /** An order is cancelled. */ + OrderCancelled = "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. */ + OrderConfirmed = "ORDER_CONFIRMED", + /** A new order is placed. */ + OrderCreated = "ORDER_CREATED", + /** An order is fulfilled. */ + OrderFulfilled = "ORDER_FULFILLED", + /** Payment is made and an order is fully paid. */ + OrderFullyPaid = "ORDER_FULLY_PAID", + /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ + OrderUpdated = "ORDER_UPDATED", + /** A new page is created. */ + PageCreated = "PAGE_CREATED", + /** A page is deleted. */ + PageDeleted = "PAGE_DELETED", + /** A page is updated. */ + PageUpdated = "PAGE_UPDATED", + /** A new product is created. */ + ProductCreated = "PRODUCT_CREATED", + /** A product is deleted. */ + ProductDeleted = "PRODUCT_DELETED", + /** A product is updated. */ + ProductUpdated = "PRODUCT_UPDATED", + ProductVariantBackInStock = "PRODUCT_VARIANT_BACK_IN_STOCK", + /** A new product variant is created. */ + ProductVariantCreated = "PRODUCT_VARIANT_CREATED", + /** A product variant is deleted. */ + ProductVariantDeleted = "PRODUCT_VARIANT_DELETED", + ProductVariantOutOfStock = "PRODUCT_VARIANT_OUT_OF_STOCK", + /** A product variant is updated. */ + ProductVariantUpdated = "PRODUCT_VARIANT_UPDATED", + SaleCreated = "SALE_CREATED", + SaleDeleted = "SALE_DELETED", + SaleUpdated = "SALE_UPDATED", + /** A new shipping price is created. */ + ShippingPriceCreated = "SHIPPING_PRICE_CREATED", + /** A shipping price is deleted. */ + ShippingPriceDeleted = "SHIPPING_PRICE_DELETED", + /** A shipping price is updated. */ + ShippingPriceUpdated = "SHIPPING_PRICE_UPDATED", + /** A new shipping zone is created. */ + ShippingZoneCreated = "SHIPPING_ZONE_CREATED", + /** A shipping zone is deleted. */ + ShippingZoneDeleted = "SHIPPING_ZONE_DELETED", + /** A shipping zone is updated. */ + ShippingZoneUpdated = "SHIPPING_ZONE_UPDATED", + TransactionActionRequest = "TRANSACTION_ACTION_REQUEST", + TranslationCreated = "TRANSLATION_CREATED", + TranslationUpdated = "TRANSLATION_UPDATED", + /** A new voucher created. */ + VoucherCreated = "VOUCHER_CREATED", + /** A voucher is deleted. */ + VoucherDeleted = "VOUCHER_DELETED", + /** A voucher is updated. */ + VoucherUpdated = "VOUCHER_UPDATED", + /** A new warehouse created. */ + WarehouseCreated = "WAREHOUSE_CREATED", + /** A warehouse is deleted. */ + WarehouseDeleted = "WAREHOUSE_DELETED", + /** A warehouse is updated. */ + WarehouseUpdated = "WAREHOUSE_UPDATED", +} + +/** Enum determining type of webhook. */ +export enum WebhookEventTypeEnum { + /** All the events. */ + AnyEvents = "ANY_EVENTS", + /** An app deleted. */ + AppDeleted = "APP_DELETED", + /** A new app installed. */ + AppInstalled = "APP_INSTALLED", + /** An app status is changed. */ + AppStatusChanged = "APP_STATUS_CHANGED", + /** An app updated. */ + AppUpdated = "APP_UPDATED", + /** A new category created. */ + CategoryCreated = "CATEGORY_CREATED", + /** A category is deleted. */ + CategoryDeleted = "CATEGORY_DELETED", + /** A category is updated. */ + CategoryUpdated = "CATEGORY_UPDATED", + /** A new channel created. */ + ChannelCreated = "CHANNEL_CREATED", + /** A channel is deleted. */ + ChannelDeleted = "CHANNEL_DELETED", + /** A channel status is changed. */ + ChannelStatusChanged = "CHANNEL_STATUS_CHANGED", + /** A channel is updated. */ + ChannelUpdated = "CHANNEL_UPDATED", + /** A new checkout is created. */ + CheckoutCreated = "CHECKOUT_CREATED", + CheckoutFilterShippingMethods = "CHECKOUT_FILTER_SHIPPING_METHODS", + /** A checkout is updated. It also triggers all updates related to the checkout. */ + CheckoutUpdated = "CHECKOUT_UPDATED", + /** A new collection is created. */ + CollectionCreated = "COLLECTION_CREATED", + /** A collection is deleted. */ + CollectionDeleted = "COLLECTION_DELETED", + /** A collection is updated. */ + CollectionUpdated = "COLLECTION_UPDATED", + /** A new customer account is created. */ + CustomerCreated = "CUSTOMER_CREATED", + /** A customer account is updated. */ + CustomerUpdated = "CUSTOMER_UPDATED", + DraftOrderCreated = "DRAFT_ORDER_CREATED", + DraftOrderDeleted = "DRAFT_ORDER_DELETED", + DraftOrderUpdated = "DRAFT_ORDER_UPDATED", + /** A fulfillment is cancelled. */ + FulfillmentCanceled = "FULFILLMENT_CANCELED", + /** A new fulfillment is created. */ + FulfillmentCreated = "FULFILLMENT_CREATED", + /** A new gift card created. */ + GiftCardCreated = "GIFT_CARD_CREATED", + /** A gift card is deleted. */ + GiftCardDeleted = "GIFT_CARD_DELETED", + /** A gift card status is changed. */ + GiftCardStatusChanged = "GIFT_CARD_STATUS_CHANGED", + /** A gift card is updated. */ + GiftCardUpdated = "GIFT_CARD_UPDATED", + /** An invoice is deleted. */ + InvoiceDeleted = "INVOICE_DELETED", + /** An invoice for order requested. */ + InvoiceRequested = "INVOICE_REQUESTED", + /** Invoice has been sent. */ + InvoiceSent = "INVOICE_SENT", + /** A new menu created. */ + MenuCreated = "MENU_CREATED", + /** A menu is deleted. */ + MenuDeleted = "MENU_DELETED", + /** A new menu item created. */ + MenuItemCreated = "MENU_ITEM_CREATED", + /** A menu item is deleted. */ + MenuItemDeleted = "MENU_ITEM_DELETED", + /** A menu item is updated. */ + MenuItemUpdated = "MENU_ITEM_UPDATED", + /** A menu is updated. */ + MenuUpdated = "MENU_UPDATED", + /** User notification triggered. */ + NotifyUser = "NOTIFY_USER", + /** An observability event is created. */ + Observability = "OBSERVABILITY", + /** An order is cancelled. */ + OrderCancelled = "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. */ + OrderConfirmed = "ORDER_CONFIRMED", + /** A new order is placed. */ + OrderCreated = "ORDER_CREATED", + OrderFilterShippingMethods = "ORDER_FILTER_SHIPPING_METHODS", + /** An order is fulfilled. */ + OrderFulfilled = "ORDER_FULFILLED", + /** Payment is made and an order is fully paid. */ + OrderFullyPaid = "ORDER_FULLY_PAID", + /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ + OrderUpdated = "ORDER_UPDATED", + /** A new page is created. */ + PageCreated = "PAGE_CREATED", + /** A page is deleted. */ + PageDeleted = "PAGE_DELETED", + /** A page is updated. */ + PageUpdated = "PAGE_UPDATED", + PaymentAuthorize = "PAYMENT_AUTHORIZE", + PaymentCapture = "PAYMENT_CAPTURE", + PaymentConfirm = "PAYMENT_CONFIRM", + PaymentListGateways = "PAYMENT_LIST_GATEWAYS", + PaymentProcess = "PAYMENT_PROCESS", + PaymentRefund = "PAYMENT_REFUND", + PaymentVoid = "PAYMENT_VOID", + /** A new product is created. */ + ProductCreated = "PRODUCT_CREATED", + /** A product is deleted. */ + ProductDeleted = "PRODUCT_DELETED", + /** A product is updated. */ + ProductUpdated = "PRODUCT_UPDATED", + ProductVariantBackInStock = "PRODUCT_VARIANT_BACK_IN_STOCK", + /** A new product variant is created. */ + ProductVariantCreated = "PRODUCT_VARIANT_CREATED", + /** A product variant is deleted. */ + ProductVariantDeleted = "PRODUCT_VARIANT_DELETED", + ProductVariantOutOfStock = "PRODUCT_VARIANT_OUT_OF_STOCK", + /** A product variant is updated. */ + ProductVariantUpdated = "PRODUCT_VARIANT_UPDATED", + SaleCreated = "SALE_CREATED", + SaleDeleted = "SALE_DELETED", + SaleUpdated = "SALE_UPDATED", + ShippingListMethodsForCheckout = "SHIPPING_LIST_METHODS_FOR_CHECKOUT", + /** A new shipping price is created. */ + ShippingPriceCreated = "SHIPPING_PRICE_CREATED", + /** A shipping price is deleted. */ + ShippingPriceDeleted = "SHIPPING_PRICE_DELETED", + /** A shipping price is updated. */ + ShippingPriceUpdated = "SHIPPING_PRICE_UPDATED", + /** A new shipping zone is created. */ + ShippingZoneCreated = "SHIPPING_ZONE_CREATED", + /** A shipping zone is deleted. */ + ShippingZoneDeleted = "SHIPPING_ZONE_DELETED", + /** A shipping zone is updated. */ + ShippingZoneUpdated = "SHIPPING_ZONE_UPDATED", + TransactionActionRequest = "TRANSACTION_ACTION_REQUEST", + TranslationCreated = "TRANSLATION_CREATED", + TranslationUpdated = "TRANSLATION_UPDATED", + /** A new voucher created. */ + VoucherCreated = "VOUCHER_CREATED", + /** A voucher is deleted. */ + VoucherDeleted = "VOUCHER_DELETED", + /** A voucher is updated. */ + VoucherUpdated = "VOUCHER_UPDATED", + /** A new warehouse created. */ + WarehouseCreated = "WAREHOUSE_CREATED", + /** A warehouse is deleted. */ + WarehouseDeleted = "WAREHOUSE_DELETED", + /** A warehouse is updated. */ + WarehouseUpdated = "WAREHOUSE_UPDATED", +} + +/** Enum determining type of webhook. */ +export enum WebhookEventTypeSyncEnum { + CheckoutFilterShippingMethods = "CHECKOUT_FILTER_SHIPPING_METHODS", + OrderFilterShippingMethods = "ORDER_FILTER_SHIPPING_METHODS", + PaymentAuthorize = "PAYMENT_AUTHORIZE", + PaymentCapture = "PAYMENT_CAPTURE", + PaymentConfirm = "PAYMENT_CONFIRM", + PaymentListGateways = "PAYMENT_LIST_GATEWAYS", + PaymentProcess = "PAYMENT_PROCESS", + PaymentRefund = "PAYMENT_REFUND", + PaymentVoid = "PAYMENT_VOID", + ShippingListMethodsForCheckout = "SHIPPING_LIST_METHODS_FOR_CHECKOUT", +} + +/** An enumeration. */ +export enum WebhookSampleEventTypeEnum { + AppDeleted = "APP_DELETED", + AppInstalled = "APP_INSTALLED", + AppStatusChanged = "APP_STATUS_CHANGED", + AppUpdated = "APP_UPDATED", + CategoryCreated = "CATEGORY_CREATED", + CategoryDeleted = "CATEGORY_DELETED", + CategoryUpdated = "CATEGORY_UPDATED", + ChannelCreated = "CHANNEL_CREATED", + ChannelDeleted = "CHANNEL_DELETED", + ChannelStatusChanged = "CHANNEL_STATUS_CHANGED", + ChannelUpdated = "CHANNEL_UPDATED", + CheckoutCreated = "CHECKOUT_CREATED", + CheckoutUpdated = "CHECKOUT_UPDATED", + CollectionCreated = "COLLECTION_CREATED", + CollectionDeleted = "COLLECTION_DELETED", + CollectionUpdated = "COLLECTION_UPDATED", + CustomerCreated = "CUSTOMER_CREATED", + CustomerUpdated = "CUSTOMER_UPDATED", + DraftOrderCreated = "DRAFT_ORDER_CREATED", + DraftOrderDeleted = "DRAFT_ORDER_DELETED", + DraftOrderUpdated = "DRAFT_ORDER_UPDATED", + FulfillmentCanceled = "FULFILLMENT_CANCELED", + FulfillmentCreated = "FULFILLMENT_CREATED", + GiftCardCreated = "GIFT_CARD_CREATED", + GiftCardDeleted = "GIFT_CARD_DELETED", + GiftCardStatusChanged = "GIFT_CARD_STATUS_CHANGED", + GiftCardUpdated = "GIFT_CARD_UPDATED", + InvoiceDeleted = "INVOICE_DELETED", + InvoiceRequested = "INVOICE_REQUESTED", + InvoiceSent = "INVOICE_SENT", + MenuCreated = "MENU_CREATED", + MenuDeleted = "MENU_DELETED", + MenuItemCreated = "MENU_ITEM_CREATED", + MenuItemDeleted = "MENU_ITEM_DELETED", + MenuItemUpdated = "MENU_ITEM_UPDATED", + MenuUpdated = "MENU_UPDATED", + NotifyUser = "NOTIFY_USER", + Observability = "OBSERVABILITY", + OrderCancelled = "ORDER_CANCELLED", + OrderConfirmed = "ORDER_CONFIRMED", + OrderCreated = "ORDER_CREATED", + OrderFulfilled = "ORDER_FULFILLED", + OrderFullyPaid = "ORDER_FULLY_PAID", + OrderUpdated = "ORDER_UPDATED", + PageCreated = "PAGE_CREATED", + PageDeleted = "PAGE_DELETED", + PageUpdated = "PAGE_UPDATED", + ProductCreated = "PRODUCT_CREATED", + ProductDeleted = "PRODUCT_DELETED", + ProductUpdated = "PRODUCT_UPDATED", + ProductVariantBackInStock = "PRODUCT_VARIANT_BACK_IN_STOCK", + ProductVariantCreated = "PRODUCT_VARIANT_CREATED", + ProductVariantDeleted = "PRODUCT_VARIANT_DELETED", + ProductVariantOutOfStock = "PRODUCT_VARIANT_OUT_OF_STOCK", + ProductVariantUpdated = "PRODUCT_VARIANT_UPDATED", + SaleCreated = "SALE_CREATED", + SaleDeleted = "SALE_DELETED", + SaleUpdated = "SALE_UPDATED", + ShippingPriceCreated = "SHIPPING_PRICE_CREATED", + ShippingPriceDeleted = "SHIPPING_PRICE_DELETED", + ShippingPriceUpdated = "SHIPPING_PRICE_UPDATED", + ShippingZoneCreated = "SHIPPING_ZONE_CREATED", + ShippingZoneDeleted = "SHIPPING_ZONE_DELETED", + ShippingZoneUpdated = "SHIPPING_ZONE_UPDATED", + TransactionActionRequest = "TRANSACTION_ACTION_REQUEST", + TranslationCreated = "TRANSLATION_CREATED", + TranslationUpdated = "TRANSLATION_UPDATED", + VoucherCreated = "VOUCHER_CREATED", + VoucherDeleted = "VOUCHER_DELETED", + VoucherUpdated = "VOUCHER_UPDATED", + WarehouseCreated = "WAREHOUSE_CREATED", + WarehouseDeleted = "WAREHOUSE_DELETED", + WarehouseUpdated = "WAREHOUSE_UPDATED", +} + +/** + * Updates a webhook subscription. + * + * Requires one of the following permissions: MANAGE_APPS. + */ +export type WebhookUpdate = { + __typename?: "WebhookUpdate"; + errors: Array; + webhook?: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ + webhookErrors: Array; +}; + +export type WebhookUpdateInput = { + /** ID of the app to which webhook belongs. */ + app?: InputMaybe; + /** The asynchronous events that webhook wants to subscribe. */ + asyncEvents?: 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. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + query?: InputMaybe; + /** Use to create a hash signature with each payload. */ + secretKey?: InputMaybe; + /** The synchronous events that webhook wants to subscribe. */ + syncEvents?: InputMaybe>; + /** The url to receive the payload. */ + targetUrl?: InputMaybe; +}; + +/** Represents weight value in a specific weight unit. */ +export type Weight = { + __typename?: "Weight"; + /** Weight unit. */ + unit: WeightUnitsEnum; + /** Weight value. */ + value: Scalars["Float"]; +}; + +/** An enumeration. */ +export enum WeightUnitsEnum { + G = "G", + Kg = "KG", + Lb = "LB", + Oz = "OZ", + Tonne = "TONNE", +} + +/** _Entity union as defined by Federation spec. */ +export type _Entity = + | Address + | App + | Category + | Collection + | Group + | PageType + | Product + | ProductMedia + | ProductType + | ProductVariant + | User; + +/** _Service manifest as defined by Federation spec. */ +export type _Service = { + __typename?: "_Service"; + sdl?: Maybe; +}; + +export type UpdateAppMetadataMutationVariables = Exact<{ + id: Scalars["ID"]; + input: Array | MetadataInput; +}>; + +export type UpdateAppMetadataMutation = { + __typename?: "Mutation"; + updatePrivateMetadata?: { + __typename?: "UpdatePrivateMetadata"; + item?: + | { + __typename?: "App"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Attribute"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Category"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Checkout"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Collection"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "DigitalContent"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Fulfillment"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "GiftCard"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Invoice"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Menu"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "MenuItem"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Order"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Page"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "PageType"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Payment"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Product"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "ProductType"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "ProductVariant"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Sale"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "ShippingMethod"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "ShippingMethodType"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "ShippingZone"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "TransactionItem"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "User"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Voucher"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | { + __typename?: "Warehouse"; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } + | null; + } | null; +}; + +export type FetchAppDetailsQueryVariables = Exact<{ [key: string]: never }>; + +export type FetchAppDetailsQuery = { + __typename?: "Query"; + app?: { + __typename?: "App"; + id: string; + privateMetadata: Array<{ __typename?: "MetadataItem"; key: string; value: string }>; + } | null; +}; + +export type OrderCreatedWebhookPayloadFragment = { + __typename?: "OrderCreated"; + order?: { + __typename?: "Order"; + id: string; + number: string; + user?: { __typename?: "User"; email: string; firstName: string; lastName: string } | null; + shippingAddress?: { + __typename?: "Address"; + streetAddress1: string; + city: string; + postalCode: string; + country: { __typename?: "CountryDisplay"; country: string }; + } | null; + subtotal: { + __typename?: "TaxedMoney"; + gross: { __typename?: "Money"; amount: number; currency: string }; + }; + shippingPrice: { + __typename?: "TaxedMoney"; + gross: { __typename?: "Money"; amount: number; currency: string }; + }; + total: { + __typename?: "TaxedMoney"; + gross: { __typename?: "Money"; amount: number; currency: string }; + }; + } | null; +}; + +export type OrderCreatedSubscriptionVariables = Exact<{ [key: string]: never }>; + +export type OrderCreatedSubscription = { + __typename?: "Subscription"; + event?: + | { __typename?: "AppDeleted" } + | { __typename?: "AppInstalled" } + | { __typename?: "AppStatusChanged" } + | { __typename?: "AppUpdated" } + | { __typename?: "CategoryCreated" } + | { __typename?: "CategoryDeleted" } + | { __typename?: "CategoryUpdated" } + | { __typename?: "ChannelCreated" } + | { __typename?: "ChannelDeleted" } + | { __typename?: "ChannelStatusChanged" } + | { __typename?: "ChannelUpdated" } + | { __typename?: "CheckoutCreated" } + | { __typename?: "CheckoutUpdated" } + | { __typename?: "CollectionCreated" } + | { __typename?: "CollectionDeleted" } + | { __typename?: "CollectionUpdated" } + | { __typename?: "CustomerCreated" } + | { __typename?: "CustomerUpdated" } + | { __typename?: "DraftOrderCreated" } + | { __typename?: "DraftOrderDeleted" } + | { __typename?: "DraftOrderUpdated" } + | { __typename?: "FulfillmentCanceled" } + | { __typename?: "FulfillmentCreated" } + | { __typename?: "GiftCardCreated" } + | { __typename?: "GiftCardDeleted" } + | { __typename?: "GiftCardStatusChanged" } + | { __typename?: "GiftCardUpdated" } + | { __typename?: "InvoiceDeleted" } + | { __typename?: "InvoiceRequested" } + | { __typename?: "InvoiceSent" } + | { __typename?: "MenuCreated" } + | { __typename?: "MenuDeleted" } + | { __typename?: "MenuItemCreated" } + | { __typename?: "MenuItemDeleted" } + | { __typename?: "MenuItemUpdated" } + | { __typename?: "MenuUpdated" } + | { __typename?: "OrderCancelled" } + | { __typename?: "OrderConfirmed" } + | { + __typename?: "OrderCreated"; + order?: { + __typename?: "Order"; + id: string; + number: string; + user?: { __typename?: "User"; email: string; firstName: string; lastName: string } | null; + shippingAddress?: { + __typename?: "Address"; + streetAddress1: string; + city: string; + postalCode: string; + country: { __typename?: "CountryDisplay"; country: string }; + } | null; + subtotal: { + __typename?: "TaxedMoney"; + gross: { __typename?: "Money"; amount: number; currency: string }; + }; + shippingPrice: { + __typename?: "TaxedMoney"; + gross: { __typename?: "Money"; amount: number; currency: string }; + }; + total: { + __typename?: "TaxedMoney"; + gross: { __typename?: "Money"; amount: number; currency: string }; + }; + } | null; + } + | { __typename?: "OrderFulfilled" } + | { __typename?: "OrderFullyPaid" } + | { __typename?: "OrderUpdated" } + | { __typename?: "PageCreated" } + | { __typename?: "PageDeleted" } + | { __typename?: "PageUpdated" } + | { __typename?: "ProductCreated" } + | { __typename?: "ProductDeleted" } + | { __typename?: "ProductUpdated" } + | { __typename?: "ProductVariantBackInStock" } + | { __typename?: "ProductVariantCreated" } + | { __typename?: "ProductVariantDeleted" } + | { __typename?: "ProductVariantOutOfStock" } + | { __typename?: "ProductVariantUpdated" } + | { __typename?: "SaleCreated" } + | { __typename?: "SaleDeleted" } + | { __typename?: "SaleUpdated" } + | { __typename?: "ShippingPriceCreated" } + | { __typename?: "ShippingPriceDeleted" } + | { __typename?: "ShippingPriceUpdated" } + | { __typename?: "ShippingZoneCreated" } + | { __typename?: "ShippingZoneDeleted" } + | { __typename?: "ShippingZoneUpdated" } + | { __typename?: "TransactionActionRequest" } + | { __typename?: "TranslationCreated" } + | { __typename?: "TranslationUpdated" } + | { __typename?: "VoucherCreated" } + | { __typename?: "VoucherDeleted" } + | { __typename?: "VoucherUpdated" } + | { __typename?: "WarehouseCreated" } + | { __typename?: "WarehouseDeleted" } + | { __typename?: "WarehouseUpdated" } + | null; +}; + +import { IntrospectionQuery } from "graphql"; +export default { + __schema: { + queryType: { + name: "Query", + }, + mutationType: { + name: "Mutation", + }, + subscriptionType: { + name: "Subscription", + }, + types: [ + { + kind: "OBJECT", + name: "AccountAddressCreate", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "address", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AccountAddressDelete", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "address", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AccountAddressUpdate", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "address", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AccountDelete", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AccountError", + fields: [ + { + name: "addressType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AccountRegister", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "requiresConfirmation", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AccountRequestDeletion", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AccountSetDefaultAddress", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AccountUpdate", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Address", + fields: [ + { + name: "city", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "cityArea", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "companyName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "country", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CountryDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "countryArea", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "firstName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isDefaultBillingAddress", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "isDefaultShippingAddress", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "lastName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "phone", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "postalCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "streetAddress1", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "streetAddress2", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AddressCreate", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "address", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AddressDelete", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "address", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AddressSetDefault", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AddressUpdate", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "address", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AddressValidationData", + fields: [ + { + name: "addressFormat", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "addressLatinFormat", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "allowedFields", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "cityAreaChoices", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChoiceValue", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "cityAreaType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "cityChoices", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChoiceValue", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "cityType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "countryAreaChoices", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChoiceValue", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "countryAreaType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "countryCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "countryName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "postalCodeExamples", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "postalCodeMatchers", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "postalCodePrefix", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "postalCodeType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "requiredFields", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "upperFields", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Allocation", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "quantity", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "App", + fields: [ + { + name: "aboutApp", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "accessToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "appUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "configurationUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "created", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "dataPrivacy", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "dataPrivacyUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "extensions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppExtension", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "homepageUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isActive", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Permission", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "supportUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "tokens", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppToken", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "webhooks", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Webhook", + ofType: null, + }, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "AppActivate", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppCreate", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "authToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppDeactivate", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppDelete", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppDeleteFailedInstallation", + fields: [ + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "appInstallation", + type: { + kind: "OBJECT", + name: "AppInstallation", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppDeleted", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "AppError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppExtension", + fields: [ + { + name: "accessToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "app", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "label", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "mount", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Permission", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "target", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "url", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AppExtensionCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppExtensionCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppExtensionCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppExtension", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppFetchManifest", + fields: [ + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "manifest", + type: { + kind: "OBJECT", + name: "Manifest", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppInstall", + fields: [ + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "appInstallation", + type: { + kind: "OBJECT", + name: "AppInstallation", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppInstallation", + fields: [ + { + name: "appName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "createdAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "manifestUrl", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Job", + }, + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AppInstalled", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "AppManifestExtension", + fields: [ + { + name: "label", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "mount", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Permission", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "target", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "url", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppRetryInstall", + fields: [ + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "appInstallation", + type: { + kind: "OBJECT", + name: "AppInstallation", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppStatusChanged", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "AppToken", + fields: [ + { + name: "authToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AppTokenCreate", + fields: [ + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "appToken", + type: { + kind: "OBJECT", + name: "AppToken", + ofType: null, + }, + args: [], + }, + { + name: "authToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppTokenDelete", + fields: [ + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "appToken", + type: { + kind: "OBJECT", + name: "AppToken", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppTokenVerify", + fields: [ + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "valid", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppUpdate", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "appErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AppUpdated", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "AssignNavigation", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AssignedVariantAttribute", + fields: [ + { + name: "attribute", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + }, + args: [], + }, + { + name: "variantSelection", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Attribute", + fields: [ + { + name: "availableInGrid", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "choices", + type: { + kind: "OBJECT", + name: "AttributeValueCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "entityType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "filterableInDashboard", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "filterableInStorefront", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "inputType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "productTypes", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductTypeCountableConnection", + ofType: null, + }, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "productVariantTypes", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductTypeCountableConnection", + ofType: null, + }, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "slug", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "storefrontSearchPosition", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "AttributeTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "unit", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "valueRequired", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "visibleInStorefront", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "withChoices", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "AttributeBulkDelete", + fields: [ + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeCreate", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeDelete", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeReorderValues", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeTranslatableContent", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "AttributeTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AttributeTranslate", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeTranslation", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AttributeUpdate", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeValue", + fields: [ + { + name: "boolean", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "date", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "dateTime", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "file", + type: { + kind: "OBJECT", + name: "File", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "inputType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "reference", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "richText", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "slug", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "AttributeValueTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "value", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AttributeValueBulkDelete", + fields: [ + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeValueCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeValueCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeValueCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeValue", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeValueCreate", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "attributeValue", + type: { + kind: "OBJECT", + name: "AttributeValue", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeValueDelete", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "attributeValue", + type: { + kind: "OBJECT", + name: "AttributeValue", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeValueTranslatableContent", + fields: [ + { + name: "attributeValue", + type: { + kind: "OBJECT", + name: "AttributeValue", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "richText", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "AttributeValueTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AttributeValueTranslate", + fields: [ + { + name: "attributeValue", + type: { + kind: "OBJECT", + name: "AttributeValue", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "AttributeValueTranslation", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "richText", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "AttributeValueUpdate", + fields: [ + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [], + }, + { + name: "attributeErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "attributeValue", + type: { + kind: "OBJECT", + name: "AttributeValue", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "BulkProductError", + fields: [ + { + name: "attributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "channels", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "index", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "values", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "warehouses", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "BulkStockError", + fields: [ + { + name: "attributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "index", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "values", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Category", + fields: [ + { + name: "ancestors", + type: { + kind: "OBJECT", + name: "CategoryCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "backgroundImage", + type: { + kind: "OBJECT", + name: "Image", + ofType: null, + }, + args: [ + { + name: "size", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "children", + type: { + kind: "OBJECT", + name: "CategoryCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "level", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "parent", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "products", + type: { + kind: "OBJECT", + name: "ProductCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "CategoryTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "CategoryBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CategoryCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CategoryCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CategoryCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CategoryCreate", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CategoryCreated", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "CategoryDelete", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CategoryDeleted", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "CategoryTranslatableContent", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "CategoryTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "CategoryTranslate", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CategoryTranslation", + fields: [ + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "CategoryUpdate", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CategoryUpdated", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "Channel", + fields: [ + { + name: "currencyCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "defaultCountry", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CountryDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "hasOrders", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isActive", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ChannelActivate", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "channelErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ChannelCreate", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "channelErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ChannelCreated", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ChannelDeactivate", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "channelErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ChannelDelete", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "channelErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ChannelDeleted", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ChannelError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "shippingZones", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ChannelStatusChanged", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ChannelUpdate", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "channelErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ChannelError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ChannelUpdated", + fields: [ + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "Checkout", + fields: [ + { + name: "availableCollectionPoints", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "availablePaymentGateways", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentGateway", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "availableShippingMethods", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingMethod", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "billingAddress", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "deliveryMethod", + type: { + kind: "UNION", + name: "DeliveryMethod", + ofType: null, + }, + args: [], + }, + { + name: "discount", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "discountName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "email", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "giftCards", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isShippingRequired", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "lastChange", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "lines", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutLine", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "note", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "quantity", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "shippingAddress", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethod", + ofType: null, + }, + args: [], + }, + { + name: "shippingMethods", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingMethod", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "stockReservationExpires", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "subtotalPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "totalPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "transactions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TransactionItem", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "translatedDiscountName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "voucherCode", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "CheckoutAddPromoCode", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutBillingAddressUpdate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutComplete", + fields: [ + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "confirmationData", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "confirmationNeeded", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutCreate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "created", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutCreated", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "CheckoutCustomerAttach", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutCustomerDetach", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutDeliveryMethodUpdate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutEmailUpdate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutError", + fields: [ + { + name: "addressType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "lines", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "variants", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutLanguageCodeUpdate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutLine", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "quantity", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "requiresShipping", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "totalPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "undiscountedTotalPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "undiscountedUnitPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "unitPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "variant", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "CheckoutLineCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutLineCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutLineCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutLine", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutLineDelete", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutLinesAdd", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutLinesDelete", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutLinesUpdate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutPaymentCreate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "payment", + type: { + kind: "OBJECT", + name: "Payment", + ofType: null, + }, + args: [], + }, + { + name: "paymentErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutRemovePromoCode", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutShippingAddressUpdate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutShippingMethodUpdate", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CheckoutUpdated", + fields: [ + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ChoiceValue", + fields: [ + { + name: "raw", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "verbose", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Collection", + fields: [ + { + name: "backgroundImage", + type: { + kind: "OBJECT", + name: "Image", + ofType: null, + }, + args: [ + { + name: "size", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "channelListings", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionChannelListing", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "products", + type: { + kind: "OBJECT", + name: "ProductCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "CollectionTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "CollectionAddProducts", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "collectionErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionBulkDelete", + fields: [ + { + name: "collectionErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionChannelListing", + fields: [ + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isPublished", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "publicationDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "publishedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "CollectionChannelListingError", + fields: [ + { + name: "attributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "channels", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "values", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionChannelListingUpdate", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "collectionChannelListingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionChannelListingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionChannelListingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionCreate", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "collectionErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionCreated", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "CollectionDelete", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "collectionErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionDeleted", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "CollectionError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "products", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionRemoveProducts", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "collectionErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionReorderProducts", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "collectionErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionTranslatableContent", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "CollectionTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "CollectionTranslate", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionTranslation", + fields: [ + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "CollectionUpdate", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "collectionErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CollectionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CollectionUpdated", + fields: [ + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ConfigurationItem", + fields: [ + { + name: "helpText", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "label", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "value", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ConfirmAccount", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ConfirmEmailChange", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CountryDisplay", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "country", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "vat", + type: { + kind: "OBJECT", + name: "VAT", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CreateToken", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "csrfToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "refreshToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CreditCard", + fields: [ + { + name: "brand", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "expMonth", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "expYear", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "firstDigits", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "lastDigits", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CustomerBulkDelete", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CustomerCreate", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CustomerCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "CustomerDelete", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CustomerEvent", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "count", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "date", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderLine", + type: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + args: [], + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "CustomerUpdate", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "CustomerUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "DeactivateAllUserTokens", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DeleteMetadata", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "item", + type: { + kind: "INTERFACE", + name: "ObjectWithMetadata", + ofType: null, + }, + args: [], + }, + { + name: "metadataErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DeletePrivateMetadata", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "item", + type: { + kind: "INTERFACE", + name: "ObjectWithMetadata", + ofType: null, + }, + args: [], + }, + { + name: "metadataErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "UNION", + name: "DeliveryMethod", + possibleTypes: [ + { + kind: "OBJECT", + name: "ShippingMethod", + }, + { + kind: "OBJECT", + name: "Warehouse", + }, + ], + }, + { + kind: "OBJECT", + name: "DigitalContent", + fields: [ + { + name: "automaticFulfillment", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "contentFile", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "maxDownloads", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "productVariant", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + }, + args: [], + }, + { + name: "urlValidDays", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "urls", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DigitalContentUrl", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "useDefaultSettings", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "DigitalContentCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DigitalContentCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DigitalContentCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DigitalContent", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DigitalContentCreate", + fields: [ + { + name: "content", + type: { + kind: "OBJECT", + name: "DigitalContent", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "variant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DigitalContentDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "variant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DigitalContentUpdate", + fields: [ + { + name: "content", + type: { + kind: "OBJECT", + name: "DigitalContent", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "variant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DigitalContentUrl", + fields: [ + { + name: "content", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DigitalContent", + ofType: null, + }, + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "downloadNum", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "url", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "DigitalContentUrlCreate", + fields: [ + { + name: "digitalContentUrl", + type: { + kind: "OBJECT", + name: "DigitalContentUrl", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DiscountError", + fields: [ + { + name: "channels", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "products", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Domain", + fields: [ + { + name: "host", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "sslEnabled", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "url", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DraftOrderBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DraftOrderComplete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DraftOrderCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DraftOrderCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "DraftOrderDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DraftOrderDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "DraftOrderLinesBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DraftOrderUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "DraftOrderUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "INTERFACE", + name: "Event", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + possibleTypes: [ + { + kind: "OBJECT", + name: "AppDeleted", + }, + { + kind: "OBJECT", + name: "AppInstalled", + }, + { + kind: "OBJECT", + name: "AppStatusChanged", + }, + { + kind: "OBJECT", + name: "AppUpdated", + }, + { + kind: "OBJECT", + name: "CategoryCreated", + }, + { + kind: "OBJECT", + name: "CategoryDeleted", + }, + { + kind: "OBJECT", + name: "CategoryUpdated", + }, + { + kind: "OBJECT", + name: "ChannelCreated", + }, + { + kind: "OBJECT", + name: "ChannelDeleted", + }, + { + kind: "OBJECT", + name: "ChannelStatusChanged", + }, + { + kind: "OBJECT", + name: "ChannelUpdated", + }, + { + kind: "OBJECT", + name: "CheckoutCreated", + }, + { + kind: "OBJECT", + name: "CheckoutUpdated", + }, + { + kind: "OBJECT", + name: "CollectionCreated", + }, + { + kind: "OBJECT", + name: "CollectionDeleted", + }, + { + kind: "OBJECT", + name: "CollectionUpdated", + }, + { + kind: "OBJECT", + name: "CustomerCreated", + }, + { + kind: "OBJECT", + name: "CustomerUpdated", + }, + { + kind: "OBJECT", + name: "DraftOrderCreated", + }, + { + kind: "OBJECT", + name: "DraftOrderDeleted", + }, + { + kind: "OBJECT", + name: "DraftOrderUpdated", + }, + { + kind: "OBJECT", + name: "FulfillmentCanceled", + }, + { + kind: "OBJECT", + name: "FulfillmentCreated", + }, + { + kind: "OBJECT", + name: "GiftCardCreated", + }, + { + kind: "OBJECT", + name: "GiftCardDeleted", + }, + { + kind: "OBJECT", + name: "GiftCardStatusChanged", + }, + { + kind: "OBJECT", + name: "GiftCardUpdated", + }, + { + kind: "OBJECT", + name: "InvoiceDeleted", + }, + { + kind: "OBJECT", + name: "InvoiceRequested", + }, + { + kind: "OBJECT", + name: "InvoiceSent", + }, + { + kind: "OBJECT", + name: "MenuCreated", + }, + { + kind: "OBJECT", + name: "MenuDeleted", + }, + { + kind: "OBJECT", + name: "MenuItemCreated", + }, + { + kind: "OBJECT", + name: "MenuItemDeleted", + }, + { + kind: "OBJECT", + name: "MenuItemUpdated", + }, + { + kind: "OBJECT", + name: "MenuUpdated", + }, + { + kind: "OBJECT", + name: "OrderCancelled", + }, + { + kind: "OBJECT", + name: "OrderConfirmed", + }, + { + kind: "OBJECT", + name: "OrderCreated", + }, + { + kind: "OBJECT", + name: "OrderFulfilled", + }, + { + kind: "OBJECT", + name: "OrderFullyPaid", + }, + { + kind: "OBJECT", + name: "OrderUpdated", + }, + { + kind: "OBJECT", + name: "PageCreated", + }, + { + kind: "OBJECT", + name: "PageDeleted", + }, + { + kind: "OBJECT", + name: "PageUpdated", + }, + { + kind: "OBJECT", + name: "ProductCreated", + }, + { + kind: "OBJECT", + name: "ProductDeleted", + }, + { + kind: "OBJECT", + name: "ProductUpdated", + }, + { + kind: "OBJECT", + name: "ProductVariantBackInStock", + }, + { + kind: "OBJECT", + name: "ProductVariantCreated", + }, + { + kind: "OBJECT", + name: "ProductVariantDeleted", + }, + { + kind: "OBJECT", + name: "ProductVariantOutOfStock", + }, + { + kind: "OBJECT", + name: "ProductVariantUpdated", + }, + { + kind: "OBJECT", + name: "SaleCreated", + }, + { + kind: "OBJECT", + name: "SaleDeleted", + }, + { + kind: "OBJECT", + name: "SaleUpdated", + }, + { + kind: "OBJECT", + name: "ShippingPriceCreated", + }, + { + kind: "OBJECT", + name: "ShippingPriceDeleted", + }, + { + kind: "OBJECT", + name: "ShippingPriceUpdated", + }, + { + kind: "OBJECT", + name: "ShippingZoneCreated", + }, + { + kind: "OBJECT", + name: "ShippingZoneDeleted", + }, + { + kind: "OBJECT", + name: "ShippingZoneUpdated", + }, + { + kind: "OBJECT", + name: "TransactionActionRequest", + }, + { + kind: "OBJECT", + name: "TranslationCreated", + }, + { + kind: "OBJECT", + name: "TranslationUpdated", + }, + { + kind: "OBJECT", + name: "VoucherCreated", + }, + { + kind: "OBJECT", + name: "VoucherDeleted", + }, + { + kind: "OBJECT", + name: "VoucherUpdated", + }, + { + kind: "OBJECT", + name: "WarehouseCreated", + }, + { + kind: "OBJECT", + name: "WarehouseDeleted", + }, + { + kind: "OBJECT", + name: "WarehouseUpdated", + }, + ], + }, + { + kind: "OBJECT", + name: "EventDelivery", + fields: [ + { + name: "attempts", + type: { + kind: "OBJECT", + name: "EventDeliveryAttemptCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "createdAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "eventType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "payload", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "EventDeliveryAttempt", + fields: [ + { + name: "createdAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "duration", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "requestHeaders", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "response", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "responseHeaders", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "responseStatusCode", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "taskId", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "EventDeliveryAttemptCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "EventDeliveryAttemptCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "EventDeliveryAttemptCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "EventDeliveryAttempt", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "EventDeliveryCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "EventDeliveryCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "EventDeliveryCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "EventDelivery", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "EventDeliveryRetry", + fields: [ + { + name: "delivery", + type: { + kind: "OBJECT", + name: "EventDelivery", + ofType: null, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExportError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExportEvent", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "date", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ExportFile", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "createdAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "events", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ExportEvent", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "url", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Job", + }, + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ExportFileCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ExportFileCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExportFileCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ExportFile", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExportGiftCards", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ExportError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "exportFile", + type: { + kind: "OBJECT", + name: "ExportFile", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExportProducts", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ExportError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "exportErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ExportError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "exportFile", + type: { + kind: "OBJECT", + name: "ExportFile", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExternalAuthentication", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExternalAuthenticationUrl", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "authenticationData", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExternalLogout", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "logoutData", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExternalNotificationError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExternalNotificationTrigger", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ExternalNotificationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExternalObtainAccessTokens", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "csrfToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "refreshToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExternalRefresh", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "csrfToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "refreshToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ExternalVerify", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "isValid", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "verifyData", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "File", + fields: [ + { + name: "contentType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "url", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "FileUpload", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "UploadError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "uploadErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "UploadError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "uploadedFile", + type: { + kind: "OBJECT", + name: "File", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Fulfillment", + fields: [ + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "fulfillmentOrder", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "lines", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "FulfillmentLine", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "statusDisplay", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "trackingNumber", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "FulfillmentApprove", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "fulfillment", + type: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "FulfillmentCancel", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "fulfillment", + type: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "FulfillmentCanceled", + fields: [ + { + name: "fulfillment", + type: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "FulfillmentCreated", + fields: [ + { + name: "fulfillment", + type: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "FulfillmentLine", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "orderLine", + type: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + args: [], + }, + { + name: "quantity", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "FulfillmentRefundProducts", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "fulfillment", + type: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "FulfillmentReturnProducts", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "replaceFulfillment", + type: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + args: [], + }, + { + name: "replaceOrder", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "returnFulfillment", + type: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "FulfillmentUpdateTracking", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "fulfillment", + type: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GatewayConfigLine", + fields: [ + { + name: "field", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "value", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCard", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "boughtInChannel", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "createdBy", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "createdByEmail", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "currentBalance", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "displayCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "endDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "events", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardEvent", + ofType: null, + }, + }, + }, + }, + args: [ + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "expiryDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "initialBalance", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "isActive", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "last4CodeChars", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "lastUsedOn", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "startDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "tags", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardTag", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "usedBy", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "usedByEmail", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "GiftCardActivate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "giftCardErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardAddNote", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "event", + type: { + kind: "OBJECT", + name: "GiftCardEvent", + ofType: null, + }, + args: [], + }, + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardBulkActivate", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardBulkCreate", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCards", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardBulkDeactivate", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "giftCardErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardCreated", + fields: [ + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "GiftCardDeactivate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "giftCardErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "giftCardErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardDeleted", + fields: [ + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "GiftCardError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "tags", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardEvent", + fields: [ + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "balance", + type: { + kind: "OBJECT", + name: "GiftCardEventBalance", + ofType: null, + }, + args: [], + }, + { + name: "date", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "email", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "expiryDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "oldExpiryDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "oldTags", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "orderId", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "orderNumber", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "tags", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "GiftCardEventBalance", + fields: [ + { + name: "currentBalance", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "initialBalance", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "oldCurrentBalance", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "oldInitialBalance", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardResend", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardSettings", + fields: [ + { + name: "expiryPeriod", + type: { + kind: "OBJECT", + name: "TimePeriod", + ofType: null, + }, + args: [], + }, + { + name: "expiryType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardSettingsError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardSettingsUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardSettingsError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCardSettings", + type: { + kind: "OBJECT", + name: "GiftCardSettings", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardStatusChanged", + fields: [ + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "GiftCardTag", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "GiftCardTagCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardTagCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardTagCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardTag", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "giftCardErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GiftCardUpdated", + fields: [ + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "Group", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Permission", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "userCanManage", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "users", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "GroupCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GroupCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "GroupCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Group", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Image", + fields: [ + { + name: "alt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "url", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Invoice", + fields: [ + { + name: "createdAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "externalUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "number", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "url", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Job", + }, + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "InvoiceCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "invoiceErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "InvoiceDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "invoiceErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "InvoiceDeleted", + fields: [ + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "InvoiceError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "InvoiceRequest", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "invoiceErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "InvoiceRequestDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "invoiceErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "InvoiceRequested", + fields: [ + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "InvoiceSendNotification", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "invoiceErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "InvoiceSent", + fields: [ + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "InvoiceUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "invoice", + type: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + args: [], + }, + { + name: "invoiceErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "InvoiceError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "UNION", + name: "IssuingPrincipal", + possibleTypes: [ + { + kind: "OBJECT", + name: "App", + }, + { + kind: "OBJECT", + name: "User", + }, + ], + }, + { + kind: "INTERFACE", + name: "Job", + fields: [ + { + name: "createdAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + possibleTypes: [ + { + kind: "OBJECT", + name: "AppInstallation", + }, + { + kind: "OBJECT", + name: "ExportFile", + }, + { + kind: "OBJECT", + name: "Invoice", + }, + ], + }, + { + kind: "OBJECT", + name: "LanguageDisplay", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "LimitInfo", + fields: [ + { + name: "allowedUsage", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Limits", + ofType: null, + }, + }, + args: [], + }, + { + name: "currentUsage", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Limits", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Limits", + fields: [ + { + name: "channels", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "orders", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "productVariants", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "staffUsers", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "warehouses", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Manifest", + fields: [ + { + name: "about", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "appUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "configurationUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "dataPrivacy", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "dataPrivacyUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "extensions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppManifestExtension", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "homepageUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "identifier", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Permission", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "supportUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "tokenTargetUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "version", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Margin", + fields: [ + { + name: "start", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "stop", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Menu", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "items", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItem", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "children", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "level", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "parent", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "MenuItemTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "url", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuItemBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItemCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuItemCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItemCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItemCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItemCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuItemDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItemDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuItemMove", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItemTranslatableContent", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "MenuItemTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuItemTranslate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItemTranslation", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuItemUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuItemUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "MenuUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [], + }, + { + name: "menuErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MenuError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MenuUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "MetadataError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MetadataItem", + fields: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "value", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Money", + fields: [ + { + name: "amount", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "currency", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "MoneyRange", + fields: [ + { + name: "start", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "stop", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Mutation", + fields: [ + { + name: "accountAddressCreate", + type: { + kind: "OBJECT", + name: "AccountAddressCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "accountAddressDelete", + type: { + kind: "OBJECT", + name: "AccountAddressDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "accountAddressUpdate", + type: { + kind: "OBJECT", + name: "AccountAddressUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "accountDelete", + type: { + kind: "OBJECT", + name: "AccountDelete", + ofType: null, + }, + args: [ + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "accountRegister", + type: { + kind: "OBJECT", + name: "AccountRegister", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "accountRequestDeletion", + type: { + kind: "OBJECT", + name: "AccountRequestDeletion", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "redirectUrl", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "accountSetDefaultAddress", + type: { + kind: "OBJECT", + name: "AccountSetDefaultAddress", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "accountUpdate", + type: { + kind: "OBJECT", + name: "AccountUpdate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "addressCreate", + type: { + kind: "OBJECT", + name: "AddressCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "userId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "addressDelete", + type: { + kind: "OBJECT", + name: "AddressDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "addressSetDefault", + type: { + kind: "OBJECT", + name: "AddressSetDefault", + ofType: null, + }, + args: [ + { + name: "addressId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "userId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "addressUpdate", + type: { + kind: "OBJECT", + name: "AddressUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appActivate", + type: { + kind: "OBJECT", + name: "AppActivate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appCreate", + type: { + kind: "OBJECT", + name: "AppCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appDeactivate", + type: { + kind: "OBJECT", + name: "AppDeactivate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appDelete", + type: { + kind: "OBJECT", + name: "AppDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appDeleteFailedInstallation", + type: { + kind: "OBJECT", + name: "AppDeleteFailedInstallation", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appFetchManifest", + type: { + kind: "OBJECT", + name: "AppFetchManifest", + ofType: null, + }, + args: [ + { + name: "manifestUrl", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appInstall", + type: { + kind: "OBJECT", + name: "AppInstall", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appRetryInstall", + type: { + kind: "OBJECT", + name: "AppRetryInstall", + ofType: null, + }, + args: [ + { + name: "activateAfterInstallation", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appTokenCreate", + type: { + kind: "OBJECT", + name: "AppTokenCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appTokenDelete", + type: { + kind: "OBJECT", + name: "AppTokenDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appTokenVerify", + type: { + kind: "OBJECT", + name: "AppTokenVerify", + ofType: null, + }, + args: [ + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appUpdate", + type: { + kind: "OBJECT", + name: "AppUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "assignNavigation", + type: { + kind: "OBJECT", + name: "AssignNavigation", + ofType: null, + }, + args: [ + { + name: "menu", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "navigationType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "assignWarehouseShippingZone", + type: { + kind: "OBJECT", + name: "WarehouseShippingZoneAssign", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "shippingZoneIds", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "attributeBulkDelete", + type: { + kind: "OBJECT", + name: "AttributeBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "attributeCreate", + type: { + kind: "OBJECT", + name: "AttributeCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "attributeDelete", + type: { + kind: "OBJECT", + name: "AttributeDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "attributeReorderValues", + type: { + kind: "OBJECT", + name: "AttributeReorderValues", + ofType: null, + }, + args: [ + { + name: "attributeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "attributeTranslate", + type: { + kind: "OBJECT", + name: "AttributeTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "attributeUpdate", + type: { + kind: "OBJECT", + name: "AttributeUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "attributeValueBulkDelete", + type: { + kind: "OBJECT", + name: "AttributeValueBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "attributeValueCreate", + type: { + kind: "OBJECT", + name: "AttributeValueCreate", + ofType: null, + }, + args: [ + { + name: "attribute", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "attributeValueDelete", + type: { + kind: "OBJECT", + name: "AttributeValueDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "attributeValueTranslate", + type: { + kind: "OBJECT", + name: "AttributeValueTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "attributeValueUpdate", + type: { + kind: "OBJECT", + name: "AttributeValueUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "categoryBulkDelete", + type: { + kind: "OBJECT", + name: "CategoryBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "categoryCreate", + type: { + kind: "OBJECT", + name: "CategoryCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "parent", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "categoryDelete", + type: { + kind: "OBJECT", + name: "CategoryDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "categoryTranslate", + type: { + kind: "OBJECT", + name: "CategoryTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "categoryUpdate", + type: { + kind: "OBJECT", + name: "CategoryUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "channelActivate", + type: { + kind: "OBJECT", + name: "ChannelActivate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "channelCreate", + type: { + kind: "OBJECT", + name: "ChannelCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "channelDeactivate", + type: { + kind: "OBJECT", + name: "ChannelDeactivate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "channelDelete", + type: { + kind: "OBJECT", + name: "ChannelDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "channelUpdate", + type: { + kind: "OBJECT", + name: "ChannelUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "checkoutAddPromoCode", + type: { + kind: "OBJECT", + name: "CheckoutAddPromoCode", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "promoCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutBillingAddressUpdate", + type: { + kind: "OBJECT", + name: "CheckoutBillingAddressUpdate", + ofType: null, + }, + args: [ + { + name: "billingAddress", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutComplete", + type: { + kind: "OBJECT", + name: "CheckoutComplete", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "paymentData", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "redirectUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "storeSource", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutCreate", + type: { + kind: "OBJECT", + name: "CheckoutCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "checkoutCustomerAttach", + type: { + kind: "OBJECT", + name: "CheckoutCustomerAttach", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "customerId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutCustomerDetach", + type: { + kind: "OBJECT", + name: "CheckoutCustomerDetach", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutDeliveryMethodUpdate", + type: { + kind: "OBJECT", + name: "CheckoutDeliveryMethodUpdate", + ofType: null, + }, + args: [ + { + name: "deliveryMethodId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutEmailUpdate", + type: { + kind: "OBJECT", + name: "CheckoutEmailUpdate", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "email", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutLanguageCodeUpdate", + type: { + kind: "OBJECT", + name: "CheckoutLanguageCodeUpdate", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutLineDelete", + type: { + kind: "OBJECT", + name: "CheckoutLineDelete", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "lineId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutLinesAdd", + type: { + kind: "OBJECT", + name: "CheckoutLinesAdd", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "lines", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutLinesDelete", + type: { + kind: "OBJECT", + name: "CheckoutLinesDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "linesIds", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutLinesUpdate", + type: { + kind: "OBJECT", + name: "CheckoutLinesUpdate", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "lines", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutPaymentCreate", + type: { + kind: "OBJECT", + name: "CheckoutPaymentCreate", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutRemovePromoCode", + type: { + kind: "OBJECT", + name: "CheckoutRemovePromoCode", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "promoCode", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "promoCodeId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutShippingAddressUpdate", + type: { + kind: "OBJECT", + name: "CheckoutShippingAddressUpdate", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "shippingAddress", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutShippingMethodUpdate", + type: { + kind: "OBJECT", + name: "CheckoutShippingMethodUpdate", + ofType: null, + }, + args: [ + { + name: "checkoutId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "shippingMethodId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "collectionAddProducts", + type: { + kind: "OBJECT", + name: "CollectionAddProducts", + ofType: null, + }, + args: [ + { + name: "collectionId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "products", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "collectionBulkDelete", + type: { + kind: "OBJECT", + name: "CollectionBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "collectionChannelListingUpdate", + type: { + kind: "OBJECT", + name: "CollectionChannelListingUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "collectionCreate", + type: { + kind: "OBJECT", + name: "CollectionCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "collectionDelete", + type: { + kind: "OBJECT", + name: "CollectionDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "collectionRemoveProducts", + type: { + kind: "OBJECT", + name: "CollectionRemoveProducts", + ofType: null, + }, + args: [ + { + name: "collectionId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "products", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "collectionReorderProducts", + type: { + kind: "OBJECT", + name: "CollectionReorderProducts", + ofType: null, + }, + args: [ + { + name: "collectionId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "collectionTranslate", + type: { + kind: "OBJECT", + name: "CollectionTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "collectionUpdate", + type: { + kind: "OBJECT", + name: "CollectionUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "confirmAccount", + type: { + kind: "OBJECT", + name: "ConfirmAccount", + ofType: null, + }, + args: [ + { + name: "email", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "confirmEmailChange", + type: { + kind: "OBJECT", + name: "ConfirmEmailChange", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "createWarehouse", + type: { + kind: "OBJECT", + name: "WarehouseCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "customerBulkDelete", + type: { + kind: "OBJECT", + name: "CustomerBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "customerCreate", + type: { + kind: "OBJECT", + name: "CustomerCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "customerDelete", + type: { + kind: "OBJECT", + name: "CustomerDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "customerUpdate", + type: { + kind: "OBJECT", + name: "CustomerUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "deleteMetadata", + type: { + kind: "OBJECT", + name: "DeleteMetadata", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "keys", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "deletePrivateMetadata", + type: { + kind: "OBJECT", + name: "DeletePrivateMetadata", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "keys", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "deleteWarehouse", + type: { + kind: "OBJECT", + name: "WarehouseDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "digitalContentCreate", + type: { + kind: "OBJECT", + name: "DigitalContentCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "digitalContentDelete", + type: { + kind: "OBJECT", + name: "DigitalContentDelete", + ofType: null, + }, + args: [ + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "digitalContentUpdate", + type: { + kind: "OBJECT", + name: "DigitalContentUpdate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "digitalContentUrlCreate", + type: { + kind: "OBJECT", + name: "DigitalContentUrlCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "draftOrderBulkDelete", + type: { + kind: "OBJECT", + name: "DraftOrderBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "draftOrderComplete", + type: { + kind: "OBJECT", + name: "DraftOrderComplete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "draftOrderCreate", + type: { + kind: "OBJECT", + name: "DraftOrderCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "draftOrderDelete", + type: { + kind: "OBJECT", + name: "DraftOrderDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "draftOrderLinesBulkDelete", + type: { + kind: "OBJECT", + name: "DraftOrderLinesBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "draftOrderUpdate", + type: { + kind: "OBJECT", + name: "DraftOrderUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "eventDeliveryRetry", + type: { + kind: "OBJECT", + name: "EventDeliveryRetry", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "exportGiftCards", + type: { + kind: "OBJECT", + name: "ExportGiftCards", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "exportProducts", + type: { + kind: "OBJECT", + name: "ExportProducts", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "externalAuthenticationUrl", + type: { + kind: "OBJECT", + name: "ExternalAuthenticationUrl", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "pluginId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "externalLogout", + type: { + kind: "OBJECT", + name: "ExternalLogout", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "pluginId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "externalNotificationTrigger", + type: { + kind: "OBJECT", + name: "ExternalNotificationTrigger", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "pluginId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "externalObtainAccessTokens", + type: { + kind: "OBJECT", + name: "ExternalObtainAccessTokens", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "pluginId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "externalRefresh", + type: { + kind: "OBJECT", + name: "ExternalRefresh", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "pluginId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "externalVerify", + type: { + kind: "OBJECT", + name: "ExternalVerify", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "pluginId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "fileUpload", + type: { + kind: "OBJECT", + name: "FileUpload", + ofType: null, + }, + args: [ + { + name: "file", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardActivate", + type: { + kind: "OBJECT", + name: "GiftCardActivate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardAddNote", + type: { + kind: "OBJECT", + name: "GiftCardAddNote", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardBulkActivate", + type: { + kind: "OBJECT", + name: "GiftCardBulkActivate", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "giftCardBulkCreate", + type: { + kind: "OBJECT", + name: "GiftCardBulkCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardBulkDeactivate", + type: { + kind: "OBJECT", + name: "GiftCardBulkDeactivate", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "giftCardBulkDelete", + type: { + kind: "OBJECT", + name: "GiftCardBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "giftCardCreate", + type: { + kind: "OBJECT", + name: "GiftCardCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardDeactivate", + type: { + kind: "OBJECT", + name: "GiftCardDeactivate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardDelete", + type: { + kind: "OBJECT", + name: "GiftCardDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardResend", + type: { + kind: "OBJECT", + name: "GiftCardResend", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardSettingsUpdate", + type: { + kind: "OBJECT", + name: "GiftCardSettingsUpdate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardUpdate", + type: { + kind: "OBJECT", + name: "GiftCardUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "invoiceCreate", + type: { + kind: "OBJECT", + name: "InvoiceCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "orderId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "invoiceDelete", + type: { + kind: "OBJECT", + name: "InvoiceDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "invoiceRequest", + type: { + kind: "OBJECT", + name: "InvoiceRequest", + ofType: null, + }, + args: [ + { + name: "number", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "orderId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "invoiceRequestDelete", + type: { + kind: "OBJECT", + name: "InvoiceRequestDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "invoiceSendNotification", + type: { + kind: "OBJECT", + name: "InvoiceSendNotification", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "invoiceUpdate", + type: { + kind: "OBJECT", + name: "InvoiceUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "menuBulkDelete", + type: { + kind: "OBJECT", + name: "MenuBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "menuCreate", + type: { + kind: "OBJECT", + name: "MenuCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "menuDelete", + type: { + kind: "OBJECT", + name: "MenuDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "menuItemBulkDelete", + type: { + kind: "OBJECT", + name: "MenuItemBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "menuItemCreate", + type: { + kind: "OBJECT", + name: "MenuItemCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "menuItemDelete", + type: { + kind: "OBJECT", + name: "MenuItemDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "menuItemMove", + type: { + kind: "OBJECT", + name: "MenuItemMove", + ofType: null, + }, + args: [ + { + name: "menu", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "menuItemTranslate", + type: { + kind: "OBJECT", + name: "MenuItemTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "menuItemUpdate", + type: { + kind: "OBJECT", + name: "MenuItemUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "menuUpdate", + type: { + kind: "OBJECT", + name: "MenuUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderAddNote", + type: { + kind: "OBJECT", + name: "OrderAddNote", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "order", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderBulkCancel", + type: { + kind: "OBJECT", + name: "OrderBulkCancel", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "orderCancel", + type: { + kind: "OBJECT", + name: "OrderCancel", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderCapture", + type: { + kind: "OBJECT", + name: "OrderCapture", + ofType: null, + }, + args: [ + { + name: "amount", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderConfirm", + type: { + kind: "OBJECT", + name: "OrderConfirm", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderCreateFromCheckout", + type: { + kind: "OBJECT", + name: "OrderCreateFromCheckout", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "removeCheckout", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "orderDiscountAdd", + type: { + kind: "OBJECT", + name: "OrderDiscountAdd", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "orderId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderDiscountDelete", + type: { + kind: "OBJECT", + name: "OrderDiscountDelete", + ofType: null, + }, + args: [ + { + name: "discountId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderDiscountUpdate", + type: { + kind: "OBJECT", + name: "OrderDiscountUpdate", + ofType: null, + }, + args: [ + { + name: "discountId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderFulfill", + type: { + kind: "OBJECT", + name: "OrderFulfill", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "order", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "orderFulfillmentApprove", + type: { + kind: "OBJECT", + name: "FulfillmentApprove", + ofType: null, + }, + args: [ + { + name: "allowStockToBeExceeded", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "notifyCustomer", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderFulfillmentCancel", + type: { + kind: "OBJECT", + name: "FulfillmentCancel", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "orderFulfillmentRefundProducts", + type: { + kind: "OBJECT", + name: "FulfillmentRefundProducts", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "order", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderFulfillmentReturnProducts", + type: { + kind: "OBJECT", + name: "FulfillmentReturnProducts", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "order", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderFulfillmentUpdateTracking", + type: { + kind: "OBJECT", + name: "FulfillmentUpdateTracking", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderLineDelete", + type: { + kind: "OBJECT", + name: "OrderLineDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderLineDiscountRemove", + type: { + kind: "OBJECT", + name: "OrderLineDiscountRemove", + ofType: null, + }, + args: [ + { + name: "orderLineId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderLineDiscountUpdate", + type: { + kind: "OBJECT", + name: "OrderLineDiscountUpdate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "orderLineId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderLineUpdate", + type: { + kind: "OBJECT", + name: "OrderLineUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderLinesCreate", + type: { + kind: "OBJECT", + name: "OrderLinesCreate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "orderMarkAsPaid", + type: { + kind: "OBJECT", + name: "OrderMarkAsPaid", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "transactionReference", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "orderRefund", + type: { + kind: "OBJECT", + name: "OrderRefund", + ofType: null, + }, + args: [ + { + name: "amount", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderSettingsUpdate", + type: { + kind: "OBJECT", + name: "OrderSettingsUpdate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderUpdate", + type: { + kind: "OBJECT", + name: "OrderUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderUpdateShipping", + type: { + kind: "OBJECT", + name: "OrderUpdateShipping", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "order", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderVoid", + type: { + kind: "OBJECT", + name: "OrderVoid", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageAttributeAssign", + type: { + kind: "OBJECT", + name: "PageAttributeAssign", + ofType: null, + }, + args: [ + { + name: "attributeIds", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "pageTypeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageAttributeUnassign", + type: { + kind: "OBJECT", + name: "PageAttributeUnassign", + ofType: null, + }, + args: [ + { + name: "attributeIds", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "pageTypeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageBulkDelete", + type: { + kind: "OBJECT", + name: "PageBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "pageBulkPublish", + type: { + kind: "OBJECT", + name: "PageBulkPublish", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "isPublished", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageCreate", + type: { + kind: "OBJECT", + name: "PageCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageDelete", + type: { + kind: "OBJECT", + name: "PageDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageReorderAttributeValues", + type: { + kind: "OBJECT", + name: "PageReorderAttributeValues", + ofType: null, + }, + args: [ + { + name: "attributeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "pageId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageTranslate", + type: { + kind: "OBJECT", + name: "PageTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageTypeBulkDelete", + type: { + kind: "OBJECT", + name: "PageTypeBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "pageTypeCreate", + type: { + kind: "OBJECT", + name: "PageTypeCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageTypeDelete", + type: { + kind: "OBJECT", + name: "PageTypeDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageTypeReorderAttributes", + type: { + kind: "OBJECT", + name: "PageTypeReorderAttributes", + ofType: null, + }, + args: [ + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "pageTypeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageTypeUpdate", + type: { + kind: "OBJECT", + name: "PageTypeUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageUpdate", + type: { + kind: "OBJECT", + name: "PageUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "passwordChange", + type: { + kind: "OBJECT", + name: "PasswordChange", + ofType: null, + }, + args: [ + { + name: "newPassword", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "oldPassword", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "paymentCapture", + type: { + kind: "OBJECT", + name: "PaymentCapture", + ofType: null, + }, + args: [ + { + name: "amount", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "paymentId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "paymentCheckBalance", + type: { + kind: "OBJECT", + name: "PaymentCheckBalance", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "paymentInitialize", + type: { + kind: "OBJECT", + name: "PaymentInitialize", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "gateway", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "paymentData", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "paymentRefund", + type: { + kind: "OBJECT", + name: "PaymentRefund", + ofType: null, + }, + args: [ + { + name: "amount", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "paymentId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "paymentVoid", + type: { + kind: "OBJECT", + name: "PaymentVoid", + ofType: null, + }, + args: [ + { + name: "paymentId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "permissionGroupCreate", + type: { + kind: "OBJECT", + name: "PermissionGroupCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "permissionGroupDelete", + type: { + kind: "OBJECT", + name: "PermissionGroupDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "permissionGroupUpdate", + type: { + kind: "OBJECT", + name: "PermissionGroupUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pluginUpdate", + type: { + kind: "OBJECT", + name: "PluginUpdate", + ofType: null, + }, + args: [ + { + name: "channelId", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productAttributeAssign", + type: { + kind: "OBJECT", + name: "ProductAttributeAssign", + ofType: null, + }, + args: [ + { + name: "operations", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "productTypeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productAttributeAssignmentUpdate", + type: { + kind: "OBJECT", + name: "ProductAttributeAssignmentUpdate", + ofType: null, + }, + args: [ + { + name: "operations", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "productTypeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productAttributeUnassign", + type: { + kind: "OBJECT", + name: "ProductAttributeUnassign", + ofType: null, + }, + args: [ + { + name: "attributeIds", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "productTypeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productBulkDelete", + type: { + kind: "OBJECT", + name: "ProductBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "productChannelListingUpdate", + type: { + kind: "OBJECT", + name: "ProductChannelListingUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productCreate", + type: { + kind: "OBJECT", + name: "ProductCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productDelete", + type: { + kind: "OBJECT", + name: "ProductDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productMediaBulkDelete", + type: { + kind: "OBJECT", + name: "ProductMediaBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "productMediaCreate", + type: { + kind: "OBJECT", + name: "ProductMediaCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productMediaDelete", + type: { + kind: "OBJECT", + name: "ProductMediaDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productMediaReorder", + type: { + kind: "OBJECT", + name: "ProductMediaReorder", + ofType: null, + }, + args: [ + { + name: "mediaIds", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "productId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productMediaUpdate", + type: { + kind: "OBJECT", + name: "ProductMediaUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productReorderAttributeValues", + type: { + kind: "OBJECT", + name: "ProductReorderAttributeValues", + ofType: null, + }, + args: [ + { + name: "attributeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "productId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productTranslate", + type: { + kind: "OBJECT", + name: "ProductTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productTypeBulkDelete", + type: { + kind: "OBJECT", + name: "ProductTypeBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "productTypeCreate", + type: { + kind: "OBJECT", + name: "ProductTypeCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productTypeDelete", + type: { + kind: "OBJECT", + name: "ProductTypeDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productTypeReorderAttributes", + type: { + kind: "OBJECT", + name: "ProductTypeReorderAttributes", + ofType: null, + }, + args: [ + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "productTypeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productTypeUpdate", + type: { + kind: "OBJECT", + name: "ProductTypeUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productUpdate", + type: { + kind: "OBJECT", + name: "ProductUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantBulkCreate", + type: { + kind: "OBJECT", + name: "ProductVariantBulkCreate", + ofType: null, + }, + args: [ + { + name: "product", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "variants", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "productVariantBulkDelete", + type: { + kind: "OBJECT", + name: "ProductVariantBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "productVariantChannelListingUpdate", + type: { + kind: "OBJECT", + name: "ProductVariantChannelListingUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "productVariantCreate", + type: { + kind: "OBJECT", + name: "ProductVariantCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantDelete", + type: { + kind: "OBJECT", + name: "ProductVariantDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantPreorderDeactivate", + type: { + kind: "OBJECT", + name: "ProductVariantPreorderDeactivate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantReorder", + type: { + kind: "OBJECT", + name: "ProductVariantReorder", + ofType: null, + }, + args: [ + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "productId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantReorderAttributeValues", + type: { + kind: "OBJECT", + name: "ProductVariantReorderAttributeValues", + ofType: null, + }, + args: [ + { + name: "attributeId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "moves", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantSetDefault", + type: { + kind: "OBJECT", + name: "ProductVariantSetDefault", + ofType: null, + }, + args: [ + { + name: "productId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantStocksCreate", + type: { + kind: "OBJECT", + name: "ProductVariantStocksCreate", + ofType: null, + }, + args: [ + { + name: "stocks", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantStocksDelete", + type: { + kind: "OBJECT", + name: "ProductVariantStocksDelete", + ofType: null, + }, + args: [ + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "warehouseIds", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "productVariantStocksUpdate", + type: { + kind: "OBJECT", + name: "ProductVariantStocksUpdate", + ofType: null, + }, + args: [ + { + name: "stocks", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantTranslate", + type: { + kind: "OBJECT", + name: "ProductVariantTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productVariantUpdate", + type: { + kind: "OBJECT", + name: "ProductVariantUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "requestEmailChange", + type: { + kind: "OBJECT", + name: "RequestEmailChange", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "newEmail", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "password", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "redirectUrl", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "requestPasswordReset", + type: { + kind: "OBJECT", + name: "RequestPasswordReset", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "email", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "redirectUrl", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "saleBulkDelete", + type: { + kind: "OBJECT", + name: "SaleBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "saleCataloguesAdd", + type: { + kind: "OBJECT", + name: "SaleAddCatalogues", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "saleCataloguesRemove", + type: { + kind: "OBJECT", + name: "SaleRemoveCatalogues", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "saleChannelListingUpdate", + type: { + kind: "OBJECT", + name: "SaleChannelListingUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "saleCreate", + type: { + kind: "OBJECT", + name: "SaleCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "saleDelete", + type: { + kind: "OBJECT", + name: "SaleDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "saleTranslate", + type: { + kind: "OBJECT", + name: "SaleTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "saleUpdate", + type: { + kind: "OBJECT", + name: "SaleUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "setPassword", + type: { + kind: "OBJECT", + name: "SetPassword", + ofType: null, + }, + args: [ + { + name: "email", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "password", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingMethodChannelListingUpdate", + type: { + kind: "OBJECT", + name: "ShippingMethodChannelListingUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingPriceBulkDelete", + type: { + kind: "OBJECT", + name: "ShippingPriceBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "shippingPriceCreate", + type: { + kind: "OBJECT", + name: "ShippingPriceCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingPriceDelete", + type: { + kind: "OBJECT", + name: "ShippingPriceDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingPriceExcludeProducts", + type: { + kind: "OBJECT", + name: "ShippingPriceExcludeProducts", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingPriceRemoveProductFromExclude", + type: { + kind: "OBJECT", + name: "ShippingPriceRemoveProductFromExclude", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "products", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "shippingPriceTranslate", + type: { + kind: "OBJECT", + name: "ShippingPriceTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingPriceUpdate", + type: { + kind: "OBJECT", + name: "ShippingPriceUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingZoneBulkDelete", + type: { + kind: "OBJECT", + name: "ShippingZoneBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "shippingZoneCreate", + type: { + kind: "OBJECT", + name: "ShippingZoneCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingZoneDelete", + type: { + kind: "OBJECT", + name: "ShippingZoneDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingZoneUpdate", + type: { + kind: "OBJECT", + name: "ShippingZoneUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shopAddressUpdate", + type: { + kind: "OBJECT", + name: "ShopAddressUpdate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "shopDomainUpdate", + type: { + kind: "OBJECT", + name: "ShopDomainUpdate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "shopFetchTaxRates", + type: { + kind: "OBJECT", + name: "ShopFetchTaxRates", + ofType: null, + }, + args: [], + }, + { + name: "shopSettingsTranslate", + type: { + kind: "OBJECT", + name: "ShopSettingsTranslate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shopSettingsUpdate", + type: { + kind: "OBJECT", + name: "ShopSettingsUpdate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "staffBulkDelete", + type: { + kind: "OBJECT", + name: "StaffBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "staffCreate", + type: { + kind: "OBJECT", + name: "StaffCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "staffDelete", + type: { + kind: "OBJECT", + name: "StaffDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "staffNotificationRecipientCreate", + type: { + kind: "OBJECT", + name: "StaffNotificationRecipientCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "staffNotificationRecipientDelete", + type: { + kind: "OBJECT", + name: "StaffNotificationRecipientDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "staffNotificationRecipientUpdate", + type: { + kind: "OBJECT", + name: "StaffNotificationRecipientUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "staffUpdate", + type: { + kind: "OBJECT", + name: "StaffUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "tokenCreate", + type: { + kind: "OBJECT", + name: "CreateToken", + ofType: null, + }, + args: [ + { + name: "email", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "password", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "tokenRefresh", + type: { + kind: "OBJECT", + name: "RefreshToken", + ofType: null, + }, + args: [ + { + name: "csrfToken", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "refreshToken", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "tokenVerify", + type: { + kind: "OBJECT", + name: "VerifyToken", + ofType: null, + }, + args: [ + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "tokensDeactivateAll", + type: { + kind: "OBJECT", + name: "DeactivateAllUserTokens", + ofType: null, + }, + args: [], + }, + { + name: "transactionCreate", + type: { + kind: "OBJECT", + name: "TransactionCreate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "transaction", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "transactionEvent", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "transactionRequestAction", + type: { + kind: "OBJECT", + name: "TransactionRequestAction", + ofType: null, + }, + args: [ + { + name: "actionType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "amount", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "transactionUpdate", + type: { + kind: "OBJECT", + name: "TransactionUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "transaction", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "transactionEvent", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "unassignWarehouseShippingZone", + type: { + kind: "OBJECT", + name: "WarehouseShippingZoneUnassign", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "shippingZoneIds", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "updateMetadata", + type: { + kind: "OBJECT", + name: "UpdateMetadata", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "updatePrivateMetadata", + type: { + kind: "OBJECT", + name: "UpdatePrivateMetadata", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "updateWarehouse", + type: { + kind: "OBJECT", + name: "WarehouseUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "userAvatarDelete", + type: { + kind: "OBJECT", + name: "UserAvatarDelete", + ofType: null, + }, + args: [], + }, + { + name: "userAvatarUpdate", + type: { + kind: "OBJECT", + name: "UserAvatarUpdate", + ofType: null, + }, + args: [ + { + name: "image", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "userBulkSetActive", + type: { + kind: "OBJECT", + name: "UserBulkSetActive", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + { + name: "isActive", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "variantMediaAssign", + type: { + kind: "OBJECT", + name: "VariantMediaAssign", + ofType: null, + }, + args: [ + { + name: "mediaId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "variantMediaUnassign", + type: { + kind: "OBJECT", + name: "VariantMediaUnassign", + ofType: null, + }, + args: [ + { + name: "mediaId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "variantId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "voucherBulkDelete", + type: { + kind: "OBJECT", + name: "VoucherBulkDelete", + ofType: null, + }, + args: [ + { + name: "ids", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + }, + ], + }, + { + name: "voucherCataloguesAdd", + type: { + kind: "OBJECT", + name: "VoucherAddCatalogues", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "voucherCataloguesRemove", + type: { + kind: "OBJECT", + name: "VoucherRemoveCatalogues", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "voucherChannelListingUpdate", + type: { + kind: "OBJECT", + name: "VoucherChannelListingUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "voucherCreate", + type: { + kind: "OBJECT", + name: "VoucherCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "voucherDelete", + type: { + kind: "OBJECT", + name: "VoucherDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "voucherTranslate", + type: { + kind: "OBJECT", + name: "VoucherTranslate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "voucherUpdate", + type: { + kind: "OBJECT", + name: "VoucherUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "webhookCreate", + type: { + kind: "OBJECT", + name: "WebhookCreate", + ofType: null, + }, + args: [ + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "webhookDelete", + type: { + kind: "OBJECT", + name: "WebhookDelete", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "webhookUpdate", + type: { + kind: "OBJECT", + name: "WebhookUpdate", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "input", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [], + }, + { + kind: "INTERFACE", + name: "Node", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + possibleTypes: [ + { + kind: "OBJECT", + name: "Address", + }, + { + kind: "OBJECT", + name: "Allocation", + }, + { + kind: "OBJECT", + name: "App", + }, + { + kind: "OBJECT", + name: "AppExtension", + }, + { + kind: "OBJECT", + name: "AppInstallation", + }, + { + kind: "OBJECT", + name: "AppToken", + }, + { + kind: "OBJECT", + name: "Attribute", + }, + { + kind: "OBJECT", + name: "AttributeTranslatableContent", + }, + { + kind: "OBJECT", + name: "AttributeTranslation", + }, + { + kind: "OBJECT", + name: "AttributeValue", + }, + { + kind: "OBJECT", + name: "AttributeValueTranslatableContent", + }, + { + kind: "OBJECT", + name: "AttributeValueTranslation", + }, + { + kind: "OBJECT", + name: "Category", + }, + { + kind: "OBJECT", + name: "CategoryTranslatableContent", + }, + { + kind: "OBJECT", + name: "CategoryTranslation", + }, + { + kind: "OBJECT", + name: "Channel", + }, + { + kind: "OBJECT", + name: "Checkout", + }, + { + kind: "OBJECT", + name: "CheckoutLine", + }, + { + kind: "OBJECT", + name: "Collection", + }, + { + kind: "OBJECT", + name: "CollectionChannelListing", + }, + { + kind: "OBJECT", + name: "CollectionTranslatableContent", + }, + { + kind: "OBJECT", + name: "CollectionTranslation", + }, + { + kind: "OBJECT", + name: "CustomerEvent", + }, + { + kind: "OBJECT", + name: "DigitalContent", + }, + { + kind: "OBJECT", + name: "DigitalContentUrl", + }, + { + kind: "OBJECT", + name: "EventDelivery", + }, + { + kind: "OBJECT", + name: "EventDeliveryAttempt", + }, + { + kind: "OBJECT", + name: "ExportEvent", + }, + { + kind: "OBJECT", + name: "ExportFile", + }, + { + kind: "OBJECT", + name: "Fulfillment", + }, + { + kind: "OBJECT", + name: "FulfillmentLine", + }, + { + kind: "OBJECT", + name: "GiftCard", + }, + { + kind: "OBJECT", + name: "GiftCardEvent", + }, + { + kind: "OBJECT", + name: "GiftCardTag", + }, + { + kind: "OBJECT", + name: "Group", + }, + { + kind: "OBJECT", + name: "Invoice", + }, + { + kind: "OBJECT", + name: "Menu", + }, + { + kind: "OBJECT", + name: "MenuItem", + }, + { + kind: "OBJECT", + name: "MenuItemTranslatableContent", + }, + { + kind: "OBJECT", + name: "MenuItemTranslation", + }, + { + kind: "OBJECT", + name: "Order", + }, + { + kind: "OBJECT", + name: "OrderDiscount", + }, + { + kind: "OBJECT", + name: "OrderEvent", + }, + { + kind: "OBJECT", + name: "OrderLine", + }, + { + kind: "OBJECT", + name: "Page", + }, + { + kind: "OBJECT", + name: "PageTranslatableContent", + }, + { + kind: "OBJECT", + name: "PageTranslation", + }, + { + kind: "OBJECT", + name: "PageType", + }, + { + kind: "OBJECT", + name: "Payment", + }, + { + kind: "OBJECT", + name: "Product", + }, + { + kind: "OBJECT", + name: "ProductChannelListing", + }, + { + kind: "OBJECT", + name: "ProductMedia", + }, + { + kind: "OBJECT", + name: "ProductTranslatableContent", + }, + { + kind: "OBJECT", + name: "ProductTranslation", + }, + { + kind: "OBJECT", + name: "ProductType", + }, + { + kind: "OBJECT", + name: "ProductVariant", + }, + { + kind: "OBJECT", + name: "ProductVariantChannelListing", + }, + { + kind: "OBJECT", + name: "ProductVariantTranslatableContent", + }, + { + kind: "OBJECT", + name: "ProductVariantTranslation", + }, + { + kind: "OBJECT", + name: "Sale", + }, + { + kind: "OBJECT", + name: "SaleChannelListing", + }, + { + kind: "OBJECT", + name: "SaleTranslatableContent", + }, + { + kind: "OBJECT", + name: "SaleTranslation", + }, + { + kind: "OBJECT", + name: "ShippingMethod", + }, + { + kind: "OBJECT", + name: "ShippingMethodChannelListing", + }, + { + kind: "OBJECT", + name: "ShippingMethodPostalCodeRule", + }, + { + kind: "OBJECT", + name: "ShippingMethodTranslatableContent", + }, + { + kind: "OBJECT", + name: "ShippingMethodTranslation", + }, + { + kind: "OBJECT", + name: "ShippingMethodType", + }, + { + kind: "OBJECT", + name: "ShippingZone", + }, + { + kind: "OBJECT", + name: "ShopTranslation", + }, + { + kind: "OBJECT", + name: "StaffNotificationRecipient", + }, + { + kind: "OBJECT", + name: "Stock", + }, + { + kind: "OBJECT", + name: "Transaction", + }, + { + kind: "OBJECT", + name: "TransactionEvent", + }, + { + kind: "OBJECT", + name: "TransactionItem", + }, + { + kind: "OBJECT", + name: "User", + }, + { + kind: "OBJECT", + name: "Voucher", + }, + { + kind: "OBJECT", + name: "VoucherChannelListing", + }, + { + kind: "OBJECT", + name: "VoucherTranslatableContent", + }, + { + kind: "OBJECT", + name: "VoucherTranslation", + }, + { + kind: "OBJECT", + name: "Warehouse", + }, + { + kind: "OBJECT", + name: "Webhook", + }, + ], + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + fields: [ + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + ], + interfaces: [], + possibleTypes: [ + { + kind: "OBJECT", + name: "App", + }, + { + kind: "OBJECT", + name: "Attribute", + }, + { + kind: "OBJECT", + name: "Category", + }, + { + kind: "OBJECT", + name: "Checkout", + }, + { + kind: "OBJECT", + name: "Collection", + }, + { + kind: "OBJECT", + name: "DigitalContent", + }, + { + kind: "OBJECT", + name: "Fulfillment", + }, + { + kind: "OBJECT", + name: "GiftCard", + }, + { + kind: "OBJECT", + name: "Invoice", + }, + { + kind: "OBJECT", + name: "Menu", + }, + { + kind: "OBJECT", + name: "MenuItem", + }, + { + kind: "OBJECT", + name: "Order", + }, + { + kind: "OBJECT", + name: "Page", + }, + { + kind: "OBJECT", + name: "PageType", + }, + { + kind: "OBJECT", + name: "Payment", + }, + { + kind: "OBJECT", + name: "Product", + }, + { + kind: "OBJECT", + name: "ProductType", + }, + { + kind: "OBJECT", + name: "ProductVariant", + }, + { + kind: "OBJECT", + name: "Sale", + }, + { + kind: "OBJECT", + name: "ShippingMethod", + }, + { + kind: "OBJECT", + name: "ShippingMethodType", + }, + { + kind: "OBJECT", + name: "ShippingZone", + }, + { + kind: "OBJECT", + name: "TransactionItem", + }, + { + kind: "OBJECT", + name: "User", + }, + { + kind: "OBJECT", + name: "Voucher", + }, + { + kind: "OBJECT", + name: "Warehouse", + }, + ], + }, + { + kind: "OBJECT", + name: "Order", + fields: [ + { + name: "actions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "authorizeStatus", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "availableCollectionPoints", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "availableShippingMethods", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingMethod", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "billingAddress", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "canFinalize", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + args: [], + }, + { + name: "chargeStatus", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "collectionPointName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "customerNote", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "deliveryMethod", + type: { + kind: "UNION", + name: "DeliveryMethod", + ofType: null, + }, + args: [], + }, + { + name: "discount", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "discountName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "discounts", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderDiscount", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "displayGrossPrices", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "events", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderEvent", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "fulfillments", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "giftCards", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "invoices", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Invoice", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "isPaid", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isShippingRequired", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "languageCodeEnum", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "lines", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "number", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "origin", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "original", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "paymentStatus", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "paymentStatusDisplay", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "payments", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Payment", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "redirectUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "shippingAddress", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethod", + ofType: null, + }, + args: [], + }, + { + name: "shippingMethodName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "shippingMethods", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingMethod", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "shippingTaxRate", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "statusDisplay", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "subtotal", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "total", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalAuthorized", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalBalance", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCaptured", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "trackingClientId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "transactions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TransactionItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "translatedDiscountName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "undiscountedTotal", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "userEmail", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + { + name: "weight", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Weight", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderAddNote", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "event", + type: { + kind: "OBJECT", + name: "OrderEvent", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderBulkCancel", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderCancel", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderCancelled", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderCapture", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderConfirm", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderConfirmed", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderCreateFromCheckout", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderCreateFromCheckoutError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderCreateFromCheckoutError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "lines", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "variants", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderDiscount", + fields: [ + { + name: "amount", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "reason", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "translatedName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "value", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "valueType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderDiscountAdd", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderDiscountDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderDiscountUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderError", + fields: [ + { + name: "addressType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "orderLines", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "variants", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderEvent", + fields: [ + { + name: "amount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "composedId", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "date", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "discount", + type: { + kind: "OBJECT", + name: "OrderEventDiscountObject", + ofType: null, + }, + args: [], + }, + { + name: "email", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "emailType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "fulfilledItems", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "FulfillmentLine", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "invoiceNumber", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "lines", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderEventOrderLineObject", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "orderNumber", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "oversoldItems", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "paymentGateway", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "paymentId", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "quantity", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "reference", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "relatedOrder", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "shippingCostsIncluded", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "status", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "transactionReference", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderEventCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderEventCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderEventCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderEvent", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderEventDiscountObject", + fields: [ + { + name: "amount", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "oldAmount", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "oldValue", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "oldValueType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "reason", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "value", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "valueType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderEventOrderLineObject", + fields: [ + { + name: "discount", + type: { + kind: "OBJECT", + name: "OrderEventDiscountObject", + ofType: null, + }, + args: [], + }, + { + name: "itemName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "orderLine", + type: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + args: [], + }, + { + name: "quantity", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderFulfill", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "fulfillments", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Fulfillment", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderFulfilled", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderFullyPaid", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderLine", + fields: [ + { + name: "allocations", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Allocation", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "digitalContentUrl", + type: { + kind: "OBJECT", + name: "DigitalContentUrl", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isShippingRequired", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "productName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "productSku", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "productVariantId", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "quantity", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "quantityFulfilled", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "quantityToFulfill", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "taxRate", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "thumbnail", + type: { + kind: "OBJECT", + name: "Image", + ofType: null, + }, + args: [ + { + name: "size", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "totalPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "translatedProductName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translatedVariantName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "undiscountedUnitPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "unitDiscount", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "unitDiscountReason", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "unitDiscountType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "unitDiscountValue", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "unitPrice", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + }, + args: [], + }, + { + name: "variant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + { + name: "variantName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderLineDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderLine", + type: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderLineDiscountRemove", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderLine", + type: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderLineDiscountUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderLine", + type: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderLineUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderLine", + type: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderLinesCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderLines", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderLine", + ofType: null, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderMarkAsPaid", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderRefund", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderSettings", + fields: [ + { + name: "automaticallyConfirmAllNewOrders", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "automaticallyFulfillNonShippableGiftCard", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderSettingsError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderSettingsUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderSettingsError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "orderSettings", + type: { + kind: "OBJECT", + name: "OrderSettings", + ofType: null, + }, + args: [], + }, + { + name: "orderSettingsErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderSettingsError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderUpdateShipping", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "OrderUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "OrderVoid", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "orderErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "OrderError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Page", + fields: [ + { + name: "attributes", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "SelectedAttribute", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "content", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "contentJson", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isPublished", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "pageType", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "publicationDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "publishedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "title", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "PageTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "PageAttributeAssign", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageType", + type: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageAttributeUnassign", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageType", + type: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageBulkPublish", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "PageDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "PageError", + fields: [ + { + name: "attributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "values", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageInfo", + fields: [ + { + name: "endCursor", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "hasNextPage", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "hasPreviousPage", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "startCursor", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageReorderAttributeValues", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageTranslatableContent", + fields: [ + { + name: "attributeValues", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeValueTranslatableContent", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "content", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "contentJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "title", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "PageTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "PageTranslate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "PageTranslatableContent", + ofType: null, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageTranslation", + fields: [ + { + name: "content", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "contentJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "title", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "PageType", + fields: [ + { + name: "attributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "availableAttributes", + type: { + kind: "OBJECT", + name: "AttributeCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "hasPages", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "PageTypeBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageTypeCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageTypeCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageTypeCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageTypeCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageType", + type: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageTypeDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageType", + type: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageTypeReorderAttributes", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageType", + type: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageTypeUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageType", + type: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "pageErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PageUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "PasswordChange", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Payment", + fields: [ + { + name: "actions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "availableCaptureAmount", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "availableRefundAmount", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "capturedAmount", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "chargeStatus", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "creditCard", + type: { + kind: "OBJECT", + name: "CreditCard", + ofType: null, + }, + args: [], + }, + { + name: "customerIpAddress", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "gateway", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isActive", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "modified", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [], + }, + { + name: "paymentMethodType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "total", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "transactions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Transaction", + ofType: null, + }, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "PaymentCapture", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "payment", + type: { + kind: "OBJECT", + name: "Payment", + ofType: null, + }, + args: [], + }, + { + name: "paymentErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentCheckBalance", + fields: [ + { + name: "data", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "paymentErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Payment", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "variants", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentGateway", + fields: [ + { + name: "config", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GatewayConfigLine", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "currencies", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentInitialize", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "initializedPayment", + type: { + kind: "OBJECT", + name: "PaymentInitialized", + ofType: null, + }, + args: [], + }, + { + name: "paymentErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentInitialized", + fields: [ + { + name: "data", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "gateway", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentRefund", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "payment", + type: { + kind: "OBJECT", + name: "Payment", + ofType: null, + }, + args: [], + }, + { + name: "paymentErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentSource", + fields: [ + { + name: "creditCardInfo", + type: { + kind: "OBJECT", + name: "CreditCard", + ofType: null, + }, + args: [], + }, + { + name: "gateway", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "paymentMethodId", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PaymentVoid", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "payment", + type: { + kind: "OBJECT", + name: "Payment", + ofType: null, + }, + args: [], + }, + { + name: "paymentErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Permission", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PermissionGroupCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PermissionGroupError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "group", + type: { + kind: "OBJECT", + name: "Group", + ofType: null, + }, + args: [], + }, + { + name: "permissionGroupErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PermissionGroupError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PermissionGroupDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PermissionGroupError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "group", + type: { + kind: "OBJECT", + name: "Group", + ofType: null, + }, + args: [], + }, + { + name: "permissionGroupErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PermissionGroupError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PermissionGroupError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "users", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PermissionGroupUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PermissionGroupError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "group", + type: { + kind: "OBJECT", + name: "Group", + ofType: null, + }, + args: [], + }, + { + name: "permissionGroupErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PermissionGroupError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Plugin", + fields: [ + { + name: "channelConfigurations", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PluginConfiguration", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "description", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "globalConfiguration", + type: { + kind: "OBJECT", + name: "PluginConfiguration", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PluginConfiguration", + fields: [ + { + name: "active", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [], + }, + { + name: "configuration", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ConfigurationItem", + ofType: null, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PluginCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PluginCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PluginCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Plugin", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PluginError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PluginUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PluginError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "plugin", + type: { + kind: "OBJECT", + name: "Plugin", + ofType: null, + }, + args: [], + }, + { + name: "pluginsErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PluginError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PreorderData", + fields: [ + { + name: "endDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "globalSoldUnits", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "globalThreshold", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "PreorderThreshold", + fields: [ + { + name: "quantity", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "soldUnits", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Product", + fields: [ + { + name: "attributes", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "SelectedAttribute", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "availableForPurchase", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "availableForPurchaseAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "channelListings", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductChannelListing", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "chargeTaxes", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "collections", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "defaultVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "imageById", + type: { + kind: "OBJECT", + name: "ProductImage", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "images", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductImage", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "isAvailable", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "address", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "isAvailableForPurchase", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "media", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "mediaById", + type: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "pricing", + type: { + kind: "OBJECT", + name: "ProductPricingInfo", + ofType: null, + }, + args: [ + { + name: "address", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "productType", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + }, + args: [], + }, + { + name: "rating", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "taxType", + type: { + kind: "OBJECT", + name: "TaxType", + ofType: null, + }, + args: [], + }, + { + name: "thumbnail", + type: { + kind: "OBJECT", + name: "Image", + ofType: null, + }, + args: [ + { + name: "size", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "ProductTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "variants", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "weight", + type: { + kind: "OBJECT", + name: "Weight", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductAttributeAssign", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productType", + type: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductAttributeAssignmentUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productType", + type: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductAttributeUnassign", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productType", + type: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductChannelListing", + fields: [ + { + name: "availableForPurchase", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "availableForPurchaseAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + args: [], + }, + { + name: "discountedPrice", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isAvailableForPurchase", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "isPublished", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "margin", + type: { + kind: "OBJECT", + name: "Margin", + ofType: null, + }, + args: [], + }, + { + name: "pricing", + type: { + kind: "OBJECT", + name: "ProductPricingInfo", + ofType: null, + }, + args: [ + { + name: "address", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "publicationDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "publishedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "purchaseCost", + type: { + kind: "OBJECT", + name: "MoneyRange", + ofType: null, + }, + args: [], + }, + { + name: "visibleInListings", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductChannelListingError", + fields: [ + { + name: "attributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "channels", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "values", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "variants", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductChannelListingUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductChannelListingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productChannelListingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductChannelListingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductCreated", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductDeleted", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductError", + fields: [ + { + name: "attributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "values", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductImage", + fields: [ + { + name: "alt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "sortOrder", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "url", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [ + { + name: "size", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductMedia", + fields: [ + { + name: "alt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "oembedData", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "sortOrder", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "url", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [ + { + name: "size", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductMediaBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductMediaCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "media", + type: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductMediaDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "media", + type: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductMediaReorder", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "media", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductMediaUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "media", + type: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductPricingInfo", + fields: [ + { + name: "discount", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + { + name: "discountLocalCurrency", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + { + name: "onSale", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "priceRange", + type: { + kind: "OBJECT", + name: "TaxedMoneyRange", + ofType: null, + }, + args: [], + }, + { + name: "priceRangeLocalCurrency", + type: { + kind: "OBJECT", + name: "TaxedMoneyRange", + ofType: null, + }, + args: [], + }, + { + name: "priceRangeUndiscounted", + type: { + kind: "OBJECT", + name: "TaxedMoneyRange", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductReorderAttributeValues", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductTranslatableContent", + fields: [ + { + name: "attributeValues", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeValueTranslatableContent", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "ProductTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductTranslate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductTranslation", + fields: [ + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "descriptionJson", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoDescription", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "seoTitle", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductType", + fields: [ + { + name: "assignedVariantAttributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AssignedVariantAttribute", + ofType: null, + }, + }, + }, + args: [ + { + name: "variantSelection", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "availableAttributes", + type: { + kind: "OBJECT", + name: "AttributeCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "hasVariants", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isDigital", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isShippingRequired", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "kind", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "productAttributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "products", + type: { + kind: "OBJECT", + name: "ProductCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "taxType", + type: { + kind: "OBJECT", + name: "TaxType", + ofType: null, + }, + args: [], + }, + { + name: "variantAttributes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + }, + }, + args: [ + { + name: "variantSelection", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "weight", + type: { + kind: "OBJECT", + name: "Weight", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductTypeBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductTypeCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductTypeCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductTypeCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductTypeCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productType", + type: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductTypeDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productType", + type: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductTypeReorderAttributes", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productType", + type: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductTypeUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productType", + type: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductUpdated", + fields: [ + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariant", + fields: [ + { + name: "attributes", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "SelectedAttribute", + ofType: null, + }, + }, + }, + }, + args: [ + { + name: "variantSelection", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "channelListings", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductVariantChannelListing", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "digitalContent", + type: { + kind: "OBJECT", + name: "DigitalContent", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "images", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductImage", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "margin", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "media", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "preorder", + type: { + kind: "OBJECT", + name: "PreorderData", + ofType: null, + }, + args: [], + }, + { + name: "pricing", + type: { + kind: "OBJECT", + name: "VariantPricingInfo", + ofType: null, + }, + args: [ + { + name: "address", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "product", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + }, + args: [], + }, + { + name: "quantityAvailable", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "address", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "countryCode", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "quantityLimitPerCustomer", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "quantityOrdered", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "revenue", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [ + { + name: "period", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "sku", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "stocks", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Stock", + ofType: null, + }, + }, + }, + args: [ + { + name: "address", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "countryCode", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "trackInventory", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "ProductVariantTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "weight", + type: { + kind: "OBJECT", + name: "Weight", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariantBackInStock", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariantBulkCreate", + fields: [ + { + name: "bulkProductErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "BulkProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "BulkProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariants", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantChannelListing", + fields: [ + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + args: [], + }, + { + name: "costPrice", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "margin", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "preorderThreshold", + type: { + kind: "OBJECT", + name: "PreorderThreshold", + ofType: null, + }, + args: [], + }, + { + name: "price", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariantChannelListingUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductChannelListingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productChannelListingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductChannelListingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "variant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductVariantCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariantDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariantOutOfStock", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariantPreorderDeactivate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantReorder", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantReorderAttributeValues", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantSetDefault", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantStocksCreate", + fields: [ + { + name: "bulkStockErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "BulkStockError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "BulkStockError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantStocksDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StockError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + { + name: "stockErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StockError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantStocksUpdate", + fields: [ + { + name: "bulkStockErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "BulkStockError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "BulkStockError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantTranslatableContent", + fields: [ + { + name: "attributeValues", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeValueTranslatableContent", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "ProductVariantTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariantTranslate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantTranslation", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ProductVariantUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ProductVariantUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "Query", + fields: [ + { + name: "_entities", + type: { + kind: "LIST", + ofType: { + kind: "UNION", + name: "_Entity", + ofType: null, + }, + }, + args: [ + { + name: "representations", + type: { + kind: "LIST", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "_service", + type: { + kind: "OBJECT", + name: "_Service", + ofType: null, + }, + args: [], + }, + { + name: "address", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "addressValidationRules", + type: { + kind: "OBJECT", + name: "AddressValidationData", + ofType: null, + }, + args: [ + { + name: "city", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "cityArea", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "countryArea", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "countryCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "app", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "appExtension", + type: { + kind: "OBJECT", + name: "AppExtension", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "appExtensions", + type: { + kind: "OBJECT", + name: "AppExtensionCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "apps", + type: { + kind: "OBJECT", + name: "AppCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "appsInstallations", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AppInstallation", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "attribute", + type: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "slug", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "attributes", + type: { + kind: "OBJECT", + name: "AttributeCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "categories", + type: { + kind: "OBJECT", + name: "CategoryCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "level", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "category", + type: { + kind: "OBJECT", + name: "Category", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "slug", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "channel", + type: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "channels", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutLines", + type: { + kind: "OBJECT", + name: "CheckoutLineCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkouts", + type: { + kind: "OBJECT", + name: "CheckoutCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "collection", + type: { + kind: "OBJECT", + name: "Collection", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "slug", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "collections", + type: { + kind: "OBJECT", + name: "CollectionCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "customers", + type: { + kind: "OBJECT", + name: "UserCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "digitalContent", + type: { + kind: "OBJECT", + name: "DigitalContent", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "digitalContents", + type: { + kind: "OBJECT", + name: "DigitalContentCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "draftOrders", + type: { + kind: "OBJECT", + name: "OrderCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "exportFile", + type: { + kind: "OBJECT", + name: "ExportFile", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "exportFiles", + type: { + kind: "OBJECT", + name: "ExportFileCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "giftCard", + type: { + kind: "OBJECT", + name: "GiftCard", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "giftCardCurrencies", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "giftCardSettings", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "GiftCardSettings", + ofType: null, + }, + }, + args: [], + }, + { + name: "giftCardTags", + type: { + kind: "OBJECT", + name: "GiftCardTagCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "giftCards", + type: { + kind: "OBJECT", + name: "GiftCardCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "homepageEvents", + type: { + kind: "OBJECT", + name: "OrderEventCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "me", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + { + name: "menu", + type: { + kind: "OBJECT", + name: "Menu", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "slug", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "menuItem", + type: { + kind: "OBJECT", + name: "MenuItem", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "menuItems", + type: { + kind: "OBJECT", + name: "MenuItemCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "menus", + type: { + kind: "OBJECT", + name: "MenuCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "order", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderByToken", + type: { + kind: "OBJECT", + name: "Order", + ofType: null, + }, + args: [ + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "orderSettings", + type: { + kind: "OBJECT", + name: "OrderSettings", + ofType: null, + }, + args: [], + }, + { + name: "orders", + type: { + kind: "OBJECT", + name: "OrderCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "ordersTotal", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "period", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "page", + type: { + kind: "OBJECT", + name: "Page", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "slug", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "pageType", + type: { + kind: "OBJECT", + name: "PageType", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "pageTypes", + type: { + kind: "OBJECT", + name: "PageTypeCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "pages", + type: { + kind: "OBJECT", + name: "PageCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "payment", + type: { + kind: "OBJECT", + name: "Payment", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "payments", + type: { + kind: "OBJECT", + name: "PaymentCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "permissionGroup", + type: { + kind: "OBJECT", + name: "Group", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "permissionGroups", + type: { + kind: "OBJECT", + name: "GroupCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "plugin", + type: { + kind: "OBJECT", + name: "Plugin", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "plugins", + type: { + kind: "OBJECT", + name: "PluginCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "product", + type: { + kind: "OBJECT", + name: "Product", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "slug", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "productType", + type: { + kind: "OBJECT", + name: "ProductType", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "productTypes", + type: { + kind: "OBJECT", + name: "ProductTypeCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sku", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "productVariants", + type: { + kind: "OBJECT", + name: "ProductVariantCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "ids", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "products", + type: { + kind: "OBJECT", + name: "ProductCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "reportProductSales", + type: { + kind: "OBJECT", + name: "ProductVariantCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "period", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "sales", + type: { + kind: "OBJECT", + name: "SaleCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "query", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "shippingZones", + type: { + kind: "OBJECT", + name: "ShippingZoneCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "shop", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Shop", + ofType: null, + }, + }, + args: [], + }, + { + name: "staffUsers", + type: { + kind: "OBJECT", + name: "UserCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "stock", + type: { + kind: "OBJECT", + name: "Stock", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "stocks", + type: { + kind: "OBJECT", + name: "StockCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "taxTypes", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TaxType", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "UNION", + name: "TranslatableItem", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "kind", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "translations", + type: { + kind: "OBJECT", + name: "TranslatableItemConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "kind", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [ + { + name: "email", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "vouchers", + type: { + kind: "OBJECT", + name: "VoucherCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "query", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "warehouses", + type: { + kind: "OBJECT", + name: "WarehouseCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "webhook", + type: { + kind: "OBJECT", + name: "Webhook", + ofType: null, + }, + args: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "webhookEvents", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookEvent", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "webhookSamplePayload", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "eventType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ReducedRate", + fields: [ + { + name: "rate", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "rateType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "RefreshToken", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "RequestEmailChange", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "RequestPasswordReset", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Sale", + fields: [ + { + name: "categories", + type: { + kind: "OBJECT", + name: "CategoryCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "channelListings", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "SaleChannelListing", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "collections", + type: { + kind: "OBJECT", + name: "CollectionCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "currency", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "discountValue", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "endDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "products", + type: { + kind: "OBJECT", + name: "ProductCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "startDate", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "SaleTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "variants", + type: { + kind: "OBJECT", + name: "ProductVariantCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "SaleAddCatalogues", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleChannelListing", + fields: [ + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + args: [], + }, + { + name: "currency", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "discountValue", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "SaleChannelListingUpdate", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "SaleCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleCreate", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "SaleDelete", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "SaleRemoveCatalogues", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleTranslatableContent", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "SaleTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "SaleTranslate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleTranslation", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "SaleUpdate", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SaleUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "sale", + type: { + kind: "OBJECT", + name: "Sale", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "SelectedAttribute", + fields: [ + { + name: "attribute", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Attribute", + ofType: null, + }, + }, + args: [], + }, + { + name: "values", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AttributeValue", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "SetPassword", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "csrfToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "refreshToken", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "token", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingError", + fields: [ + { + name: "channels", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "warehouses", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingMethod", + fields: [ + { + name: "active", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "maximumDeliveryDays", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "maximumOrderPrice", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "maximumOrderWeight", + type: { + kind: "OBJECT", + name: "Weight", + ofType: null, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "minimumDeliveryDays", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "minimumOrderPrice", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "minimumOrderWeight", + type: { + kind: "OBJECT", + name: "Weight", + ofType: null, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "price", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "ShippingMethodTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingMethodChannelListing", + fields: [ + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "maximumOrderPrice", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "minimumOrderPrice", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "price", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingMethodChannelListingUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingMethodPostalCodeRule", + fields: [ + { + name: "end", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "inclusionType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "start", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingMethodTranslatableContent", + fields: [ + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "ShippingMethodTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingMethodTranslation", + fields: [ + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingMethodType", + fields: [ + { + name: "channelListings", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingMethodChannelListing", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "excludedProducts", + type: { + kind: "OBJECT", + name: "ProductCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "maximumDeliveryDays", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "maximumOrderPrice", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "maximumOrderWeight", + type: { + kind: "OBJECT", + name: "Weight", + ofType: null, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "minimumDeliveryDays", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "minimumOrderPrice", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "minimumOrderWeight", + type: { + kind: "OBJECT", + name: "Weight", + ofType: null, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "postalCodeRules", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingMethodPostalCodeRule", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "ShippingMethodTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "type", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingPriceBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingPriceCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingPriceCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingPriceDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingPriceDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingPriceExcludeProducts", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingPriceRemoveProductFromExclude", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingPriceTranslate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingPriceUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingPriceUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "shippingMethod", + type: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingZone", + fields: [ + { + name: "channels", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "countries", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CountryDisplay", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "default", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "priceRange", + type: { + kind: "OBJECT", + name: "MoneyRange", + ofType: null, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "shippingMethods", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingMethodType", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "warehouses", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingZoneBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingZoneCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingZoneCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingZoneCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingZoneCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingZoneCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingZoneDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingZoneDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "ShippingZoneUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShippingZoneUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "shippingZone", + type: { + kind: "OBJECT", + name: "ShippingZone", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "Shop", + fields: [ + { + name: "automaticFulfillmentDigitalProducts", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "availableExternalAuthentications", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ExternalAuthentication", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "availablePaymentGateways", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentGateway", + ofType: null, + }, + }, + }, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "currency", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "availableShippingMethods", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingMethod", + ofType: null, + }, + }, + }, + args: [ + { + name: "address", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "channelCurrencies", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "chargeTaxesOnShipping", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "companyAddress", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "countries", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CountryDisplay", + ofType: null, + }, + }, + }, + }, + args: [ + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "languageCode", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "customerSetPasswordUrl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "defaultCountry", + type: { + kind: "OBJECT", + name: "CountryDisplay", + ofType: null, + }, + args: [], + }, + { + name: "defaultDigitalMaxDownloads", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "defaultDigitalUrlValidDays", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "defaultMailSenderAddress", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "defaultMailSenderName", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "defaultWeightUnit", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "displayGrossPrices", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "domain", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Domain", + ofType: null, + }, + }, + args: [], + }, + { + name: "fulfillmentAllowUnpaid", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "fulfillmentAutoApprove", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "headerText", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "includeTaxesInPrices", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "languages", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "limitQuantityPerCheckout", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "limits", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LimitInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Permission", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "phonePrefixes", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "reserveStockDurationAnonymousUser", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "reserveStockDurationAuthenticatedUser", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "staffNotificationRecipients", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffNotificationRecipient", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "trackInventoryByDefault", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "ShopTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "version", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShopAddressUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shop", + type: { + kind: "OBJECT", + name: "Shop", + ofType: null, + }, + args: [], + }, + { + name: "shopErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShopDomainUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shop", + type: { + kind: "OBJECT", + name: "Shop", + ofType: null, + }, + args: [], + }, + { + name: "shopErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShopError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShopFetchTaxRates", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shop", + type: { + kind: "OBJECT", + name: "Shop", + ofType: null, + }, + args: [], + }, + { + name: "shopErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShopSettingsTranslate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shop", + type: { + kind: "OBJECT", + name: "Shop", + ofType: null, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShopSettingsUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shop", + type: { + kind: "OBJECT", + name: "Shop", + ofType: null, + }, + args: [], + }, + { + name: "shopErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "ShopTranslation", + fields: [ + { + name: "description", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "headerText", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "StaffBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "staffErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StaffCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "staffErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StaffDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "staffErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StaffError", + fields: [ + { + name: "addressType", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "groups", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "permissions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + { + name: "users", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StaffNotificationRecipient", + fields: [ + { + name: "active", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "email", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "StaffNotificationRecipientCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shopErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "staffNotificationRecipient", + type: { + kind: "OBJECT", + name: "StaffNotificationRecipient", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StaffNotificationRecipientDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shopErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "staffNotificationRecipient", + type: { + kind: "OBJECT", + name: "StaffNotificationRecipient", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StaffNotificationRecipientUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "shopErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShopError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "staffNotificationRecipient", + type: { + kind: "OBJECT", + name: "StaffNotificationRecipient", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StaffUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "staffErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StaffError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Stock", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + }, + args: [], + }, + { + name: "quantity", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "quantityAllocated", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "quantityReserved", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "StockCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "StockCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StockCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Stock", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "StockError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Subscription", + fields: [ + { + name: "event", + type: { + kind: "INTERFACE", + name: "Event", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TaxType", + fields: [ + { + name: "description", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "taxCode", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TaxedMoney", + fields: [ + { + name: "currency", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "gross", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "net", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "tax", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TaxedMoneyRange", + fields: [ + { + name: "start", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + { + name: "stop", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TimePeriod", + fields: [ + { + name: "amount", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Transaction", + fields: [ + { + name: "amount", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "created", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "error", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "gatewayResponse", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isSuccess", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "kind", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "payment", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Payment", + ofType: null, + }, + }, + args: [], + }, + { + name: "token", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "TransactionAction", + fields: [ + { + name: "actionType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "amount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TransactionActionRequest", + fields: [ + { + name: "action", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TransactionAction", + ofType: null, + }, + }, + args: [], + }, + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "transaction", + type: { + kind: "OBJECT", + name: "TransactionItem", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "TransactionCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TransactionCreateError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "transaction", + type: { + kind: "OBJECT", + name: "TransactionItem", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TransactionCreateError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TransactionEvent", + fields: [ + { + name: "createdAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "reference", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "TransactionItem", + fields: [ + { + name: "actions", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + args: [], + }, + { + name: "authorizedAmount", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "chargedAmount", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "createdAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "events", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TransactionEvent", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "modifiedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "reference", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "refundedAmount", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + { + name: "status", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "voidedAmount", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "TransactionRequestAction", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TransactionRequestActionError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "transaction", + type: { + kind: "OBJECT", + name: "TransactionItem", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TransactionRequestActionError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TransactionUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TransactionUpdateError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "transaction", + type: { + kind: "OBJECT", + name: "TransactionItem", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TransactionUpdateError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "UNION", + name: "TranslatableItem", + possibleTypes: [ + { + kind: "OBJECT", + name: "AttributeTranslatableContent", + }, + { + kind: "OBJECT", + name: "AttributeValueTranslatableContent", + }, + { + kind: "OBJECT", + name: "CategoryTranslatableContent", + }, + { + kind: "OBJECT", + name: "CollectionTranslatableContent", + }, + { + kind: "OBJECT", + name: "MenuItemTranslatableContent", + }, + { + kind: "OBJECT", + name: "PageTranslatableContent", + }, + { + kind: "OBJECT", + name: "ProductTranslatableContent", + }, + { + kind: "OBJECT", + name: "ProductVariantTranslatableContent", + }, + { + kind: "OBJECT", + name: "SaleTranslatableContent", + }, + { + kind: "OBJECT", + name: "ShippingMethodTranslatableContent", + }, + { + kind: "OBJECT", + name: "VoucherTranslatableContent", + }, + ], + }, + { + kind: "OBJECT", + name: "TranslatableItemConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslatableItemEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TranslatableItemEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "UNION", + name: "TranslatableItem", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "TranslationCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "UNION", + name: "TranslationTypes", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "TranslationError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "UNION", + name: "TranslationTypes", + possibleTypes: [ + { + kind: "OBJECT", + name: "AttributeTranslation", + }, + { + kind: "OBJECT", + name: "AttributeValueTranslation", + }, + { + kind: "OBJECT", + name: "CategoryTranslation", + }, + { + kind: "OBJECT", + name: "CollectionTranslation", + }, + { + kind: "OBJECT", + name: "MenuItemTranslation", + }, + { + kind: "OBJECT", + name: "PageTranslation", + }, + { + kind: "OBJECT", + name: "ProductTranslation", + }, + { + kind: "OBJECT", + name: "ProductVariantTranslation", + }, + { + kind: "OBJECT", + name: "SaleTranslation", + }, + { + kind: "OBJECT", + name: "ShippingMethodTranslation", + }, + { + kind: "OBJECT", + name: "VoucherTranslation", + }, + ], + }, + { + kind: "OBJECT", + name: "TranslationUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "UNION", + name: "TranslationTypes", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "UpdateMetadata", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "item", + type: { + kind: "INTERFACE", + name: "ObjectWithMetadata", + ofType: null, + }, + args: [], + }, + { + name: "metadataErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "UpdatePrivateMetadata", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "item", + type: { + kind: "INTERFACE", + name: "ObjectWithMetadata", + ofType: null, + }, + args: [], + }, + { + name: "metadataErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "UploadError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "User", + fields: [ + { + name: "addresses", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "avatar", + type: { + kind: "OBJECT", + name: "Image", + ofType: null, + }, + args: [ + { + name: "size", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkout", + type: { + kind: "OBJECT", + name: "Checkout", + ofType: null, + }, + args: [], + }, + { + name: "checkoutIds", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "checkoutTokens", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "dateJoined", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "defaultBillingAddress", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "defaultShippingAddress", + type: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + args: [], + }, + { + name: "editableGroups", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Group", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "email", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "events", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CustomerEvent", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "firstName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "giftCards", + type: { + kind: "OBJECT", + name: "GiftCardCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isActive", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isStaff", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "lastLogin", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "lastName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "note", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "orders", + type: { + kind: "OBJECT", + name: "OrderCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "permissionGroups", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Group", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "storedPaymentSources", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PaymentSource", + ofType: null, + }, + }, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "updatedAt", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "userPermissions", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "UserPermission", + ofType: null, + }, + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "UserAvatarDelete", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "UserAvatarUpdate", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "UserBulkSetActive", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "UserCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "UserCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "UserCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "UserPermission", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "sourcePermissionGroups", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Group", + ofType: null, + }, + }, + }, + args: [ + { + name: "userId", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VAT", + fields: [ + { + name: "countryCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "reducedRates", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ReducedRate", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "standardRate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VariantMediaAssign", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "media", + type: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VariantMediaUnassign", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "media", + type: { + kind: "OBJECT", + name: "ProductMedia", + ofType: null, + }, + args: [], + }, + { + name: "productErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ProductError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "productVariant", + type: { + kind: "OBJECT", + name: "ProductVariant", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VariantPricingInfo", + fields: [ + { + name: "discount", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + { + name: "discountLocalCurrency", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + { + name: "onSale", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "price", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + { + name: "priceLocalCurrency", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + { + name: "priceUndiscounted", + type: { + kind: "OBJECT", + name: "TaxedMoney", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VerifyToken", + fields: [ + { + name: "accountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "AccountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "isValid", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "payload", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "user", + type: { + kind: "OBJECT", + name: "User", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Voucher", + fields: [ + { + name: "applyOncePerCustomer", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "applyOncePerOrder", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "categories", + type: { + kind: "OBJECT", + name: "CategoryCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "channelListings", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "VoucherChannelListing", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "collections", + type: { + kind: "OBJECT", + name: "CollectionCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "countries", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "CountryDisplay", + ofType: null, + }, + }, + }, + args: [], + }, + { + name: "currency", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "discountValue", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "discountValueType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "endDate", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "minCheckoutItemsQuantity", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "minSpent", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "onlyForStaff", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "products", + type: { + kind: "OBJECT", + name: "ProductCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "startDate", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "VoucherTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "type", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "usageLimit", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "used", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "variants", + type: { + kind: "OBJECT", + name: "ProductVariantCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "VoucherAddCatalogues", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherBulkDelete", + fields: [ + { + name: "count", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherChannelListing", + fields: [ + { + name: "channel", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Channel", + ofType: null, + }, + }, + args: [], + }, + { + name: "currency", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "discountValue", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "minSpent", + type: { + kind: "OBJECT", + name: "Money", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "VoucherChannelListingUpdate", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "VoucherCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherCreate", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "VoucherDelete", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "VoucherRemoveCatalogues", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherTranslatableContent", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "translation", + type: { + kind: "OBJECT", + name: "VoucherTranslation", + ofType: null, + }, + args: [ + { + name: "languageCode", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "VoucherTranslate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "translationErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "TranslationError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherTranslation", + fields: [ + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "language", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "LanguageDisplay", + ofType: null, + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "VoucherUpdate", + fields: [ + { + name: "discountErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "DiscountError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "VoucherUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "voucher", + type: { + kind: "OBJECT", + name: "Voucher", + ofType: null, + }, + args: [ + { + name: "channel", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "Warehouse", + fields: [ + { + name: "address", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Address", + ofType: null, + }, + }, + args: [], + }, + { + name: "clickAndCollectOption", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "companyName", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "email", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isPrivate", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "metadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "metafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "metafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "privateMetadata", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "MetadataItem", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "privateMetafield", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "key", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + ], + }, + { + name: "privateMetafields", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [ + { + name: "keys", + type: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + }, + }, + ], + }, + { + name: "shippingZones", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "ShippingZoneCountableConnection", + ofType: null, + }, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "slug", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + { + kind: "INTERFACE", + name: "ObjectWithMetadata", + }, + ], + }, + { + kind: "OBJECT", + name: "WarehouseCountableConnection", + fields: [ + { + name: "edges", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseCountableEdge", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "pageInfo", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "PageInfo", + ofType: null, + }, + }, + args: [], + }, + { + name: "totalCount", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WarehouseCountableEdge", + fields: [ + { + name: "cursor", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "node", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WarehouseCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + { + name: "warehouseErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WarehouseCreated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "WarehouseDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + { + name: "warehouseErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WarehouseDeleted", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "WarehouseError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WarehouseShippingZoneAssign", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + { + name: "warehouseErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WarehouseShippingZoneUnassign", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + { + name: "warehouseErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WarehouseUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + { + name: "warehouseErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WarehouseError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WarehouseUpdated", + fields: [ + { + name: "issuedAt", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "issuingPrincipal", + type: { + kind: "UNION", + name: "IssuingPrincipal", + ofType: null, + }, + args: [], + }, + { + name: "recipient", + type: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + args: [], + }, + { + name: "version", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "warehouse", + type: { + kind: "OBJECT", + name: "Warehouse", + ofType: null, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Event", + }, + ], + }, + { + kind: "OBJECT", + name: "Webhook", + fields: [ + { + name: "app", + type: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "App", + ofType: null, + }, + }, + args: [], + }, + { + name: "asyncEvents", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookEventAsync", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "eventDeliveries", + type: { + kind: "OBJECT", + name: "EventDeliveryCountableConnection", + ofType: null, + }, + args: [ + { + name: "after", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "before", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "filter", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "first", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "last", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + { + name: "sortBy", + type: { + kind: "SCALAR", + name: "Any", + }, + }, + ], + }, + { + name: "events", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookEvent", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "id", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "isActive", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "secretKey", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "subscriptionQuery", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "syncEvents", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookEventSync", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "targetUrl", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [ + { + kind: "INTERFACE", + name: "Node", + }, + ], + }, + { + kind: "OBJECT", + name: "WebhookCreate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "webhook", + type: { + kind: "OBJECT", + name: "Webhook", + ofType: null, + }, + args: [], + }, + { + name: "webhookErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WebhookDelete", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "webhook", + type: { + kind: "OBJECT", + name: "Webhook", + ofType: null, + }, + args: [], + }, + { + name: "webhookErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WebhookError", + fields: [ + { + name: "code", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "field", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + { + name: "message", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WebhookEvent", + fields: [ + { + name: "eventType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WebhookEventAsync", + fields: [ + { + name: "eventType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WebhookEventSync", + fields: [ + { + name: "eventType", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "name", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "WebhookUpdate", + fields: [ + { + name: "errors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + { + name: "webhook", + type: { + kind: "OBJECT", + name: "Webhook", + ofType: null, + }, + args: [], + }, + { + name: "webhookErrors", + type: { + kind: "NON_NULL", + ofType: { + kind: "LIST", + ofType: { + kind: "NON_NULL", + ofType: { + kind: "OBJECT", + name: "WebhookError", + ofType: null, + }, + }, + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "OBJECT", + name: "Weight", + fields: [ + { + name: "unit", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + { + name: "value", + type: { + kind: "NON_NULL", + ofType: { + kind: "SCALAR", + name: "Any", + }, + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "UNION", + name: "_Entity", + possibleTypes: [ + { + kind: "OBJECT", + name: "Address", + }, + { + kind: "OBJECT", + name: "App", + }, + { + kind: "OBJECT", + name: "Category", + }, + { + kind: "OBJECT", + name: "Collection", + }, + { + kind: "OBJECT", + name: "Group", + }, + { + kind: "OBJECT", + name: "PageType", + }, + { + kind: "OBJECT", + name: "Product", + }, + { + kind: "OBJECT", + name: "ProductMedia", + }, + { + kind: "OBJECT", + name: "ProductType", + }, + { + kind: "OBJECT", + name: "ProductVariant", + }, + { + kind: "OBJECT", + name: "User", + }, + ], + }, + { + kind: "OBJECT", + name: "_Service", + fields: [ + { + name: "sdl", + type: { + kind: "SCALAR", + name: "Any", + }, + args: [], + }, + ], + interfaces: [], + }, + { + kind: "SCALAR", + name: "Any", + }, + ], + directives: [], + }, +} as unknown as IntrospectionQuery; +export const UntypedOrderCreatedWebhookPayloadFragmentDoc = gql` + fragment OrderCreatedWebhookPayload on OrderCreated { + order { + id + number + user { + email + firstName + lastName + } + shippingAddress { + streetAddress1 + city + postalCode + country { + country + } + } + subtotal { + gross { + amount + currency + } + } + shippingPrice { + gross { + amount + currency + } + } + total { + gross { + amount + currency + } + } + } + } +`; +export const UntypedUpdateAppMetadataDocument = gql` + mutation UpdateAppMetadata($id: ID!, $input: [MetadataInput!]!) { + updatePrivateMetadata(id: $id, input: $input) { + item { + privateMetadata { + key + value + } + } + } + } +`; + +export function useUpdateAppMetadataMutation() { + return Urql.useMutation( + UntypedUpdateAppMetadataDocument + ); +} +export const UntypedFetchAppDetailsDocument = gql` + query FetchAppDetails { + app { + id + privateMetadata { + key + value + } + } + } +`; + +export function useFetchAppDetailsQuery( + options?: Omit, "query"> +) { + return Urql.useQuery({ + query: UntypedFetchAppDetailsDocument, + ...options, + }); +} +export const UntypedOrderCreatedDocument = gql` + subscription OrderCreated { + event { + ...OrderCreatedWebhookPayload + } + } + ${UntypedOrderCreatedWebhookPayloadFragmentDoc} +`; + +export function useOrderCreatedSubscription( + options: Omit, "query"> = {}, + handler?: Urql.SubscriptionHandler +) { + return Urql.useSubscription( + { query: UntypedOrderCreatedDocument, ...options }, + handler + ); +} +export const OrderCreatedWebhookPayloadFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "OrderCreatedWebhookPayload" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderCreated" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "order" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "number" } }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "shippingAddress" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "streetAddress1" } }, + { kind: "Field", name: { kind: "Name", value: "city" } }, + { kind: "Field", name: { kind: "Name", value: "postalCode" } }, + { + kind: "Field", + name: { kind: "Name", value: "country" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "country" } }], + }, + }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "subtotal" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "gross" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "amount" } }, + { kind: "Field", name: { kind: "Name", value: "currency" } }, + ], + }, + }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "shippingPrice" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "gross" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "amount" } }, + { kind: "Field", name: { kind: "Name", value: "currency" } }, + ], + }, + }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "total" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "gross" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "amount" } }, + { kind: "Field", name: { kind: "Name", value: "currency" } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UpdateAppMetadataDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "UpdateAppMetadata" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { + kind: "NonNullType", + type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, + type: { + kind: "NonNullType", + type: { + kind: "ListType", + type: { + kind: "NonNullType", + type: { kind: "NamedType", name: { kind: "Name", value: "MetadataInput" } }, + }, + }, + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updatePrivateMetadata" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "input" }, + value: { kind: "Variable", name: { kind: "Name", value: "input" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "item" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "privateMetadata" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "key" } }, + { kind: "Field", name: { kind: "Name", value: "value" } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FetchAppDetailsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "FetchAppDetails" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "app" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "privateMetadata" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "key" } }, + { kind: "Field", name: { kind: "Name", value: "value" } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const OrderCreatedDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "subscription", + name: { kind: "Name", value: "OrderCreated" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "event" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "FragmentSpread", + name: { kind: "Name", value: "OrderCreatedWebhookPayload" }, + }, + ], + }, + }, + ], + }, + }, + ...OrderCreatedWebhookPayloadFragmentDoc.definitions, + ], +} as unknown as DocumentNode; diff --git a/apps/slack/generated/schema.graphql b/apps/slack/generated/schema.graphql new file mode 100644 index 0000000..6e9dca8 --- /dev/null +++ b/apps/slack/generated/schema.graphql @@ -0,0 +1,29164 @@ +""" +Create a new address for the customer. + +Requires one of the following permissions: AUTHENTICATED_USER. +""" +type AccountAddressCreate { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + address: Address + errors: [AccountError!]! + + """ + A user instance for which the address was created. + """ + user: User +} + +""" +Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. +""" +type AccountAddressDelete { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + address: Address + errors: [AccountError!]! + + """ + A user instance for which the address was deleted. + """ + user: User +} + +""" +Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. +""" +type AccountAddressUpdate { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + address: Address + errors: [AccountError!]! + + """ + A user object for which the address was edited. + """ + user: User +} + +""" +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 { + """ + A type of address that causes the error. + """ + addressType: AddressTypeEnum + + """ + The error code. + """ + code: AccountErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum AccountErrorCode { + ACCOUNT_NOT_CONFIRMED + ACTIVATE_OWN_ACCOUNT + ACTIVATE_SUPERUSER_ACCOUNT + CHANNEL_INACTIVE + DEACTIVATE_OWN_ACCOUNT + DEACTIVATE_SUPERUSER_ACCOUNT + DELETE_NON_STAFF_USER + DELETE_OWN_ACCOUNT + DELETE_STAFF_ACCOUNT + DELETE_SUPERUSER_ACCOUNT + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INACTIVE + INVALID + INVALID_CREDENTIALS + INVALID_PASSWORD + JWT_DECODE_ERROR + JWT_INVALID_CSRF_TOKEN + JWT_INVALID_TOKEN + JWT_MISSING_TOKEN + JWT_SIGNATURE_EXPIRED + LEFT_NOT_MANAGEABLE_PERMISSION + MISSING_CHANNEL_SLUG + NOT_FOUND + OUT_OF_SCOPE_GROUP + OUT_OF_SCOPE_PERMISSION + OUT_OF_SCOPE_USER + PASSWORD_ENTIRELY_NUMERIC + PASSWORD_TOO_COMMON + PASSWORD_TOO_SHORT + PASSWORD_TOO_SIMILAR + REQUIRED + UNIQUE +} + +input AccountInput { + """ + Billing address of the customer. + """ + defaultBillingAddress: AddressInput + + """ + Shipping address of the customer. + """ + defaultShippingAddress: AddressInput + + """ + Given name. + """ + firstName: String + + """ + User language code. + """ + languageCode: LanguageCodeEnum + + """ + Family name. + """ + lastName: String +} + +""" +Register a new user. +""" +type AccountRegister { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + Informs whether users need to confirm their email address. + """ + requiresConfirmation: Boolean + user: User +} + +input AccountRegisterInput { + """ + Slug of a channel which will be used to notify users. Optional when only one channel exists. + """ + channel: String + + """ + The email address of the user. + """ + email: String! + + """ + Given name. + """ + firstName: String + + """ + User language code. + """ + languageCode: LanguageCodeEnum + + """ + Family name. + """ + lastName: String + + """ + User public metadata. + """ + metadata: [MetadataInput!] + + """ + Password. + """ + password: String! + + """ + Base of frontend URL that will be needed to create confirmation URL. + """ + redirectUrl: 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 { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + An updated user instance. + """ + user: User +} + +""" +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 { + city: String! + cityArea: String! + companyName: String! + + """ + Shop's default country. + """ + country: CountryDisplay! + countryArea: String! + firstName: String! + id: ID! + + """ + Address is user's default billing address. + """ + isDefaultBillingAddress: Boolean + + """ + Address is user's default shipping address. + """ + isDefaultShippingAddress: Boolean + lastName: String! + phone: String + postalCode: String! + streetAddress1: String! + streetAddress2: String! +} + +""" +Creates user address. + +Requires one of the following permissions: MANAGE_USERS. +""" +type AddressCreate { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + address: Address + errors: [AccountError!]! + + """ + A user instance for which the address was created. + """ + user: User +} + +""" +Deletes an address. + +Requires one of the following permissions: MANAGE_USERS. +""" +type AddressDelete { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + address: Address + errors: [AccountError!]! + + """ + A user instance for which the address was deleted. + """ + user: User +} + +input AddressInput { + """ + City. + """ + city: String + + """ + District. + """ + cityArea: String + + """ + Company or organization. + """ + companyName: String + + """ + Country. + """ + country: CountryCode + + """ + State or province. + """ + countryArea: String + + """ + Given name. + """ + firstName: String + + """ + Family name. + """ + lastName: String + + """ + Phone number. + """ + phone: String + + """ + Postal code. + """ + postalCode: String + + """ + Address. + """ + streetAddress1: String + + """ + Address. + """ + streetAddress2: String +} + +""" +Sets a default address for the given user. + +Requires one of the following permissions: MANAGE_USERS. +""" +type AddressSetDefault { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + An updated user instance. + """ + user: User +} + +""" +An enumeration. +""" +enum AddressTypeEnum { + BILLING + SHIPPING +} + +""" +Updates an address. + +Requires one of the following permissions: MANAGE_USERS. +""" +type AddressUpdate { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + address: Address + errors: [AccountError!]! + + """ + A user object for which the address was edited. + """ + user: User +} + +type AddressValidationData { + addressFormat: String! + addressLatinFormat: String! + allowedFields: [String!]! + cityAreaChoices: [ChoiceValue!]! + cityAreaType: String! + cityChoices: [ChoiceValue!]! + cityType: String! + countryAreaChoices: [ChoiceValue!]! + countryAreaType: String! + countryCode: String! + countryName: String! + postalCodeExamples: [String!]! + postalCodeMatchers: [String!]! + postalCodePrefix: String! + postalCodeType: String! + requiredFields: [String!]! + upperFields: [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! +} + +""" +Represents app data. +""" +type App implements Node & ObjectWithMetadata { + """ + Description of this app. + """ + aboutApp: String + + """ + JWT token used to authenticate by thridparty app. + """ + accessToken: String + + """ + Url to iframe with the app. + """ + appUrl: String + + """ + Url to iframe with the configuration for the app. + """ + configurationUrl: String + + """ + The date and time when the app was created. + """ + created: DateTime + + """ + Description of the data privacy defined for this app. + """ + dataPrivacy: String + + """ + Url to details about the privacy policy on the app owner page. + """ + dataPrivacyUrl: 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!]! + + """ + Homepage of the app. + """ + homepageUrl: String + id: ID! + + """ + Determine if app will be set active or not. + """ + isActive: Boolean + + """ + 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 app. + """ + name: String + + """ + List of the app's permissions. + """ + permissions: [Permission!] + + """ + 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 + + """ + Support page for the app. + """ + supportUrl: String + + """ + Last 4 characters of the tokens. + + Requires one of the following permissions: MANAGE_APPS, OWNER. + """ + tokens: [AppToken!] + + """ + Type of the app. + """ + type: AppTypeEnum + + """ + Version number of the app. + """ + version: String + + """ + List of webhooks assigned to this app. + + Requires one of the following permissions: MANAGE_APPS, OWNER. + """ + webhooks: [Webhook!] +} + +""" +Activate the app. + +Requires one of the following permissions: MANAGE_APPS. +""" +type AppActivate { + app: App + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AppError!]! +} + +type AppCountableConnection { + edges: [AppCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type AppCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: App! +} + +""" +Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. +""" +type AppCreate { + app: App + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + The newly created authentication token. + """ + authToken: String + errors: [AppError!]! +} + +""" +Deactivate the app. + +Requires one of the following permissions: MANAGE_APPS. +""" +type AppDeactivate { + app: App + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AppError!]! +} + +""" +Deletes an app. + +Requires one of the following permissions: MANAGE_APPS. +""" +type AppDelete { + app: App + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AppError!]! +} + +""" +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.") + appInstallation: AppInstallation + errors: [AppError!]! +} + +type AppDeleted implements Event { + """ + The application the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + app: App + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type AppError { + """ + The error code. + """ + code: AppErrorCode! + + """ + 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 permissions which causes the error. + """ + permissions: [PermissionEnum!] +} + +""" +An enumeration. +""" +enum AppErrorCode { + FORBIDDEN + GRAPHQL_ERROR + INVALID + INVALID_MANIFEST_FORMAT + INVALID_PERMISSION + INVALID_STATUS + INVALID_URL_FORMAT + MANIFEST_URL_CANT_CONNECT + NOT_FOUND + OUT_OF_SCOPE_APP + OUT_OF_SCOPE_PERMISSION + REQUIRED + UNIQUE +} + +""" +Represents app data. +""" +type AppExtension implements Node { + """ + JWT token used to authenticate by thridparty app extension. + """ + accessToken: String + app: App! + id: ID! + + """ + Label of the extension to show in the dashboard. + """ + label: String! + + """ + Place where given extension will be mounted. + """ + mount: AppExtensionMountEnum! + + """ + List of the app extension's permissions. + """ + permissions: [Permission!]! + + """ + Type of way how app extension will be opened. + """ + target: AppExtensionTargetEnum! + + """ + URL of a view where extension's iframe is placed. + """ + url: String! +} + +type AppExtensionCountableConnection { + edges: [AppExtensionCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type AppExtensionCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: AppExtension! +} + +input AppExtensionFilterInput { + mount: [AppExtensionMountEnum!] + target: AppExtensionTargetEnum +} + +""" +All places where app extension can be mounted. +""" +enum AppExtensionMountEnum { + NAVIGATION_CATALOG + NAVIGATION_CUSTOMERS + NAVIGATION_DISCOUNTS + NAVIGATION_ORDERS + NAVIGATION_PAGES + NAVIGATION_TRANSLATIONS + ORDER_DETAILS_MORE_ACTIONS + ORDER_OVERVIEW_CREATE + ORDER_OVERVIEW_MORE_ACTIONS + PRODUCT_DETAILS_MORE_ACTIONS + PRODUCT_OVERVIEW_CREATE + PRODUCT_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 { + APP_PAGE + POPUP +} + +""" +Fetch and validate manifest. + +Requires one of the following permissions: MANAGE_APPS. +""" +type AppFetchManifest { + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AppError!]! + manifest: Manifest +} + +input AppFilterInput { + isActive: Boolean + search: String + 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.") + appInstallation: AppInstallation + errors: [AppError!]! +} + +input AppInstallInput { + """ + Determine if app will be set active or not. + """ + activateAfterInstallation: Boolean = true + + """ + Name of the app to install. + """ + appName: String + + """ + Url to app's manifest in JSON format. + """ + manifestUrl: String + + """ + List of permission code names to assign to this app. + """ + permissions: [PermissionEnum!] +} + +""" +Represents ongoing installation of app. +""" +type AppInstallation implements Job & Node { + appName: String! + + """ + Created date time of job in ISO 8601 format. + """ + createdAt: DateTime! + id: ID! + manifestUrl: String! + + """ + Job message. + """ + message: String + + """ + Job status. + """ + status: JobStatusEnum! + + """ + Date time of job last update in ISO 8601 format. + """ + updatedAt: DateTime! +} + +type AppInstalled implements Event { + """ + The application the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + app: App + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type AppManifestExtension { + """ + Label of the extension to show in the dashboard. + """ + label: String! + + """ + Place where given extension will be mounted. + """ + mount: AppExtensionMountEnum! + + """ + List of the app extension's permissions. + """ + permissions: [Permission!]! + + """ + Type of way how app extension will be opened. + """ + target: AppExtensionTargetEnum! + + """ + URL of a view where extension's iframe is placed. + """ + url: 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.") + appInstallation: AppInstallation + errors: [AppError!]! +} + +enum AppSortField { + """ + Sort apps by creation date. + """ + CREATION_DATE + + """ + Sort apps by name. + """ + NAME +} + +input AppSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort apps by the selected field. + """ + field: AppSortField! +} + +type AppStatusChanged implements Event { + """ + The application the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + app: App + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Represents token data. +""" +type AppToken implements Node { + """ + Last 4 characters of the token. + """ + authToken: String + id: ID! + + """ + Name of the authenticated token. + """ + name: String +} + +""" +Creates a new token. + +Requires one of the following permissions: MANAGE_APPS. +""" +type AppTokenCreate { + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appToken: AppToken + + """ + The newly created authentication token. + """ + authToken: String + errors: [AppError!]! +} + +""" +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.") + appToken: AppToken + errors: [AppError!]! +} + +input AppTokenInput { + """ + ID of app. + """ + app: ID! + + """ + Name of the token. + """ + name: String +} + +""" +Verify provided app token. +""" +type AppTokenVerify { + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AppError!]! + + """ + Determine if token is valid or not. + """ + valid: Boolean! +} + +""" +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 { + app: App + appErrors: [AppError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AppError!]! +} + +type AppUpdated implements Event { + """ + The application the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + app: App + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +An enumeration. +""" +enum AreaUnitsEnum { + SQ_CM + SQ_FT + SQ_INCH + SQ_KM + SQ_M + SQ_YD +} + +""" +Assigns storefront's navigation menus. + +Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. +""" +type AssignNavigation { + errors: [MenuError!]! + + """ + Assigned navigation menu. + """ + menu: Menu + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + """ + 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! + + """ + List of attribute's values. + """ + choices( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for attribute choices. + """ + filter: AttributeValueFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort attribute choices. + """ + sortBy: AttributeChoicesSortingInput + ): AttributeValueCountableConnection + + """ + The entity type which can be used as a reference. + """ + entityType: AttributeEntityTypeEnum + + """ + 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 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! + id: ID! + + """ + The input type to use for entering attribute values in the dashboard. + """ + inputType: AttributeInputTypeEnum + + """ + 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 an attribute displayed in the interface. + """ + name: String + + """ + 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 + productTypes( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: 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 after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ProductTypeCountableConnection! + + """ + Internal representation of an attribute name. + """ + slug: String + + """ + 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 + + """ + The attribute type. + """ + type: AttributeTypeEnum + + """ + The unit of attribute values. + """ + unit: MeasurementUnitsEnum + + """ + 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! + + """ + Flag indicating that attribute has predefined choices. + """ + withChoices: Boolean! +} + +""" +Deletes attributes. + +Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" +type AttributeBulkDelete { + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Returns how many objects were affected. + """ + count: Int! + 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 { + edges: [AttributeCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type AttributeCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Attribute! +} + +""" +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 { + """ + Whether the attribute can be displayed in the admin product list. + """ + availableInGrid: Boolean + + """ + The entity type which can be used as a reference. + """ + entityType: AttributeEntityTypeEnum + + """ + Whether the attribute can be filtered in dashboard. + """ + filterableInDashboard: Boolean + + """ + Whether the attribute can be filtered in storefront. + """ + filterableInStorefront: Boolean + + """ + The input type to use for entering attribute values in the dashboard. + """ + inputType: AttributeInputTypeEnum + + """ + Whether the attribute is for variants only. + """ + isVariantOnly: Boolean + + """ + Name of an attribute displayed in the interface. + """ + name: String! + + """ + Internal representation of an attribute name. + """ + slug: String + + """ + The position of the attribute in the storefront navigation (0 by default). + """ + storefrontSearchPosition: Int + + """ + The attribute type. + """ + type: AttributeTypeEnum! + + """ + The unit of attribute values. + """ + unit: MeasurementUnitsEnum + + """ + Whether the attribute requires values to be passed or not. + """ + valueRequired: Boolean + + """ + List of attribute's values. + """ + values: [AttributeValueCreateInput!] + + """ + Whether the attribute should be visible or not in storefront. + """ + visibleInStorefront: Boolean +} + +""" +Deletes an attribute. + +Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" +type AttributeDelete { + attribute: Attribute + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AttributeError!]! +} + +""" +An enumeration. +""" +enum AttributeEntityTypeEnum { + PAGE + PRODUCT +} + +type AttributeError { + """ + The error code. + """ + code: AttributeErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum AttributeErrorCode { + ALREADY_EXISTS + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +input AttributeFilterInput { + availableInGrid: Boolean + + """ + 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 + filterableInDashboard: Boolean + filterableInStorefront: Boolean + ids: [ID!] + inCategory: ID + inCollection: ID + isVariantOnly: Boolean + metadata: [MetadataFilter!] + search: String + type: AttributeTypeEnum + valueRequired: Boolean + visibleInStorefront: Boolean +} + +input AttributeInput { + """ + The boolean value of the attribute. + """ + boolean: Boolean + + """ + 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 date/time range that the returned values should be in. + """ + dateTime: DateTimeRangeInput + + """ + 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 +} + +""" +An enumeration. +""" +enum AttributeInputTypeEnum { + BOOLEAN + DATE + DATE_TIME + DROPDOWN + FILE + MULTISELECT + NUMERIC + REFERENCE + RICH_TEXT + SWATCH +} + +""" +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 based on whether they can be displayed or not in a product grid. + """ + AVAILABLE_IN_GRID + + """ + Sort attributes by the filterable in dashboard flag + """ + FILTERABLE_IN_DASHBOARD + + """ + Sort attributes by the filterable in storefront flag + """ + FILTERABLE_IN_STOREFRONT + + """ + Sort attributes by the variant only flag + """ + IS_VARIANT_ONLY + + """ + Sort attributes by name + """ + NAME + + """ + Sort attributes by slug + """ + SLUG + + """ + Sort attributes by their position in storefront + """ + STOREFRONT_SEARCH_POSITION + + """ + Sort attributes by the value required flag + """ + VALUE_REQUIRED + + """ + Sort attributes by visibility in the storefront + """ + VISIBLE_IN_STOREFRONT +} + +input AttributeSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort attributes by the selected field. + """ + field: AttributeSortField! +} + +type AttributeTranslatableContent implements Node { + """ + 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." + ) + 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 +} + +""" +Creates/updates translations for an attribute. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type AttributeTranslate { + attribute: Attribute + errors: [TranslationError!]! + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type AttributeTranslation implements Node { + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String! +} + +""" +An enumeration. +""" +enum AttributeTypeEnum { + PAGE_TYPE + PRODUCT_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 { + """ + New values to be created for this attribute. + """ + addValues: [AttributeValueUpdateInput!] + + """ + Whether the attribute can be displayed in the admin product list. + """ + availableInGrid: Boolean + + """ + Whether the attribute can be filtered in dashboard. + """ + filterableInDashboard: Boolean + + """ + Whether the attribute can be filtered in storefront. + """ + filterableInStorefront: Boolean + + """ + Whether the attribute is for variants only. + """ + isVariantOnly: Boolean + + """ + Name of an attribute displayed in the interface. + """ + name: String + + """ + IDs of values to be removed from this attribute. + """ + removeValues: [ID!] + + """ + Internal representation of an attribute name. + """ + slug: String + + """ + The position of the attribute in the storefront navigation (0 by default). + """ + storefrontSearchPosition: Int + + """ + The unit of attribute values. + """ + unit: MeasurementUnitsEnum + + """ + Whether the attribute requires values to be passed or not. + """ + valueRequired: Boolean + + """ + Whether the attribute should be visible or not in storefront. + """ + visibleInStorefront: Boolean +} + +""" +Represents a value of an attribute. +""" +type AttributeValue implements Node { + """ + 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 file URL and content type (if attribute value is a file). + """ + file: File + id: ID! + + """ + The input type to use for entering attribute values in the dashboard. + """ + inputType: AttributeInputTypeEnum + + """ + Name of a value displayed in the interface. + """ + name: String + + """ + The ID of the attribute reference. + """ + reference: ID + + """ + Represents the text of the attribute value, includes formatting. + + Rich text format. For reference see https://editorjs.io/ + """ + richText: JSONString + + """ + Internal representation of a value (unique per attribute). + """ + slug: 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 + + """ + Represent value of the attribute value (e.g. color values for swatch attributes). + """ + value: String +} + +""" +Deletes values of attributes. + +Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" +type AttributeValueBulkDelete { + attributeErrors: [AttributeError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Returns how many objects were affected. + """ + count: Int! + errors: [AttributeError!]! +} + +type AttributeValueCountableConnection { + edges: [AttributeValueCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type AttributeValueCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: AttributeValue! +} + +""" +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.") + attributeValue: AttributeValue + errors: [AttributeError!]! +} + +input AttributeValueCreateInput { + """ + File content type. + """ + contentType: String + + """ + URL of the file attribute. Every time, a new value is created. + """ + fileUrl: String + + """ + Name of a value displayed in the interface. + """ + name: String! + + """ + Represents the text of the attribute value, includes formatting. + + Rich text format. For reference see https://editorjs.io/ + """ + richText: JSONString + + """ + Represent value of the attribute value (e.g. color values for swatch attributes). + """ + value: String +} + +""" +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.") + attributeValue: AttributeValue + errors: [AttributeError!]! +} + +input AttributeValueFilterInput { + ids: [ID!] + search: String +} + +input AttributeValueInput { + """ + Represents the boolean value of the attribute value. + """ + boolean: Boolean + + """ + File content type. + """ + contentType: String + + """ + Represents the date value of the attribute value. + """ + date: Date + + """ + Represents the date/time value of the attribute value. + """ + dateTime: DateTime + + """ + URL of the file attribute. Every time, a new value is created. + """ + file: String + + """ + ID of the selected attribute. + """ + id: ID + + """ + List of entity IDs that will be used as references. + """ + references: [ID!] + + """ + Text content in JSON format. + """ + richText: JSONString + + """ + The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. + """ + values: [String!] +} + +type AttributeValueTranslatableContent implements Node { + """ + 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." + ) + id: ID! + name: String! + + """ + Attribute value. + + Rich text format. For reference see https://editorjs.io/ + """ + richText: JSONString + + """ + Returns translated attribute value fields for the given language code. + """ + translation( + """ + A language code to return the translation for attribute value. + """ + languageCode: LanguageCodeEnum! + ): AttributeValueTranslation +} + +""" +Creates/updates translations for an attribute value. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type AttributeValueTranslate { + attributeValue: AttributeValue + errors: [TranslationError!]! + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 +} + +input AttributeValueTranslationInput { + name: String + + """ + Translated text. + + Rich text format. For reference see https://editorjs.io/ + """ + richText: JSONString +} + +""" +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.") + attributeValue: AttributeValue + errors: [AttributeError!]! +} + +input AttributeValueUpdateInput { + """ + File content type. + """ + contentType: String + + """ + URL of the file attribute. Every time, a new value is created. + """ + fileUrl: String + + """ + Name of a value displayed in the interface. + """ + name: String + + """ + Represents the text of the attribute value, includes formatting. + + Rich text format. For reference see https://editorjs.io/ + """ + richText: JSONString + + """ + Represent value of the attribute value (e.g. color values for swatch attributes). + """ + value: String +} + +input BulkAttributeValueInput { + """ + The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. + """ + boolean: Boolean + + """ + 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!] +} + +type BulkProductError { + """ + List of attributes IDs which causes the error. + """ + attributes: [ID!] + + """ + List of channel IDs which causes the error. + """ + channels: [ID!] + + """ + The error code. + """ + code: ProductErrorCode! + + """ + 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 + + """ + Index of an input list item that caused the error. + """ + index: Int + + """ + The error message. + """ + message: String + + """ + List of attribute values IDs which causes the error. + """ + values: [ID!] + + """ + List of warehouse IDs which causes the error. + """ + warehouses: [ID!] +} + +type BulkStockError { + """ + List of attributes IDs which causes the error. + """ + attributes: [ID!] + + """ + The error code. + """ + code: ProductErrorCode! + + """ + 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 + + """ + Index of an input list item that caused the error. + """ + index: Int + + """ + The error message. + """ + message: String + + """ + List of attribute values IDs which causes the error. + """ + values: [ID!] +} + +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 { + """ + Categories related to the discount. + """ + categories: [ID!] + + """ + Collections related to the discount. + """ + collections: [ID!] + + """ + Products related to the discount. + """ + products: [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 { + """ + List of ancestors of the category. + """ + ancestors( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: 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. + """ + size: Int + ): Image + + """ + List of children of the category. + """ + children( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): CategoryCountableConnection + + """ + 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." + ) + id: ID! + level: Int! + + """ + 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! + parent: Category + + """ + 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 products in the category. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. + """ + products( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ProductCountableConnection + seoDescription: String + seoTitle: String + slug: String! + + """ + 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! + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type CategoryCountableConnection { + edges: [CategoryCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type CategoryCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Category! +} + +""" +Creates a new category. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type CategoryCreate { + category: Category + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type CategoryCreated implements Event { + """ + The category the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a category. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type CategoryDelete { + category: Category + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type CategoryDeleted implements Event { + """ + The category the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +input CategoryFilterInput { + ids: [ID!] + metadata: [MetadataFilter!] + search: String +} + +input CategoryInput { + """ + Background image file. + """ + backgroundImage: Upload + + """ + Alt text for a product media. + """ + backgroundImageAlt: String + + """ + Category description. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + + """ + Category name. + """ + name: String + + """ + Search engine optimization fields. + """ + seo: SeoInput + + """ + Category slug. + """ + slug: String +} + +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 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 + + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort categories by the selected field. + """ + field: CategorySortField! +} + +type CategoryTranslatableContent implements Node { + """ + 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." + ) + + """ + 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." + ) + id: ID! + name: String! + seoDescription: String + seoTitle: String + + """ + Returns translated category fields for the given language code. + """ + translation( + """ + A language code to return the translation for category. + """ + languageCode: LanguageCodeEnum! + ): CategoryTranslation +} + +""" +Creates/updates translations for a category. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type CategoryTranslate { + category: Category + errors: [TranslationError!]! + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type CategoryTranslation implements Node { + """ + 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." + ) + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String + seoDescription: String + seoTitle: String +} + +""" +Updates a category. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type CategoryUpdate { + category: Category + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type CategoryUpdated implements Event { + """ + The category the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Represents channel. +""" +type Channel implements Node { + 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. + """ + defaultCountry: CountryDisplay! + + """ + Whether a channel has associated orders. + + Requires one of the following permissions: MANAGE_CHANNELS. + """ + hasOrders: Boolean! + id: ID! + isActive: Boolean! + name: String! + slug: String! +} + +""" +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 { + channel: Channel + channelErrors: [ChannelError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [ChannelError!]! +} + +input ChannelCreateInput { + """ + List of shipping zones to assign to the channel. + """ + addShippingZones: [ID!] + + """ + 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. + """ + defaultCountry: CountryCode! + + """ + isActive flag. + """ + isActive: Boolean + + """ + Name of the channel. + """ + name: String! + + """ + Slug of the channel. + """ + slug: String! +} + +type ChannelCreated implements Event { + """ + The channel the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + channel: Channel + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +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 { + channel: Channel + channelErrors: [ChannelError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [ChannelError!]! +} + +input ChannelDeleteInput { + """ + ID of channel to migrate orders from origin channel. + """ + channelId: ID! +} + +type ChannelDeleted implements Event { + """ + The channel the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + channel: Channel + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type ChannelError { + """ + The error code. + """ + code: ChannelErrorCode! + + """ + 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 shipping zone IDs which causes the error. + """ + shippingZones: [ID!] +} + +""" +An enumeration. +""" +enum ChannelErrorCode { + ALREADY_EXISTS + CHANNELS_CURRENCY_MUST_BE_THE_SAME + CHANNEL_WITH_ORDERS + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +type ChannelStatusChanged implements Event { + """ + The channel the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + channel: Channel + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Update a channel. + +Requires one of the following permissions: MANAGE_CHANNELS. +""" +type ChannelUpdate { + channel: Channel + channelErrors: [ChannelError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [ChannelError!]! +} + +input ChannelUpdateInput { + """ + List of shipping zones to assign to the channel. + """ + addShippingZones: [ID!] + + """ + 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 + + """ + isActive flag. + """ + isActive: Boolean + + """ + Name of the channel. + """ + name: String + + """ + List of shipping zones to unassign from the channel. + """ + removeShippingZones: [ID!] + + """ + Slug of the channel. + """ + slug: String +} + +type ChannelUpdated implements Event { + """ + The channel the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + channel: Channel + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Checkout object. +""" +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!]! + + """ + List of available payment gateways. + """ + availablePaymentGateways: [PaymentGateway!]! + + """ + 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.") + billingAddress: Address + channel: Channel! + created: DateTime! + + """ + 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 + discount: Money + discountName: String + + """ + Email of a customer. + """ + email: String + + """ + List of gift cards associated with this checkout. + """ + giftCards: [GiftCard!]! + id: ID! + + """ + Returns True, if checkout requires shipping. + """ + isShippingRequired: Boolean! + + """ + Checkout language code. + """ + languageCode: LanguageCodeEnum! + lastChange: DateTime! + + """ + A list of checkout lines, each containing information about an item in the checkout. + """ + lines: [CheckoutLine!]! + + """ + 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 + note: String! + + """ + 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 + + """ + The number of items purchased. + """ + quantity: Int! + shippingAddress: Address + + """ + The shipping method related with checkout. + """ + shippingMethod: ShippingMethod + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.") + + """ + Shipping methods that can be used with this checkout. + """ + shippingMethods: [ShippingMethod!]! + + """ + The price of the shipping, with all the taxes included. + """ + shippingPrice: TaxedMoney! + + """ + Date when oldest stock reservation for this checkout expires or null if no stock is reserved. + + Added in Saleor 3.1. + """ + stockReservationExpires: DateTime + + """ + The price of the checkout before shipping, with taxes included. + """ + subtotalPrice: TaxedMoney! + + """ + 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! + + """ + 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!] + translatedDiscountName: String + user: User + voucherCode: String +} + +""" +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!]! +} + +""" +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 { + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Confirmation data used to process additional authorization steps. + """ + confirmationData: JSONString + + """ + Set to true if payment needs to be confirmed before checkout is complete. + """ + confirmationNeeded: Boolean! + errors: [CheckoutError!]! + + """ + Placed order. + """ + order: Order +} + +type CheckoutCountableConnection { + edges: [CheckoutCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type CheckoutCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Checkout! +} + +""" +Create a new checkout. +""" +type CheckoutCreate { + checkout: Checkout + checkoutErrors: [CheckoutError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + 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`.") + errors: [CheckoutError!]! +} + +input CheckoutCreateInput { + """ + Billing address of the customer. + """ + billingAddress: AddressInput + + """ + Slug of a channel in which to create a checkout. + """ + channel: String + + """ + The customer's email address. + """ + email: String + + """ + Checkout language code. + """ + languageCode: LanguageCodeEnum + + """ + A list of checkout lines, each containing information about an item in the checkout. + """ + lines: [CheckoutLineInput!]! + + """ + 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 +} + +type CheckoutCreated implements Event { + """ + The checkout the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + checkout: Checkout + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +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 { + """ + A type of address that causes the error. + """ + addressType: AddressTypeEnum + + """ + The error code. + """ + code: CheckoutErrorCode! + + """ + 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 + + """ + List of line Ids which cause the error. + """ + lines: [ID!] + + """ + The error message. + """ + message: String + + """ + List of varint IDs which causes the error. + """ + variants: [ID!] +} + +""" +An enumeration. +""" +enum CheckoutErrorCode { + BILLING_ADDRESS_NOT_SET + CHANNEL_INACTIVE + CHECKOUT_NOT_FULLY_PAID + DELIVERY_METHOD_NOT_APPLICABLE + EMAIL_NOT_SET + GIFT_CARD_NOT_APPLICABLE + GRAPHQL_ERROR + INSUFFICIENT_STOCK + INVALID + INVALID_SHIPPING_METHOD + MISSING_CHANNEL_SLUG + NOT_FOUND + NO_LINES + PAYMENT_ERROR + PRODUCT_NOT_PUBLISHED + PRODUCT_UNAVAILABLE_FOR_PURCHASE + QUANTITY_GREATER_THAN_LIMIT + REQUIRED + SHIPPING_ADDRESS_NOT_SET + SHIPPING_METHOD_NOT_APPLICABLE + SHIPPING_METHOD_NOT_SET + SHIPPING_NOT_REQUIRED + TAX_ERROR + UNAVAILABLE_VARIANT_IN_CHANNEL + UNIQUE + VOUCHER_NOT_APPLICABLE + ZERO_QUANTITY +} + +input CheckoutFilterInput { + channels: [ID!] + created: DateRangeInput + customer: String + metadata: [MetadataFilter!] + search: String +} + +""" +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 { + id: ID! + quantity: Int! + + """ + Indicates whether the item need to be delivered. + """ + requiresShipping: Boolean! + + """ + The sum of the checkout line price, taxes and discounts. + """ + totalPrice: TaxedMoney! + + """ + The sum of the checkout line price, without discounts. + """ + undiscountedTotalPrice: Money! + + """ + The unit price of the checkout line, without discounts. + """ + undiscountedUnitPrice: Money! + + """ + The unit price of the checkout line, with taxes and discounts. + """ + unitPrice: TaxedMoney! + variant: ProductVariant! +} + +type CheckoutLineCountableConnection { + edges: [CheckoutLineCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type CheckoutLineCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: CheckoutLine! +} + +""" +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 { + """ + 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 + + """ + The number of items purchased. + """ + quantity: Int! + + """ + ID of the product variant. + """ + variantId: ID! +} + +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 + + """ + The number of items purchased. Optional for apps, required for any other users. + """ + quantity: Int + + """ + ID of the product variant. + """ + variantId: 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!]! +} + +""" +Create a new payment for given checkout. +""" +type CheckoutPaymentCreate { + """ + Related checkout object. + """ + checkout: Checkout + errors: [PaymentError!]! + + """ + A newly created payment. + """ + payment: Payment + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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! +} + +type CheckoutUpdated implements Event { + """ + The checkout the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + checkout: Checkout + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type ChoiceValue { + raw: String + verbose: String +} + +""" +Represents a collection of products. +""" +type Collection implements Node & ObjectWithMetadata { + backgroundImage( + """ + Size of the image. + """ + size: Int + ): Image + + """ + Channel given to retrieve this collection. Also used by federation gateway to resolve this object in a federated query. + """ + channel: String + + """ + List of channels in which the collection is available. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + channelListings: [CollectionChannelListing!] + + """ + 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." + ) + id: ID! + + """ + 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! + + """ + 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 products in this collection. + """ + products( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for products. + """ + filter: ProductFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort products. + """ + sortBy: ProductOrder + ): ProductCountableConnection + seoDescription: String + seoTitle: String + slug: String! + + """ + Returns translated collection fields for the given language code. + """ + translation( + """ + A language code to return the translation for collection. + """ + languageCode: LanguageCodeEnum! + ): CollectionTranslation +} + +""" +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 { + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Returns how many objects were affected. + """ + count: Int! + errors: [CollectionError!]! +} + +""" +Represents collection channel listing. +""" +type CollectionChannelListing implements Node { + channel: Channel! + id: ID! + isPublished: Boolean! + 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 +} + +type CollectionChannelListingError { + """ + List of attributes IDs which causes the error. + """ + attributes: [ID!] + + """ + List of channels IDs which causes the error. + """ + channels: [ID!] + + """ + The error code. + """ + code: ProductErrorCode! + + """ + 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 attribute values IDs which causes the error. + """ + values: [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 { + edges: [CollectionCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type CollectionCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Collection! +} + +""" +Creates a new collection. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type CollectionCreate { + collection: Collection + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [CollectionError!]! +} + +input CollectionCreateInput { + """ + Background image file. + """ + backgroundImage: Upload + + """ + Alt text for an image. + """ + backgroundImageAlt: String + + """ + Description of the collection. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + + """ + Informs whether a collection is published. + """ + isPublished: Boolean + + """ + Name of the collection. + """ + name: String + + """ + List of products to be added to the collection. + """ + products: [ID!] + + """ + Publication date. ISO 8601 standard. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ + publicationDate: Date + + """ + Search engine optimization fields. + """ + seo: SeoInput + + """ + Slug of the collection. + """ + slug: String +} + +type CollectionCreated implements Event { + """ + The collection the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + collection( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Collection + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a collection. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type CollectionDelete { + collection: Collection + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [CollectionError!]! +} + +type CollectionDeleted implements Event { + """ + The collection the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + collection( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Collection + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type CollectionError { + """ + The error code. + """ + code: CollectionErrorCode! + + """ + 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!] +} + +""" +An enumeration. +""" +enum CollectionErrorCode { + CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +input 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: String + ids: [ID!] + metadata: [MetadataFilter!] + published: CollectionPublished + search: String +} + +input CollectionInput { + """ + Background image file. + """ + backgroundImage: Upload + + """ + Alt text for an image. + """ + backgroundImageAlt: String + + """ + Description of the collection. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + + """ + Informs whether a collection is published. + """ + isPublished: Boolean + + """ + Name of the collection. + """ + name: String + + """ + Publication date. ISO 8601 standard. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ + publicationDate: Date + + """ + Search engine optimization fields. + """ + seo: SeoInput + + """ + Slug of the collection. + """ + slug: String +} + +enum CollectionPublished { + HIDDEN + PUBLISHED +} + +""" +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 availability. + + This option requires a channel filter to work as the values can vary between channels. + """ + AVAILABILITY + + """ + Sort collections by name. + """ + NAME + + """ + 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 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 + + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort collections by the selected field. + """ + field: CollectionSortField! +} + +type CollectionTranslatableContent implements Node { + """ + 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." + ) + + """ + 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." + ) + id: ID! + name: String! + seoDescription: String + seoTitle: String + + """ + Returns translated collection fields for the given language code. + """ + translation( + """ + A language code to return the translation for collection. + """ + languageCode: LanguageCodeEnum! + ): CollectionTranslation +} + +""" +Creates/updates translations for a collection. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type CollectionTranslate { + collection: Collection + errors: [TranslationError!]! + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type CollectionTranslation implements Node { + """ + 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." + ) + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String + seoDescription: String + seoTitle: String +} + +""" +Updates a collection. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type CollectionUpdate { + collection: Collection + collectionErrors: [CollectionError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [CollectionError!]! +} + +type CollectionUpdated implements Event { + """ + The collection the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + collection( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Collection + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Stores information about a single configuration field. +""" +type ConfigurationItem { + """ + Help text for the field. + """ + helpText: String + + """ + Label for the field. + """ + label: String + + """ + Name of the field. + """ + name: String! + + """ + Type of the field. + """ + type: ConfigurationTypeFieldEnum + + """ + Current value of the field. + """ + value: String +} + +input ConfigurationItemInput { + """ + Name of the field to update. + """ + name: String! + + """ + Value of the given field to update. + """ + value: String +} + +""" +An enumeration. +""" +enum ConfigurationTypeFieldEnum { + BOOLEAN + MULTILINE + OUTPUT + PASSWORD + SECRET + SECRETMULTILINE + STRING +} + +""" +Confirm user account with token sent by email during registration. +""" +type ConfirmAccount { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + An activated user account. + """ + user: User +} + +""" +Confirm the email change of the logged-in user. + +Requires one of the following permissions: AUTHENTICATED_USER. +""" +type ConfirmEmailChange { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + A user instance with a new email. + """ + user: User +} + +""" +An enumeration. +""" +enum CountryCode { + AD + AE + AF + AG + AI + AL + AM + AO + AQ + AR + AS + AT + AU + AW + AX + AZ + BA + BB + BD + BE + BF + BG + BH + BI + BJ + BL + BM + BN + BO + BQ + BR + BS + BT + BV + BW + BY + BZ + CA + CC + CD + CF + CG + CH + CI + CK + CL + CM + CN + CO + CR + CU + CV + CW + CX + CY + CZ + DE + DJ + DK + DM + DO + DZ + EC + EE + EG + EH + ER + ES + ET + EU + FI + FJ + FK + FM + FO + FR + GA + GB + GD + GE + GF + GG + GH + GI + GL + GM + GN + GP + GQ + GR + GS + GT + GU + GW + GY + HK + HM + HN + HR + HT + HU + ID + IE + IL + IM + IN + IO + IQ + IR + IS + IT + JE + JM + JO + JP + KE + KG + KH + KI + KM + KN + KP + KR + KW + KY + KZ + LA + LB + LC + LI + LK + LR + LS + LT + LU + LV + LY + MA + MC + MD + ME + MF + MG + MH + MK + ML + MM + MN + MO + MP + MQ + MR + MS + MT + MU + MV + MW + MX + MY + MZ + NA + NC + NE + NF + NG + NI + NL + NO + NP + NR + NU + NZ + OM + PA + PE + PF + PG + PH + PK + PL + PM + PN + PR + PS + PT + PW + PY + QA + RE + RO + RS + RU + RW + SA + SB + SC + SD + SE + SG + SH + SI + SJ + SK + SL + SM + SN + SO + SR + SS + ST + SV + SX + SY + SZ + TC + TD + TF + TG + TH + TJ + TK + TL + TM + TN + TO + TR + TT + TV + TW + TZ + UA + UG + UM + US + UY + UZ + VA + VC + VE + VG + VI + VN + VU + WF + WS + YE + YT + ZA + ZM + ZW +} + +type CountryDisplay { + """ + Country code. + """ + code: String! + + """ + Country name. + """ + country: String! + + """ + Country tax. + """ + vat: VAT +} + +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 +} + +""" +Create JWT token. +""" +type CreateToken { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + CSRF token required to re-generate access token. + """ + csrfToken: String + errors: [AccountError!]! + + """ + JWT refresh token, required to re-generate access token. + """ + refreshToken: String + + """ + JWT token, required to authenticate. + """ + token: String + + """ + A user instance. + """ + user: User +} + +type CreditCard { + """ + Card brand. + """ + brand: String! + + """ + Two-digit number representing the card’s expiration month. + """ + expMonth: Int + + """ + Four-digit number representing the card’s expiration year. + """ + expYear: Int + + """ + First 4 digits of the card number. + """ + firstDigits: String + + """ + Last 4 digits of the card number. + """ + lastDigits: String! +} + +""" +Deletes customers. + +Requires one of the following permissions: MANAGE_USERS. +""" +type CustomerBulkDelete { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Returns how many objects were affected. + """ + count: Int! + 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 +} + +type CustomerCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The user the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + user: User + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +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 { + """ + App that performed the action. + """ + app: App + + """ + Number of objects concerned by the event. + """ + count: Int + + """ + Date when event happened at in ISO 8601 format. + """ + date: DateTime + id: ID! + + """ + Content of the event. + """ + message: String + + """ + The concerned order. + """ + order: Order + + """ + The concerned order line. + """ + orderLine: OrderLine + + """ + Customer event type. + """ + type: CustomerEventsEnum + + """ + User who performed the action. + """ + user: User +} + +""" +An enumeration. +""" +enum CustomerEventsEnum { + ACCOUNT_CREATED + CUSTOMER_DELETED + DIGITAL_LINK_DOWNLOADED + EMAIL_ASSIGNED + EMAIL_CHANGED + EMAIL_CHANGED_REQUEST + NAME_ASSIGNED + NOTE_ADDED + NOTE_ADDED_TO_ORDER + PASSWORD_CHANGED + PASSWORD_RESET + PASSWORD_RESET_LINK_SENT + PLACED_ORDER +} + +input CustomerFilterInput { + dateJoined: DateRangeInput + metadata: [MetadataFilter!] + numberOfOrders: IntRangeInput + placedOrders: DateRangeInput + search: String + updatedAt: DateTimeRangeInput +} + +input CustomerInput { + """ + Billing address of the customer. + """ + defaultBillingAddress: AddressInput + + """ + Shipping address of the customer. + """ + defaultShippingAddress: AddressInput + + """ + The unique email address of the user. + """ + email: String + + """ + Given name. + """ + firstName: String + + """ + User account is active. + """ + isActive: Boolean + + """ + User language code. + """ + languageCode: LanguageCodeEnum + + """ + Family name. + """ + lastName: String + + """ + A note about the user. + """ + note: String +} + +""" +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 +} + +type CustomerUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The user the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + user: User + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +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!]! +} + +""" +Delete metadata of an object. To use it, you need to have access to the modified object. +""" +type DeleteMetadata { + errors: [MetadataError!]! + item: ObjectWithMetadata + metadataErrors: [MetadataError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + errors: [MetadataError!]! + item: ObjectWithMetadata + metadataErrors: [MetadataError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 = ShippingMethod | Warehouse + +type DigitalContent implements Node & ObjectWithMetadata { + automaticFulfillment: Boolean! + contentFile: String! + id: ID! + maxDownloads: Int + + """ + 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 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 + + """ + Product variant assigned to digital content. + """ + productVariant: ProductVariant! + urlValidDays: Int + + """ + List of URLs for the digital variant. + """ + urls: [DigitalContentUrl!] + useDefaultSettings: Boolean! +} + +type DigitalContentCountableConnection { + edges: [DigitalContentCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type DigitalContentCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: DigitalContent! +} + +""" +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 { + content: DigitalContent + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + variant: ProductVariant +} + +""" +Remove digital content assigned to given variant. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type DigitalContentDelete { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + variant: ProductVariant +} + +input DigitalContentInput { + """ + Overwrite default automatic_fulfillment setting for variant. + """ + automaticFulfillment: 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 + + """ + Use default digital content settings for this product. + """ + useDefaultSettings: Boolean! +} + +""" +Update digital content. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type DigitalContentUpdate { + content: DigitalContent + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + variant: ProductVariant +} + +input DigitalContentUploadInput { + """ + Overwrite default automatic_fulfillment setting for variant. + """ + automaticFulfillment: Boolean + + """ + Represents an file in a multipart request. + """ + contentFile: Upload! + + """ + 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 + + """ + Use default digital content settings for this product. + """ + useDefaultSettings: Boolean! +} + +type DigitalContentUrl implements Node { + content: DigitalContent! + created: DateTime! + downloadNum: Int! + id: ID! + + """ + UUID of digital content. + """ + token: UUID! + + """ + URL for digital content. + """ + url: String +} + +""" +Generate new URL to digital content. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type DigitalContentUrlCreate { + digitalContentUrl: DigitalContentUrl + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input DigitalContentUrlCreateInput { + """ + Digital content ID which URL will belong to. + """ + content: ID! +} + +type DiscountError { + """ + List of channels IDs which causes the error. + """ + channels: [ID!] + + """ + The error code. + """ + code: DiscountErrorCode! + + """ + 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!] +} + +""" +An enumeration. +""" +enum DiscountErrorCode { + ALREADY_EXISTS + CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +enum DiscountStatusEnum { + ACTIVE + EXPIRED + SCHEDULED +} + +enum DiscountValueTypeEnum { + FIXED + PERCENTAGE +} + +""" +An enumeration. +""" +enum DistanceUnitsEnum { + CM + FT + INCH + KM + M + YD +} + +""" +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! + errors: [OrderError!]! + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Completes creating an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type DraftOrderComplete { + errors: [OrderError!]! + + """ + Completed order. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Creates a new draft order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type DraftOrderCreate { + errors: [OrderError!]! + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input DraftOrderCreateInput { + """ + Billing address of the customer. + """ + billingAddress: AddressInput + + """ + ID of the channel associated with the order. + """ + channelId: ID + + """ + A note from a customer. Visible by customers in the order summary. + """ + customerNote: String + + """ + Discount amount for the order. + """ + discount: PositiveDecimal + + """ + Variant line input consisting of variant ID and quantity of products. + """ + lines: [OrderLineCreateInput!] + + """ + URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. + """ + redirectUrl: String + + """ + Shipping address of the customer. + """ + shippingAddress: AddressInput + + """ + ID of a selected shipping method. + """ + shippingMethod: ID + + """ + Customer associated with the draft order. + """ + user: ID + + """ + Email address of the customer. + """ + userEmail: String + + """ + ID of the voucher associated with the order. + """ + voucher: ID +} + +type DraftOrderCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a draft order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type DraftOrderDelete { + errors: [OrderError!]! + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type DraftOrderDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +input DraftOrderInput { + """ + Billing address of the customer. + """ + billingAddress: AddressInput + + """ + ID of the channel associated with the order. + """ + channelId: ID + + """ + A note from a customer. Visible by customers in the order summary. + """ + customerNote: String + + """ + Discount amount for the order. + """ + discount: PositiveDecimal + + """ + URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. + """ + redirectUrl: String + + """ + Shipping address of the customer. + """ + shippingAddress: AddressInput + + """ + ID of a selected shipping method. + """ + shippingMethod: ID + + """ + Customer associated with the draft order. + """ + user: ID + + """ + Email address of the customer. + """ + userEmail: String + + """ + ID of the voucher associated with the order. + """ + voucher: ID +} + +""" +Deletes order lines. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type DraftOrderLinesBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [OrderError!]! + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Updates a draft order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type DraftOrderUpdate { + errors: [OrderError!]! + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type DraftOrderUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +interface Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Event delivery. +""" +type EventDelivery implements Node { + """ + Event delivery attempts. + """ + attempts( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Event delivery sorter + """ + sortBy: EventDeliveryAttemptSortingInput + ): EventDeliveryAttemptCountableConnection + createdAt: DateTime! + + """ + Webhook event type. + """ + eventType: WebhookEventTypeEnum! + id: ID! + + """ + Event payload. + """ + payload: String + + """ + Event delivery status. + """ + status: EventDeliveryStatusEnum! +} + +""" +Event delivery attempts. +""" +type EventDeliveryAttempt implements Node { + """ + Event delivery creation date and time. + """ + createdAt: DateTime! + + """ + Delivery attempt duration. + """ + duration: Float + id: ID! + + """ + Request headers for delivery attempt. + """ + requestHeaders: String + + """ + Delivery attempt response content. + """ + response: String + + """ + Response headers for delivery attempt. + """ + responseHeaders: String + + """ + Delivery attempt response status code. + """ + responseStatusCode: Int + + """ + Event delivery status. + """ + status: EventDeliveryStatusEnum! + + """ + Task id for delivery attempt. + """ + taskId: String +} + +type EventDeliveryAttemptCountableConnection { + edges: [EventDeliveryAttemptCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type EventDeliveryAttemptCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: EventDeliveryAttempt! +} + +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 { + edges: [EventDeliveryCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type EventDeliveryCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: EventDelivery! +} + +input EventDeliveryFilterInput { + eventType: WebhookEventTypeEnum + status: EventDeliveryStatusEnum +} + +""" +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 { + FAILED + PENDING + SUCCESS +} + +type ExportError { + """ + The error code. + """ + code: ExportErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum ExportErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED +} + +""" +History log of export file. +""" +type ExportEvent implements Node { + """ + App which performed the action. Requires one of the following permissions: OWNER, MANAGE_APPS. + """ + app: App + + """ + Date when event happened at in ISO 8601 format. + """ + date: DateTime! + + """ + The ID of the object. + """ + id: ID! + + """ + Content of the event. + """ + message: String! + + """ + Export event type. + """ + type: ExportEventsEnum! + + """ + User who performed the action. Requires one of the following permissions: OWNER, MANAGE_STAFF. + """ + user: User +} + +""" +An enumeration. +""" +enum ExportEventsEnum { + EXPORTED_FILE_SENT + EXPORT_DELETED + EXPORT_FAILED + EXPORT_FAILED_INFO_SENT + EXPORT_PENDING + EXPORT_SUCCESS +} + +""" +Represents a job data of exported file. +""" +type ExportFile implements Job & Node { + app: App + + """ + Created date time of job in ISO 8601 format. + """ + createdAt: DateTime! + + """ + List of events associated with the export. + """ + events: [ExportEvent!] + id: ID! + + """ + Job message. + """ + message: String + + """ + Job status. + """ + status: JobStatusEnum! + + """ + Date time of job last update in ISO 8601 format. + """ + updatedAt: DateTime! + + """ + The URL of field to download. + """ + url: String + user: User +} + +type ExportFileCountableConnection { + edges: [ExportFileCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type ExportFileCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: ExportFile! +} + +input ExportFileFilterInput { + app: String + createdAt: DateTimeRangeInput + status: JobStatusEnum + updatedAt: DateTimeRangeInput + user: String +} + +enum ExportFileSortField { + CREATED_AT + LAST_MODIFIED_AT + STATUS + UPDATED_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 { + errors: [ExportError!]! + + """ + The newly created export file job which is responsible for export data. + """ + exportFile: ExportFile +} + +input ExportGiftCardsInput { + """ + Type of exported file. + """ + fileType: FileTypesEnum! + + """ + Filtering options for gift cards. + """ + filter: GiftCardFilterInput + + """ + List of gift cards IDs to export. + """ + ids: [ID!] + + """ + Determine which gift cards should be exported. + """ + scope: ExportScope! +} + +input ExportInfoInput { + """ + List of attribute ids witch should be exported. + """ + attributes: [ID!] + + """ + List of channels ids which should be exported. + """ + channels: [ID!] + + """ + List of product fields witch should be exported. + """ + fields: [ProductFieldEnum!] + + """ + List of warehouse ids witch should be exported. + """ + warehouses: [ID!] +} + +""" +Export products to csv file. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ExportProducts { + errors: [ExportError!]! + exportErrors: [ExportError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + The newly created export file job which is responsible for export data. + """ + exportFile: ExportFile +} + +input ExportProductsInput { + """ + Input with info about fields which should be exported. + """ + exportInfo: ExportInfoInput + + """ + Type of exported file. + """ + fileType: FileTypesEnum! + + """ + Filtering options for products. + """ + filter: ProductFilterInput + + """ + List of products IDs to export. + """ + ids: [ID!] + + """ + Determine which products should be exported. + """ + scope: ExportScope! +} + +enum ExportScope { + """ + Export all products. + """ + ALL + + """ + Export the filtered products. + """ + FILTER + + """ + Export products with given ids. + """ + IDS +} + +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 { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + The data returned by authentication plugin. + """ + authenticationData: JSONString + errors: [AccountError!]! +} + +""" +Logout user by custom plugin. +""" +type ExternalLogout { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + The data returned by authentication plugin. + """ + logoutData: JSONString +} + +type ExternalNotificationError { + """ + The error code. + """ + code: ExternalNotificationErrorCodes! + + """ + 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 +} + +""" +An enumeration. +""" +enum ExternalNotificationErrorCodes { + CHANNEL_INACTIVE + INVALID_MODEL_TYPE + NOT_FOUND + REQUIRED +} + +""" +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 { + """ + External event type. This field is passed to a plugin as an event type. + """ + externalEventType: String! + + """ + Additional payload that will be merged with the one based on the bussines object ID. + """ + extraPayload: JSONString + + """ + The list of customers or orders node IDs that will be serialized and included in the notification payload. + """ + ids: [ID!]! +} + +""" +Obtain external access tokens for user by custom plugin. +""" +type ExternalObtainAccessTokens { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + CSRF token required to re-generate external access token. + """ + csrfToken: String + errors: [AccountError!]! + + """ + The refresh token, required to re-generate external access token. + """ + refreshToken: String + + """ + The token, required to authenticate. + """ + token: String + + """ + A user instance. + """ + user: User +} + +""" +Refresh user's access by custom plugin. +""" +type ExternalRefresh { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + CSRF token required to re-generate external access token. + """ + csrfToken: String + errors: [AccountError!]! + + """ + The refresh token, required to re-generate external access token. + """ + refreshToken: String + + """ + The token, required to authenticate. + """ + token: String + + """ + A user instance. + """ + user: User +} + +""" +Verify external authentication data by plugin. +""" +type ExternalVerify { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + Determine if authentication data is valid or not. + """ + isValid: Boolean! + + """ + User assigned to data. + """ + user: User + + """ + External data. + """ + verifyData: JSONString +} + +type File { + """ + Content type of the file. + """ + contentType: String + + """ + The URL of the file. + """ + url: 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 { + errors: [UploadError!]! + uploadErrors: [UploadError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + uploadedFile: File +} + +""" +Represents order fulfillment. +""" +type Fulfillment implements Node & ObjectWithMetadata { + created: DateTime! + fulfillmentOrder: Int! + id: ID! + + """ + List of lines for the fulfillment. + """ + lines: [FulfillmentLine!] + + """ + 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 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 + status: FulfillmentStatus! + + """ + User-friendly fulfillment status. + """ + statusDisplay: String + trackingNumber: 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 { + errors: [OrderError!]! + + """ + 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.") +} + +""" +Cancels existing fulfillment and optionally restocks items. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type FulfillmentCancel { + errors: [OrderError!]! + + """ + 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.") +} + +input FulfillmentCancelInput { + """ + ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. + """ + warehouseId: ID +} + +type FulfillmentCanceled implements Event { + """ + The fulfillment the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + fulfillment: Fulfillment + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the fulfillment belongs to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type FulfillmentCreated implements Event { + """ + The fulfillment the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + fulfillment: Fulfillment + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the fulfillment belongs to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Represents line of the fulfillment. +""" +type FulfillmentLine implements Node { + id: ID! + orderLine: OrderLine + quantity: Int! +} + +""" +Refund products. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type FulfillmentRefundProducts { + errors: [OrderError!]! + + """ + 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.") +} + +""" +Return products. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type FulfillmentReturnProducts { + errors: [OrderError!]! + + """ + Order which fulfillment was returned. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + A replace fulfillment. + """ + replaceFulfillment: Fulfillment + + """ + A draft order which was created for products with replace flag. + """ + replaceOrder: Order + + """ + A return fulfillment. + """ + returnFulfillment: Fulfillment +} + +""" +An enumeration. +""" +enum FulfillmentStatus { + CANCELED + FULFILLED + REFUNDED + REFUNDED_AND_RETURNED + REPLACED + RETURNED + WAITING_FOR_APPROVAL +} + +""" +Updates a fulfillment for an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type FulfillmentUpdateTracking { + errors: [OrderError!]! + + """ + 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.") +} + +input FulfillmentUpdateTrackingInput { + """ + If true, send an email notification to the customer. + """ + notifyCustomer: Boolean = false + + """ + Fulfillment tracking number. + """ + trackingNumber: String +} + +""" +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 { + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + currentBalance: Money + + """ + Code in format which allows displaying in a user interface. + """ + displayCode: String! + + """ + End date of gift card. + """ + endDate: DateTime + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `expiryDate` field instead.") + + """ + 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!]! + expiryDate: Date + id: ID! + initialBalance: Money + isActive: Boolean! + + """ + Last 4 characters of gift card code. + """ + last4CodeChars: String! + lastUsedOn: DateTime + + """ + 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 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 + + """ + 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 + + """ + Start date of gift card. + """ + startDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0.") + + """ + 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!]! + + """ + 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 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 + + """ + The customer who bought a gift card. + """ + user: User + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `createdBy` field instead.") +} + +""" +Activate a gift card. + +Requires one of the following permissions: MANAGE_GIFT_CARD. +""" +type GiftCardActivate { + errors: [GiftCardError!]! + + """ + Activated gift card. + """ + giftCard: GiftCard + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + errors: [GiftCardError!]! + + """ + Gift card note created. + """ + event: GiftCardEvent + + """ + Gift card with the note added. + """ + giftCard: GiftCard +} + +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! + errors: [GiftCardError!]! + + """ + List of created gift cards. + """ + giftCards: [GiftCard!]! +} + +input GiftCardBulkCreateInput { + """ + Balance of the gift card. + """ + balance: PriceInput! + + """ + The number of cards to issue. + """ + count: Int! + + """ + The gift card expiry date. + """ + expiryDate: Date + + """ + Determine if gift card is active. + """ + isActive: Boolean! + + """ + The gift card tags. + """ + tags: [String!] +} + +""" +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 { + edges: [GiftCardCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type GiftCardCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: GiftCard! +} + +""" +Creates a new gift card. + +Requires one of the following permissions: MANAGE_GIFT_CARD. +""" +type GiftCardCreate { + errors: [GiftCardError!]! + giftCard: GiftCard + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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!] + + """ + Balance of the gift card. + """ + balance: PriceInput! + + """ + 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 + + """ + Code to use the gift card. + + DEPRECATED: this field will be removed in Saleor 4.0. The code is now auto generated. + """ + code: String + + """ + 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 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 + + """ + 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! + + """ + 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 + + """ + Start date of the gift card in ISO 8601 format. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ + startDate: Date + + """ + Email of the customer to whom gift card will be sent. + """ + userEmail: String +} + +type GiftCardCreated implements Event { + """ + The gift card the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + giftCard: GiftCard + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deactivate a gift card. + +Requires one of the following permissions: MANAGE_GIFT_CARD. +""" +type GiftCardDeactivate { + errors: [GiftCardError!]! + + """ + Deactivated gift card. + """ + giftCard: GiftCard + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + errors: [GiftCardError!]! + giftCard: GiftCard + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type GiftCardDeleted implements Event { + """ + The gift card the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + giftCard: GiftCard + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type GiftCardError { + """ + The error code. + """ + code: GiftCardErrorCode! + + """ + 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 tag values that cause the error. + """ + tags: [String!] +} + +""" +An enumeration. +""" +enum GiftCardErrorCode { + ALREADY_EXISTS + DUPLICATED_INPUT_ITEM + EXPIRED_GIFT_CARD + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +""" +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 { + """ + App that performed the action. Requires one of the following permissions: MANAGE_APPS, OWNER. + """ + app: App + + """ + The gift card balance. + """ + balance: GiftCardEventBalance + + """ + Date when event happened at in ISO 8601 format. + """ + date: DateTime + + """ + Email of the customer. + """ + email: String + + """ + The gift card expiry date. + """ + expiryDate: Date + id: ID! + + """ + Content of the event. + """ + message: String + + """ + Previous gift card expiry date. + """ + oldExpiryDate: Date + + """ + The list of old gift card tags. + """ + oldTags: [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!] + + """ + Gift card event type. + """ + type: GiftCardEventsEnum + + """ + User who performed the action. Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER. + """ + user: User +} + +type GiftCardEventBalance { + """ + Current balance of the gift card. + """ + currentBalance: Money! + + """ + Initial balance of the gift card. + """ + initialBalance: Money + + """ + Previous current balance of the gift card. + """ + oldCurrentBalance: Money + + """ + Previous initial balance of the gift card. + """ + oldInitialBalance: Money +} + +input GiftCardEventFilterInput { + orders: [ID!] + type: GiftCardEventsEnum +} + +""" +An enumeration. +""" +enum GiftCardEventsEnum { + ACTIVATED + BALANCE_RESET + BOUGHT + DEACTIVATED + EXPIRY_DATE_UPDATED + ISSUED + NOTE_ADDED + RESENT + SENT_TO_CUSTOMER + TAGS_UPDATED + UPDATED + USED_IN_ORDER +} + +input GiftCardFilterInput { + code: String + currency: String + currentBalance: PriceRangeInput + initialBalance: PriceRangeInput + isActive: Boolean + metadata: [MetadataFilter!] + products: [ID!] + tags: [String!] + used: Boolean + usedBy: [ID!] +} + +""" +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 { + errors: [GiftCardError!]! + + """ + Gift card which has been sent. + """ + giftCard: GiftCard +} + +input GiftCardResendInput { + """ + Slug of a channel from which the email should be sent. + """ + channel: String! + + """ + Email to which gift card should be send. + """ + email: String + + """ + ID of a gift card to resend. + """ + id: ID! +} + +""" +Gift card related settings from site settings. +""" +type GiftCardSettings { + """ + The gift card expiry period settings. + """ + expiryPeriod: TimePeriod + + """ + The gift card expiry type settings. + """ + expiryType: GiftCardSettingsExpiryTypeEnum! +} + +type GiftCardSettingsError { + """ + The error code. + """ + code: GiftCardSettingsErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum GiftCardSettingsErrorCode { + GRAPHQL_ERROR + INVALID + REQUIRED +} + +""" +An enumeration. +""" +enum GiftCardSettingsExpiryTypeEnum { + EXPIRY_PERIOD + NEVER_EXPIRE +} + +""" +Update gift card settings. + +Requires one of the following permissions: MANAGE_GIFT_CARD. +""" +type GiftCardSettingsUpdate { + errors: [GiftCardSettingsError!]! + + """ + Gift card settings. + """ + giftCardSettings: GiftCardSettings +} + +input GiftCardSettingsUpdateInput { + """ + Defines gift card expiry period. + """ + expiryPeriod: TimePeriodInputType + + """ + Defines gift card default expiry settings. + """ + expiryType: GiftCardSettingsExpiryTypeEnum +} + +enum GiftCardSortField { + """ + Sort orders by current balance. + """ + CURRENT_BALANCE + + """ + Sort orders by product. + """ + PRODUCT + + """ + Sort orders by used by. + """ + USED_BY +} + +input GiftCardSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort gift cards by the selected field. + """ + field: GiftCardSortField! +} + +type GiftCardStatusChanged implements Event { + """ + The gift card the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + giftCard: GiftCard + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +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 { + edges: [GiftCardTagCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type GiftCardTagCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: GiftCardTag! +} + +input GiftCardTagFilterInput { + search: String +} + +""" +Update a gift card. + +Requires one of the following permissions: MANAGE_GIFT_CARD. +""" +type GiftCardUpdate { + errors: [GiftCardError!]! + giftCard: GiftCard + giftCardErrors: [GiftCardError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 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 + + """ + 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 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 + + """ + 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!] + + """ + Start date of the gift card in ISO 8601 format. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ + startDate: Date +} + +type GiftCardUpdated implements Event { + """ + The gift card the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + giftCard: GiftCard + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Represents permission group data. +""" +type Group implements Node { + id: ID! + name: String! + + """ + List of group permissions + """ + permissions: [Permission!] + + """ + True, if the currently authenticated user has rights to manage a group. + """ + userCanManage: Boolean! + + """ + List of group users + + Requires one of the following permissions: MANAGE_STAFF. + """ + users: [User!] +} + +type GroupCountableConnection { + edges: [GroupCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type GroupCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Group! +} + +""" +Represents an image. +""" +type Image { + """ + Alt text for an image. + """ + alt: String + + """ + The URL of the image. + """ + url: 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 Job & Node & ObjectWithMetadata { + createdAt: DateTime! + externalUrl: String + + """ + The ID of the object. + """ + id: ID! + message: String + + """ + 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 + number: String + + """ + 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 + + """ + Job status. + """ + status: JobStatusEnum! + updatedAt: DateTime! + + """ + URL to download an invoice. + """ + url: String +} + +""" +Creates a ready to send invoice. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type InvoiceCreate { + errors: [InvoiceError!]! + invoice: Invoice + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 { + errors: [InvoiceError!]! + invoice: Invoice + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type InvoiceDeleted implements Event { + """ + The invoice the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + invoice: Invoice + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type InvoiceError { + """ + The error code. + """ + code: InvoiceErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum InvoiceErrorCode { + EMAIL_NOT_SET + INVALID_STATUS + NOT_FOUND + NOT_READY + NO_INVOICE_PLUGIN + NUMBER_NOT_SET + REQUIRED + URL_NOT_SET +} + +""" +Request an invoice for the order using plugin. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type InvoiceRequest { + errors: [InvoiceError!]! + invoice: Invoice + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Order related to an invoice. + """ + order: Order +} + +""" +Requests deletion of an invoice. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type InvoiceRequestDelete { + errors: [InvoiceError!]! + invoice: Invoice + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type InvoiceRequested implements Event { + """ + The invoice the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + invoice: Invoice + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Send an invoice notification to the customer. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type InvoiceSendNotification { + errors: [InvoiceError!]! + invoice: Invoice + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type InvoiceSent implements Event { + """ + The invoice the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + invoice: Invoice + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Updates an invoice. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type InvoiceUpdate { + errors: [InvoiceError!]! + invoice: Invoice + invoiceErrors: [InvoiceError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +union IssuingPrincipal = App | User + +scalar JSONString + +interface Job { + """ + Created date time of job in ISO 8601 format. + """ + createdAt: DateTime! + + """ + Job message. + """ + message: String + + """ + Job status. + """ + status: JobStatusEnum! + + """ + Date time of job last update in ISO 8601 format. + """ + updatedAt: DateTime! +} + +""" +An enumeration. +""" +enum JobStatusEnum { + DELETED + FAILED + PENDING + SUCCESS +} + +""" +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 + ASA + ASA_TZ + AST + AST_ES + AS_IN + AZ + AZ_CYRL + AZ_CYRL_AZ + AZ_LATN + AZ_LATN_AZ + BAS + BAS_CM + BE + BEM + BEM_ZM + BEZ + BEZ_TZ + BE_BY + BG + BG_BG + BM + BM_ML + BN + BN_BD + BN_IN + BO + BO_CN + BO_IN + BR + BRX + BRX_IN + BR_FR + 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 + CEB + CEB_PH + CE_RU + CGG + CGG_UG + CHR + CHR_US + CKB + CKB_IQ + CKB_IR + CS + CS_CZ + CU + CU_RU + CY + CY_GB + DA + DAV + DAV_KE + DA_DK + DA_GL + 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 + FIL + FIL_PH + FI_FI + 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 + GUZ + GUZ_KE + GU_IN + GV + GV_IM + HA + HAW + HAW_US + HA_GH + HA_NE + HA_NG + 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 + KAB + KAB_DZ + KAM + KAM_KE + KA_GE + KDE + KDE_TZ + KEA + KEA_CV + KHQ + KHQ_ML + KI + KI_KE + KK + KKJ + KKJ_CM + KK_KZ + KL + KLN + KLN_KE + KL_GL + KM + KM_KH + KN + KN_IN + KO + KOK + KOK_IN + KO_KP + KO_KR + KS + KSB + KSB_TZ + KSF + KSF_CM + KSH + KSH_DE + KS_ARAB + KS_ARAB_IN + 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 + LUO + LUO_KE + LUY + LUY_KE + LU_CD + LV + LV_LV + MAI + MAI_IN + MAS + MAS_KE + MAS_TZ + MER + MER_KE + MFE + MFE_MU + MG + MGH + MGH_MZ + MGO + MGO_CM + MG_MG + MI + MI_NZ + MK + MK_MK + ML + ML_IN + MN + MNI + MNI_BENG + MNI_BENG_IN + MN_MN + 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 + NDS + NDS_DE + NDS_NL + ND_ZW + NE + NE_IN + NE_NP + NL + NL_AW + NL_BE + NL_BQ + NL_CW + NL_NL + NL_SR + NL_SX + NMG + NMG_CM + NN + NNH + NNH_CM + NN_NO + 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 + ROF + ROF_TZ + RO_MD + RO_RO + RU + RU_BY + RU_KG + RU_KZ + RU_MD + RU_RU + RU_UA + RW + RWK + RWK_TZ + RW_RW + 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 + SEH + SEH_MZ + SES + SES_ML + SE_FI + SE_NO + SE_SE + 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 + TEO + TEO_KE + TEO_UG + TE_IN + 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 allowed maximum resource usage, null means unlimited. + """ + allowedUsage: Limits! + + """ + Defines the current resource usage. + """ + currentUsage: Limits! +} + +type Limits { + channels: Int + orders: Int + productVariants: Int + staffUsers: Int + warehouses: Int +} + +""" +The manifest definition. +""" +type Manifest { + about: String + appUrl: String + configurationUrl: String + dataPrivacy: String + dataPrivacyUrl: String + extensions: [AppManifestExtension!]! + homepageUrl: String + identifier: String! + name: String! + permissions: [Permission!] + supportUrl: String + tokenTargetUrl: String + version: String! +} + +type Margin { + start: Int + stop: Int +} + +""" +An enumeration. +""" +enum MeasurementUnitsEnum { + ACRE_FT + ACRE_IN + CM + CUBIC_CENTIMETER + CUBIC_DECIMETER + CUBIC_FOOT + CUBIC_INCH + CUBIC_METER + CUBIC_MILLIMETER + CUBIC_YARD + FL_OZ + FT + G + INCH + KG + KM + LB + LITER + M + OZ + PINT + QT + SQ_CM + SQ_FT + SQ_INCH + SQ_KM + SQ_M + SQ_YD + TONNE + YD +} + +""" +Represents a single menu - an object that is used to help navigate through the store. +""" +type Menu implements Node & ObjectWithMetadata { + id: ID! + items: [MenuItem!] + + """ + 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! + + """ + 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 + slug: String! +} + +""" +Deletes menus. + +Requires one of the following permissions: MANAGE_MENUS. +""" +type MenuBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [MenuError!]! + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type MenuCountableConnection { + edges: [MenuCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type MenuCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Menu! +} + +""" +Creates a new Menu. + +Requires one of the following permissions: MANAGE_MENUS. +""" +type MenuCreate { + errors: [MenuError!]! + menu: Menu + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input MenuCreateInput { + """ + List of menu items. + """ + items: [MenuItemInput!] + + """ + Name of the menu. + """ + name: String! + + """ + Slug of the menu. Will be generated if not provided. + """ + slug: String +} + +type MenuCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The menu the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Menu + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a menu. + +Requires one of the following permissions: MANAGE_MENUS. +""" +type MenuDelete { + errors: [MenuError!]! + menu: Menu + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type MenuDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The menu the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Menu + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type MenuError { + """ + The error code. + """ + code: MenuErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum MenuErrorCode { + CANNOT_ASSIGN_NODE + GRAPHQL_ERROR + INVALID + INVALID_MENU_ITEM + NOT_FOUND + NO_MENU_ITEM_PROVIDED + REQUIRED + TOO_MANY_MENU_ITEMS + UNIQUE +} + +input MenuFilterInput { + metadata: [MetadataFilter!] + search: String + slug: [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 { + category: Category + children: [MenuItem!] + + """ + 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 + id: ID! + level: Int! + menu: Menu! + + """ + 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! + + """ + A page associated with this menu item. Requires one of the following permissions to include unpublished items: MANAGE_PAGES. + """ + page: Page + parent: MenuItem + + """ + 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 + + """ + Returns translated menu item fields for the given language code. + """ + translation( + """ + A language code to return the translation for menu item. + """ + languageCode: LanguageCodeEnum! + ): MenuItemTranslation + + """ + URL to the menu item. + """ + url: String +} + +""" +Deletes menu items. + +Requires one of the following permissions: MANAGE_MENUS. +""" +type MenuItemBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [MenuError!]! + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type MenuItemCountableConnection { + edges: [MenuItemCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type MenuItemCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: MenuItem! +} + +""" +Creates a new menu item. + +Requires one of the following permissions: MANAGE_MENUS. +""" +type MenuItemCreate { + errors: [MenuError!]! + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuItem: MenuItem +} + +input MenuItemCreateInput { + """ + Category to which item points. + """ + category: ID + + """ + Collection to which item points. + """ + collection: ID + + """ + Menu to which item belongs. + """ + menu: ID! + + """ + Name of the menu item. + """ + name: String! + + """ + Page to which item points. + """ + page: ID + + """ + ID of the parent menu. If empty, menu will be top level menu. + """ + parent: ID + + """ + URL of the pointed item. + """ + url: String +} + +type MenuItemCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The menu item the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): MenuItem + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a menu item. + +Requires one of the following permissions: MANAGE_MENUS. +""" +type MenuItemDelete { + errors: [MenuError!]! + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuItem: MenuItem +} + +type MenuItemDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The menu item the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): MenuItem + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +input MenuItemFilterInput { + metadata: [MetadataFilter!] + search: String +} + +input MenuItemInput { + """ + Category to which item points. + """ + category: ID + + """ + Collection to which item points. + """ + collection: ID + + """ + Name of the menu item. + """ + name: String + + """ + Page to which item points. + """ + page: ID + + """ + URL of the pointed item. + """ + url: String +} + +""" +Moves items of menus. + +Requires one of the following permissions: MANAGE_MENUS. +""" +type MenuItemMove { + errors: [MenuError!]! + + """ + Assigned menu to move within. + """ + menu: Menu + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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! + + """ + 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." + ) + 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 +} + +""" +Creates/updates translations for a menu item. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type MenuItemTranslate { + errors: [TranslationError!]! + menuItem: MenuItem + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 { + errors: [MenuError!]! + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuItem: MenuItem +} + +type MenuItemUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The menu item the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): MenuItem + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +enum MenuItemsSortField { + """ + Sort menu items by name. + """ + NAME +} + +enum MenuSortField { + """ + Sort menus by items count. + """ + ITEMS_COUNT + + """ + Sort menus by name. + """ + NAME +} + +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 { + errors: [MenuError!]! + menu: Menu + menuErrors: [MenuError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type MenuUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The menu the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Menu + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Metadata is a map of key-value pairs, both keys and values are `String`. + +Example: +``` +{ + "key1": "value1", + "key2": "value2" +} +``` +""" +scalar Metadata + +type MetadataError { + """ + The error code. + """ + code: MetadataErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum MetadataErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + NOT_UPDATED + REQUIRED +} + +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 { + """ + Amount of money. + """ + amount: Float! + + """ + Currency code. + """ + currency: String! +} + +input MoneyInput { + """ + Amount of money. + """ + amount: PositiveDecimal! + + """ + Currency code. + """ + currency: String! +} + +""" +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 { + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Register a new user. + """ + accountRegister( + """ + Fields required to create a user. + """ + input: AccountRegisterInput! + ): AccountRegister + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Activate the app. + + Requires one of the following permissions: MANAGE_APPS. + """ + appActivate( + """ + ID of app to activate. + """ + id: ID! + ): AppActivate + + """ + 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 + + """ + Deactivate the app. + + Requires one of the following permissions: MANAGE_APPS. + """ + appDeactivate( + """ + ID of app to deactivate. + """ + id: ID! + ): AppDeactivate + + """ + Deletes an app. + + Requires one of the following permissions: MANAGE_APPS. + """ + appDelete( + """ + ID of an app to delete. + """ + id: ID! + ): AppDelete + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Deletes attributes. + + Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ + attributeBulkDelete( + """ + List of attribute IDs to delete. + """ + ids: [ID!]! + ): AttributeBulkDelete + + """ + 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( + """ + ID of an attribute to delete. + """ + id: ID! + ): AttributeDelete + + """ + 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/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 + + """ + Updates attribute. + + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ + attributeUpdate( + """ + ID of an attribute to update. + """ + id: ID! + + """ + Fields required to update an attribute. + """ + input: AttributeUpdateInput! + ): AttributeUpdate + + """ + 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( + """ + ID of a value to delete. + """ + id: ID! + ): AttributeValueDelete + + """ + 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 + + """ + Updates value of an attribute. + + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ + attributeValueUpdate( + """ + ID of an AttributeValue to update. + """ + id: ID! + + """ + Fields required to update an AttributeValue. + """ + input: AttributeValueUpdateInput! + ): AttributeValueUpdate + + """ + Deletes categories. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + categoryBulkDelete( + """ + List of category IDs to delete. + """ + ids: [ID!]! + ): CategoryBulkDelete + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Activate a channel. + + Requires one of the following permissions: MANAGE_CHANNELS. + """ + channelActivate( + """ + ID of the channel to activate. + """ + id: ID! + ): ChannelActivate + + """ + Creates new channel. + + Requires one of the following permissions: MANAGE_CHANNELS. + """ + channelCreate( + """ + Fields required to create channel. + """ + input: ChannelCreateInput! + ): ChannelCreate + + """ + Deactivate a channel. + + Requires one of the following permissions: MANAGE_CHANNELS. + """ + channelDeactivate( + """ + ID of the channel to deactivate. + """ + id: ID! + ): ChannelDeactivate + + """ + 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 + + """ + 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 + + """ + 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 + ): 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 + + """ + 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. Can be used to attach customer to checkout by staff or app. Requires IMPERSONATE_USER permission. + """ + 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 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 + + """ + 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 + + """ + 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 + + """ + 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: "DEPRECATED: Will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead." + ) + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + ): 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." + ) + + """ + 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 + + """ + Deletes collections. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + collectionBulkDelete( + """ + List of collection IDs to delete. + """ + ids: [ID!]! + ): CollectionBulkDelete + + """ + 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 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Creates new warehouse. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + createWarehouse( + """ + Fields required to create warehouse. + """ + input: WarehouseCreateInput! + ): WarehouseCreate + + """ + Deletes customers. + + Requires one of the following permissions: MANAGE_USERS. + """ + customerBulkDelete( + """ + List of user IDs to delete. + """ + ids: [ID!]! + ): CustomerBulkDelete + + """ + Creates a new customer. + + Requires one of the following permissions: MANAGE_USERS. + """ + customerCreate( + """ + Fields required to create a customer. + """ + input: UserCreateInput! + ): CustomerCreate + + """ + Deletes a customer. + + Requires one of the following permissions: MANAGE_USERS. + """ + customerDelete( + """ + ID of a customer to delete. + """ + id: ID! + ): CustomerDelete + + """ + Updates an existing customer. + + Requires one of the following permissions: MANAGE_USERS. + """ + customerUpdate( + """ + ID of a customer to update. + """ + id: ID! + + """ + Fields required to update a customer. + """ + input: CustomerInput! + ): CustomerUpdate + + """ + 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 + + """ + Deletes selected warehouse. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + deleteWarehouse( + """ + ID of a warehouse to delete. + """ + id: ID! + ): WarehouseDelete + + """ + 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 + + """ + Deletes draft orders. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + draftOrderBulkDelete( + """ + List of draft order IDs to delete. + """ + ids: [ID!]! + ): DraftOrderBulkDelete + + """ + 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( + """ + ID of a draft order to delete. + """ + id: ID! + ): DraftOrderDelete + + """ + 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( + """ + ID of a draft order to update. + """ + id: ID! + + """ + Fields required to update an order. + """ + input: DraftOrderInput! + ): DraftOrderUpdate + + """ + Retries event delivery. + + Requires one of the following permissions: MANAGE_APPS. + """ + eventDeliveryRetry( + """ + ID of the event delivery to retry. + """ + id: ID! + ): EventDeliveryRetry + + """ + 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 + + """ + Export products to csv file. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + exportProducts( + """ + Fields required to export product data. + """ + input: ExportProductsInput! + ): ExportProducts + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Activate a gift card. + + Requires one of the following permissions: MANAGE_GIFT_CARD. + """ + giftCardActivate( + """ + ID of a gift card to activate. + """ + id: ID! + ): 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. + + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Deactivate a gift card. + + Requires one of the following permissions: MANAGE_GIFT_CARD. + """ + giftCardDeactivate( + """ + ID of a gift card to deactivate. + """ + id: ID! + ): 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. + + Requires one of the following permissions: MANAGE_GIFT_CARD. + """ + giftCardDelete( + """ + ID of the gift card to delete. + """ + id: ID! + ): GiftCardDelete + + """ + 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 + + """ + Update gift card settings. + + Requires one of the following permissions: MANAGE_GIFT_CARD. + """ + giftCardSettingsUpdate( + """ + Fields required to update gift card settings. + """ + input: GiftCardSettingsUpdateInput! + ): GiftCardSettingsUpdate + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Deletes menus. + + Requires one of the following permissions: MANAGE_MENUS. + """ + menuBulkDelete( + """ + List of menu IDs to delete. + """ + ids: [ID!]! + ): MenuBulkDelete + + """ + 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 menu items. + + Requires one of the following permissions: MANAGE_MENUS. + """ + menuItemBulkDelete( + """ + List of menu item IDs to delete. + """ + ids: [ID!]! + ): MenuItemBulkDelete + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Adds note to the order. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orderAddNote( + """ + Fields required to create a note for the order. + """ + input: OrderAddNoteInput! + + """ + ID of the order to add a note for. + """ + order: ID! + ): OrderAddNote + + """ + Cancels orders. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orderBulkCancel( + """ + List of orders IDs to cancel. + """ + ids: [ID!]! + ): OrderBulkCancel + + """ + 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 + + """ + 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! + + """ + Determines if checkout should be removed after creating an order. Default true. + """ + removeCheckout: Boolean = true + ): OrderCreateFromCheckout + + """ + 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 + + """ + 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. + + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Update shop order settings. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orderSettingsUpdate( + """ + Fields required to update shop order settings. + """ + input: OrderSettingsUpdateInput! + ): OrderSettingsUpdate + + """ + Updates an order. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orderUpdate( + """ + 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( + """ + Fields required to change shipping method of the order. + """ + input: OrderUpdateShippingInput! + + """ + ID of the order to update a shipping method. + """ + order: ID! + ): OrderUpdateShipping + + """ + Void an order. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orderVoid( + """ + ID of the order to void. + """ + id: ID! + ): OrderVoid + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Captures the authorized payment amount. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + paymentCapture( + """ + Transaction amount. + """ + amount: PositiveDecimal + + """ + Payment ID. + """ + paymentId: ID! + ): PaymentCapture + + """ + Check payment balance. + """ + paymentCheckBalance( + """ + Fields required to check payment balance. + """ + input: PaymentCheckBalanceInput! + ): PaymentCheckBalance + + """ + 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 + + """ + 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 + + """ + Create new permission group. + + Requires one of the following permissions: MANAGE_STAFF. + """ + permissionGroupCreate( + """ + Input fields to create permission group. + """ + input: PermissionGroupCreateInput! + ): PermissionGroupCreate + + """ + Delete permission group. + + Requires one of the following permissions: MANAGE_STAFF. + """ + permissionGroupDelete( + """ + ID of the group to delete. + """ + id: ID! + ): PermissionGroupDelete + + """ + Update permission group. + + 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 + + """ + 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 + + """ + 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 + + """ + Deletes products. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productBulkDelete( + """ + List of product IDs to delete. + """ + ids: [ID!]! + ): ProductBulkDelete + + """ + 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 + + """ + 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( + """ + ID of a product to delete. + """ + id: ID! + ): ProductDelete + + """ + Deletes product media. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productMediaBulkDelete( + """ + List of product media IDs to delete. + """ + ids: [ID!]! + ): ProductMediaBulkDelete + + """ + 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 + + """ + Deletes a product media. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productMediaDelete( + """ + ID of a product media to delete. + """ + id: ID! + ): ProductMediaDelete + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Updates an existing product. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productUpdate( + """ + ID of a product to update. + """ + id: ID! + + """ + Fields required to update a product. + """ + input: ProductInput! + ): ProductUpdate + + """ + 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!]! + ): ProductVariantBulkDelete + + """ + 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!]! + ): ProductVariantChannelListingUpdate + + """ + 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( + """ + ID of a product variant to delete. + """ + id: ID! + ): ProductVariantDelete + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 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( + """ + ID of product variant for which stocks will be deleted. + """ + variantId: ID! + warehouseIds: [ID!] + ): ProductVariantStocksDelete + + """ + Update stocks for product variant. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productVariantStocksUpdate( + """ + Input list of stocks to create. + """ + stocks: [StockInput!]! + + """ + ID of a product variant for which stocks will be created. + """ + variantId: ID! + ): ProductVariantStocksUpdate + + """ + 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 + + """ + Updates an existing variant for product. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productVariantUpdate( + """ + ID of a product variant to update. + """ + id: ID! + + """ + Fields required to update a product variant. + """ + input: ProductVariantInput! + ): ProductVariantUpdate + + """ + 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 + + """ + 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 + + """ + Deletes sales. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + saleBulkDelete( + """ + List of sale IDs to delete. + """ + ids: [ID!]! + ): SaleBulkDelete + + """ + 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 + + """ + 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 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Deletes shipping prices. + + Requires one of the following permissions: MANAGE_SHIPPING. + """ + shippingPriceBulkDelete( + """ + List of shipping price IDs to delete. + """ + ids: [ID!]! + ): ShippingPriceBulkDelete + + """ + 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 + + """ + 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/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 + + """ + 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 + + """ + Deletes shipping zones. + + Requires one of the following permissions: MANAGE_SHIPPING. + """ + shippingZoneBulkDelete( + """ + List of shipping zone IDs to delete. + """ + ids: [ID!]! + ): ShippingZoneBulkDelete + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Updates site domain of the shop. + + Requires one of the following permissions: MANAGE_SETTINGS. + """ + shopDomainUpdate( + """ + Fields required to update site. + """ + input: SiteDomainInput + ): ShopDomainUpdate + + """ + Fetch tax rates. + + Requires one of the following permissions: MANAGE_SETTINGS. + """ + shopFetchTaxRates: ShopFetchTaxRates + + """ + 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 + + """ + Updates shop settings. + + Requires one of the following permissions: MANAGE_SETTINGS. + """ + shopSettingsUpdate( + """ + Fields required to update shop settings. + """ + input: ShopSettingsInput! + ): ShopSettingsUpdate + + """ + Deletes staff users. + + Requires one of the following permissions: MANAGE_STAFF. + """ + staffBulkDelete( + """ + List of user IDs to delete. + """ + ids: [ID!]! + ): StaffBulkDelete + + """ + Creates a new staff user. + + Requires one of the following permissions: MANAGE_STAFF. + """ + staffCreate( + """ + Fields required to create a staff user. + """ + input: StaffCreateInput! + ): StaffCreate + + """ + Deletes a staff user. + + Requires one of the following permissions: MANAGE_STAFF. + """ + staffDelete( + """ + ID of a staff user to delete. + """ + id: ID! + ): StaffDelete + + """ + 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 + + """ + 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 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 + + """ + Updates an existing staff user. + + 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 + + """ + Create JWT token. + """ + tokenCreate( + """ + 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 + + """ + Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + 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 + + """ + 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, MANAGE_ORDERS. + """ + 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 + + """ + Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 a user avatar. Only for staff members. + + Requires one of the following permissions: AUTHENTICATED_STAFF_USER. + """ + userAvatarDelete: UserAvatarDelete + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Deletes vouchers. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + voucherBulkDelete( + """ + List of voucher IDs to delete. + """ + ids: [ID!]! + ): VoucherBulkDelete + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + 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 + + """ + Deletes a webhook subscription. + + 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 +} + +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 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 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 +} + +""" +Represents an order in the shop. +""" +type Order implements Node & ObjectWithMetadata { + """ + List of actions that can be performed in the current state of an order. + """ + actions: [OrderAction!]! + + """ + 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! + + """ + 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!]! + + """ + Shipping methods that can be used with this order. + """ + availableShippingMethods: [ShippingMethod!] + @deprecated(reason: "Use `shippingMethods`, this field will be removed in 4.0") + + """ + 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 + + """ + Informs whether a draft order can be finalized(turned into a regular order). + """ + canFinalize: Boolean! + channel: Channel! + + """ + 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! + collectionPointName: String + created: DateTime! + customerNote: String! + + """ + 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 + + """ + 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." + ) + + """ + List of all discounts assigned to the order. + """ + discounts: [OrderDiscount!]! + displayGrossPrices: Boolean! + + """ + List of errors that occurred during order validation. + """ + errors: [OrderError!]! + + """ + List of events associated with the order. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + events: [OrderEvent!]! + + """ + List of shipments for the order. + """ + fulfillments: [Fulfillment!]! + + """ + List of user gift cards. + """ + giftCards: [GiftCard!]! + id: ID! + + """ + 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!]! + + """ + Informs if an order is fully paid. + """ + isPaid: Boolean! + + """ + Returns True, if order requires shipping. + """ + isShippingRequired: Boolean! + 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! + + """ + List of order lines. + """ + lines: [OrderLine!]! + + """ + 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 + + """ + User-friendly number of an order. + """ + number: String! + + """ + The order origin. + """ + origin: OrderOriginEnum! + + """ + The ID of the order that was the base for this order. + """ + original: ID + + """ + Internal payment status. + """ + paymentStatus: PaymentChargeStatusEnum! + + """ + User-friendly payment status. + """ + paymentStatusDisplay: String! + + """ + List of payments for the order. + """ + payments: [Payment!]! + + """ + 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 + redirectUrl: String + + """ + 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 + + """ + Shipping method for this order. + """ + shippingMethod: ShippingMethod + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.") + shippingMethodName: String + + """ + Shipping methods related to this order. + """ + shippingMethods: [ShippingMethod!]! + + """ + Total price of shipping. + """ + shippingPrice: TaxedMoney! + shippingTaxRate: Float! + status: OrderStatus! + + """ + User-friendly order status. + """ + statusDisplay: String! + + """ + The sum of line prices not including shipping. + """ + subtotal: TaxedMoney! + token: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `id` instead.") + + """ + Total amount of the order. + """ + total: TaxedMoney! + + """ + Amount authorized for the order. + """ + totalAuthorized: Money! + + """ + The difference between the paid and the order total amount. + """ + totalBalance: Money! + + """ + Amount captured by payment. + """ + totalCaptured: Money! + trackingClientId: String! + + """ + 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!]! + + """ + Translated discount name. + """ + translatedDiscountName: String + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead. " + ) + + """ + Undiscounted total amount of the order. + """ + undiscountedTotal: TaxedMoney! + updatedAt: DateTime! + + """ + 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 + + """ + 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 + voucher: Voucher + weight: Weight! +} + +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 { + errors: [OrderError!]! + + """ + Order note created. + """ + event: OrderEvent + + """ + Order with the note added. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 { + FULL + NONE + PARTIAL +} + +""" +Cancels orders. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderBulkCancel { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [OrderError!]! + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Cancel an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderCancel { + errors: [OrderError!]! + + """ + Canceled order. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type OrderCancelled implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Capture an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderCapture { + errors: [OrderError!]! + + """ + Captured order. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + FULL + NONE + OVERCHARGED + PARTIAL +} + +""" +Confirms an unconfirmed order by changing status to unfulfilled. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderConfirm { + errors: [OrderError!]! + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type OrderConfirmed implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type OrderCountableConnection { + edges: [OrderCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type OrderCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Order! +} + +""" +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 { + errors: [OrderCreateFromCheckoutError!]! + + """ + Placed order. + """ + order: Order +} + +type OrderCreateFromCheckoutError { + """ + The error code. + """ + code: OrderCreateFromCheckoutErrorCode! + + """ + 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 + + """ + List of line Ids which cause the error. + """ + lines: [ID!] + + """ + The error message. + """ + message: String + + """ + List of variant IDs which causes the error. + """ + variants: [ID!] +} + +""" +An enumeration. +""" +enum OrderCreateFromCheckoutErrorCode { + BILLING_ADDRESS_NOT_SET + CHANNEL_INACTIVE + CHECKOUT_NOT_FOUND + EMAIL_NOT_SET + GIFT_CARD_NOT_APPLICABLE + GRAPHQL_ERROR + INSUFFICIENT_STOCK + INVALID_SHIPPING_METHOD + NO_LINES + SHIPPING_ADDRESS_NOT_SET + SHIPPING_METHOD_NOT_SET + TAX_ERROR + UNAVAILABLE_VARIANT_IN_CHANNEL + VOUCHER_NOT_APPLICABLE +} + +type OrderCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +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 { + """ + Returns amount of discount. + """ + amount: Money! + id: ID! + name: String + + """ + Explanation for the applied discount. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + reason: String + translatedName: String + type: OrderDiscountType! + + """ + Value of the discount. Can store fixed value or percent value + """ + value: PositiveDecimal! + + """ + Type of the discount: fixed or percent + """ + valueType: DiscountValueTypeEnum! +} + +""" +Adds discount to the order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderDiscountAdd { + errors: [OrderError!]! + + """ + Order which has been discounted. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input OrderDiscountCommonInput { + """ + Explanation for the applied discount. + """ + reason: String + + """ + Value of the discount. Can store fixed value or percent value + """ + value: PositiveDecimal! + + """ + Type of the discount: fixed or percent + """ + valueType: DiscountValueTypeEnum! +} + +""" +Remove discount from the order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderDiscountDelete { + errors: [OrderError!]! + + """ + Order which has removed discount. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +An enumeration. +""" +enum OrderDiscountType { + MANUAL + VOUCHER +} + +""" +Update discount for the order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderDiscountUpdate { + errors: [OrderError!]! + + """ + Order which has been discounted. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input OrderDraftFilterInput { + channels: [ID!] + created: DateRangeInput + customer: String + metadata: [MetadataFilter!] + search: String +} + +type OrderError { + """ + A type of address that causes the error. + """ + addressType: AddressTypeEnum + + """ + The error code. + """ + code: OrderErrorCode! + + """ + 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 order line IDs that cause the error. + """ + orderLines: [ID!] + + """ + List of product variants that are associated with the error + """ + variants: [ID!] + + """ + Warehouse ID which causes the error. + """ + warehouse: ID +} + +""" +An enumeration. +""" +enum OrderErrorCode { + BILLING_ADDRESS_NOT_SET + CANNOT_CANCEL_FULFILLMENT + CANNOT_CANCEL_ORDER + CANNOT_DELETE + CANNOT_DISCOUNT + CANNOT_FULFILL_UNPAID_ORDER + CANNOT_REFUND + CAPTURE_INACTIVE_PAYMENT + CHANNEL_INACTIVE + DUPLICATED_INPUT_ITEM + FULFILL_ORDER_LINE + GIFT_CARD_LINE + GRAPHQL_ERROR + INSUFFICIENT_STOCK + INVALID + INVALID_QUANTITY + MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK + NOT_AVAILABLE_IN_CHANNEL + NOT_EDITABLE + NOT_FOUND + ORDER_NO_SHIPPING_ADDRESS + PAYMENT_ERROR + PAYMENT_MISSING + PRODUCT_NOT_PUBLISHED + PRODUCT_UNAVAILABLE_FOR_PURCHASE + REQUIRED + SHIPPING_METHOD_NOT_APPLICABLE + SHIPPING_METHOD_REQUIRED + TAX_ERROR + UNIQUE + VOID_INACTIVE_PAYMENT + ZERO_QUANTITY +} + +""" +History log of the order. +""" +type OrderEvent implements Node { + """ + Amount of money. + """ + amount: Float + + """ + App that performed the action. Requires of of the following permissions: MANAGE_APPS, MANAGE_ORDERS, OWNER. + """ + app: App + + """ + Composed ID of the Fulfillment. + """ + composedId: String + + """ + Date when event happened at in ISO 8601 format. + """ + date: DateTime + + """ + The discount applied to the order. + """ + discount: OrderEventDiscountObject + + """ + Email of the customer. + """ + email: String + + """ + Type of an email sent to the customer. + """ + emailType: OrderEventsEmailsEnum + + """ + The lines fulfilled. + """ + fulfilledItems: [FulfillmentLine!] + id: ID! + + """ + Number of an invoice related to the order. + """ + invoiceNumber: String + + """ + The concerned lines. + """ + lines: [OrderEventOrderLineObject!] + + """ + Content of the event. + """ + message: String + + """ + User-friendly number of an order. + """ + orderNumber: String + + """ + List of oversold lines names. + """ + oversoldItems: [String!] + + """ + The payment gateway of the payment. + """ + paymentGateway: String + + """ + The payment reference from the payment provider. + """ + paymentId: String + + """ + Number of items. + """ + quantity: Int + + """ + The reference of payment's transaction. + """ + reference: String + + """ + The order which is related to this order. + """ + relatedOrder: Order + + """ + Define if shipping costs were included to the refund. + """ + shippingCostsIncluded: Boolean + + """ + The status of payment's transaction. + """ + status: TransactionStatus + + """ + The transaction reference of captured payment. + """ + transactionReference: String + + """ + Order event type. + """ + type: OrderEventsEnum + + """ + User who performed the action. + """ + user: User + + """ + The warehouse were items were restocked. + """ + warehouse: Warehouse +} + +type OrderEventCountableConnection { + edges: [OrderEventCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type OrderEventCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: OrderEvent! +} + +type OrderEventDiscountObject { + """ + Returns amount of discount. + """ + amount: Money + + """ + Returns amount of discount. + """ + oldAmount: Money + + """ + Value of the discount. Can store fixed value or percent value. + """ + oldValue: PositiveDecimal + + """ + Type of the discount: fixed or percent. + """ + oldValueType: DiscountValueTypeEnum + + """ + Explanation for the applied discount. + """ + reason: String + + """ + Value of the discount. Can store fixed value or percent value. + """ + value: PositiveDecimal! + + """ + Type of the discount: fixed or percent. + """ + valueType: DiscountValueTypeEnum! +} + +type OrderEventOrderLineObject { + """ + The discount applied to the order line. + """ + discount: OrderEventDiscountObject + + """ + The variant name. + """ + itemName: String + + """ + The order line. + """ + orderLine: OrderLine + + """ + The variant quantity. + """ + quantity: Int +} + +""" +An enumeration. +""" +enum OrderEventsEmailsEnum { + CONFIRMED + DIGITAL_LINKS + FULFILLMENT_CONFIRMATION + ORDER_CANCEL + ORDER_CONFIRMATION + ORDER_REFUND + PAYMENT_CONFIRMATION + SHIPPING_CONFIRMATION + TRACKING_UPDATED +} + +""" +An enumeration. +""" +enum OrderEventsEnum { + ADDED_PRODUCTS + CANCELED + CONFIRMED + DRAFT_CREATED + DRAFT_CREATED_FROM_REPLACE + EMAIL_SENT + EXTERNAL_SERVICE_NOTIFICATION + FULFILLMENT_AWAITS_APPROVAL + FULFILLMENT_CANCELED + FULFILLMENT_FULFILLED_ITEMS + FULFILLMENT_REFUNDED + FULFILLMENT_REPLACED + FULFILLMENT_RESTOCKED_ITEMS + FULFILLMENT_RETURNED + INVOICE_GENERATED + INVOICE_REQUESTED + INVOICE_SENT + INVOICE_UPDATED + NOTE_ADDED + ORDER_DISCOUNT_ADDED + ORDER_DISCOUNT_AUTOMATICALLY_UPDATED + ORDER_DISCOUNT_DELETED + ORDER_DISCOUNT_UPDATED + ORDER_FULLY_PAID + ORDER_LINE_DISCOUNT_REMOVED + ORDER_LINE_DISCOUNT_UPDATED + ORDER_LINE_PRODUCT_DELETED + ORDER_LINE_VARIANT_DELETED + ORDER_MARKED_AS_PAID + ORDER_REPLACEMENT_CREATED + OTHER + OVERSOLD_ITEMS + PAYMENT_AUTHORIZED + PAYMENT_CAPTURED + PAYMENT_FAILED + PAYMENT_REFUNDED + PAYMENT_VOIDED + PLACED + PLACED_FROM_DRAFT + REMOVED_PRODUCTS + TRACKING_UPDATED + TRANSACTION_CAPTURE_REQUESTED + TRANSACTION_EVENT + TRANSACTION_REFUND_REQUESTED + TRANSACTION_VOID_REQUESTED + UPDATED_ADDRESS +} + +input OrderFilterInput { + authorizeStatus: [OrderAuthorizeStatusEnum!] + channels: [ID!] + chargeStatus: [OrderChargeStatusEnum!] + created: DateRangeInput + customer: String + giftCardBought: Boolean + giftCardUsed: Boolean + ids: [ID!] + isClickAndCollect: Boolean + isPreorder: Boolean + metadata: [MetadataFilter!] + numbers: [String!] + paymentStatus: [PaymentChargeStatusEnum!] + search: String + status: [OrderStatusFilter!] + updatedAt: DateTimeRangeInput +} + +""" +Creates new fulfillments for an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderFulfill { + errors: [OrderError!]! + + """ + 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.") +} + +input OrderFulfillInput { + """ + If true, then allow proceed fulfillment when stock is exceeded. + """ + allowStockToBeExceeded: Boolean = false + + """ + List of items informing how to fulfill the order. + """ + lines: [OrderFulfillLineInput!]! + + """ + If true, send an email notification to the customer. + """ + notifyCustomer: Boolean +} + +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! +} + +type OrderFulfilled implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type OrderFullyPaid implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Represents order line of particular order. +""" +type OrderLine implements Node { + """ + List of allocations across warehouses. + + Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + """ + allocations: [Allocation!] + digitalContentUrl: DigitalContentUrl + id: ID! + isShippingRequired: Boolean! + productName: String! + productSku: String + productVariantId: String + quantity: Int! + quantityFulfilled: Int! + + """ + A quantity of items remaining to be fulfilled. + + Added in Saleor 3.1. + """ + quantityToFulfill: Int! + taxRate: Float! + + """ + The main thumbnail for the ordered product. + """ + thumbnail( + """ + Size of thumbnail. + """ + size: Int + ): Image + + """ + Price of the order line. + """ + totalPrice: TaxedMoney! + + """ + Product name in the customer's language + """ + translatedProductName: String! + + """ + Variant name in the customer's language + """ + translatedVariantName: String! + + """ + 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! + unitDiscountReason: String + + """ + Type of the discount: fixed or percent + """ + unitDiscountType: DiscountValueTypeEnum + + """ + Value of the discount. Can store fixed value or percent value + """ + unitDiscountValue: PositiveDecimal! + + """ + Price of the single item in the order line. + """ + unitPrice: 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 + variantName: String! +} + +input OrderLineCreateInput { + """ + Number of variant items ordered. + """ + quantity: Int! + + """ + Product variant ID. + """ + variantId: ID! +} + +""" +Deletes an order line from an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderLineDelete { + errors: [OrderError!]! + + """ + A related order. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + An order line that was deleted. + """ + orderLine: OrderLine +} + +""" +Remove discount applied to the order line. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderLineDiscountRemove { + errors: [OrderError!]! + + """ + 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.") + + """ + Order line which has removed discount. + """ + orderLine: OrderLine +} + +""" +Update discount for the order line. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderLineDiscountUpdate { + errors: [OrderError!]! + + """ + 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.") + + """ + Order line which has been discounted. + """ + orderLine: OrderLine +} + +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 { + errors: [OrderError!]! + + """ + Related order. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderLine: OrderLine +} + +""" +Create order lines for an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderLinesCreate { + errors: [OrderError!]! + + """ + Related order. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + List of added order lines. + """ + orderLines: [OrderLine!] +} + +""" +Mark order as manually paid. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderMarkAsPaid { + errors: [OrderError!]! + + """ + Order marked as paid. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +An enumeration. +""" +enum OrderOriginEnum { + CHECKOUT + DRAFT + REISSUE +} + +""" +Refund an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderRefund { + errors: [OrderError!]! + + """ + A refunded order. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 { + """ + The total amount of refund when the value is provided manually. + """ + amountToRefund: PositiveDecimal + + """ + List of fulfilled lines to refund. + """ + fulfillmentLines: [OrderRefundFulfillmentLineInput!] + + """ + If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. + """ + includeShippingCosts: Boolean = false + + """ + List of unfulfilled lines to refund. + """ + orderLines: [OrderRefundLineInput!] +} + +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 { + """ + The total amount of refund when the value is provided manually. + """ + amountToRefund: PositiveDecimal + + """ + List of fulfilled lines to return. + """ + fulfillmentLines: [OrderReturnFulfillmentLineInput!] + + """ + If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. + """ + includeShippingCosts: Boolean = false + + """ + List of unfulfilled lines to return. + """ + orderLines: [OrderReturnLineInput!] + + """ + 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 { + """ + The error code. + """ + code: OrderSettingsErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum OrderSettingsErrorCode { + INVALID +} + +""" +Update shop order settings. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderSettingsUpdate { + errors: [OrderSettingsError!]! + + """ + Order settings. + """ + orderSettings: OrderSettings + orderSettingsErrors: [OrderSettingsError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 creation date. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ + CREATED_AT + + """ + Sort orders by creation date. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ + CREATION_DATE + + """ + Sort orders by customer. + """ + CUSTOMER + + """ + Sort orders by fulfillment status. + """ + FULFILLMENT_STATUS + + """ + Sort orders by last modified at. + """ + LAST_MODIFIED_AT + + """ + Sort orders by number. + """ + NUMBER + + """ + Sort orders by payment. + """ + PAYMENT +} + +input OrderSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort orders by the selected field. + """ + field: OrderSortField! +} + +""" +An enumeration. +""" +enum OrderStatus { + CANCELED + DRAFT + FULFILLED + PARTIALLY_FULFILLED + PARTIALLY_RETURNED + RETURNED + UNCONFIRMED + UNFULFILLED +} + +enum OrderStatusFilter { + CANCELED + FULFILLED + PARTIALLY_FULFILLED + READY_TO_CAPTURE + READY_TO_FULFILL + UNCONFIRMED + UNFULFILLED +} + +""" +Updates an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderUpdate { + errors: [OrderError!]! + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input OrderUpdateInput { + """ + Billing address of the customer. + """ + billingAddress: AddressInput + + """ + Shipping address of the customer. + """ + shippingAddress: AddressInput + + """ + Email address of the customer. + """ + userEmail: 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 { + errors: [OrderError!]! + + """ + Order with updated shipping method. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input OrderUpdateShippingInput { + """ + ID of the selected shipping method, pass null to remove currently assigned shipping method. + """ + shippingMethod: ID +} + +type OrderUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The order the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Void an order. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type OrderVoid { + errors: [OrderError!]! + + """ + A voided order. + """ + order: Order + orderErrors: [OrderError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +A static page that can be manually added by a shop operator through the dashboard. +""" +type Page implements Node & ObjectWithMetadata { + """ + List of attributes assigned to this product. + """ + attributes: [SelectedAttribute!]! + + """ + 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." + ) + created: DateTime! + id: ID! + isPublished: Boolean! + + """ + 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 + pageType: PageType! + + """ + 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 + 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 + seoDescription: String + seoTitle: String + slug: String! + title: String! + + """ + Returns translated page fields for the given language code. + """ + translation( + """ + A language code to return the translation for page. + """ + languageCode: LanguageCodeEnum! + ): PageTranslation +} + +""" +Assign attributes to a given page type. + +Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" +type PageAttributeAssign { + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + The updated page type. + """ + pageType: PageType +} + +""" +Unassign attributes from a given page type. + +Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" +type PageAttributeUnassign { + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + The updated page type. + """ + pageType: PageType +} + +""" +Deletes pages. + +Requires one of the following permissions: MANAGE_PAGES. +""" +type PageBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Publish pages. + +Requires one of the following permissions: MANAGE_PAGES. +""" +type PageBulkPublish { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type PageCountableConnection { + edges: [PageCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type PageCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Page! +} + +""" +Creates a new page. + +Requires one of the following permissions: MANAGE_PAGES. +""" +type PageCreate { + errors: [PageError!]! + page: Page + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input PageCreateInput { + """ + List of attributes. + """ + attributes: [AttributeValueInput!] + + """ + Page content. + + Rich text format. For reference see https://editorjs.io/ + """ + content: JSONString + + """ + Determines if page is visible in the storefront. + """ + isPublished: Boolean + + """ + ID of the page type that page belongs to. + """ + pageType: ID! + + """ + 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 + + """ + Page internal name. + """ + slug: String + + """ + Page title. + """ + title: String +} + +type PageCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The page the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + page: Page + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a page. + +Requires one of the following permissions: MANAGE_PAGES. +""" +type PageDelete { + errors: [PageError!]! + page: Page + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type PageDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The page the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + page: Page + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type PageError { + """ + List of attributes IDs which causes the error. + """ + attributes: [ID!] + + """ + The error code. + """ + code: PageErrorCode! + + """ + 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 attribute values IDs which causes the error. + """ + values: [ID!] +} + +""" +An enumeration. +""" +enum PageErrorCode { + ATTRIBUTE_ALREADY_ASSIGNED + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +input PageFilterInput { + ids: [ID!] + metadata: [MetadataFilter!] + pageTypes: [ID!] + search: String +} + +""" +The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. +""" +type PageInfo { + """ + When paginating forwards, the cursor to continue. + """ + endCursor: String + + """ + 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 +} + +input PageInput { + """ + List of attributes. + """ + attributes: [AttributeValueInput!] + + """ + Page content. + + Rich text format. For reference see https://editorjs.io/ + """ + content: JSONString + + """ + 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 + + """ + Page internal name. + """ + slug: String + + """ + Page title. + """ + title: String +} + +""" +Reorder page attribute values. + +Requires one of the following permissions: MANAGE_PAGES. +""" +type PageReorderAttributeValues { + errors: [PageError!]! + + """ + 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.") +} + +enum PageSortField { + """ + Sort pages by creation date. + """ + 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 slug. + """ + SLUG + + """ + Sort pages by title. + """ + TITLE + + """ + Sort pages by visibility. + """ + VISIBILITY +} + +input PageSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort pages by the selected field. + """ + field: PageSortField! +} + +type PageTranslatableContent implements Node { + """ + List of page content attribute values that can be translated. + """ + attributeValues: [AttributeValueTranslatableContent!]! + + """ + 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." + ) + id: ID! + + """ + 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." + ) + seoDescription: String + seoTitle: String + title: String! + + """ + Returns translated page fields for the given language code. + """ + translation( + """ + A language code to return the translation for page. + """ + languageCode: LanguageCodeEnum! + ): PageTranslation +} + +""" +Creates/updates translations for a page. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type PageTranslate { + errors: [TranslationError!]! + page: PageTranslatableContent + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type PageTranslation implements Node { + """ + 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." + ) + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + seoDescription: String + seoTitle: String + title: String +} + +input PageTranslationInput { + """ + Translated page content. + + Rich text format. For reference see https://editorjs.io/ + """ + content: JSONString + seoDescription: String + seoTitle: String + title: String +} + +""" +Represents a type of page. It defines what attributes are available to pages of this type. +""" +type PageType implements Node & ObjectWithMetadata { + """ + 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( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + filter: AttributeFilterInput + + """ + 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 + id: ID! + + """ + 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! + + """ + 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 + slug: String! +} + +""" +Delete page types. + +Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" +type PageTypeBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type PageTypeCountableConnection { + edges: [PageTypeCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type PageTypeCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: PageType! +} + +""" +Create a new page type. + +Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" +type PageTypeCreate { + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageType: PageType +} + +input PageTypeCreateInput { + """ + List of attribute IDs to be assigned to the page type. + """ + addAttributes: [ID!] + + """ + Name of the page type. + """ + name: String + + """ + Page type slug. + """ + slug: String +} + +""" +Delete a page type. + +Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" +type PageTypeDelete { + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageType: PageType +} + +input PageTypeFilterInput { + search: String +} + +""" +Reorder the attributes of a page type. + +Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" +type PageTypeReorderAttributes { + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Page type from which attributes are reordered. + """ + pageType: PageType +} + +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 { + errors: [PageError!]! + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageType: PageType +} + +input PageTypeUpdateInput { + """ + List of attribute IDs to be assigned to the page type. + """ + addAttributes: [ID!] + + """ + Name of the page type. + """ + name: String + + """ + List of attribute IDs to be assigned to the page type. + """ + removeAttributes: [ID!] + + """ + Page type slug. + """ + slug: String +} + +""" +Updates an existing page. + +Requires one of the following permissions: MANAGE_PAGES. +""" +type PageUpdate { + errors: [PageError!]! + page: Page + pageErrors: [PageError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type PageUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The page the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + page: Page + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Change the password of the logged in user. + +Requires one of the following permissions: AUTHENTICATED_USER. +""" +type PasswordChange { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + A user instance with a new password. + """ + user: User +} + +""" +Represents a payment of a given type. +""" +type Payment implements Node & ObjectWithMetadata { + """ + List of actions that can be performed in the current state of a payment. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + actions: [OrderAction!]! + + """ + 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 + + """ + Total amount captured for this payment. + """ + capturedAmount: Money + + """ + Internal payment status. + """ + chargeStatus: PaymentChargeStatusEnum! + checkout: Checkout + created: DateTime! + + """ + The details of the card used for this payment. + """ + creditCard: CreditCard + + """ + IP address of the user who created the payment. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + customerIpAddress: String + gateway: String! + id: ID! + isActive: Boolean! + + """ + 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 + modified: DateTime! + order: Order + paymentMethodType: String! + + """ + 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 + token: String! + + """ + Total amount of the payment. + """ + total: Money + + """ + List of all transactions within this payment. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + transactions: [Transaction!] +} + +""" +Captures the authorized payment amount. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type PaymentCapture { + errors: [PaymentError!]! + + """ + Updated payment. + """ + payment: Payment + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +An enumeration. +""" +enum PaymentChargeStatusEnum { + CANCELLED + FULLY_CHARGED + FULLY_REFUNDED + NOT_CHARGED + PARTIALLY_CHARGED + PARTIALLY_REFUNDED + PENDING + REFUSED +} + +""" +Check payment balance. +""" +type PaymentCheckBalance { + """ + Response from the gateway. + """ + data: JSONString + errors: [PaymentError!]! + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input PaymentCheckBalanceInput { + """ + Information about card. + """ + card: CardInput! + + """ + Slug of a channel for which the data should be returned. + """ + channel: String! + + """ + An ID of a payment gateway to check. + """ + gatewayId: String! + + """ + Payment method name. + """ + method: String! +} + +type PaymentCountableConnection { + edges: [PaymentCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type PaymentCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Payment! +} + +type PaymentError { + """ + The error code. + """ + code: PaymentErrorCode! + + """ + 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 varint IDs which causes the error. + """ + variants: [ID!] +} + +""" +An enumeration. +""" +enum PaymentErrorCode { + BALANCE_CHECK_ERROR + BILLING_ADDRESS_NOT_SET + CHANNEL_INACTIVE + CHECKOUT_EMAIL_NOT_SET + GRAPHQL_ERROR + INVALID + INVALID_SHIPPING_METHOD + NOT_FOUND + NOT_SUPPORTED_GATEWAY + NO_CHECKOUT_LINES + PARTIAL_PAYMENT_NOT_ALLOWED + PAYMENT_ERROR + REQUIRED + SHIPPING_ADDRESS_NOT_SET + SHIPPING_METHOD_NOT_SET + UNAVAILABLE_VARIANT_IN_CHANNEL + UNIQUE +} + +input PaymentFilterInput { + checkouts: [ID!] +} + +""" +Available payment gateway backend with configuration necessary to setup client. +""" +type PaymentGateway { + """ + Payment gateway client configuration. + """ + config: [GatewayConfigLine!]! + + """ + Payment gateway supported currencies. + """ + currencies: [String!]! + + """ + Payment gateway ID. + """ + id: ID! + + """ + Payment gateway name. + """ + name: String! +} + +""" +Initializes payment process when it is required by gateway. +""" +type PaymentInitialize { + errors: [PaymentError!]! + initializedPayment: PaymentInitialized + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Server-side data generated by a payment gateway. Optional step when the payment provider requires an additional action to initialize payment session. +""" +type PaymentInitialized { + """ + Initialized data by gateway. + """ + data: JSONString + + """ + ID of a payment gateway. + """ + gateway: String! + + """ + Payment gateway name. + """ + name: String! +} + +input PaymentInput { + """ + Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used. + """ + amount: PositiveDecimal + + """ + A gateway to use with that payment. + """ + gateway: String! + + """ + User public metadata. + + Added in Saleor 3.1. + """ + metadata: [MetadataInput!] + + """ + 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 = NONE + + """ + Client-side generated payment token, representing customer's billing data in a secure manner. + """ + token: String +} + +""" +Refunds the captured payment amount. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type PaymentRefund { + errors: [PaymentError!]! + + """ + Updated payment. + """ + payment: Payment + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Represents a payment source stored for user in payment gateway, such as credit card. +""" +type PaymentSource { + """ + Stored credit card details if available. + """ + creditCardInfo: CreditCard + + """ + Payment gateway name. + """ + gateway: String! + + """ + List of public metadata items. + + Added in Saleor 3.1. + + Can be accessed without permissions. + """ + metadata: [MetadataItem!]! + + """ + ID of stored payment method. + """ + paymentMethodId: String +} + +""" +Voids the authorized payment. + +Requires one of the following permissions: MANAGE_ORDERS. +""" +type PaymentVoid { + errors: [PaymentError!]! + + """ + Updated payment. + """ + payment: Payment + paymentErrors: [PaymentError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + HANDLE_CHECKOUTS + HANDLE_PAYMENTS + IMPERSONATE_USER + MANAGE_APPS + MANAGE_CHANNELS + MANAGE_CHECKOUTS + MANAGE_DISCOUNTS + MANAGE_GIFT_CARD + MANAGE_MENUS + MANAGE_OBSERVABILITY + MANAGE_ORDERS + MANAGE_PAGES + MANAGE_PAGE_TYPES_AND_ATTRIBUTES + MANAGE_PLUGINS + MANAGE_PRODUCTS + MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES + MANAGE_SETTINGS + MANAGE_SHIPPING + MANAGE_STAFF + MANAGE_TRANSLATIONS + MANAGE_USERS +} + +""" +Create new permission group. + +Requires one of the following permissions: MANAGE_STAFF. +""" +type PermissionGroupCreate { + errors: [PermissionGroupError!]! + group: Group + permissionGroupErrors: [PermissionGroupError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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! +} + +""" +Delete permission group. + +Requires one of the following permissions: MANAGE_STAFF. +""" +type PermissionGroupDelete { + errors: [PermissionGroupError!]! + group: Group + permissionGroupErrors: [PermissionGroupError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type PermissionGroupError { + """ + The error code. + """ + code: PermissionGroupErrorCode! + + """ + 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 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 + CANNOT_REMOVE_FROM_LAST_GROUP + DUPLICATED_INPUT_ITEM + LEFT_NOT_MANAGEABLE_PERMISSION + OUT_OF_SCOPE_PERMISSION + OUT_OF_SCOPE_USER + REQUIRED + UNIQUE +} + +input PermissionGroupFilterInput { + ids: [ID!] + search: String +} + +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. + +Requires one of the following permissions: MANAGE_STAFF. +""" +type PermissionGroupUpdate { + errors: [PermissionGroupError!]! + group: Group + permissionGroupErrors: [PermissionGroupError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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!] +} + +""" +Plugin. +""" +type Plugin { + """ + Channel-specific plugin configuration. + """ + channelConfigurations: [PluginConfiguration!]! + + """ + Description of the plugin. + """ + description: String! + + """ + Global configuration of the plugin (not channel-specific). + """ + globalConfiguration: PluginConfiguration + + """ + Identifier of the plugin. + """ + id: ID! + + """ + Name of the plugin. + """ + name: String! +} + +""" +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 { + GLOBAL + PER_CHANNEL +} + +type PluginCountableConnection { + edges: [PluginCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type PluginCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Plugin! +} + +type PluginError { + """ + The error code. + """ + code: PluginErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum PluginErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + PLUGIN_MISCONFIGURED + REQUIRED + UNIQUE +} + +input PluginFilterInput { + search: String + statusInChannels: PluginStatusInChannelsInput + type: PluginConfigurationType +} + +enum PluginSortField { + IS_ACTIVE + NAME +} + +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 { + errors: [PluginError!]! + plugin: Plugin + pluginsErrors: [PluginError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 { + EXCLUDE + INCLUDE +} + +""" +Represents preorder settings for product variant. +""" +type PreorderData { + """ + Preorder end date. + """ + endDate: DateTime + + """ + Total number of sold product variant during preorder. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + globalSoldUnits: Int! + + """ + The global preorder threshold for product variant. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + globalThreshold: Int +} + +input PreorderSettingsInput { + """ + The end date for preorder. + """ + endDate: DateTime + + """ + The global threshold for preorder variant. + """ + globalThreshold: Int +} + +""" +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 { + """ + Amount of money. + """ + amount: PositiveDecimal! + + """ + Currency code. + """ + currency: String! +} + +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 { + """ + List of attributes assigned to this product. + """ + attributes: [SelectedAttribute!]! + + """ + 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 + category: Category + + """ + Channel given to retrieve this product. Also used by federation gateway to resolve this object in a federated query. + """ + channel: String + + """ + List of availability in channels for the product. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + channelListings: [ProductChannelListing!] + chargeTaxes: Boolean! + + """ + List of collections for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. + """ + collections: [Collection!] + created: DateTime! + defaultVariant: ProductVariant + + """ + 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." + ) + id: ID! + + """ + 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." + ) + + """ + List of images for the product. + """ + images: [ProductImage!] + @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") + + """ + 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 + + """ + Whether the product is available for purchase. + """ + isAvailableForPurchase: Boolean + + """ + List of media for the product. + """ + media: [ProductMedia!] + + """ + Get a single product media by ID. + """ + mediaById( + """ + ID of a product media. + """ + id: ID + ): ProductMedia + + """ + 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! + + """ + 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 + + """ + 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 + productType: ProductType! + rating: Float + seoDescription: String + seoTitle: String + slug: String! + + """ + A type of tax. Assigned by enabled tax gateway + """ + taxType: TaxType + + """ + The main thumbnail for a product. + """ + thumbnail( + """ + Size of thumbnail. + """ + size: Int + ): Image + + """ + Returns translated product fields for the given language code. + """ + translation( + """ + A language code to return the translation for product. + """ + languageCode: LanguageCodeEnum! + ): ProductTranslation + updatedAt: DateTime! + + """ + List of variants for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. + """ + variants: [ProductVariant!] + weight: Weight +} + +""" +Assign attributes to a given product type. + +Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" +type ProductAttributeAssign { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + The updated product type. + """ + productType: ProductType +} + +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 { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + The updated product type. + """ + productType: ProductType +} + +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 { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + The updated product type. + """ + productType: ProductType +} + +""" +Deletes products. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Represents product channel listing. +""" +type ProductChannelListing implements Node { + 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 + channel: Channel! + + """ + The price of the cheapest variant (including discounts). + """ + discountedPrice: Money + id: ID! + + """ + Whether the product is available for purchase. + """ + isAvailableForPurchase: Boolean + isPublished: Boolean! + + """ + Range of margin percentage value. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + margin: Margin + + """ + 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 + 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 + + """ + Purchase cost of product. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + purchaseCost: MoneyRange + visibleInListings: Boolean! +} + +input ProductChannelListingAddInput { + """ + List of variants to which the channel should be assigned. + """ + addVariants: [ID!] + + """ + 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 + + """ + 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 + + """ + ID of a channel. + """ + channelId: ID! + + """ + Determine if product should be available for purchase. + """ + isAvailableForPurchase: Boolean + + """ + 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 + + """ + List of variants from which the channel should be unassigned. + """ + removeVariants: [ID!] + + """ + Determines if product is visible in product listings (doesn't apply to product collections). + """ + visibleInListings: Boolean +} + +type ProductChannelListingError { + """ + List of attributes IDs which causes the error. + """ + attributes: [ID!] + + """ + List of channels IDs which causes the error. + """ + channels: [ID!] + + """ + The error code. + """ + code: ProductErrorCode! + + """ + 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 attribute values IDs which causes the error. + """ + values: [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 { + errors: [ProductChannelListingError!]! + + """ + An updated product instance. + """ + product: Product + productChannelListingErrors: [ProductChannelListingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input ProductChannelListingUpdateInput { + """ + List of channels from which the product should be unassigned. + """ + removeChannels: [ID!] + + """ + List of channels to which the product should be assigned or updated. + """ + updateChannels: [ProductChannelListingAddInput!] +} + +type ProductCountableConnection { + edges: [ProductCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type ProductCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Product! +} + +""" +Creates a new product. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductCreate { + errors: [ProductError!]! + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input ProductCreateInput { + """ + List of attributes. + """ + attributes: [AttributeValueInput!] + + """ + ID of the product's category. + """ + category: ID + + """ + Determine if taxes are being charged for the product. + """ + 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 + + """ + ID of the type that product belongs to. + """ + productType: ID! + + """ + Defines the product rating value. + """ + rating: Float + + """ + Search engine optimization fields. + """ + seo: SeoInput + + """ + Product slug. + """ + slug: String + + """ + Tax rate for enabled tax gateway. + """ + taxCode: String + + """ + Weight of the Product. + """ + weight: WeightScalar +} + +type ProductCreated implements Event { + """ + The category of the product. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The product the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + product( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Product + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a product. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductDelete { + errors: [ProductError!]! + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type ProductDeleted implements Event { + """ + The category of the product. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The product the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + product( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Product + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +type ProductError { + """ + List of attributes IDs which causes the error. + """ + attributes: [ID!] + + """ + The error code. + """ + code: ProductErrorCode! + + """ + 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 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 + CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INVALID + MEDIA_ALREADY_ASSIGNED + NOT_FOUND + NOT_PRODUCTS_IMAGE + NOT_PRODUCTS_VARIANT + PREORDER_VARIANT_CANNOT_BE_DEACTIVATED + PRODUCT_NOT_ASSIGNED_TO_CHANNEL + PRODUCT_WITHOUT_CATEGORY + REQUIRED + UNIQUE + UNSUPPORTED_MEDIA_PROVIDER + VARIANT_NO_DIGITAL_CONTENT +} + +enum ProductFieldEnum { + CATEGORY + CHARGE_TAXES + COLLECTIONS + DESCRIPTION + NAME + PRODUCT_MEDIA + PRODUCT_TYPE + PRODUCT_WEIGHT + VARIANT_ID + VARIANT_MEDIA + VARIANT_SKU + VARIANT_WEIGHT +} + +input ProductFilterInput { + attributes: [AttributeInput!] + categories: [ID!] + + """ + 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 + collections: [ID!] + giftCard: Boolean + hasCategory: Boolean + hasPreorderedVariants: Boolean + ids: [ID!] + isPublished: Boolean + metadata: [MetadataFilter!] + minimalPrice: PriceRangeInput + price: PriceRangeInput + productTypes: [ID!] + search: String + stockAvailability: StockAvailability + stocks: ProductStockFilterInput + updatedAt: DateTimeRangeInput +} + +""" +Represents a product image. +""" +type ProductImage { + """ + The alt text of the image. + """ + alt: String + + """ + The ID of the image. + """ + 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 + + """ + The URL of the image. + """ + url( + """ + Size of the image. + """ + size: Int + ): 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. + """ + 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 + + """ + Defines the product rating value. + """ + rating: Float + + """ + Search engine optimization fields. + """ + seo: SeoInput + + """ + Product slug. + """ + slug: String + + """ + Tax rate for enabled tax gateway. + """ + taxCode: String + + """ + Weight of the Product. + """ + weight: WeightScalar +} + +""" +Represents a product media. +""" +type ProductMedia implements Node { + alt: String! + id: ID! + oembedData: JSONString! + sortOrder: Int + type: ProductMediaType! + + """ + The URL of the media. + """ + url( + """ + Size of the image. + """ + size: Int + ): String! +} + +""" +Deletes product media. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductMediaBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + errors: [ProductError!]! + media: ProductMedia + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input ProductMediaCreateInput { + """ + 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 + + """ + ID of an product. + """ + product: ID! +} + +""" +Deletes a product media. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductMediaDelete { + errors: [ProductError!]! + media: ProductMedia + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Changes ordering of the product media. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductMediaReorder { + errors: [ProductError!]! + media: [ProductMedia!] + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +An enumeration. +""" +enum ProductMediaType { + IMAGE + VIDEO +} + +""" +Updates a product media. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductMediaUpdate { + errors: [ProductError!]! + media: ProductMedia + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input ProductMediaUpdateInput { + """ + Alt text for a product media. + """ + alt: String +} + +input ProductOrder { + """ + Sort product by the selected attribute's values. + Note: this doesn't take translations into account yet. + """ + attributeId: ID + + """ + 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 + + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort products by the selected field. + """ + field: ProductOrderField +} + +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 + + """ + Sort products by update date. + """ + DATE + + """ + Sort products by update date. + """ + LAST_MODIFIED + + """ + Sort products by update date. + """ + 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 + + """ + Sort products by name. + """ + NAME + + """ + Sort products by price. + + This option requires a channel filter to work as the values can vary between channels. + """ + PRICE + + """ + 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 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. + """ + PUBLISHED_AT + + """ + Sort products by rank. Note: This option is available only with the `search` filter. + """ + RANK + + """ + Sort products by rating. + """ + RATING + + """ + Sort products by type. + """ + TYPE +} + +""" +Represents availability of a product in the storefront. +""" +type ProductPricingInfo { + """ + The discount amount if in sale (null otherwise). + """ + discount: TaxedMoney + + """ + The discount amount in the local currency. + """ + discountLocalCurrency: TaxedMoney + + """ + Whether it is in sale or not. + """ + onSale: Boolean + + """ + The discounted price range of the product variants. + """ + priceRange: TaxedMoneyRange + + """ + The discounted price range of the product variants in the local currency. + """ + priceRangeLocalCurrency: TaxedMoneyRange + + """ + The undiscounted price range of the product variants. + """ + priceRangeUndiscounted: TaxedMoneyRange +} + +""" +Reorder product attribute values. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductReorderAttributeValues { + errors: [ProductError!]! + + """ + 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.") +} + +input ProductStockFilterInput { + quantity: IntRangeInput + warehouseIds: [ID!] +} + +type ProductTranslatableContent implements Node { + """ + List of product attribute values that can be translated. + """ + attributeValues: [AttributeValueTranslatableContent!]! + + """ + 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." + ) + id: ID! + name: String! + + """ + 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." + ) + seoDescription: String + seoTitle: String + + """ + Returns translated product fields for the given language code. + """ + translation( + """ + A language code to return the translation for product. + """ + languageCode: LanguageCodeEnum! + ): ProductTranslation +} + +""" +Creates/updates translations for a product. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type ProductTranslate { + errors: [TranslationError!]! + product: Product + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type ProductTranslation implements Node { + """ + 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." + ) + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String + seoDescription: String + seoTitle: String +} + +""" +Represents a type of product. It defines what attributes are available to products of this type. +""" +type ProductType implements Node & ObjectWithMetadata { + """ + Variant attributes of that product type with attached variant selection. + + Added in Saleor 3.1. + """ + assignedVariantAttributes( + """ + Define scope of returned attributes. + """ + variantSelection: VariantAttributeScope + ): [AssignedVariantAttribute!] + + """ + List of attributes which can be assigned to this product type. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + availableAttributes( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + filter: AttributeFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): AttributeCountableConnection + hasVariants: Boolean! + id: ID! + isDigital: Boolean! + isShippingRequired: Boolean! + + """ + The product type kind. + """ + kind: ProductTypeKindEnum! + + """ + 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! + + """ + 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 + + """ + Product attributes of that product type. + """ + productAttributes: [Attribute!] + + """ + List of products of this type. + """ + products( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: 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." + ) + slug: String! + + """ + A type of tax. Assigned by enabled tax gateway + """ + taxType: TaxType + + """ + 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." + ) + weight: Weight +} + +""" +Deletes product types. + +Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" +type ProductTypeBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +enum ProductTypeConfigurable { + CONFIGURABLE + SIMPLE +} + +type ProductTypeCountableConnection { + edges: [ProductTypeCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type ProductTypeCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: ProductType! +} + +""" +Creates a new product type. + +Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" +type ProductTypeCreate { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productType: ProductType +} + +""" +Deletes a product type. + +Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" +type ProductTypeDelete { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productType: ProductType +} + +enum ProductTypeEnum { + DIGITAL + SHIPPABLE +} + +input ProductTypeFilterInput { + configurable: ProductTypeConfigurable + ids: [ID!] + kind: ProductTypeKindEnum + metadata: [MetadataFilter!] + productType: ProductTypeEnum + search: String +} + +input ProductTypeInput { + """ + 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 + + """ + Determines if products are digital. + """ + isDigital: Boolean + + """ + Determines if shipping is required for products of this variant. + """ + isShippingRequired: Boolean + + """ + The product type kind. + """ + kind: ProductTypeKindEnum + + """ + Name of the product type. + """ + name: String + + """ + List of attributes shared among all product variants. + """ + productAttributes: [ID!] + + """ + Product type slug. + """ + slug: String + + """ + Tax rate for enabled tax gateway. + """ + taxCode: String + + """ + List of attributes used to distinguish between different variants of a product. + """ + variantAttributes: [ID!] + + """ + Weight of the ProductType items. + """ + weight: WeightScalar +} + +""" +An enumeration. +""" +enum ProductTypeKindEnum { + GIFT_CARD + NORMAL +} + +""" +Reorder the attributes of a product type. + +Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" +type ProductTypeReorderAttributes { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Product type from which attributes are reordered. + """ + productType: ProductType +} + +enum ProductTypeSortField { + """ + Sort products by type. + """ + DIGITAL + + """ + Sort products by name. + """ + NAME + + """ + 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 { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productType: ProductType +} + +""" +Updates an existing product. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductUpdate { + errors: [ProductError!]! + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type ProductUpdated implements Event { + """ + The category of the product. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The product the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + product( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Product + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Represents a version of a product such as different size or color. +""" +type ProductVariant implements Node & ObjectWithMetadata { + """ + List of attributes assigned to this variant. + """ + attributes( + """ + Define scope of returned attributes. + """ + variantSelection: VariantAttributeScope + ): [SelectedAttribute!]! + + """ + 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!] + created: DateTime! + + """ + Digital content for the product variant. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + digitalContent: DigitalContent + id: ID! + + """ + 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.") + + """ + Gross margin percentage value. + """ + margin: Int + + """ + List of media for the product variant. + """ + media: [ProductMedia!] + + """ + 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! + + """ + 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 + + """ + 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 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 + product: Product! + + """ + 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 + quantityLimitPerCustomer: 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 + sku: String + + """ + 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!] + trackInventory: Boolean! + + """ + Returns translated product variant fields for the given language code. + """ + translation( + """ + A language code to return the translation for product variant. + """ + languageCode: LanguageCodeEnum! + ): ProductVariantTranslation + updatedAt: DateTime! + weight: Weight +} + +type ProductVariantBackInStock implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The product variant the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String + + """ + Look up a warehouse. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +""" +Creates product variants for a given product. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantBulkCreate { + bulkProductErrors: [BulkProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Returns how many objects were created. + """ + count: Int! + errors: [BulkProductError!]! + + """ + List of the created variants. + """ + productVariants: [ProductVariant!]! +} + +input ProductVariantBulkCreateInput { + """ + List of attributes specific to this variant. + """ + attributes: [BulkAttributeValueInput!]! + + """ + List of prices assigned to channels. + """ + channelListings: [ProductVariantChannelListingAddInput!] + + """ + 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 + + """ + Stock keeping unit. + """ + sku: String + + """ + Stocks of a product available for sale. + """ + stocks: [StockInput!] + + """ + 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 +} + +""" +Deletes product variants. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Represents product varaint channel listing. +""" +type ProductVariantChannelListing implements Node { + channel: Channel! + + """ + Cost price of the variant. + """ + costPrice: Money + id: ID! + + """ + 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 + price: Money +} + +input ProductVariantChannelListingAddInput { + """ + ID of a channel. + """ + channelId: ID! + + """ + 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 + + """ + Price of the particular variant in channel. + """ + price: PositiveDecimal! +} + +""" +Manage product variant prices in channels. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantChannelListingUpdate { + errors: [ProductChannelListingError!]! + productChannelListingErrors: [ProductChannelListingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + An updated product variant instance. + """ + variant: ProductVariant +} + +type ProductVariantCountableConnection { + edges: [ProductVariantCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type ProductVariantCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: ProductVariant! +} + +""" +Creates a new variant for a product. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantCreate { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productVariant: ProductVariant +} + +input ProductVariantCreateInput { + """ + List of attributes specific to this variant. + """ + attributes: [AttributeValueInput!]! + + """ + 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 + + """ + Product ID of which type is the variant. + """ + product: ID! + + """ + 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 + + """ + Stock keeping unit. + """ + sku: String + + """ + Stocks of a product available for sale. + """ + stocks: [StockInput!] + + """ + 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 +} + +type ProductVariantCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The product variant the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a product variant. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantDelete { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productVariant: ProductVariant +} + +type ProductVariantDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The product variant the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +input ProductVariantFilterInput { + isPreorder: Boolean + metadata: [MetadataFilter!] + search: String + sku: [String!] + updatedAt: DateTimeRangeInput +} + +input ProductVariantInput { + """ + List of attributes specific to this variant. + """ + attributes: [AttributeValueInput!] + + """ + 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 + + """ + Stock keeping unit. + """ + sku: 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 +} + +type ProductVariantOutOfStock implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The product variant the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String + + """ + Look up a warehouse. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + 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 { + errors: [ProductError!]! + + """ + Product variant with ended preorder. + """ + productVariant: ProductVariant +} + +""" +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 { + errors: [ProductError!]! + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Reorder product variant attribute values. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantReorderAttributeValues { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Product variant from which attribute values are reordered. + """ + productVariant: ProductVariant +} + +""" +Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantSetDefault { + errors: [ProductError!]! + product: Product + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 { + bulkStockErrors: [BulkStockError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [BulkStockError!]! + + """ + Updated product variant. + """ + productVariant: ProductVariant +} + +""" +Delete stocks from product variant. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantStocksDelete { + errors: [StockError!]! + + """ + Updated product variant. + """ + productVariant: ProductVariant + stockErrors: [StockError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Update stocks for product variant. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type ProductVariantStocksUpdate { + bulkStockErrors: [BulkStockError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [BulkStockError!]! + + """ + Updated product variant. + """ + productVariant: ProductVariant +} + +type ProductVariantTranslatableContent implements Node { + """ + List of product variant attribute values that can be translated. + """ + attributeValues: [AttributeValueTranslatableContent!]! + id: ID! + name: String! + + """ + 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." + ) + + """ + Returns translated product variant fields for the given language code. + """ + translation( + """ + A language code to return the translation for product variant. + """ + languageCode: LanguageCodeEnum! + ): ProductVariantTranslation +} + +""" +Creates/updates translations for a product variant. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type ProductVariantTranslate { + errors: [TranslationError!]! + productVariant: ProductVariant + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 { + errors: [ProductError!]! + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productVariant: ProductVariant +} + +type ProductVariantUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The product variant the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String +} + +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 { + _entities(representations: [_Any]): [_Entity] + _service: _Service + + """ + Look up an address by ID. + """ + address( + """ + ID of an address. + """ + id: ID! + ): Address + + """ + Returns address validation rules. + """ + addressValidationRules( + """ + City or a town name. + """ + city: String + + """ + Sublocality like a district. + """ + cityArea: String + + """ + Designation of a region, province or state. + """ + countryArea: String + + """ + Two-letter ISO 3166-1 country code. + """ + countryCode: CountryCode! + ): AddressValidationData + + """ + 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 + + """ + 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 + + """ + 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( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for apps extensions. + """ + filter: AppExtensionFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): AppExtensionCountableConnection + + """ + List of the apps. + + Requires one of the following permissions: AUTHENTICATED_STAFF_USER, MANAGE_APPS. + """ + apps( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for apps. + """ + filter: AppFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort apps. + """ + sortBy: AppSortingInput + ): AppCountableConnection + + """ + List of all apps installations + + Requires one of the following permissions: MANAGE_APPS. + """ + appsInstallations: [AppInstallation!]! + + """ + Look up an attribute by ID. + """ + attribute( + """ + ID of the attribute. + """ + id: ID + + """ + Slug of the attribute. + """ + slug: String + ): Attribute + + """ + List of the shop's attributes. + """ + attributes( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for attributes. + """ + filter: AttributeFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sorting options for attributes. + """ + sortBy: AttributeSortingInput + ): AttributeCountableConnection + + """ + List of the shop's categories. + """ + categories( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for categories. + """ + filter: CategoryFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Filter categories by the nesting level in the category tree. + """ + level: Int + + """ + Sort categories. + """ + sortBy: CategorySortingInput + ): 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 channel by ID. + + Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + """ + channel( + """ + ID of the channel. + """ + id: ID + ): Channel + + """ + List of all channels. + + Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + """ + channels: [Channel!] + + """ + 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 checkout lines. + + Requires one of the following permissions: MANAGE_CHECKOUTS. + """ + checkoutLines( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): CheckoutLineCountableConnection + + """ + List of checkouts. + + Requires one of the following permissions: MANAGE_CHECKOUTS. + """ + checkouts( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for checkouts. + + Added in Saleor 3.1. + """ + filter: CheckoutFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort checkouts. + + Added in Saleor 3.1. + """ + sortBy: CheckoutSortingInput + ): CheckoutCountableConnection + + """ + Look up a collection by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. + """ + collection( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + ID of the collection. + """ + id: ID + + """ + Slug of the category + """ + slug: 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( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for collections. + """ + filter: CollectionFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort collections. + """ + sortBy: CollectionSortingInput + ): CollectionCountableConnection + + """ + List of the shop's customers. + + Requires one of the following permissions: MANAGE_ORDERS, MANAGE_USERS. + """ + customers( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for customers. + """ + filter: CustomerFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort customers. + """ + sortBy: UserSortingInput + ): UserCountableConnection + + """ + 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 after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): DigitalContentCountableConnection + + """ + List of draft orders. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + draftOrders( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for draft orders. + """ + filter: OrderDraftFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort draft orders. + """ + sortBy: OrderSortingInput + ): OrderCountableConnection + + """ + 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( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for export files. + """ + filter: ExportFileFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort export files. + """ + sortBy: ExportFileSortingInput + ): ExportFileCountableConnection + + """ + 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 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!]! + + """ + Gift card related settings from site settings. + + Requires one of the following permissions: MANAGE_GIFT_CARD. + """ + giftCardSettings: GiftCardSettings! + + """ + 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( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for gift card tags. + """ + filter: GiftCardTagFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): GiftCardTagCountableConnection + + """ + List of gift cards. + + Requires one of the following permissions: MANAGE_GIFT_CARD. + """ + giftCards( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + 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 first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + 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 + ): GiftCardCountableConnection + + """ + 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 after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): OrderEventCountableConnection + + """ + Return the currently authenticated user. + """ + me: User + + """ + 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 + + """ + Look up a menu item by ID. + """ + menuItem( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + ID of the menu item. + """ + id: ID! + ): MenuItem + + """ + List of the storefronts's menu items. + """ + menuItems( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for menu items. + """ + filter: MenuItemFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort menus items. + """ + sortBy: MenuItemSortingInput + ): MenuItemCountableConnection + + """ + List of the storefront's menus. + """ + menus( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for menus. + """ + filter: MenuFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort menus. + """ + sortBy: MenuSortingInput + ): MenuCountableConnection + + """ + Look up an order by ID. + """ + order( + """ + ID of an order. + """ + id: ID! + ): Order + + """ + 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.") + + """ + Order related settings from site settings. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orderSettings: OrderSettings + + """ + List of orders. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + orders( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for orders. + """ + filter: OrderFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort orders. + """ + sortBy: OrderSortingInput + ): OrderCountableConnection + + """ + Return the total sales amount from a specific period. + + Requires one of the following permissions: MANAGE_ORDERS. + """ + ordersTotal( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + A period of time. + """ + period: ReportingPeriod + ): TaxedMoney + + """ + Look up a page by ID or slug. + """ + page( + """ + ID of the page. + """ + id: ID + + """ + The slug of the page. + """ + slug: String + ): Page + + """ + Look up a page type by ID. + """ + pageType( + """ + ID of the page type. + """ + id: ID! + ): PageType + + """ + List of the page types. + """ + pageTypes( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for page types. + """ + filter: PageTypeFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort page types. + """ + sortBy: PageTypeSortingInput + ): PageTypeCountableConnection + + """ + List of the shop's pages. + """ + pages( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for pages. + """ + filter: PageFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort pages. + """ + sortBy: PageSortingInput + ): PageCountableConnection + + """ + 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( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for payments. + """ + filter: PaymentFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): PaymentCountableConnection + + """ + Look up permission group by ID. + + Requires one of the following permissions: MANAGE_STAFF. + """ + permissionGroup( + """ + ID of the group. + """ + id: ID! + ): Group + + """ + List of permission groups. + + Requires one of the following permissions: MANAGE_STAFF. + """ + permissionGroups( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for permission groups. + """ + filter: PermissionGroupFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort permission groups. + """ + sortBy: PermissionGroupSortingInput + ): GroupCountableConnection + + """ + 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( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for plugins. + """ + filter: PluginFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort plugins. + """ + sortBy: PluginSortingInput + ): PluginCountableConnection + + """ + Look up a product by ID. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. + """ + product( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + ID of the product. + """ + id: ID + + """ + Slug of the product. + """ + slug: String + ): Product + + """ + Look up a product type by ID. + """ + productType( + """ + ID of the product type. + """ + id: ID! + ): ProductType + + """ + List of the shop's product types. + """ + productTypes( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for product types. + """ + filter: ProductTypeFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort product types. + """ + sortBy: ProductTypeSortingInput + ): 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( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + ID of the product variant. + """ + id: ID + + """ + Sku of the product variant. + """ + sku: String + ): ProductVariant + + """ + List of product variants. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. + """ + productVariants( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for product variant. + """ + filter: ProductVariantFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Filter product variants by given IDs. + """ + ids: [ID!] + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort products variants. + """ + sortBy: ProductVariantSortingInput + ): ProductVariantCountableConnection + + """ + List of the shop's products. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. + """ + products( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for products. + """ + filter: ProductFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort products. + """ + sortBy: ProductOrder + ): ProductCountableConnection + + """ + List of top selling products. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + reportProductSales( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String! + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Span of time. + """ + period: ReportingPeriod! + ): ProductVariantCountableConnection + + """ + Look up a sale by ID. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + sale( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + ID of the sale. + """ + id: ID! + ): Sale + + """ + List of the shop's sales. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + sales( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for sales. + """ + filter: SaleFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Search sales by name, value or type. + + DEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead. + """ + query: String + + """ + Sort sales. + """ + sortBy: SaleSortingInput + ): SaleCountableConnection + + """ + Look up a shipping zone by ID. + + Requires one of the following permissions: MANAGE_SHIPPING. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + ID of the shipping zone. + """ + id: ID! + ): ShippingZone + + """ + List of the shop's shipping zones. + + Requires one of the following permissions: MANAGE_SHIPPING. + """ + shippingZones( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for shipping zones. + """ + filter: ShippingZoneFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ShippingZoneCountableConnection + + """ + Return information about the shop. + """ + shop: Shop! + + """ + List of the shop's staff users. + + Requires one of the following permissions: MANAGE_STAFF. + """ + staffUsers( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Filtering options for staff users. + """ + filter: StaffUserInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Sort staff users. + """ + sortBy: UserSortingInput + ): UserCountableConnection + + """ + 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( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + filter: StockFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): StockCountableConnection + + """ + List of all tax rates available from tax gateway. + """ + taxTypes: [TaxType!] + + """ + 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 + + """ + Returns a list of all translatable items of a given kind. + + Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ + translations( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Kind of objects to retrieve. + """ + kind: TranslatableKinds! + + """ + Return the last n elements from the list. + """ + last: Int + ): TranslatableItemConnection + + """ + Look up a user by ID or email address. + + Requires one of the following permissions: MANAGE_STAFF, MANAGE_USERS, MANAGE_ORDERS. + """ + user( + """ + Email address of the user. + """ + email: String + + """ + ID of the user. + """ + id: ID + ): User + + """ + Look up a voucher by ID. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + voucher( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + ID of the voucher. + """ + id: ID! + ): Voucher + + """ + List of the shop's vouchers. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + vouchers( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + Filtering options for vouchers. + """ + filter: VoucherFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Search vouchers by name or code. + + DEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead. + """ + query: String + + """ + Sort voucher. + """ + sortBy: VoucherSortingInput + ): VoucherCountableConnection + + """ + Look up a warehouse by ID. + + Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS, MANAGE_SHIPPING. + """ + warehouse( + """ + ID of an warehouse + """ + id: ID! + ): Warehouse + + """ + List of warehouses. + + Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS, MANAGE_SHIPPING. + """ + warehouses( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + filter: WarehouseFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + sortBy: WarehouseSortingInput + ): WarehouseCountableConnection + + """ + 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 +} + +""" +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 { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + JWT token, required to authenticate. + """ + token: String + + """ + A user instance. + """ + user: User +} + +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 { + THIS_MONTH + TODAY +} + +""" +Request email change of the logged in user. + +Requires one of the following permissions: AUTHENTICATED_USER. +""" +type RequestEmailChange { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + A user instance. + """ + user: User +} + +""" +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 { + """ + List of categories this sale applies to. + """ + categories( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): CategoryCountableConnection + + """ + List of channels available for the sale. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + channelListings: [SaleChannelListing!] + + """ + List of collections this sale applies to. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + collections( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): CollectionCountableConnection + created: DateTime! + + """ + Currency code for sale. + """ + currency: String + + """ + Sale value. + """ + discountValue: Float + endDate: DateTime + id: ID! + + """ + 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! + + """ + 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 products this sale applies to. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + products( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ProductCountableConnection + startDate: DateTime! + + """ + Returns translated sale fields for the given language code. + """ + translation( + """ + A language code to return the translation for sale. + """ + languageCode: LanguageCodeEnum! + ): SaleTranslation + type: SaleType! + updatedAt: DateTime! + + """ + 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 after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ProductVariantCountableConnection +} + +""" +Adds products, categories, collections to a voucher. + +Requires one of the following permissions: MANAGE_DISCOUNTS. +""" +type SaleAddCatalogues { + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [DiscountError!]! + + """ + Sale of which catalogue IDs will be modified. + """ + sale: Sale +} + +""" +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 { + channel: Channel! + currency: String! + discountValue: Float! + id: ID! +} + +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 { + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [DiscountError!]! + + """ + An updated sale instance. + """ + sale: Sale +} + +type SaleCountableConnection { + edges: [SaleCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type SaleCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Sale! +} + +""" +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 +} + +type SaleCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + 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.2. + + 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 + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +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 +} + +type SaleDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + 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.2. + + 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 + + """ + Saleor version that triggered the event. + """ + version: String +} + +input SaleFilterInput { + metadata: [MetadataFilter!] + saleType: DiscountValueTypeEnum + search: String + started: DateTimeRangeInput + status: [DiscountStatusEnum!] + updatedAt: DateTimeRangeInput +} + +input SaleInput { + """ + Categories related to the discount. + """ + categories: [ID!] + + """ + Collections related to the discount. + """ + collections: [ID!] + + """ + End date of the voucher in ISO 8601 format. + """ + endDate: DateTime + + """ + Voucher name. + """ + name: String + + """ + Products related to the discount. + """ + products: [ID!] + + """ + Start date of the voucher in ISO 8601 format. + """ + startDate: DateTime + + """ + Fixed or percentage. + """ + type: DiscountValueTypeEnum + + """ + Value of the voucher. + """ + value: PositiveDecimal + variants: [ID!] +} + +""" +Removes products, categories, collections from a sale. + +Requires one of the following permissions: MANAGE_DISCOUNTS. +""" +type SaleRemoveCatalogues { + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [DiscountError!]! + + """ + Sale of which catalogue IDs will be modified. + """ + sale: Sale +} + +enum SaleSortField { + """ + Sort sales by created at. + """ + CREATED_AT + + """ + Sort sales by end date. + """ + END_DATE + + """ + Sort sales by last modified at. + """ + LAST_MODIFIED_AT + + """ + Sort sales by name. + """ + NAME + + """ + Sort sales by start date. + """ + START_DATE + + """ + Sort sales by type. + """ + TYPE + + """ + Sort sales by value. + + This option requires a channel filter to work as the values can vary between channels. + """ + VALUE +} + +input SaleSortingInput { + """ + 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 + + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort sales by the selected field. + """ + field: SaleSortField! +} + +type SaleTranslatableContent implements Node { + id: ID! + name: String! + + """ + 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." + ) + + """ + Returns translated sale fields for the given language code. + """ + translation( + """ + A language code to return the translation for sale. + """ + languageCode: LanguageCodeEnum! + ): SaleTranslation +} + +""" +Creates/updates translations for a sale. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type SaleTranslate { + errors: [TranslationError!]! + sale: Sale + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 +} + +type SaleUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + 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.2. + + 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 + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +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 description. + """ + description: String + + """ + SEO title. + """ + title: String +} + +""" +Sets the user's password from the token sent by email using the RequestPasswordReset mutation. +""" +type SetPassword { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + CSRF token required to re-generate access token. + """ + csrfToken: String + errors: [AccountError!]! + + """ + JWT refresh token, required to re-generate access token. + """ + refreshToken: String + + """ + JWT token, required to authenticate. + """ + token: String + + """ + A user instance. + """ + user: User +} + +type ShippingError { + """ + List of channels IDs which causes the error. + """ + channels: [ID!] + + """ + The error code. + """ + code: ShippingErrorCode! + + """ + 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 warehouse IDs which causes the error. + """ + warehouses: [ID!] +} + +""" +An enumeration. +""" +enum ShippingErrorCode { + ALREADY_EXISTS + DUPLICATED_INPUT_ITEM + GRAPHQL_ERROR + INVALID + MAX_LESS_THAN_MIN + NOT_FOUND + REQUIRED + UNIQUE +} + +""" +Shipping methods that can be used as means of shipping for orders and checkouts. +""" +type ShippingMethod implements Node & ObjectWithMetadata { + """ + Describes if this shipping method is active and can be selected. + """ + active: Boolean! + + """ + Shipping method description. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + + """ + Unique ID of ShippingMethod available for Order. + """ + id: ID! + + """ + Maximum delivery days for this shipping method. + """ + maximumDeliveryDays: Int + + """ + Maximum order price for this shipping method. + """ + maximumOrderPrice: Money + + """ + Maximum order weight for this shipping method. + """ + maximumOrderWeight: Weight @deprecated(reason: "This field will be removed in Saleor 4.0.") + + """ + Message connected to this shipping method. + """ + message: String + + """ + 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 + + """ + Minimum delivery days for this shipping method. + """ + minimumDeliveryDays: Int + + """ + Minimal order price for this shipping method. + """ + minimumOrderPrice: Money + + """ + Minimum order weight for this shipping method. + """ + minimumOrderWeight: Weight @deprecated(reason: "This field will be removed in Saleor 4.0.") + + """ + Shipping method name. + """ + name: String! + + """ + The price of selected shipping method. + """ + price: Money! + + """ + 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 + + """ + Returns translated shipping method fields for the given language code. + """ + translation( + """ + A language code to return the translation for shipping method. + """ + languageCode: LanguageCodeEnum! + ): ShippingMethodTranslation + + """ + Type of the shipping method. + """ + type: ShippingMethodTypeEnum @deprecated(reason: "This field will be removed in Saleor 4.0.") +} + +""" +Represents shipping method channel listing. +""" +type ShippingMethodChannelListing implements Node { + channel: Channel! + id: ID! + maximumOrderPrice: Money + minimumOrderPrice: Money + price: Money +} + +input ShippingMethodChannelListingAddInput { + """ + ID of a channel. + """ + channelId: ID! + + """ + Maximum order price to use this shipping method. + """ + maximumOrderPrice: PositiveDecimal + + """ + Minimum order price to use this shipping method. + """ + minimumOrderPrice: PositiveDecimal + + """ + Shipping price of the shipping method in this channel. + """ + price: 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 { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + An updated shipping method instance. + """ + shippingMethod: ShippingMethodType +} + +""" +Represents shipping method postal code rule. +""" +type ShippingMethodPostalCodeRule implements Node { + """ + End address range. + """ + end: String + + """ + The ID of the object. + """ + id: ID! + + """ + Inclusion type of the postal code rule. + """ + inclusionType: PostalCodeRuleInclusionTypeEnum + + """ + Start address range. + """ + start: String +} + +type ShippingMethodTranslatableContent implements Node { + """ + Description of the shipping method. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + id: ID! + name: String! + + """ + 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." + ) + + """ + Returns translated shipping method fields for the given language code. + """ + translation( + """ + A language code to return the translation for shipping method. + """ + languageCode: LanguageCodeEnum! + ): ShippingMethodTranslation +} + +type ShippingMethodTranslation implements Node { + """ + Translated description of the shipping method. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String +} + +""" +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 { + """ + List of channels available for the method. + + Requires one of the following permissions: MANAGE_SHIPPING. + """ + channelListings: [ShippingMethodChannelListing!] + + """ + Shipping method description. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + + """ + 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 after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ProductCountableConnection + + """ + Shipping method ID. + """ + id: ID! + + """ + Maximum number of days for delivery. + """ + maximumDeliveryDays: Int + + """ + The price of the cheapest variant (including discounts). + """ + maximumOrderPrice: Money + + """ + Maximum order weight to use this shipping method. + """ + maximumOrderWeight: Weight + + """ + 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 + + """ + Minimal number of days for delivery. + """ + minimumDeliveryDays: Int + + """ + The price of the cheapest variant (including discounts). + """ + minimumOrderPrice: Money + + """ + Minimum order weight to use this shipping method. + """ + minimumOrderWeight: Weight + + """ + Shipping method name. + """ + name: String! + + """ + Postal code ranges rule of exclusion or inclusion of the shipping method. + """ + postalCodeRules: [ShippingMethodPostalCodeRule!] + + """ + 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 + + """ + Returns translated shipping method fields for the given language code. + """ + translation( + """ + A language code to return the translation for shipping method. + """ + languageCode: LanguageCodeEnum! + ): ShippingMethodTranslation + + """ + Type of the shipping method. + """ + type: ShippingMethodTypeEnum +} + +""" +An enumeration. +""" +enum ShippingMethodTypeEnum { + PRICE + WEIGHT +} + +input ShippingPostalCodeRulesCreateInputRange { + """ + End range of the postal code. + """ + end: String + + """ + Start range of the postal code. + """ + start: String! +} + +""" +Deletes shipping prices. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingPriceBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Creates a new shipping price. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingPriceCreate { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingMethod: ShippingMethodType + + """ + A shipping zone to which the shipping method belongs. + """ + shippingZone: ShippingZone +} + +type ShippingPriceCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The shipping method the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethod( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingMethodType + + """ + The shipping zone the shipping method belongs to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a shipping price. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingPriceDelete { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + A shipping method to delete. + """ + shippingMethod: ShippingMethodType + + """ + A shipping zone to which the shipping method belongs. + """ + shippingZone: ShippingZone +} + +type ShippingPriceDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The shipping method the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethod( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingMethodType + + """ + The shipping zone the shipping method belongs to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Exclude products from shipping price. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingPriceExcludeProducts { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + A shipping method with new list of excluded products. + """ + shippingMethod: ShippingMethodType +} + +input ShippingPriceExcludeProductsInput { + """ + List of products which will be excluded. + """ + products: [ID!]! +} + +input ShippingPriceInput { + """ + Postal code rules to add. + """ + addPostalCodeRules: [ShippingPostalCodeRulesCreateInputRange!] + + """ + Postal code rules to delete. + """ + deletePostalCodeRules: [ID!] + + """ + Shipping method description. + """ + description: JSONString + + """ + Inclusion type for currently assigned postal code rules. + """ + inclusionType: PostalCodeRuleInclusionTypeEnum + + """ + Maximum number of days for delivery. + """ + maximumDeliveryDays: Int + + """ + Maximum order weight to use this shipping method. + """ + maximumOrderWeight: WeightScalar + + """ + Minimal number of days for delivery. + """ + minimumDeliveryDays: Int + + """ + Minimum order weight to use this shipping method. + """ + minimumOrderWeight: WeightScalar + + """ + Name of the shipping method. + """ + name: String + + """ + Shipping zone this method belongs to. + """ + shippingZone: ID + + """ + Shipping type: price or weight based. + """ + type: ShippingMethodTypeEnum +} + +""" +Remove product from excluded list for shipping price. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingPriceRemoveProductFromExclude { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + A shipping method with new list of excluded products. + """ + shippingMethod: ShippingMethodType +} + +""" +Creates/updates translations for a shipping method. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type ShippingPriceTranslate { + errors: [TranslationError!]! + shippingMethod: ShippingMethodType + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input ShippingPriceTranslationInput { + """ + Translated shipping method description. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + name: String +} + +""" +Updates a new shipping price. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingPriceUpdate { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingMethod: ShippingMethodType + + """ + A shipping zone to which the shipping method belongs. + """ + shippingZone: ShippingZone +} + +type ShippingPriceUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The shipping method the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethod( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingMethodType + + """ + The shipping zone the shipping method belongs to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +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 { + """ + List of channels for shipping zone. + """ + channels: [Channel!]! + + """ + List of countries available for the method. + """ + countries: [CountryDisplay!]! + default: Boolean! + + """ + Description of a shipping zone. + """ + description: String + id: ID! + + """ + 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! + + """ + Lowest and highest prices for the shipping. + """ + priceRange: MoneyRange + + """ + 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 shipping methods available for orders shipped to countries within this shipping zone. + """ + shippingMethods: [ShippingMethodType!] + + """ + List of warehouses for shipping zone. + """ + warehouses: [Warehouse!]! +} + +""" +Deletes shipping zones. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingZoneBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type ShippingZoneCountableConnection { + edges: [ShippingZoneCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type ShippingZoneCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: ShippingZone! +} + +""" +Creates a new shipping zone. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingZoneCreate { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingZone: ShippingZone +} + +input ShippingZoneCreateInput { + """ + List of channels to assign to the shipping zone. + """ + addChannels: [ID!] + + """ + List of warehouses to assign to a shipping zone + """ + addWarehouses: [ID!] + + """ + List of countries in this shipping zone. + """ + countries: [String!] + + """ + Default shipping zone will be used for countries not covered by other zones. + """ + default: Boolean + + """ + Description of the shipping zone. + """ + description: String + + """ + Shipping zone's name. Visible only to the staff. + """ + name: String +} + +type ShippingZoneCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The shipping zone the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Deletes a shipping zone. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingZoneDelete { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingZone: ShippingZone +} + +type ShippingZoneDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The shipping zone the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone + + """ + Saleor version that triggered the event. + """ + version: String +} + +input ShippingZoneFilterInput { + channels: [ID!] + search: String +} + +""" +Updates a new shipping zone. + +Requires one of the following permissions: MANAGE_SHIPPING. +""" +type ShippingZoneUpdate { + errors: [ShippingError!]! + shippingErrors: [ShippingError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingZone: ShippingZone +} + +input ShippingZoneUpdateInput { + """ + List of channels to assign to the shipping zone. + """ + addChannels: [ID!] + + """ + List of warehouses to assign to a shipping zone + """ + addWarehouses: [ID!] + + """ + List of countries in this shipping zone. + """ + countries: [String!] + + """ + Default shipping zone will be used for countries not covered by other zones. + """ + default: Boolean + + """ + Description of the shipping zone. + """ + description: String + + """ + Shipping zone's name. Visible only to the staff. + """ + name: String + + """ + List of channels to unassign from the shipping zone. + """ + removeChannels: [ID!] + + """ + List of warehouses to unassign from a shipping zone + """ + removeWarehouses: [ID!] +} + +type ShippingZoneUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The shipping zone the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Represents a shop resource containing general shop data and configuration. +""" +type Shop { + """ + Enable automatic fulfillment for all digital products. + + Requires one of the following permissions: MANAGE_SETTINGS. + """ + automaticFulfillmentDigitalProducts: Boolean + + """ + List of available external authentications. + """ + availableExternalAuthentications: [ExternalAuthentication!]! + + """ + List of available payment gateways. + """ + availablePaymentGateways( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + + """ + A currency for which gateways will be returned. + + DEPRECATED: this field will be removed in Saleor 4.0. Use `channel` argument instead. + """ + currency: String + ): [PaymentGateway!]! + + """ + Shipping methods that are available for the shop. + """ + availableShippingMethods( + """ + Address for which available shipping methods should be returned. + """ + address: AddressInput + + """ + Slug of a channel for which the data should be returned. + """ + channel: String! + ): [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!]! + + """ + Charge taxes on shipping. + """ + chargeTaxesOnShipping: Boolean! + + """ + Company address. + """ + companyAddress: Address + + """ + List of countries available in the shop. + """ + countries( + """ + Filtering options for countries + """ + filter: CountryFilterInput + + """ + A language code to return the translation for. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ + languageCode: LanguageCodeEnum + ): [CountryDisplay!]! + + """ + URL of a view where customers can set their password. + """ + customerSetPasswordUrl: String + + """ + Shop's default country. + """ + defaultCountry: CountryDisplay + + """ + 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 + + """ + Default shop's email sender's address. + + Requires one of the following permissions: MANAGE_SETTINGS. + """ + defaultMailSenderAddress: String + + """ + Default shop's email sender's name. + + Requires one of the following permissions: MANAGE_SETTINGS. + """ + defaultMailSenderName: String + + """ + Default weight unit. + """ + defaultWeightUnit: WeightUnitsEnum + + """ + Shop's description. + """ + description: String + + """ + Display prices with tax in store. + """ + displayGrossPrices: Boolean! + + """ + Shop's domain data. + """ + domain: Domain! + + """ + Allow to approve fulfillments which are unpaid. + + Added in Saleor 3.1. + """ + fulfillmentAllowUnpaid: Boolean! + + """ + Automatically approve all new fulfillments. + + Added in Saleor 3.1. + """ + fulfillmentAutoApprove: Boolean! + + """ + Header text. + """ + headerText: String + + """ + Include taxes in prices. + """ + includeTaxesInPrices: Boolean! + + """ + List of the shops's supported languages. + """ + languages: [LanguageDisplay!]! + + """ + 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 + + """ + Resource limitations and current usage if any set for a shop + + Requires one of the following permissions: AUTHENTICATED_STAFF_USER. + """ + limits: LimitInfo! + + """ + Shop's name. + """ + name: String! + + """ + List of available permissions. + """ + permissions: [Permission!]! + + """ + List of possible phone prefixes. + """ + phonePrefixes: [String!]! + + """ + 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 + + """ + List of staff notification recipients. + + Requires one of the following permissions: MANAGE_SETTINGS. + """ + staffNotificationRecipients: [StaffNotificationRecipient!] + + """ + Enable inventory tracking. + """ + trackInventoryByDefault: Boolean + + """ + Returns translated shop fields for the given language code. + """ + translation( + """ + A language code to return the translation for shop. + """ + languageCode: LanguageCodeEnum! + ): ShopTranslation + + """ + Saleor API version. + + Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. + """ + version: String! +} + +""" +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 { + errors: [ShopError!]! + + """ + Updated shop. + """ + shop: Shop + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Updates site domain of the shop. + +Requires one of the following permissions: MANAGE_SETTINGS. +""" +type ShopDomainUpdate { + errors: [ShopError!]! + + """ + Updated shop. + """ + shop: Shop + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type ShopError { + """ + The error code. + """ + code: ShopErrorCode! + + """ + 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 +} + +""" +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 { + errors: [ShopError!]! + + """ + Updated shop. + """ + shop: Shop + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input ShopSettingsInput { + """ + Enable automatic fulfillment for all digital products. + """ + automaticFulfillmentDigitalProducts: Boolean + + """ + Charge taxes on shipping. + """ + chargeTaxesOnShipping: Boolean + + """ + URL of a view where customers can set their password. + """ + customerSetPasswordUrl: String + + """ + 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 address. + """ + defaultMailSenderAddress: String + + """ + Default email sender's name. + """ + defaultMailSenderName: String + + """ + Default weight unit. + """ + defaultWeightUnit: WeightUnitsEnum + + """ + SEO description. + """ + description: String + + """ + Display prices with tax in store. + """ + displayGrossPrices: Boolean + + """ + Enable ability to approve fulfillments which are unpaid. + + Added in Saleor 3.1. + """ + fulfillmentAllowUnpaid: Boolean + + """ + Enable automatic approval of all new fulfillments. + + Added in Saleor 3.1. + """ + fulfillmentAutoApprove: Boolean + + """ + Header text. + """ + headerText: String + + """ + Include taxes in prices. + """ + includeTaxesInPrices: Boolean + + """ + 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 + + """ + 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 + + """ + Enable inventory tracking. + """ + trackInventoryByDefault: Boolean +} + +""" +Creates/updates translations for shop settings. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type ShopSettingsTranslate { + errors: [TranslationError!]! + + """ + Updated shop settings. + """ + shop: Shop + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input ShopSettingsTranslationInput { + description: String + headerText: String +} + +""" +Updates shop settings. + +Requires one of the following permissions: MANAGE_SETTINGS. +""" +type ShopSettingsUpdate { + errors: [ShopError!]! + + """ + Updated shop. + """ + shop: Shop + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type ShopTranslation implements Node { + description: String! + headerText: String! + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! +} + +input SiteDomainInput { + """ + Domain name for shop. + """ + domain: String + + """ + Shop site name. + """ + name: String +} + +""" +Deletes staff users. + +Requires one of the following permissions: MANAGE_STAFF. +""" +type StaffBulkDelete { + """ + Returns how many objects were affected. + """ + count: Int! + errors: [StaffError!]! + staffErrors: [StaffError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Creates a new staff user. + +Requires one of the following permissions: MANAGE_STAFF. +""" +type StaffCreate { + errors: [StaffError!]! + staffErrors: [StaffError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + user: User +} + +input StaffCreateInput { + """ + List of permission group IDs to which user should be assigned. + """ + addGroups: [ID!] + + """ + The unique email address of the user. + """ + email: String + + """ + Given name. + """ + firstName: String + + """ + User account is active. + """ + isActive: Boolean + + """ + Family name. + """ + lastName: String + + """ + A note about the user. + """ + note: String + + """ + URL of a view where users should be redirected to set the password. URL in RFC 1808 format. + """ + redirectUrl: String +} + +""" +Deletes a staff user. + +Requires one of the following permissions: MANAGE_STAFF. +""" +type StaffDelete { + errors: [StaffError!]! + staffErrors: [StaffError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + user: User +} + +type StaffError { + """ + A type of address that causes the error. + """ + addressType: AddressTypeEnum + + """ + The error code. + """ + code: AccountErrorCode! + + """ + 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 + + """ + List of permission group IDs which cause the error. + """ + groups: [ID!] + + """ + The error message. + """ + message: String + + """ + List of permissions which causes the error. + """ + permissions: [PermissionEnum!] + + """ + 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 { + """ + Determines if a notification active. + """ + active: Boolean + + """ + Returns email address of a user subscribed to email notifications. + """ + email: String + id: ID! + + """ + Returns a user subscribed to email notifications. + """ + user: User +} + +""" +Creates a new staff notification recipient. + +Requires one of the following permissions: MANAGE_SETTINGS. +""" +type StaffNotificationRecipientCreate { + errors: [ShopError!]! + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + staffNotificationRecipient: StaffNotificationRecipient +} + +""" +Delete staff notification recipient. + +Requires one of the following permissions: MANAGE_SETTINGS. +""" +type StaffNotificationRecipientDelete { + errors: [ShopError!]! + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + staffNotificationRecipient: StaffNotificationRecipient +} + +input StaffNotificationRecipientInput { + """ + Determines if a notification active. + """ + active: Boolean + + """ + Email address of a user subscribed to email notifications. + """ + email: String + + """ + The ID of the user subscribed to email notifications.. + """ + user: ID +} + +""" +Updates a staff notification recipient. + +Requires one of the following permissions: MANAGE_SETTINGS. +""" +type StaffNotificationRecipientUpdate { + errors: [ShopError!]! + shopErrors: [ShopError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + staffNotificationRecipient: StaffNotificationRecipient +} + +""" +Updates an existing staff user. + +Requires one of the following permissions: MANAGE_STAFF. +""" +type StaffUpdate { + errors: [StaffError!]! + staffErrors: [StaffError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + user: User +} + +input StaffUpdateInput { + """ + List of permission group IDs to which user should be assigned. + """ + addGroups: [ID!] + + """ + The unique email address of the user. + """ + email: String + + """ + Given name. + """ + firstName: String + + """ + User account is active. + """ + isActive: Boolean + + """ + Family name. + """ + lastName: String + + """ + A note about the user. + """ + note: String + + """ + List of permission group IDs from which user should be unassigned. + """ + removeGroups: [ID!] +} + +input StaffUserInput { + ids: [ID!] + search: String + status: StaffMemberStatus +} + +""" +Represents stock. +""" +type Stock implements Node { + id: ID! + 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! + warehouse: Warehouse! +} + +enum StockAvailability { + IN_STOCK + OUT_OF_STOCK +} + +type StockCountableConnection { + edges: [StockCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type StockCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Stock! +} + +type StockError { + """ + The error code. + """ + code: StockErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum StockErrorCode { + ALREADY_EXISTS + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +input StockFilterInput { + """ + """ + quantity: Float + search: String +} + +input StockInput { + """ + Quantity of items available for sell. + """ + quantity: Int! + + """ + Warehouse in which stock is located. + """ + warehouse: ID! +} + +""" +Enum representing the type of a payment storage in a gateway. +""" +enum StorePaymentMethodEnum { + """ + Storage is disabled. The payment is not stored. + """ + NONE + + """ + Off session storage type. The payment is stored to be reused even if the customer is absent. + """ + OFF_SESSION + + """ + On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. + """ + ON_SESSION +} + +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 +} + +""" +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 +} + +""" +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 +} + +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 + MONTH + WEEK + YEAR +} + +""" +An object representing a single payment. +""" +type Transaction implements Node { + """ + Total amount of the transaction. + """ + amount: Money + created: DateTime! + error: String + gatewayResponse: JSONString! + id: ID! + isSuccess: Boolean! + kind: TransactionKind! + payment: Payment! + token: String! +} + +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. +""" +enum TransactionActionEnum { + CHARGE + REFUND + VOID +} + +type TransactionActionRequest implements Event { + """ + 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. + """ + action: TransactionAction! + + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + 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. + """ + transaction: TransactionItem + + """ + Saleor version that triggered the event. + """ + version: String +} + +""" +Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionCreate { + errors: [TransactionCreateError!]! + transaction: TransactionItem +} + +type TransactionCreateError { + """ + The error code. + """ + code: TransactionCreateErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum TransactionCreateErrorCode { + GRAPHQL_ERROR + INCORRECT_CURRENCY + INVALID + METADATA_KEY_REQUIRED + NOT_FOUND +} + +input TransactionCreateInput { + """ + 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. + """ + amountVoided: MoneyInput + + """ + List of all possible actions for the transaction + """ + availableActions: [TransactionActionEnum!] + + """ + Payment public metadata. + """ + metadata: [MetadataInput!] + + """ + Payment private metadata. + """ + privateMetadata: [MetadataInput!] + + """ + Reference of the transaction. + """ + reference: String + + """ + Status of the transaction. + """ + status: String! + + """ + Payment type used for this transaction. + """ + type: String! +} + +""" +Represents transaction's event. +""" +type TransactionEvent implements Node { + createdAt: DateTime! + + """ + The ID of the object. + """ + id: ID! + + """ + Name of the transaction's event. + """ + name: String + + """ + Reference of transaction's event. + """ + reference: String! + + """ + Status of transaction's event. + """ + status: TransactionStatus! +} + +input TransactionEventInput { + """ + Name of the transaction. + """ + name: String + + """ + Reference of the transaction. + """ + reference: String + + """ + Current status of the payment transaction. + """ + status: TransactionStatus! +} + +""" +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 { + """ + 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 charged for this payment. + """ + chargedAmount: Money! + createdAt: DateTime! + + """ + List of all transaction's events. + """ + events: [TransactionEvent!]! + + """ + The ID of the object. + """ + id: ID! + + """ + 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 + modifiedAt: DateTime! + + """ + 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 + + """ + Reference of transaction. + """ + reference: String! + + """ + Total amount refunded for this payment. + """ + refundedAmount: Money! + + """ + Status of transaction. + """ + status: String! + + """ + Type of transaction. + """ + type: String! + + """ + Total amount voided for this payment. + """ + voidedAmount: Money! +} + +""" +An enumeration. +""" +enum TransactionKind { + ACTION_TO_CONFIRM + AUTH + CANCEL + CAPTURE + CONFIRM + EXTERNAL + PENDING + REFUND + REFUND_ONGOING + VOID +} + +""" +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, MANAGE_ORDERS. +""" +type TransactionRequestAction { + errors: [TransactionRequestActionError!]! + transaction: TransactionItem +} + +type TransactionRequestActionError { + """ + The error code. + """ + code: TransactionRequestActionErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum TransactionRequestActionErrorCode { + GRAPHQL_ERROR + INVALID + MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK + NOT_FOUND +} + +""" +An enumeration. +""" +enum TransactionStatus { + FAILURE + PENDING + SUCCESS +} + +""" +Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionUpdate { + errors: [TransactionUpdateError!]! + transaction: TransactionItem +} + +type TransactionUpdateError { + """ + The error code. + """ + code: TransactionUpdateErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum TransactionUpdateErrorCode { + GRAPHQL_ERROR + INCORRECT_CURRENCY + INVALID + METADATA_KEY_REQUIRED + NOT_FOUND +} + +input TransactionUpdateInput { + """ + 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. + """ + amountVoided: MoneyInput + + """ + List of all possible actions for the transaction + """ + availableActions: [TransactionActionEnum!] + + """ + Payment public metadata. + """ + metadata: [MetadataInput!] + + """ + Payment private metadata. + """ + privateMetadata: [MetadataInput!] + + """ + Reference of the transaction. + """ + reference: String + + """ + Status of the transaction. + """ + status: String + + """ + Payment type used for this transaction. + """ + type: String +} + +union TranslatableItem = + AttributeTranslatableContent + | AttributeValueTranslatableContent + | CategoryTranslatableContent + | CollectionTranslatableContent + | MenuItemTranslatableContent + | PageTranslatableContent + | ProductTranslatableContent + | ProductVariantTranslatableContent + | SaleTranslatableContent + | ShippingMethodTranslatableContent + | VoucherTranslatableContent + +type TranslatableItemConnection { + edges: [TranslatableItemEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type TranslatableItemEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: TranslatableItem! +} + +enum TranslatableKinds { + ATTRIBUTE + ATTRIBUTE_VALUE + CATEGORY + COLLECTION + MENU_ITEM + PAGE + PRODUCT + SALE + SHIPPING_METHOD + VARIANT + VOUCHER +} + +type TranslationCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The translation the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + translation: TranslationTypes + + """ + Saleor version that triggered the event. + """ + version: String +} + +type TranslationError { + """ + The error code. + """ + code: TranslationErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum TranslationErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED +} + +input TranslationInput { + """ + Translated description. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString + name: String + seoDescription: String + seoTitle: String +} + +union TranslationTypes = + AttributeTranslation + | AttributeValueTranslation + | CategoryTranslation + | CollectionTranslation + | MenuItemTranslation + | PageTranslation + | ProductTranslation + | ProductVariantTranslation + | SaleTranslation + | ShippingMethodTranslation + | VoucherTranslation + +type TranslationUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + The translation the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + translation: TranslationTypes + + """ + Saleor version that triggered the event. + """ + version: String +} + +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 { + errors: [MetadataError!]! + item: ObjectWithMetadata + metadataErrors: [MetadataError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + errors: [MetadataError!]! + item: ObjectWithMetadata + metadataErrors: [MetadataError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +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 { + """ + The error code. + """ + code: UploadErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum UploadErrorCode { + GRAPHQL_ERROR +} + +""" +Represents user data. +""" +type User implements Node & ObjectWithMetadata { + """ + List of all user's addresses. + """ + addresses: [Address!] + avatar( + """ + Size of the avatar. + """ + size: Int + ): Image + + """ + 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 ID's assigned to this user. + """ + checkoutIds( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): [ID!] + + """ + 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.") + dateJoined: DateTime! + defaultBillingAddress: Address + defaultShippingAddress: Address + + """ + List of user's permission groups which user can manage. + """ + editableGroups: [Group!] + email: String! + + """ + List of events associated with the user. + + Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. + """ + events: [CustomerEvent!] + firstName: String! + + """ + List of the user gift cards. + """ + giftCards( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): GiftCardCountableConnection + id: ID! + isActive: Boolean! + isStaff: Boolean! + + """ + User language code. + """ + languageCode: LanguageCodeEnum! + lastLogin: DateTime + lastName: String! + + """ + 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 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 after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: 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 permission groups. + """ + permissionGroups: [Group!] + + """ + 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 stored payment sources. + """ + storedPaymentSources( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): [PaymentSource!] + updatedAt: DateTime! + + """ + List of user's permissions. + """ + userPermissions: [UserPermission!] +} + +""" +Deletes a user avatar. Only for staff members. + +Requires one of the following permissions: AUTHENTICATED_STAFF_USER. +""" +type UserAvatarDelete { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + An updated user instance. + """ + user: User +} + +""" +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 { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + An updated user instance. + """ + user: User +} + +""" +Activate or deactivate users. + +Requires one of the following permissions: MANAGE_USERS. +""" +type UserBulkSetActive { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + + """ + Returns how many objects were affected. + """ + count: Int! + errors: [AccountError!]! +} + +type UserCountableConnection { + edges: [UserCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type UserCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: User! +} + +input UserCreateInput { + """ + Slug of a channel which will be used for notify user. Optional when only one channel exists. + """ + channel: String + + """ + Billing address of the customer. + """ + defaultBillingAddress: AddressInput + + """ + Shipping address of the customer. + """ + defaultShippingAddress: AddressInput + + """ + The unique email address of the user. + """ + email: String + + """ + Given name. + """ + firstName: String + + """ + User account is active. + """ + isActive: Boolean + + """ + User language code. + """ + languageCode: LanguageCodeEnum + + """ + Family name. + """ + lastName: String + + """ + A note about the user. + """ + note: String + + """ + URL of a view where users should be redirected to set the password. URL in RFC 1808 format. + """ + redirectUrl: String +} + +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 created at. + """ + CREATED_AT + + """ + Sort users by email. + """ + EMAIL + + """ + Sort users by first name. + """ + FIRST_NAME + + """ + Sort users by last modified at. + """ + LAST_MODIFIED_AT + + """ + Sort users by last name. + """ + LAST_NAME + + """ + Sort users by order count. + """ + ORDER_COUNT +} + +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! + + """ + Country's VAT rate exceptions for specific types of goods. + """ + reducedRates: [ReducedRate!]! + + """ + Standard VAT rate in percent. + """ + standardRate: Float +} + +enum VariantAttributeScope { + ALL + NOT_VARIANT_SELECTION + VARIANT_SELECTION +} + +""" +Assign an media to a product variant. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type VariantMediaAssign { + errors: [ProductError!]! + media: ProductMedia + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productVariant: ProductVariant +} + +""" +Unassign an media from a product variant. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type VariantMediaUnassign { + errors: [ProductError!]! + media: ProductMedia + productErrors: [ProductError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productVariant: ProductVariant +} + +""" +Represents availability of a variant in the storefront. +""" +type VariantPricingInfo { + """ + The discount amount if in sale (null otherwise). + """ + discount: TaxedMoney + + """ + The discount amount in the local currency. + """ + discountLocalCurrency: TaxedMoney + + """ + Whether it is in sale or not. + """ + onSale: Boolean + + """ + The price, with any discount subtracted. + """ + price: TaxedMoney + + """ + The discounted price in the local currency. + """ + priceLocalCurrency: TaxedMoney + + """ + The price without any discount. + """ + priceUndiscounted: TaxedMoney +} + +""" +Verify JWT token. +""" +type VerifyToken { + accountErrors: [AccountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [AccountError!]! + + """ + Determine if token is valid or not. + """ + isValid: Boolean! + + """ + JWT payload. + """ + payload: GenericScalar + + """ + User assigned to token. + """ + user: User +} + +""" +An enumeration. +""" +enum VolumeUnitsEnum { + ACRE_FT + ACRE_IN + CUBIC_CENTIMETER + CUBIC_DECIMETER + CUBIC_FOOT + CUBIC_INCH + CUBIC_METER + CUBIC_MILLIMETER + CUBIC_YARD + FL_OZ + LITER + PINT + QT +} + +""" +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 { + applyOncePerCustomer: Boolean! + applyOncePerOrder: Boolean! + + """ + List of categories this voucher applies to. + """ + categories( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): CategoryCountableConnection + + """ + List of availability in channels for the voucher. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + channelListings: [VoucherChannelListing!] + code: String! + + """ + List of collections this voucher applies to. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + collections( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): CollectionCountableConnection + + """ + List of countries available for the shipping voucher. + """ + countries: [CountryDisplay!] + + """ + Currency code for voucher. + """ + currency: String + + """ + Voucher value. + """ + discountValue: Float + + """ + Determines a type of discount for voucher - value or percentage + """ + discountValueType: DiscountValueTypeEnum! + endDate: DateTime + id: ID! + + """ + 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 + minCheckoutItemsQuantity: Int + + """ + Minimum order value to apply voucher. + """ + minSpent: Money + name: String + onlyForStaff: Boolean! + + """ + 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 products this voucher applies to. + + Requires one of the following permissions: MANAGE_DISCOUNTS. + """ + products( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ProductCountableConnection + startDate: DateTime! + + """ + 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 voucher. + """ + type: VoucherTypeEnum! + usageLimit: Int + used: Int! + + """ + 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 after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ProductVariantCountableConnection +} + +""" +Adds products, categories, collections to a voucher. + +Requires one of the following permissions: MANAGE_DISCOUNTS. +""" +type VoucherAddCatalogues { + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [DiscountError!]! + + """ + Voucher of which catalogue IDs will be modified. + """ + voucher: Voucher +} + +""" +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 { + channel: Channel! + currency: String! + discountValue: Float! + id: ID! + 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 { + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [DiscountError!]! + + """ + An updated voucher instance. + """ + voucher: Voucher +} + +type VoucherCountableConnection { + edges: [VoucherCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type VoucherCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Voucher! +} + +""" +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 +} + +type VoucherCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String + + """ + The voucher the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + 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 +} + +type VoucherDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String + + """ + The voucher the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + voucher( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Voucher +} + +enum VoucherDiscountType { + FIXED + PERCENTAGE + SHIPPING +} + +input VoucherFilterInput { + discountType: [VoucherDiscountType!] + metadata: [MetadataFilter!] + search: String + started: DateTimeRangeInput + status: [DiscountStatusEnum!] + timesUsed: IntRangeInput +} + +input VoucherInput { + """ + Voucher should be applied once per customer. + """ + applyOncePerCustomer: Boolean + + """ + Voucher should be applied to the cheapest item or entire order. + """ + applyOncePerOrder: Boolean + + """ + Categories discounted by the voucher. + """ + categories: [ID!] + + """ + Code to use the voucher. + """ + code: String + + """ + Collections discounted by the voucher. + """ + collections: [ID!] + + """ + Country codes that can be used with the shipping voucher. + """ + countries: [String!] + + """ + Choices: fixed or percentage. + """ + discountValueType: DiscountValueTypeEnum + + """ + End date of the voucher in ISO 8601 format. + """ + endDate: DateTime + + """ + Minimal quantity of checkout items required to apply the voucher. + """ + minCheckoutItemsQuantity: Int + + """ + Voucher name. + """ + name: String + + """ + Voucher can be used only by staff user. + """ + onlyForStaff: Boolean + + """ + Products discounted by the voucher. + """ + products: [ID!] + + """ + Start date of the voucher in ISO 8601 format. + """ + startDate: DateTime + + """ + Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. + """ + type: VoucherTypeEnum + + """ + Limit number of times this voucher can be used in total. + """ + usageLimit: Int + + """ + Variants discounted by the voucher. + + Added in Saleor 3.1. + """ + variants: [ID!] +} + +""" +Removes products, categories, collections from a voucher. + +Requires one of the following permissions: MANAGE_DISCOUNTS. +""" +type VoucherRemoveCatalogues { + discountErrors: [DiscountError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + errors: [DiscountError!]! + + """ + Voucher of which catalogue IDs will be modified. + """ + voucher: Voucher +} + +enum VoucherSortField { + """ + Sort vouchers by code. + """ + CODE + + """ + Sort vouchers by end date. + """ + END_DATE + + """ + Sort vouchers by minimum spent amount. + + This option requires a channel filter to work as the values can vary between channels. + """ + MINIMUM_SPENT_AMOUNT + + """ + Sort vouchers by start date. + """ + START_DATE + + """ + Sort vouchers by type. + """ + TYPE + + """ + Sort vouchers by usage limit. + """ + USAGE_LIMIT + + """ + Sort vouchers by value. + + This option requires a channel filter to work as the values can vary between channels. + """ + VALUE +} + +input VoucherSortingInput { + """ + 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 + + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + 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 { + errors: [TranslationError!]! + translationErrors: [TranslationError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + voucher: Voucher +} + +type VoucherTranslation implements Node { + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String +} + +enum VoucherTypeEnum { + ENTIRE_ORDER + SHIPPING + 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 +} + +type VoucherUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String + + """ + The voucher the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + voucher( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Voucher +} + +""" +Represents warehouse. +""" +type Warehouse implements Node & ObjectWithMetadata { + address: Address! + + """ + 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! + + """ + Warehouse company name. + """ + companyName: String! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead." + ) + email: String! + id: ID! + isPrivate: Boolean! + + """ + 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! + + """ + 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 + shippingZones( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + ): ShippingZoneCountableConnection! + slug: String! +} + +""" +An enumeration. +""" +enum WarehouseClickAndCollectOptionEnum { + ALL + DISABLED + LOCAL +} + +type WarehouseCountableConnection { + edges: [WarehouseCountableEdge!]! + + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +type WarehouseCountableEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Warehouse! +} + +""" +Creates new warehouse. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type WarehouseCreate { + errors: [WarehouseError!]! + warehouse: Warehouse + warehouseErrors: [WarehouseError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input WarehouseCreateInput { + """ + Address of the warehouse. + """ + address: AddressInput! + + """ + The email address of the warehouse. + """ + email: String + + """ + Warehouse name. + """ + name: String! + + """ + Shipping zones supported by the warehouse. + """ + shippingZones: [ID!] + + """ + Warehouse slug. + """ + slug: String +} + +type WarehouseCreated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String + + """ + The warehouse the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +""" +Deletes selected warehouse. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type WarehouseDelete { + errors: [WarehouseError!]! + warehouse: Warehouse + warehouseErrors: [WarehouseError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type WarehouseDeleted implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String + + """ + The warehouse the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +type WarehouseError { + """ + The error code. + """ + code: WarehouseErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum WarehouseErrorCode { + ALREADY_EXISTS + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +input WarehouseFilterInput { + clickAndCollectOption: WarehouseClickAndCollectOptionEnum + ids: [ID!] + isPrivate: Boolean + search: String +} + +""" +Add shipping zone to given warehouse. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type WarehouseShippingZoneAssign { + errors: [WarehouseError!]! + warehouse: Warehouse + warehouseErrors: [WarehouseError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +""" +Remove shipping zone from given warehouse. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type WarehouseShippingZoneUnassign { + errors: [WarehouseError!]! + warehouse: Warehouse + warehouseErrors: [WarehouseError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +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 { + errors: [WarehouseError!]! + warehouse: Warehouse + warehouseErrors: [WarehouseError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input WarehouseUpdateInput { + """ + 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 + + """ + The email address of the warehouse. + """ + email: String + + """ + 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 + + """ + Warehouse name. + """ + name: String + + """ + Warehouse slug. + """ + slug: String +} + +type WarehouseUpdated implements Event { + """ + Time of the event. + """ + issuedAt: DateTime + + """ + The user or application that triggered the event. + """ + issuingPrincipal: IssuingPrincipal + + """ + The application receiving the webhook. + """ + recipient: App + + """ + Saleor version that triggered the event. + """ + version: String + + """ + The warehouse the event relates to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +""" +Webhook. +""" +type Webhook implements Node { + app: App! + + """ + List of asynchronous webhook events. + """ + asyncEvents: [WebhookEventAsync!]! + + """ + Event deliveries. + """ + eventDeliveries( + """ + Return the elements in the list that come after the specified cursor. + """ + after: String + + """ + Return the elements in the list that come before the specified cursor. + """ + before: String + + """ + Event delivery filter options. + """ + filter: EventDeliveryFilterInput + + """ + Return the first n elements from the list. + """ + first: Int + + """ + Return the last n elements from the list. + """ + last: Int + + """ + Event delivery sorter. + """ + sortBy: EventDeliverySortingInput + ): EventDeliveryCountableConnection + + """ + List of webhook events. + """ + events: [WebhookEvent!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead." + ) + id: ID! + + """ + Informs if webhook is activated. + """ + isActive: Boolean! + name: String! + + """ + Used to create a hash signature with each payload. + """ + secretKey: String + + """ + Used to define payloads for specific events. + """ + subscriptionQuery: String + + """ + List of synchronous webhook events. + """ + syncEvents: [WebhookEventSync!]! + + """ + Target URL for webhook. + """ + targetUrl: String! +} + +""" +Creates a new webhook subscription. + +Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. +""" +type WebhookCreate { + errors: [WebhookError!]! + webhook: Webhook + webhookErrors: [WebhookError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input WebhookCreateInput { + """ + ID of the app to which webhook belongs. + """ + app: ID + + """ + The asynchronous events that webhook wants to subscribe. + """ + asyncEvents: [WebhookEventTypeAsyncEnum!] + + """ + The events that webhook wants to subscribe. + + DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. + """ + events: [WebhookEventTypeEnum!] + + """ + Determine if webhook will be set active or not. + """ + isActive: Boolean + + """ + The name of the webhook. + """ + name: 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 + + """ + The secret key used to create a hash signature with each payload. + """ + secretKey: String + + """ + The synchronous events that webhook wants to subscribe. + """ + syncEvents: [WebhookEventTypeSyncEnum!] + + """ + The url to receive the payload. + """ + targetUrl: String +} + +""" +Deletes a webhook subscription. + +Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. +""" +type WebhookDelete { + errors: [WebhookError!]! + webhook: Webhook + webhookErrors: [WebhookError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +type WebhookError { + """ + The error code. + """ + code: WebhookErrorCode! + + """ + 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 +} + +""" +An enumeration. +""" +enum WebhookErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +""" +Webhook event. +""" +type WebhookEvent { + """ + Internal name of the event type. + """ + eventType: WebhookEventTypeEnum! + + """ + Display name of the event. + """ + name: String! +} + +""" +Asynchronous webhook event. +""" +type WebhookEventAsync { + """ + Internal name of the event type. + """ + eventType: WebhookEventTypeAsyncEnum! + + """ + Display name of the event. + """ + name: String! +} + +""" +Synchronous webhook event. +""" +type WebhookEventSync { + """ + Internal name of the event type. + """ + eventType: WebhookEventTypeSyncEnum! + + """ + Display name of the event. + """ + name: String! +} + +""" +Enum determining type of webhook. +""" +enum WebhookEventTypeAsyncEnum { + """ + All the events. + """ + ANY_EVENTS + + """ + An app deleted. + """ + APP_DELETED + + """ + A new app installed. + """ + APP_INSTALLED + + """ + An app status is changed. + """ + APP_STATUS_CHANGED + + """ + An app updated. + """ + APP_UPDATED + + """ + A new category created. + """ + CATEGORY_CREATED + + """ + A category is deleted. + """ + CATEGORY_DELETED + + """ + A category is updated. + """ + CATEGORY_UPDATED + + """ + A new channel created. + """ + CHANNEL_CREATED + + """ + A channel is deleted. + """ + CHANNEL_DELETED + + """ + A channel status is changed. + """ + CHANNEL_STATUS_CHANGED + + """ + A channel is updated. + """ + CHANNEL_UPDATED + + """ + A new checkout is created. + """ + CHECKOUT_CREATED + + """ + A checkout is updated. It also triggers all updates related to the checkout. + """ + CHECKOUT_UPDATED + + """ + A new collection is created. + """ + COLLECTION_CREATED + + """ + A collection is deleted. + """ + COLLECTION_DELETED + + """ + A collection is updated. + """ + COLLECTION_UPDATED + + """ + A new customer account is created. + """ + CUSTOMER_CREATED + + """ + A customer account is updated. + """ + CUSTOMER_UPDATED + DRAFT_ORDER_CREATED + DRAFT_ORDER_DELETED + DRAFT_ORDER_UPDATED + + """ + A fulfillment is cancelled. + """ + FULFILLMENT_CANCELED + + """ + A new fulfillment is created. + """ + FULFILLMENT_CREATED + + """ + A new gift card created. + """ + GIFT_CARD_CREATED + + """ + A gift card is deleted. + """ + GIFT_CARD_DELETED + + """ + A gift card status is changed. + """ + GIFT_CARD_STATUS_CHANGED + + """ + A gift card is updated. + """ + GIFT_CARD_UPDATED + + """ + An invoice is deleted. + """ + INVOICE_DELETED + + """ + An invoice for order requested. + """ + INVOICE_REQUESTED + + """ + Invoice has been sent. + """ + INVOICE_SENT + + """ + A new menu created. + """ + MENU_CREATED + + """ + A menu is deleted. + """ + MENU_DELETED + + """ + A new menu item created. + """ + MENU_ITEM_CREATED + + """ + A menu item is deleted. + """ + MENU_ITEM_DELETED + + """ + A menu item is updated. + """ + MENU_ITEM_UPDATED + + """ + A menu is updated. + """ + MENU_UPDATED + + """ + User notification triggered. + """ + NOTIFY_USER + + """ + An observability event is created. + """ + OBSERVABILITY + + """ + An order is 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 + + """ + A new order is placed. + """ + ORDER_CREATED + + """ + An order is fulfilled. + """ + ORDER_FULFILLED + + """ + 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 + + """ + A new page is created. + """ + PAGE_CREATED + + """ + A page is deleted. + """ + PAGE_DELETED + + """ + A page is updated. + """ + PAGE_UPDATED + + """ + A new product is created. + """ + PRODUCT_CREATED + + """ + A product is deleted. + """ + PRODUCT_DELETED + + """ + A product is updated. + """ + PRODUCT_UPDATED + PRODUCT_VARIANT_BACK_IN_STOCK + + """ + A new product variant is created. + """ + PRODUCT_VARIANT_CREATED + + """ + A product variant is deleted. + """ + PRODUCT_VARIANT_DELETED + PRODUCT_VARIANT_OUT_OF_STOCK + + """ + A product variant is updated. + """ + PRODUCT_VARIANT_UPDATED + SALE_CREATED + SALE_DELETED + SALE_UPDATED + + """ + A new shipping price is created. + """ + SHIPPING_PRICE_CREATED + + """ + A shipping price is deleted. + """ + SHIPPING_PRICE_DELETED + + """ + A shipping price is updated. + """ + SHIPPING_PRICE_UPDATED + + """ + A new shipping zone is created. + """ + SHIPPING_ZONE_CREATED + + """ + A shipping zone is deleted. + """ + SHIPPING_ZONE_DELETED + + """ + A shipping zone is updated. + """ + SHIPPING_ZONE_UPDATED + TRANSACTION_ACTION_REQUEST + TRANSLATION_CREATED + TRANSLATION_UPDATED + + """ + A new voucher created. + """ + VOUCHER_CREATED + + """ + A voucher is deleted. + """ + VOUCHER_DELETED + + """ + A voucher is updated. + """ + VOUCHER_UPDATED + + """ + A new warehouse created. + """ + WAREHOUSE_CREATED + + """ + A warehouse is deleted. + """ + WAREHOUSE_DELETED + + """ + A warehouse is updated. + """ + WAREHOUSE_UPDATED +} + +""" +Enum determining type of webhook. +""" +enum WebhookEventTypeEnum { + """ + All the events. + """ + ANY_EVENTS + + """ + An app deleted. + """ + APP_DELETED + + """ + A new app installed. + """ + APP_INSTALLED + + """ + An app status is changed. + """ + APP_STATUS_CHANGED + + """ + An app updated. + """ + APP_UPDATED + + """ + A new category created. + """ + CATEGORY_CREATED + + """ + A category is deleted. + """ + CATEGORY_DELETED + + """ + A category is updated. + """ + CATEGORY_UPDATED + + """ + A new channel created. + """ + CHANNEL_CREATED + + """ + A channel is deleted. + """ + CHANNEL_DELETED + + """ + A channel status is changed. + """ + CHANNEL_STATUS_CHANGED + + """ + A channel is updated. + """ + CHANNEL_UPDATED + + """ + A new checkout is created. + """ + CHECKOUT_CREATED + CHECKOUT_FILTER_SHIPPING_METHODS + + """ + A checkout is updated. It also triggers all updates related to the checkout. + """ + CHECKOUT_UPDATED + + """ + A new collection is created. + """ + COLLECTION_CREATED + + """ + A collection is deleted. + """ + COLLECTION_DELETED + + """ + A collection is updated. + """ + COLLECTION_UPDATED + + """ + A new customer account is created. + """ + CUSTOMER_CREATED + + """ + A customer account is updated. + """ + CUSTOMER_UPDATED + DRAFT_ORDER_CREATED + DRAFT_ORDER_DELETED + DRAFT_ORDER_UPDATED + + """ + A fulfillment is cancelled. + """ + FULFILLMENT_CANCELED + + """ + A new fulfillment is created. + """ + FULFILLMENT_CREATED + + """ + A new gift card created. + """ + GIFT_CARD_CREATED + + """ + A gift card is deleted. + """ + GIFT_CARD_DELETED + + """ + A gift card status is changed. + """ + GIFT_CARD_STATUS_CHANGED + + """ + A gift card is updated. + """ + GIFT_CARD_UPDATED + + """ + An invoice is deleted. + """ + INVOICE_DELETED + + """ + An invoice for order requested. + """ + INVOICE_REQUESTED + + """ + Invoice has been sent. + """ + INVOICE_SENT + + """ + A new menu created. + """ + MENU_CREATED + + """ + A menu is deleted. + """ + MENU_DELETED + + """ + A new menu item created. + """ + MENU_ITEM_CREATED + + """ + A menu item is deleted. + """ + MENU_ITEM_DELETED + + """ + A menu item is updated. + """ + MENU_ITEM_UPDATED + + """ + A menu is updated. + """ + MENU_UPDATED + + """ + User notification triggered. + """ + NOTIFY_USER + + """ + An observability event is created. + """ + OBSERVABILITY + + """ + An order is 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 + + """ + A new order is placed. + """ + ORDER_CREATED + ORDER_FILTER_SHIPPING_METHODS + + """ + An order is fulfilled. + """ + ORDER_FULFILLED + + """ + 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 + + """ + A new page is created. + """ + PAGE_CREATED + + """ + A page is deleted. + """ + PAGE_DELETED + + """ + A page is updated. + """ + PAGE_UPDATED + PAYMENT_AUTHORIZE + PAYMENT_CAPTURE + PAYMENT_CONFIRM + PAYMENT_LIST_GATEWAYS + PAYMENT_PROCESS + PAYMENT_REFUND + PAYMENT_VOID + + """ + A new product is created. + """ + PRODUCT_CREATED + + """ + A product is deleted. + """ + PRODUCT_DELETED + + """ + A product is updated. + """ + PRODUCT_UPDATED + PRODUCT_VARIANT_BACK_IN_STOCK + + """ + A new product variant is created. + """ + PRODUCT_VARIANT_CREATED + + """ + A product variant is deleted. + """ + PRODUCT_VARIANT_DELETED + PRODUCT_VARIANT_OUT_OF_STOCK + + """ + A product variant is updated. + """ + PRODUCT_VARIANT_UPDATED + SALE_CREATED + SALE_DELETED + SALE_UPDATED + SHIPPING_LIST_METHODS_FOR_CHECKOUT + + """ + A new shipping price is created. + """ + SHIPPING_PRICE_CREATED + + """ + A shipping price is deleted. + """ + SHIPPING_PRICE_DELETED + + """ + A shipping price is updated. + """ + SHIPPING_PRICE_UPDATED + + """ + A new shipping zone is created. + """ + SHIPPING_ZONE_CREATED + + """ + A shipping zone is deleted. + """ + SHIPPING_ZONE_DELETED + + """ + A shipping zone is updated. + """ + SHIPPING_ZONE_UPDATED + TRANSACTION_ACTION_REQUEST + TRANSLATION_CREATED + TRANSLATION_UPDATED + + """ + A new voucher created. + """ + VOUCHER_CREATED + + """ + A voucher is deleted. + """ + VOUCHER_DELETED + + """ + A voucher is updated. + """ + VOUCHER_UPDATED + + """ + A new warehouse created. + """ + WAREHOUSE_CREATED + + """ + A warehouse is deleted. + """ + WAREHOUSE_DELETED + + """ + A warehouse is updated. + """ + WAREHOUSE_UPDATED +} + +""" +Enum determining type of webhook. +""" +enum WebhookEventTypeSyncEnum { + CHECKOUT_FILTER_SHIPPING_METHODS + ORDER_FILTER_SHIPPING_METHODS + PAYMENT_AUTHORIZE + PAYMENT_CAPTURE + PAYMENT_CONFIRM + PAYMENT_LIST_GATEWAYS + PAYMENT_PROCESS + PAYMENT_REFUND + PAYMENT_VOID + SHIPPING_LIST_METHODS_FOR_CHECKOUT +} + +""" +An enumeration. +""" +enum WebhookSampleEventTypeEnum { + APP_DELETED + APP_INSTALLED + APP_STATUS_CHANGED + APP_UPDATED + CATEGORY_CREATED + CATEGORY_DELETED + CATEGORY_UPDATED + CHANNEL_CREATED + CHANNEL_DELETED + CHANNEL_STATUS_CHANGED + CHANNEL_UPDATED + CHECKOUT_CREATED + CHECKOUT_UPDATED + COLLECTION_CREATED + COLLECTION_DELETED + COLLECTION_UPDATED + CUSTOMER_CREATED + CUSTOMER_UPDATED + DRAFT_ORDER_CREATED + DRAFT_ORDER_DELETED + DRAFT_ORDER_UPDATED + FULFILLMENT_CANCELED + FULFILLMENT_CREATED + GIFT_CARD_CREATED + GIFT_CARD_DELETED + GIFT_CARD_STATUS_CHANGED + GIFT_CARD_UPDATED + INVOICE_DELETED + INVOICE_REQUESTED + INVOICE_SENT + MENU_CREATED + MENU_DELETED + MENU_ITEM_CREATED + MENU_ITEM_DELETED + MENU_ITEM_UPDATED + MENU_UPDATED + NOTIFY_USER + OBSERVABILITY + ORDER_CANCELLED + ORDER_CONFIRMED + ORDER_CREATED + ORDER_FULFILLED + ORDER_FULLY_PAID + ORDER_UPDATED + PAGE_CREATED + PAGE_DELETED + PAGE_UPDATED + PRODUCT_CREATED + PRODUCT_DELETED + PRODUCT_UPDATED + PRODUCT_VARIANT_BACK_IN_STOCK + PRODUCT_VARIANT_CREATED + PRODUCT_VARIANT_DELETED + PRODUCT_VARIANT_OUT_OF_STOCK + PRODUCT_VARIANT_UPDATED + SALE_CREATED + SALE_DELETED + SALE_UPDATED + SHIPPING_PRICE_CREATED + SHIPPING_PRICE_DELETED + SHIPPING_PRICE_UPDATED + SHIPPING_ZONE_CREATED + SHIPPING_ZONE_DELETED + SHIPPING_ZONE_UPDATED + TRANSACTION_ACTION_REQUEST + TRANSLATION_CREATED + TRANSLATION_UPDATED + VOUCHER_CREATED + VOUCHER_DELETED + VOUCHER_UPDATED + WAREHOUSE_CREATED + WAREHOUSE_DELETED + WAREHOUSE_UPDATED +} + +""" +Updates a webhook subscription. + +Requires one of the following permissions: MANAGE_APPS. +""" +type WebhookUpdate { + errors: [WebhookError!]! + webhook: Webhook + webhookErrors: [WebhookError!]! + @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") +} + +input WebhookUpdateInput { + """ + ID of the app to which webhook belongs. + """ + app: ID + + """ + The asynchronous events that webhook wants to subscribe. + """ + asyncEvents: [WebhookEventTypeAsyncEnum!] + + """ + The events that webhook wants to subscribe. + + DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. + """ + events: [WebhookEventTypeEnum!] + + """ + Determine if webhook will be set active or not. + """ + isActive: Boolean + + """ + The new name of the webhook. + """ + name: 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 + + """ + Use to create a hash signature with each payload. + """ + secretKey: String + + """ + The synchronous events that webhook wants to subscribe. + """ + syncEvents: [WebhookEventTypeSyncEnum!] + + """ + The url to receive the payload. + """ + targetUrl: 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 + KG + LB + OZ + TONNE +} + +""" +_Any value scalar as defined by Federation spec. +""" +scalar _Any + +""" +_Entity union as defined by Federation spec. +""" +union _Entity = + Address + | App + | Category + | Collection + | Group + | PageType + | Product + | ProductMedia + | ProductType + | ProductVariant + | User + +""" +_Service manifest as defined by Federation spec. +""" +type _Service { + sdl: String +} diff --git a/apps/slack/graphql/mutations/UpdateAppMetadata.graphql b/apps/slack/graphql/mutations/UpdateAppMetadata.graphql new file mode 100644 index 0000000..718ec63 --- /dev/null +++ b/apps/slack/graphql/mutations/UpdateAppMetadata.graphql @@ -0,0 +1,10 @@ +mutation UpdateAppMetadata($id: ID!, $input: [MetadataInput!]!) { + updatePrivateMetadata(id: $id, input: $input) { + item { + privateMetadata { + key + value + } + } + } +} diff --git a/apps/slack/graphql/queries/FetchAppDetails.graphql b/apps/slack/graphql/queries/FetchAppDetails.graphql new file mode 100644 index 0000000..b4bad82 --- /dev/null +++ b/apps/slack/graphql/queries/FetchAppDetails.graphql @@ -0,0 +1,9 @@ +query FetchAppDetails { + app { + id + privateMetadata { + key + value + } + } +} diff --git a/apps/slack/graphql/schema.graphql b/apps/slack/graphql/schema.graphql new file mode 100644 index 0000000..16be75e --- /dev/null +++ b/apps/slack/graphql/schema.graphql @@ -0,0 +1,29077 @@ +schema { + query: Query + mutation: Mutation + subscription: Subscription +} + +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 an warehouse + """ + id: ID! + ): 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 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 + + """ + 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 + + """ + 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 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. + """ + order( + """ + ID of an order. + """ + id: ID! + ): 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. + """ + 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. + + Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + """ + channel( + """ + ID of the channel. + """ + id: ID + ): 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. + """ + attribute( + """ + ID of the attribute. + """ + id: ID + + """ + Slug of the attribute. + """ + slug: 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 + ): User + _entities(representations: [_Any]): [_Entity] + _service: _Service +} + +""" +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 with each payload. + """ + secretKey: String + + """ + Used to define payloads for specific events. + """ + subscriptionQuery: String +} + +""" +An object with an ID +""" +interface Node { + """ + The ID of the object. + """ + id: ID! +} + +""" +Webhook event. +""" +type WebhookEvent { + """ + Display name of the event. + """ + name: String! + + """ + Internal name of the event type. + """ + eventType: WebhookEventTypeEnum! +} + +""" +Enum determining type of webhook. +""" +enum WebhookEventTypeEnum { + """ + All the events. + """ + ANY_EVENTS + + """ + 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 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 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 + DRAFT_ORDER_CREATED + DRAFT_ORDER_UPDATED + DRAFT_ORDER_DELETED + SALE_CREATED + SALE_UPDATED + SALE_DELETED + + """ + 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 new collection is created. + """ + COLLECTION_CREATED + + """ + A collection is updated. + """ + COLLECTION_UPDATED + + """ + A collection is deleted. + """ + COLLECTION_DELETED + + """ + A new product is created. + """ + PRODUCT_CREATED + + """ + A product is updated. + """ + PRODUCT_UPDATED + + """ + A product is deleted. + """ + PRODUCT_DELETED + + """ + 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 + PRODUCT_VARIANT_OUT_OF_STOCK + PRODUCT_VARIANT_BACK_IN_STOCK + + """ + A new checkout is created. + """ + CHECKOUT_CREATED + + """ + A checkout is updated. It also triggers all updates related to the checkout. + """ + CHECKOUT_UPDATED + + """ + A new fulfillment is created. + """ + FULFILLMENT_CREATED + + """ + A fulfillment is cancelled. + """ + FULFILLMENT_CANCELED + + """ + 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 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 + TRANSACTION_ACTION_REQUEST + TRANSLATION_CREATED + TRANSLATION_UPDATED + + """ + A new warehouse created. + """ + WAREHOUSE_CREATED + + """ + A warehouse is updated. + """ + WAREHOUSE_UPDATED + + """ + A warehouse is deleted. + """ + WAREHOUSE_DELETED + + """ + A new voucher created. + """ + VOUCHER_CREATED + + """ + A voucher is updated. + """ + VOUCHER_UPDATED + + """ + A voucher is deleted. + """ + VOUCHER_DELETED + + """ + An observability event is created. + """ + OBSERVABILITY + PAYMENT_AUTHORIZE + PAYMENT_CAPTURE + PAYMENT_CONFIRM + PAYMENT_LIST_GATEWAYS + PAYMENT_PROCESS + PAYMENT_REFUND + PAYMENT_VOID + SHIPPING_LIST_METHODS_FOR_CHECKOUT + ORDER_FILTER_SHIPPING_METHODS + CHECKOUT_FILTER_SHIPPING_METHODS +} + +""" +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 WebhookEventTypeSyncEnum { + PAYMENT_AUTHORIZE + PAYMENT_CAPTURE + PAYMENT_CONFIRM + PAYMENT_LIST_GATEWAYS + PAYMENT_PROCESS + PAYMENT_REFUND + PAYMENT_VOID + SHIPPING_LIST_METHODS_FOR_CHECKOUT + ORDER_FILTER_SHIPPING_METHODS + CHECKOUT_FILTER_SHIPPING_METHODS +} + +""" +Asynchronous webhook event. +""" +type WebhookEventAsync { + """ + Display name of the event. + """ + name: String! + + """ + Internal name of the event type. + """ + eventType: WebhookEventTypeAsyncEnum! +} + +""" +Enum determining type of webhook. +""" +enum WebhookEventTypeAsyncEnum { + """ + All the events. + """ + ANY_EVENTS + + """ + 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 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 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 + DRAFT_ORDER_CREATED + DRAFT_ORDER_UPDATED + DRAFT_ORDER_DELETED + SALE_CREATED + SALE_UPDATED + SALE_DELETED + + """ + 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 new collection is created. + """ + COLLECTION_CREATED + + """ + A collection is updated. + """ + COLLECTION_UPDATED + + """ + A collection is deleted. + """ + COLLECTION_DELETED + + """ + A new product is created. + """ + PRODUCT_CREATED + + """ + A product is updated. + """ + PRODUCT_UPDATED + + """ + A product is deleted. + """ + PRODUCT_DELETED + + """ + 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 + PRODUCT_VARIANT_OUT_OF_STOCK + PRODUCT_VARIANT_BACK_IN_STOCK + + """ + A new checkout is created. + """ + CHECKOUT_CREATED + + """ + A checkout is updated. It also triggers all updates related to the checkout. + """ + CHECKOUT_UPDATED + + """ + A new fulfillment is created. + """ + FULFILLMENT_CREATED + + """ + A fulfillment is cancelled. + """ + FULFILLMENT_CANCELED + + """ + 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 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 + TRANSACTION_ACTION_REQUEST + TRANSLATION_CREATED + TRANSLATION_UPDATED + + """ + A new warehouse created. + """ + WAREHOUSE_CREATED + + """ + A warehouse is updated. + """ + WAREHOUSE_UPDATED + + """ + A warehouse is deleted. + """ + WAREHOUSE_DELETED + + """ + A new voucher created. + """ + VOUCHER_CREATED + + """ + A voucher is updated. + """ + VOUCHER_UPDATED + + """ + A voucher is deleted. + """ + VOUCHER_DELETED + + """ + An observability event is created. + """ + OBSERVABILITY +} + +""" +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 + + """ + 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 + + """ + Url to iframe with the app. + """ + appUrl: 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!]! +} + +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 +} + +type MetadataItem { + """ + Key of a metadata item. + """ + key: String! + + """ + Value of a metadata item. + """ + value: String! +} + +""" +Metadata is a map of key-value pairs, both keys and values are `String`. + +Example: +``` +{ + "key1": "value1", + "key2": "value2" +} +``` +""" +scalar Metadata + +""" +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_CHANNELS + MANAGE_DISCOUNTS + MANAGE_PLUGINS + MANAGE_GIFT_CARD + MANAGE_MENUS + MANAGE_ORDERS + MANAGE_PAGES + MANAGE_PAGE_TYPES_AND_ATTRIBUTES + HANDLE_PAYMENTS + MANAGE_PRODUCTS + MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES + MANAGE_SHIPPING + MANAGE_SETTINGS + MANAGE_TRANSLATIONS + MANAGE_CHECKOUTS + HANDLE_CHECKOUTS +} + +""" +The `DateTime` scalar type represents a DateTime +value as specified by +[iso8601](https://en.wikipedia.org/wiki/ISO_8601). +""" +scalar DateTime + +""" +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 +} + +""" +Represents token data. +""" +type AppToken implements Node { + id: ID! + + """ + Name of the authenticated token. + """ + name: String + + """ + Last 4 characters of the token. + """ + authToken: String +} + +""" +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 +} + +""" +All places where app extension can be mounted. +""" +enum AppExtensionMountEnum { + 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 +} + +type EventDeliveryCountableConnection { + """ + Pagination data for this connection. + """ + pageInfo: PageInfo! + edges: [EventDeliveryCountableEdge!]! + + """ + A total count of items in the collection. + """ + totalCount: Int +} + +""" +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 +} + +type EventDeliveryCountableEdge { + """ + The item at the end of the edge. + """ + node: EventDelivery! + + """ + A cursor for use in pagination. + """ + cursor: String! +} + +""" +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 +} + +enum EventDeliveryStatusEnum { + PENDING + SUCCESS + FAILED +} + +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! +} + +""" +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! +} + +input EventDeliveryAttemptSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort attempts by the selected field. + """ + field: EventDeliveryAttemptSortField! +} + +enum OrderDirection { + """ + Specifies an ascending sort order. + """ + ASC + + """ + Specifies a descending sort order. + """ + DESC +} + +enum EventDeliveryAttemptSortField { + """ + Sort event delivery attempts 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 EventDeliverySortField { + """ + Sort event deliveries by created at. + """ + CREATED_AT +} + +input EventDeliveryFilterInput { + status: EventDeliveryStatusEnum + eventType: WebhookEventTypeEnum +} + +scalar JSONString + +""" +An enumeration. +""" +enum WebhookSampleEventTypeEnum { + APP_INSTALLED + APP_UPDATED + APP_DELETED + APP_STATUS_CHANGED + 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 + 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 + DRAFT_ORDER_CREATED + DRAFT_ORDER_UPDATED + DRAFT_ORDER_DELETED + SALE_CREATED + SALE_UPDATED + SALE_DELETED + INVOICE_REQUESTED + INVOICE_DELETED + INVOICE_SENT + CUSTOMER_CREATED + CUSTOMER_UPDATED + COLLECTION_CREATED + COLLECTION_UPDATED + COLLECTION_DELETED + PRODUCT_CREATED + PRODUCT_UPDATED + PRODUCT_DELETED + PRODUCT_VARIANT_CREATED + PRODUCT_VARIANT_UPDATED + PRODUCT_VARIANT_DELETED + PRODUCT_VARIANT_OUT_OF_STOCK + PRODUCT_VARIANT_BACK_IN_STOCK + CHECKOUT_CREATED + CHECKOUT_UPDATED + FULFILLMENT_CREATED + FULFILLMENT_CANCELED + NOTIFY_USER + PAGE_CREATED + PAGE_UPDATED + PAGE_DELETED + SHIPPING_PRICE_CREATED + SHIPPING_PRICE_UPDATED + SHIPPING_PRICE_DELETED + SHIPPING_ZONE_CREATED + SHIPPING_ZONE_UPDATED + SHIPPING_ZONE_DELETED + TRANSACTION_ACTION_REQUEST + TRANSLATION_CREATED + TRANSLATION_UPDATED + WAREHOUSE_CREATED + WAREHOUSE_UPDATED + WAREHOUSE_DELETED + VOUCHER_CREATED + VOUCHER_UPDATED + VOUCHER_DELETED + OBSERVABILITY +} + +""" +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! +} + +""" +Represents user address data. +""" +type Address implements Node { + id: ID! + 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 +} + +type CountryDisplay { + """ + Country code. + """ + code: String! + + """ + Country name. + """ + country: String! + + """ + Country tax. + """ + vat: VAT +} + +""" +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!]! +} + +""" +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! +} + +""" +An enumeration. +""" +enum WarehouseClickAndCollectOptionEnum { + DISABLED + LOCAL + ALL +} + +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! +} + +""" +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 +} + +""" +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 +} + +""" +Represents amount of money in specific currency. +""" +type Money { + """ + Currency code. + """ + currency: String! + + """ + Amount of money. + """ + amount: Float! +} + +""" +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 +} + +""" +An enumeration. +""" +enum ShippingMethodTypeEnum { + PRICE + WEIGHT +} + +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 +} + +type LanguageDisplay { + """ + ISO 639 representation of the language name. + """ + code: LanguageCodeEnum! + + """ + Full name of the language. + """ + language: String! +} + +""" +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 +} + +""" +Represents shipping method channel listing. +""" +type ShippingMethodChannelListing implements Node { + id: ID! + channel: Channel! + maximumOrderPrice: Money + minimumOrderPrice: Money + price: Money +} + +""" +Represents channel. +""" +type Channel implements Node { + id: ID! + name: String! + isActive: Boolean! + currencyCode: String! + slug: 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. + """ + defaultCountry: CountryDisplay! +} + +""" +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 +} + +""" +An enumeration. +""" +enum PostalCodeRuleInclusionTypeEnum { + INCLUDE + EXCLUDE +} + +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! +} + +""" +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! + 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." + ) + + """ + The main thumbnail for a product. + """ + thumbnail( + """ + Size of thumbnail. + """ + size: Int + ): 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 + + """ + 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." + ) + + """ + 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: [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 +} + +""" +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 + + """ + 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 +} + +""" +Represents weight value in a specific weight unit. +""" +type Weight { + """ + Weight unit. + """ + unit: WeightUnitsEnum! + + """ + Weight value. + """ + value: Float! +} + +""" +An enumeration. +""" +enum WeightUnitsEnum { + G + LB + OZ + KG + TONNE +} + +""" +An enumeration. +""" +enum ProductTypeKindEnum { + NORMAL + GIFT_CARD +} + +""" +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 +} + +""" +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! +} + +""" +An enumeration. +""" +enum AttributeInputTypeEnum { + DROPDOWN + MULTISELECT + FILE + REFERENCE + NUMERIC + RICH_TEXT + SWATCH + BOOLEAN + DATE + DATE_TIME +} + +""" +An enumeration. +""" +enum AttributeEntityTypeEnum { + PAGE + PRODUCT +} + +""" +An enumeration. +""" +enum AttributeTypeEnum { + PRODUCT_TYPE + PAGE_TYPE +} + +""" +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 +} + +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! +} + +""" +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 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 +} + +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 +} + +type File { + """ + The URL of the file. + """ + url: String! + + """ + Content type of the file. + """ + contentType: String +} + +""" +The `Date` scalar type represents a Date +value as specified by +[iso8601](https://en.wikipedia.org/wiki/ISO_8601). +""" +scalar Date + +input AttributeChoicesSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort attribute choices by the selected field. + """ + field: AttributeChoicesSortField! +} + +enum AttributeChoicesSortField { + """ + Sort attribute choice by name. + """ + NAME + + """ + Sort attribute choice by slug. + """ + SLUG +} + +input AttributeValueFilterInput { + search: String + ids: [ID!] +} + +type AttributeTranslation implements Node { + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String! +} + +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! +} + +enum VariantAttributeScope { + ALL + VARIANT_SELECTION + NOT_VARIANT_SELECTION +} + +""" +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! +} + +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! +} + +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 + + """ + 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 MetadataFilter { + """ + Key of a metadata item. + """ + key: String! + + """ + Value of a metadata item. + """ + value: String +} + +""" +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( + """ + 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. + """ + size: Int + ): Image + + """ + Returns translated category fields for the given language code. + """ + translation( + """ + A language code to return the translation for category. + """ + languageCode: LanguageCodeEnum! + ): CategoryTranslation +} + +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! +} + +""" +Represents an image. +""" +type Image { + """ + The URL of the image. + """ + url: String! + + """ + Alt text for an image. + """ + alt: String +} + +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." + ) +} + +""" +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! +} + +""" +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 +} + +""" +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! +} + +""" +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 +} + +""" +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! +} + +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 +} + +""" +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 +} + +""" +Represents a custom attribute. +""" +type SelectedAttribute { + """ + Name of an attribute displayed in the interface. + """ + attribute: Attribute! + + """ + Values of an attribute. + """ + values: [AttributeValue!]! +} + +enum ReportingPeriod { + TODAY + THIS_MONTH +} + +""" +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 + + """ + The URL of the image. + """ + url( + """ + Size of the image. + """ + size: Int + ): String! +} + +""" +Represents a product media. +""" +type ProductMedia implements Node { + id: ID! + sortOrder: Int + alt: String! + type: ProductMediaType! + oembedData: JSONString! + + """ + The URL of the media. + """ + url( + """ + Size of the image. + """ + size: Int + ): String! +} + +""" +An enumeration. +""" +enum ProductMediaType { + IMAGE + VIDEO +} + +type ProductVariantTranslation implements Node { + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String! +} + +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 DigitalContentUrl implements Node { + id: ID! + content: DigitalContent! + created: DateTime! + downloadNum: Int! + + """ + URL for digital content. + """ + url: String + + """ + UUID of digital content. + """ + token: UUID! +} + +scalar UUID + +""" +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! +} + +""" +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 +} + +""" +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 +} + +""" +Represents a range of monetary values. +""" +type TaxedMoneyRange { + """ + Lower bound of a price range. + """ + start: TaxedMoney + + """ + Upper bound of a price range. + """ + stop: TaxedMoney +} + +""" +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 +} + +type Margin { + start: Int + stop: Int +} + +""" +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. + """ + size: Int + ): 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!] +} + +input ProductFilterInput { + isPublished: Boolean + collections: [ID!] + categories: [ID!] + hasCategory: Boolean + attributes: [AttributeInput!] + stockAvailability: StockAvailability + stocks: ProductStockFilterInput + search: String + metadata: [MetadataFilter!] + price: PriceRangeInput + minimalPrice: PriceRangeInput + updatedAt: DateTimeRangeInput + productTypes: [ID!] + giftCard: Boolean + ids: [ID!] + hasPreorderedVariants: Boolean + + """ + 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 +} + +input IntRangeInput { + """ + Value greater than or equal to. + """ + gte: Int + + """ + Value less than or equal to. + """ + lte: Int +} + +input DateTimeRangeInput { + """ + Start date. + """ + gte: DateTime + + """ + End date. + """ + lte: DateTime +} + +input DateRangeInput { + """ + Start date. + """ + gte: Date + + """ + End date. + """ + lte: Date +} + +enum StockAvailability { + IN_STOCK + OUT_OF_STOCK +} + +input ProductStockFilterInput { + warehouseIds: [ID!] + quantity: IntRangeInput +} + +input PriceRangeInput { + """ + Price greater than or equal to. + """ + gte: Float + + """ + Price less than or equal to. + """ + lte: Float +} + +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 +} + +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." + ) +} + +""" +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 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." + ) +} + +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! +} + +input WarehouseFilterInput { + clickAndCollectOption: WarehouseClickAndCollectOptionEnum + search: String + ids: [ID!] + isPrivate: Boolean +} + +input WarehouseSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort warehouses by the selected field. + """ + field: WarehouseSortField! +} + +enum WarehouseSortField { + """ + Sort warehouses by name. + """ + NAME +} + +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! +} + +union TranslatableItem = + ProductTranslatableContent + | CollectionTranslatableContent + | CategoryTranslatableContent + | AttributeTranslatableContent + | AttributeValueTranslatableContent + | ProductVariantTranslatableContent + | PageTranslatableContent + | ShippingMethodTranslatableContent + | SaleTranslatableContent + | VoucherTranslatableContent + | MenuItemTranslatableContent + +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!]! +} + +type AttributeValueTranslatableContent implements Node { + id: ID! + name: String! + + """ + Attribute value. + + Rich text format. For reference see https://editorjs.io/ + """ + richText: JSONString + + """ + 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." + ) +} + +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." + ) +} + +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." + ) +} + +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." + ) +} + +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!]! +} + +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!]! +} + +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." + ) +} + +""" +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!]! +} + +""" +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 +} + +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 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." + ) +} + +type SaleTranslation implements Node { + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String +} + +""" +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 +} + +enum SaleType { + FIXED + PERCENTAGE +} + +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! +} + +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! +} + +""" +Represents sale channel listing. +""" +type SaleChannelListing implements Node { + id: ID! + channel: Channel! + discountValue: Float! + currency: String! +} + +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." + ) +} + +type VoucherTranslation implements Node { + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: String +} + +""" +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!] +} + +enum DiscountValueTypeEnum { + FIXED + PERCENTAGE +} + +enum VoucherTypeEnum { + SHIPPING + ENTIRE_ORDER + SPECIFIC_PRODUCT +} + +""" +Represents voucher channel listing. +""" +type VoucherChannelListing implements Node { + id: ID! + channel: Channel! + discountValue: Float! + currency: String! + minSpent: Money +} + +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." + ) +} + +type MenuItemTranslation implements Node { + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + name: 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 +} + +""" +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!] +} + +enum TranslatableKinds { + ATTRIBUTE + ATTRIBUTE_VALUE + CATEGORY + COLLECTION + MENU_ITEM + PAGE + PRODUCT + SALE + SHIPPING_METHOD + VARIANT + VOUCHER +} + +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! +} + +input StockFilterInput { + """ + """ + quantity: Float + search: String +} + +""" +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 + + """ + Include taxes in prices. + """ + includeTaxesInPrices: Boolean! + + """ + 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! + + """ + Display prices with tax in store. + """ + displayGrossPrices: Boolean! + + """ + Charge taxes on shipping. + """ + chargeTaxesOnShipping: 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! +} + +""" +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!]! +} + +""" +Payment gateway client configuration key and value pair. +""" +type GatewayConfigLine { + """ + Gateway config key. + """ + field: String! + + """ + Gateway config value for key. + """ + value: String +} + +type ExternalAuthentication { + """ + ID of external authentication plugin. + """ + id: String! + + """ + Name of external authentication plugin. + """ + name: String +} + +""" +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 +} + +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 +} + +""" +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! +} + +type ShopTranslation implements Node { + id: ID! + + """ + Translation language. + """ + language: LanguageDisplay! + headerText: String! + description: String! +} + +""" +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 +} + +""" +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!] + + """ + 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 avatar. + """ + size: Int + ): 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 + lastLogin: DateTime + dateJoined: DateTime! + updatedAt: DateTime! +} + +""" +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! + + """ + 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!] +} + +""" +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.") +} + +""" +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 +} + +""" +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 +} + +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!] +} + +""" +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! +} + +""" +Represents an item in the checkout. +""" +type CheckoutLine implements Node { + id: ID! + 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! +} + +""" +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 + +""" +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 refunded for this payment. + """ + refundedAmount: Money! + + """ + Total amount voided for this payment. + """ + voidedAmount: Money! + + """ + Total amount charged for this payment. + """ + chargedAmount: Money! + + """ + Status of transaction. + """ + status: String! + + """ + Type of transaction. + """ + type: String! + + """ + Reference of transaction. + """ + reference: String! + + """ + List of all transaction's events. + """ + events: [TransactionEvent!]! +} + +""" +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. +""" +enum TransactionActionEnum { + CHARGE + REFUND + VOID +} + +""" +Represents transaction's event. +""" +type TransactionEvent implements Node { + """ + The ID of the object. + """ + id: ID! + createdAt: DateTime! + + """ + Status of transaction's event. + """ + status: TransactionStatus! + + """ + Reference of transaction's event. + """ + reference: String! + + """ + Name of the transaction's event. + """ + name: String +} + +""" +An enumeration. +""" +enum TransactionStatus { + PENDING + SUCCESS + FAILURE +} + +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! +} + +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! +} + +""" +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! + + """ + 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! + shippingTaxRate: Float! + 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!]! + displayGrossPrices: Boolean! + 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 by payment. + """ + totalCaptured: 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 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 + 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!]! +} + +""" +An enumeration. +""" +enum OrderStatus { + DRAFT + UNCONFIRMED + UNFULFILLED + PARTIALLY_FULFILLED + PARTIALLY_RETURNED + RETURNED + FULFILLED + CANCELED +} + +""" +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 +} + +""" +An enumeration. +""" +enum FulfillmentStatus { + FULFILLED + REFUNDED + RETURNED + REPLACED + REFUNDED_AND_RETURNED + CANCELED + WAITING_FOR_APPROVAL +} + +""" +Represents line of the fulfillment. +""" +type FulfillmentLine implements Node { + id: ID! + quantity: Int! + orderLine: OrderLine +} + +""" +Represents order line of particular order. +""" +type OrderLine implements Node { + id: ID! + productName: String! + variantName: String! + productSku: String + productVariantId: String + isShippingRequired: Boolean! + quantity: Int! + quantityFulfilled: Int! + unitDiscountReason: String + taxRate: Float! + digitalContentUrl: DigitalContentUrl + + """ + The main thumbnail for the ordered product. + """ + thumbnail( + """ + Size of thumbnail. + """ + size: Int + ): 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 +} + +""" +Positive Decimal scalar implementation. + +Should be used in places where value must be positive. +""" +scalar PositiveDecimal + +""" +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! +} + +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 +} + +""" +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 +} + +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 OrderOriginEnum { + CHECKOUT + DRAFT + REISSUE +} + +""" +An enumeration. +""" +enum PaymentChargeStatusEnum { + NOT_CHARGED + PENDING + PARTIALLY_CHARGED + FULLY_CHARGED + PARTIALLY_REFUNDED + FULLY_REFUNDED + REFUSED + CANCELLED +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +""" +An enumeration. +""" +enum TransactionKind { + EXTERNAL + AUTH + PENDING + ACTION_TO_CONFIRM + REFUND + REFUND_ONGOING + CAPTURE + VOID + CONFIRM + CANCEL +} + +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 +} + +""" +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: TransactionStatus + + """ + The reference of payment's transaction. + """ + reference: String +} + +""" +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 +} + +""" +An enumeration. +""" +enum OrderEventsEmailsEnum { + PAYMENT_CONFIRMATION + CONFIRMED + SHIPPING_CONFIRMATION + TRACKING_UPDATED + ORDER_CONFIRMATION + ORDER_CANCEL + ORDER_REFUND + FULFILLMENT_CONFIRMATION + DIGITAL_LINKS +} + +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 +} + +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 +} + +""" +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! +} + +""" +An enumeration. +""" +enum OrderDiscountType { + VOUCHER + MANUAL +} + +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 + MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK +} + +""" +An enumeration. +""" +enum AddressTypeEnum { + BILLING + SHIPPING +} + +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!] +} + +""" +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! +} + +""" +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 + 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 +} + +""" +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!]! +} + +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 +} + +""" +Order related settings from site settings. +""" +type OrderSettings { + automaticallyConfirmAllNewOrders: Boolean! + automaticallyFulfillNonShippableGiftCard: Boolean! +} + +""" +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 +} + +""" +An enumeration. +""" +enum GiftCardSettingsExpiryTypeEnum { + NEVER_EXPIRE + EXPIRY_PERIOD +} + +type TimePeriod { + """ + The length of the period. + """ + amount: Int! + + """ + The type of the period. + """ + type: TimePeriodTypeEnum! +} + +""" +An enumeration. +""" +enum TimePeriodTypeEnum { + DAY + WEEK + MONTH + YEAR +} + +input ShippingZoneFilterInput { + search: String + channels: [ID!] +} + +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! +} + +input CategoryFilterInput { + search: String + metadata: [MetadataFilter!] + ids: [ID!] +} + +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! +} + +enum CategorySortField { + """ + Sort categories by name. + """ + NAME + + """ + Sort categories by product count. + """ + PRODUCT_COUNT + + """ + Sort categories by subcategory count. + """ + SUBCATEGORY_COUNT +} + +input CollectionFilterInput { + published: CollectionPublished + search: String + metadata: [MetadataFilter!] + ids: [ID!] + + """ + 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 +} + +enum CollectionPublished { + PUBLISHED + HIDDEN +} + +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! +} + +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 ProductTypeFilterInput { + search: String + configurable: ProductTypeConfigurable + productType: ProductTypeEnum + metadata: [MetadataFilter!] + kind: ProductTypeKindEnum + ids: [ID!] +} + +enum ProductTypeConfigurable { + CONFIGURABLE + SIMPLE +} + +enum ProductTypeEnum { + DIGITAL + SHIPPABLE +} + +input ProductTypeSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort product types by the selected field. + """ + field: ProductTypeSortField! +} + +enum ProductTypeSortField { + """ + Sort products by name. + """ + NAME + + """ + Sort products by type. + """ + DIGITAL + + """ + Sort products by shipping. + """ + SHIPPING_REQUIRED +} + +input ProductVariantFilterInput { + search: String + sku: [String!] + metadata: [MetadataFilter!] + isPreorder: Boolean + updatedAt: DateTimeRangeInput +} + +input ProductVariantSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort productVariants by the selected field. + """ + field: ProductVariantSortField! +} + +enum ProductVariantSortField { + """ + Sort products variants by last modified at. + """ + LAST_MODIFIED_AT +} + +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! +} + +input PaymentFilterInput { + checkouts: [ID!] +} + +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! +} + +input PageSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort pages by the selected field. + """ + field: PageSortField! +} + +enum PageSortField { + """ + Sort pages by title. + """ + TITLE + + """ + Sort pages by slug. + """ + SLUG + + """ + Sort pages by visibility. + """ + VISIBILITY + + """ + Sort pages by creation date. + """ + 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 +} + +input PageFilterInput { + search: String + metadata: [MetadataFilter!] + pageTypes: [ID!] + ids: [ID!] +} + +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! +} + +input PageTypeSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort page types by the selected field. + """ + field: PageTypeSortField! +} + +enum PageTypeSortField { + """ + Sort page types by name. + """ + NAME + + """ + Sort page types by slug. + """ + SLUG +} + +input PageTypeFilterInput { + search: 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! +} + +input OrderSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort orders by the selected field. + """ + field: OrderSortField! +} + +enum OrderSortField { + """ + Sort orders by number. + """ + NUMBER + + """ + 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 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!] +} + +enum OrderStatusFilter { + READY_TO_FULFILL + READY_TO_CAPTURE + UNFULFILLED + UNCONFIRMED + PARTIALLY_FULFILLED + FULFILLED + CANCELED +} + +input OrderDraftFilterInput { + customer: String + created: DateRangeInput + search: String + metadata: [MetadataFilter!] + channels: [ID!] +} + +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! +} + +input MenuSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort menus by the selected field. + """ + field: MenuSortField! +} + +enum MenuSortField { + """ + Sort menus by name. + """ + NAME + + """ + Sort menus by items count. + """ + ITEMS_COUNT +} + +input MenuFilterInput { + search: String + slug: [String!] + metadata: [MetadataFilter!] +} + +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! +} + +input MenuItemSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort menu items by the selected field. + """ + field: MenuItemsSortField! +} + +enum MenuItemsSortField { + """ + Sort menu items by name. + """ + NAME +} + +input MenuItemFilterInput { + search: String + metadata: [MetadataFilter!] +} + +input GiftCardSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort gift cards by the selected field. + """ + field: GiftCardSortField! +} + +enum GiftCardSortField { + """ + Sort orders by product. + """ + PRODUCT + + """ + Sort orders by used by. + """ + USED_BY + + """ + Sort orders by current balance. + """ + CURRENT_BALANCE +} + +input GiftCardFilterInput { + isActive: Boolean + metadata: [MetadataFilter!] + tags: [String!] + products: [ID!] + usedBy: [ID!] + used: Boolean + currency: String + currentBalance: PriceRangeInput + initialBalance: PriceRangeInput + code: 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 +} + +""" +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!] +} + +""" +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 +} + +""" +An enumeration. +""" +enum ConfigurationTypeFieldEnum { + STRING + MULTILINE + BOOLEAN + SECRET + PASSWORD + SECRETMULTILINE + OUTPUT +} + +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! +} + +input PluginFilterInput { + statusInChannels: PluginStatusInChannelsInput + search: String + type: PluginConfigurationType +} + +input PluginStatusInChannelsInput { + active: Boolean! + channels: [ID!]! +} + +enum PluginConfigurationType { + PER_CHANNEL + GLOBAL +} + +input PluginSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort plugins by the selected field. + """ + field: PluginSortField! +} + +enum PluginSortField { + NAME + IS_ACTIVE +} + +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! +} + +input SaleFilterInput { + status: [DiscountStatusEnum!] + saleType: DiscountValueTypeEnum + started: DateTimeRangeInput + search: String + metadata: [MetadataFilter!] + updatedAt: DateTimeRangeInput +} + +enum DiscountStatusEnum { + ACTIVE + EXPIRED + SCHEDULED +} + +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! +} + +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 +} + +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! +} + +input VoucherFilterInput { + status: [DiscountStatusEnum!] + timesUsed: IntRangeInput + discountType: [VoucherDiscountType!] + started: DateTimeRangeInput + search: String + metadata: [MetadataFilter!] +} + +enum VoucherDiscountType { + FIXED + PERCENTAGE + SHIPPING +} + +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! +} + +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 +} + +""" +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 +} + +""" +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 +} + +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 +} + +input ExportFileSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort export file by the selected field. + """ + field: ExportFileSortField! +} + +enum ExportFileSortField { + STATUS + CREATED_AT + UPDATED_AT + LAST_MODIFIED_AT +} + +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! +} + +input CheckoutSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort checkouts by the selected field. + """ + field: CheckoutSortField! +} + +enum CheckoutSortField { + """ + Sort checkouts by creation date. + """ + CREATION_DATE + + """ + Sort checkouts by customer. + """ + CUSTOMER + + """ + Sort checkouts by payment. + """ + PAYMENT +} + +input CheckoutFilterInput { + customer: String + created: DateRangeInput + search: String + metadata: [MetadataFilter!] + channels: [ID!] +} + +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! +} + +input AttributeSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort attributes by the selected field. + """ + field: AttributeSortField! +} + +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 +} + +""" +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! +} + +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! +} + +input AppFilterInput { + search: String + isActive: Boolean + type: AppTypeEnum +} + +input AppSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort apps by the selected field. + """ + field: AppSortField! +} + +enum AppSortField { + """ + Sort apps by name. + """ + NAME + + """ + Sort apps by creation date. + """ + CREATION_DATE +} + +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 +} + +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! +} + +type ChoiceValue { + raw: String + verbose: String +} + +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 CustomerFilterInput { + dateJoined: DateRangeInput + numberOfOrders: IntRangeInput + placedOrders: DateRangeInput + search: String + metadata: [MetadataFilter!] + updatedAt: DateTimeRangeInput +} + +input UserSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort users by the selected field. + """ + field: UserSortField! +} + +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 +} + +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! +} + +input PermissionGroupFilterInput { + search: String + ids: [ID!] +} + +input PermissionGroupSortingInput { + """ + Specifies the direction in which to sort products. + """ + direction: OrderDirection! + + """ + Sort permission group by the selected field. + """ + field: PermissionGroupSortField! +} + +enum PermissionGroupSortField { + """ + Sort permission group accounts by name. + """ + NAME +} + +input StaffUserInput { + status: StaffMemberStatus + search: String + ids: [ID!] +} + +enum StaffMemberStatus { + """ + User account has been activated. + """ + ACTIVE + + """ + User account has not been activated yet. + """ + DEACTIVATED +} + +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 + + """ + Deletes a webhook subscription. + + 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 + + """ + 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 + + """ + 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 + + """ + 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( + """ + 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( + """ + 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( + """ + ID of a product variant to delete. + """ + id: ID! + ): 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!]! + ): 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( + """ + ID of product variant for which stocks will be deleted. + """ + variantId: ID! + warehouseIds: [ID!] + ): ProductVariantStocksDelete + + """ + Update stocks for product variant. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productVariantStocksUpdate( + """ + Input list of stocks to create. + """ + stocks: [StockInput!]! + + """ + ID of a product variant for which stocks will be created. + """ + variantId: ID! + ): ProductVariantStocksUpdate + + """ + Updates an existing variant for product. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + productVariantUpdate( + """ + ID of a product variant to update. + """ + id: ID! + + """ + Fields required to update a product variant. + """ + input: ProductVariantInput! + ): 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!]! + ): 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. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + 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. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + 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, MANAGE_ORDERS. + """ + 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 + + """ + 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( + """ + ID of a draft order 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( + """ + 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 + + """ + 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( + """ + 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 + ): 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 + + """ + 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. Can be used to attach customer to checkout by staff or app. Requires IMPERSONATE_USER permission. + """ + 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: "DEPRECATED: 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 + ): 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! + + """ + 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 + + """ + 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( + """ + ID of an attribute to delete. + """ + id: ID! + ): AttributeDelete + + """ + Updates attribute. + + Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ + attributeUpdate( + """ + 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( + """ + 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( + """ + 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( + """ + 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( + """ + 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( + """ + 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. + + Requires one of the following permissions: MANAGE_STAFF. + """ + staffCreate( + """ + Fields required to create a staff user. + """ + input: StaffCreateInput! + ): StaffCreate + + """ + Updates an existing staff user. + + 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. + + Requires one of the following permissions: MANAGE_STAFF. + """ + staffDelete( + """ + ID of a staff user to delete. + """ + id: ID! + ): StaffDelete + + """ + Deletes staff users. + + 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. + + Requires one of the following permissions: MANAGE_STAFF. + """ + permissionGroupCreate( + """ + Input fields to create permission group. + """ + input: PermissionGroupCreateInput! + ): PermissionGroupCreate + + """ + Update permission group. + + 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. + + Requires one of the following permissions: MANAGE_STAFF. + """ + permissionGroupDelete( + """ + ID of the group to delete. + """ + id: ID! + ): PermissionGroupDelete +} + +""" +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 +} + +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 +} + +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. + """ + 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 +} + +""" +Deletes a webhook subscription. + +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 +} + +""" +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. + """ + 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 +} + +""" +Retries event delivery. + +Requires one of the following permissions: MANAGE_APPS. +""" +type EventDeliveryRetry { + """ + Event delivery. + """ + delivery: EventDelivery + errors: [WebhookError!]! +} + +""" +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 +} + +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! +} + +""" +An enumeration. +""" +enum WarehouseErrorCode { + ALREADY_EXISTS + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + +input WarehouseCreateInput { + """ + Warehouse slug. + """ + slug: String + + """ + The email address of the warehouse. + """ + email: String + + """ + Warehouse name. + """ + name: String! + + """ + Address of the warehouse. + """ + address: AddressInput! + + """ + Shipping zones supported by the warehouse. + """ + shippingZones: [ID!] +} + +""" +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 + + """ + 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 +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +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 +} + +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 +} + +""" +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 +} + +""" +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!]! +} + +input SiteDomainInput { + """ + Domain name for shop. + """ + domain: String + + """ + Shop site name. + """ + name: 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!]! +} + +input ShopSettingsInput { + """ + Header text. + """ + headerText: String + + """ + SEO description. + """ + description: String + + """ + Include taxes in prices. + """ + includeTaxesInPrices: Boolean + + """ + Display prices with tax in store. + """ + displayGrossPrices: Boolean + + """ + Charge taxes on shipping. + """ + chargeTaxesOnShipping: Boolean + + """ + 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 +} + +""" +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!]! +} + +""" +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!]! +} + +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 ShopSettingsTranslationInput { + headerText: String + description: String +} + +""" +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!]! +} + +""" +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!]! +} + +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 +} + +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 +} + +""" +Update gift card settings. + +Requires one of the following permissions: MANAGE_GIFT_CARD. +""" +type GiftCardSettingsUpdate { + """ + Gift card settings. + """ + giftCardSettings: GiftCardSettings + errors: [GiftCardSettingsError!]! +} + +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 +} + +input GiftCardSettingsUpdateInput { + """ + Defines gift card default expiry settings. + """ + expiryType: GiftCardSettingsExpiryTypeEnum + + """ + Defines gift card expiry period. + """ + expiryPeriod: TimePeriodInputType +} + +input TimePeriodInputType { + """ + The length of the period. + """ + amount: Int! + + """ + The type of the period. + """ + type: TimePeriodTypeEnum! +} + +""" +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!]! +} + +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 +} + +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!] +} + +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 +} + +""" +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!]! +} + +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 +} + +scalar WeightScalar + +input ShippingPostalCodeRulesCreateInputRange { + """ + Start range of the postal code. + """ + start: String! + + """ + End range of the postal code. + """ + end: String +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +""" +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!]! +} + +""" +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 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!] +} + +""" +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 +} + +""" +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!]! +} + +""" +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!] +} + +""" +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!]! +} + +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 +} + +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 +} + +enum ProductAttributeType { + PRODUCT + VARIANT +} + +""" +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! +} + +""" +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!]! +} + +""" +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 +} + +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 +} + +input SeoInput { + """ + SEO title. + """ + title: String + + """ + SEO description. + """ + description: String +} + +""" +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 + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +input TranslationInput { + seoTitle: String + seoDescription: String + name: String + + """ + Translated description. + + Rich text format. For reference see https://editorjs.io/ + """ + description: JSONString +} + +""" +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!]! +} + +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 +} + +""" +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 + + """ + List of products to be added to the collection. + """ + products: [ID!] +} + +""" +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 +} + +""" +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!]! +} + +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +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 +} + +""" +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 +} + +""" +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!]! +} + +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!] +} + +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!] +} + +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 +} + +""" +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. + """ + 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 + + """ + Tax rate for enabled tax gateway. + """ + taxCode: String + + """ + Search engine optimization fields. + """ + seo: SeoInput + + """ + Weight of the Product. + """ + weight: WeightScalar + + """ + Defines the product rating value. + """ + rating: Float + + """ + ID of the type that product belongs to. + """ + productType: 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. + """ + values: [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 + + """ + 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 +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +input ProductInput { + """ + List of attributes. + """ + attributes: [AttributeValueInput!] + + """ + ID of the product's category. + """ + category: ID + + """ + Determine if taxes are being charged for the product. + """ + 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 + + """ + Tax rate for enabled tax gateway. + """ + taxCode: String + + """ + Search engine optimization fields. + """ + seo: SeoInput + + """ + Weight of the Product. + """ + weight: WeightScalar + + """ + Defines the product rating value. + """ + rating: Float +} + +""" +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 +} + +""" +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!]! +} + +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!] +} + +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!] +} + +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!] +} + +""" +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 +} + +""" +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!]! +} + +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +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. + """ + taxCode: String +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +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 + + """ + Represents an file in a multipart request. + """ + contentFile: Upload! +} + +""" +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!]! +} + +""" +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 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 +} + +""" +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! +} + +""" +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 + + """ + 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 + + """ + Product ID of which type is the variant. + """ + product: ID! + + """ + Stocks of a product available for sale. + """ + stocks: [StockInput!] +} + +input PreorderSettingsInput { + """ + The global threshold for preorder variant. + """ + globalThreshold: Int + + """ + The end date for preorder. + """ + endDate: DateTime +} + +input StockInput { + """ + Warehouse in which stock is located. + """ + warehouse: ID! + + """ + Quantity of items available for sell. + """ + quantity: Int! +} + +""" +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 +} + +""" +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!]! +} + +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!] +} + +input ProductVariantBulkCreateInput { + """ + List of attributes specific to this variant. + """ + attributes: [BulkAttributeValueInput!]! + + """ + Stock keeping unit. + """ + sku: 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 + + """ + Stocks of a product available for sale. + """ + stocks: [StockInput!] + + """ + List of prices assigned to channels. + """ + channelListings: [ProductVariantChannelListingAddInput!] +} + +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 +} + +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 +} + +""" +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!]! +} + +""" +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!]! +} + +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 +} + +""" +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!]! +} + +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 +} + +""" +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!]! +} + +""" +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 +} + +input ProductVariantInput { + """ + List of attributes specific to this variant. + """ + attributes: [AttributeValueInput!] + + """ + Stock keeping unit. + """ + sku: 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 +} + +""" +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!]! +} + +""" +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 +} + +input NameTranslationInput { + name: String +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +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 varint 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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +""" +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! +} + +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 MoneyInput { + """ + Currency code. + """ + currency: String! + + """ + Amount of money. + """ + amount: PositiveDecimal! +} + +""" +Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +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 +} + +input TransactionCreateInput { + """ + Status of the transaction. + """ + status: String! + + """ + Payment type used for this transaction. + """ + type: String! + + """ + Reference of the transaction. + """ + reference: 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. + """ + amountVoided: MoneyInput + + """ + Payment public metadata. + """ + metadata: [MetadataInput!] + + """ + Payment private metadata. + """ + privateMetadata: [MetadataInput!] +} + +input MetadataInput { + """ + Key of a metadata item. + """ + key: String! + + """ + Value of a metadata item. + """ + value: String! +} + +input TransactionEventInput { + """ + Current status of the payment transaction. + """ + status: TransactionStatus! + + """ + Reference of the transaction. + """ + reference: String + + """ + Name of the transaction. + """ + name: String +} + +""" +Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +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 +} + +input TransactionUpdateInput { + """ + Status of the transaction. + """ + status: String + + """ + Payment type used for this transaction. + """ + type: String + + """ + Reference of the transaction. + """ + reference: 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. + """ + amountVoided: MoneyInput + + """ + Payment public metadata. + """ + metadata: [MetadataInput!] + + """ + Payment private metadata. + """ + privateMetadata: [MetadataInput!] +} + +""" +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, MANAGE_ORDERS. +""" +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 +} + +""" +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 +} + +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 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! +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +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 +} + +""" +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 +} + +input PageTranslationInput { + seoTitle: String + seoDescription: String + title: String + + """ + Translated page content. + + Rich text format. For reference see https://editorjs.io/ + """ + content: JSONString +} + +""" +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!] +} + +""" +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!] +} + +""" +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 + + """ + Variant line input consisting of variant ID and quantity of products. + """ + lines: [OrderLineCreateInput!] +} + +input OrderLineCreateInput { + """ + Number of variant items ordered. + """ + quantity: Int! + + """ + Product variant ID. + """ + variantId: ID! +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +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 +} + +""" +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! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +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! +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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!]! +} + +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 OrderRefundLineInput { + """ + The ID of the order line to refund. + """ + orderLineId: ID! + + """ + The number of items to be refunded. + """ + quantity: Int! +} + +input OrderRefundFulfillmentLineInput { + """ + The ID of the fulfillment line to refund. + """ + fulfillmentLineId: ID! + + """ + The number of items to be refunded. + """ + quantity: Int! +} + +""" +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!]! +} + +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 +} + +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 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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +input OrderLineInput { + """ + Number of variant items ordered. + """ + quantity: Int! +} + +""" +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +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 +} + +""" +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 +} + +""" +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 +} + +""" +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!]! +} + +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 +} + +enum NavigationType { + """ + Main storefront navigation. + """ + MAIN + + """ + Secondary storefront navigation. + """ + SECONDARY +} + +""" +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!] +} + +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 +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +input MenuInput { + """ + Name of the menu. + """ + name: String + + """ + Slug of the menu. + """ + slug: 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 +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +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 +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +input UpdateInvoiceInput { + """ + Invoice number + """ + number: String + + """ + URL of an invoice to download. + """ + url: String +} + +""" +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 +} + +""" +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!]! +} + +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 +} + +""" +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 +} + +input PriceInput { + """ + Currency code. + """ + currency: String! + + """ + Amount of money. + """ + amount: PositiveDecimal! +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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! +} + +""" +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! +} + +""" +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! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +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 PluginUpdateInput { + """ + Indicates whether the plugin should be enabled. + """ + active: Boolean + + """ + Configuration of the plugin. + """ + configuration: [ConfigurationItemInput!] +} + +input ConfigurationItemInput { + """ + Name of the field to update. + """ + name: String! + + """ + Value of the given field to update. + """ + value: String +} + +""" +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!]! +} + +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 +} + +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! +} + +""" +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 +} + +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 +} + +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 +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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!]! +} + +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!] +} + +""" +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!]! +} + +""" +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 +} + +""" +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!]! +} + +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!] +} + +input SaleChannelListingAddInput { + """ + ID of a channel. + """ + channelId: ID! + + """ + The value of the discount. + """ + discountValue: PositiveDecimal! +} + +""" +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 +} + +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 +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +""" +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!]! +} + +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!] +} + +input VoucherChannelListingAddInput { + """ + ID of a channel. + """ + channelId: ID! + + """ + Value of the voucher. + """ + discountValue: PositiveDecimal + + """ + Min purchase amount required to apply the voucher. + """ + minAmountSpent: PositiveDecimal +} + +""" +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!]! +} + +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 +} + +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 +} + +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!] +} + +enum ProductFieldEnum { + NAME + DESCRIPTION + PRODUCT_TYPE + CATEGORY + PRODUCT_WEIGHT + COLLECTIONS + CHARGE_TAXES + PRODUCT_MEDIA + VARIANT_ID + VARIANT_SKU + VARIANT_WEIGHT + VARIANT_MEDIA +} + +""" +An enumeration. +""" +enum FileTypesEnum { + CSV + XLSX +} + +""" +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! +} + +""" +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!]! +} + +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 +} + +""" +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!]! +} + +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 +} + +""" +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!]! +} + +""" +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 +} + +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 +} + +""" +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 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!]! +} + +""" +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!]! +} + +""" +Deletes checkout lines. +""" +type CheckoutLinesDelete { + """ + An updated checkout. + """ + checkout: Checkout + errors: [CheckoutError!]! +} + +""" +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!]! +} + +""" +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!]! +} + +input CheckoutLineUpdateInput { + """ + The number of items purchased. Optional for apps, required for any other users. + """ + 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 +} + +""" +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!]! +} + +""" +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!]! +} + +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 = NONE + + """ + User public metadata. + + Added in Saleor 3.1. + """ + metadata: [MetadataInput!] +} + +""" +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +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!] +} + +""" +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 +} + +input ChannelCreateInput { + """ + isActive flag. + """ + isActive: Boolean + + """ + 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. + """ + defaultCountry: CountryCode! + + """ + List of shipping zones to assign to the channel. + """ + addShippingZones: [ID!] +} + +""" +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 + + """ + 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 assign to the channel. + """ + addShippingZones: [ID!] + + """ + List of shipping zones to unassign from the channel. + """ + removeShippingZones: [ID!] +} + +""" +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! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +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 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 +} + +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/ + """ + richText: JSONString + + """ + URL of the file attribute. Every time, a new value is created. + """ + fileUrl: String + + """ + File content type. + """ + contentType: String + + """ + Name of a value displayed in the interface. + """ + name: String! +} + +""" +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 +} + +""" +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 +} + +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/ + """ + richText: JSONString + + """ + URL of the file attribute. Every time, a new value is created. + """ + fileUrl: String + + """ + File content type. + """ + contentType: String + + """ + Name of a value displayed in the interface. + """ + name: String +} + +""" +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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +input AttributeValueTranslationInput { + name: String + + """ + Translated text. + + Rich text format. For reference see https://editorjs.io/ + """ + richText: JSONString +} + +""" +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!]! +} + +""" +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 +} + +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 +} + +input AppInput { + """ + Name of the app. + """ + name: String + + """ + List of permission code names to assign to this app. + """ + permissions: [PermissionEnum!] +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +input AppTokenInput { + """ + Name of the token. + """ + name: String + + """ + ID of app. + """ + app: ID! +} + +""" +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 +} + +""" +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!]! +} + +""" +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!] +} + +""" +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 +} + +""" +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 +} + +""" +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!]! +} + +""" +The manifest definition. +""" +type Manifest { + identifier: String! + version: String! + name: String! + about: String + permissions: [Permission!] + appUrl: String + configurationUrl: String + tokenTargetUrl: String + dataPrivacy: String + dataPrivacyUrl: String + homepageUrl: String + supportUrl: String + extensions: [AppManifestExtension!]! +} + +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! +} + +""" +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 +} + +""" +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 +} + +""" +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 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 +} + +""" +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!]! +} + +""" +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!]! +} + +""" +The `GenericScalar` scalar type represents a generic +GraphQL scalar value that could be: +String, Boolean, Int, Float, List or Object. +""" +scalar GenericScalar + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +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 +} + +""" +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!]! +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +""" +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 +} + +""" +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!]! +} + +""" +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 +} + +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 + + """ + 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 +} + +""" +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 +} + +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 +} + +""" +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 +} + +""" +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 staff user. + +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 +} + +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!] +} + +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 +} + +""" +Updates an existing staff user. + +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!] +} + +""" +Deletes a staff user. + +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 +} + +""" +Deletes staff users. + +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +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!]! +} + +""" +Create new permission group. + +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 +} + +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 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! +} + +""" +Update permission group. + +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!] +} + +""" +Delete permission group. + +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 +} + +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 +} + +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 +} + +union IssuingPrincipal = App | User + +""" +An enumeration. +""" +enum DistanceUnitsEnum { + CM + M + KM + FT + YD + INCH +} + +""" +An enumeration. +""" +enum AreaUnitsEnum { + SQ_CM + SQ_M + SQ_KM + SQ_FT + SQ_YD + SQ_INCH +} + +""" +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 +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + app: App +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + app: App +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + app: App +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + app: App +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + channel: Channel +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + channel: Channel +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + channel: Channel +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + channel: Channel +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + giftCard: GiftCard +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + giftCard: GiftCard +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + giftCard: GiftCard +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + giftCard: GiftCard +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Menu +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Menu +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Menu +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): MenuItem +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): MenuItem +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): MenuItem +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + product( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Product + + """ + The category of the product. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + product( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Product + + """ + The category of the product. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + product( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Product + + """ + The category of the product. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + category: Category +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant + + """ + Look up a warehouse. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant + + """ + Look up a warehouse. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariant( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ProductVariant +} + +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. + + Added in Saleor 3.2. + + 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 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. + + Added in Saleor 3.2. + + 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 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. + + Added in Saleor 3.2. + + 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 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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + invoice: Invoice +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + invoice: Invoice +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + invoice: Invoice +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + fulfillment: Fulfillment + + """ + The order the fulfillment belongs to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + fulfillment: Fulfillment + + """ + The order the fulfillment belongs to. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + order: Order +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + user: User +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + user: User +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + collection( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Collection +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + collection( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Collection +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + collection( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Collection +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + checkout: Checkout +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + checkout: Checkout +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + page: Page +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + page: Page +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + page: Page +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethod( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingMethodType + + """ + The shipping zone the shipping method belongs to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethod( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingMethodType + + """ + The shipping zone the shipping method belongs to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingMethod( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingMethodType + + """ + The shipping zone the shipping method belongs to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + shippingZone( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): ShippingZone +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + 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. + """ + action: TransactionAction! +} + +type TransactionAction { + """ + Determines the action type. + """ + actionType: TransactionActionEnum! + + """ + Transaction request amount. Null when action type is VOID. + """ + amount: PositiveDecimal +} + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + translation: TranslationTypes +} + +union TranslationTypes = + ProductTranslation + | CollectionTranslation + | CategoryTranslation + | AttributeTranslation + | AttributeValueTranslation + | ProductVariantTranslation + | PageTranslation + | ShippingMethodTranslation + | SaleTranslation + | VoucherTranslation + | MenuItemTranslation + +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. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + translation: TranslationTypes +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + voucher( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Voucher +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + voucher( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Voucher +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + voucher( + """ + Slug of a channel for which the data should be returned. + """ + channel: String + ): Voucher +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +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. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +""" +_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 + | Collection + | Category + | ProductMedia + | PageType + +""" +_Service manifest as defined by Federation spec. +""" +type _Service { + sdl: String +} diff --git a/apps/slack/next-env.d.ts b/apps/slack/next-env.d.ts new file mode 100644 index 0000000..4f11a03 --- /dev/null +++ b/apps/slack/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/apps/slack/next.config.js b/apps/slack/next.config.js new file mode 100644 index 0000000..87a04b6 --- /dev/null +++ b/apps/slack/next.config.js @@ -0,0 +1,44 @@ +// This file sets a custom webpack configuration to use your Next.js app +// with Sentry. +// https://nextjs.org/docs/api-reference/next.config.js/introduction +// https://docs.sentry.io/platforms/javascript/guides/nextjs/ + +const { withSentryConfig } = require("@sentry/nextjs"); + +const isSentryPropertiesInEnvironment = + process.env.SENTRY_AUTH_TOKEN && process.env.SENTRY_PROJECT && process.env.SENTRY_ORG; + +const moduleExports = { + eslint: { + ignoreDuringBuilds: false, + }, + reactStrictMode: true, + + sentry: { + disableServerWebpackPlugin: !isSentryPropertiesInEnvironment, + disableClientWebpackPlugin: !isSentryPropertiesInEnvironment, + // Use `hidden-source-map` rather than `source-map` as the Webpack `devtool` + // for client-side builds. (This will be the default starting in + // `@sentry/nextjs` version 8.0.0.) See + // https://webpack.js.org/configuration/devtool/ and + // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map + // for more information. + hideSourceMaps: true, + }, +}; + +const sentryWebpackPluginOptions = { + // Additional config options for the Sentry Webpack plugin. Keep in mind that + // the following options are set automatically, and overriding them is not + // recommended: + // release, url, org, project, authToken, configFile, stripPrefix, + // urlPrefix, include, ignore + + silent: true, // Suppresses all logs + // For all available options, see: + // https://github.com/getsentry/sentry-webpack-plugin#options. +}; + +// Make sure adding Sentry options is the last code to run before exporting, to +// ensure that your source maps include changes from all other Webpack plugins +module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions); diff --git a/apps/slack/package.json b/apps/slack/package.json new file mode 100644 index 0000000..e6fb8dc --- /dev/null +++ b/apps/slack/package.json @@ -0,0 +1,61 @@ +{ + "name": "saleor-app-slack", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "pnpm generate && NODE_OPTIONS='--inspect' next dev", + "build": "pnpm generate && next build", + "start": "next start", + "lint": "pnpm generate && prettier --loglevel warn --write . && eslint --fix .", + "fetch-schema": "curl https://raw.githubusercontent.com/saleor/saleor/${npm_package_saleor_schemaVersion}/saleor/graphql/schema.graphql > graphql/schema.graphql", + "generate": "graphql-codegen" + }, + "saleor": { + "schemaVersion": "3.10" + }, + "dependencies": { + "@material-ui/core": "^4.12.4", + "@material-ui/icons": "^4.11.3", + "@material-ui/lab": "4.0.0-alpha.61", + "@saleor/app-sdk": "0.27.1", + "@saleor/macaw-ui": "^0.7.2", + "@sentry/nextjs": "^7.30.0", + "@urql/exchange-auth": "^1.0.0", + "clsx": "^1.2.1", + "eslint-config-next": "13.1.4", + "graphql": "^16.5.0", + "graphql-tag": "^2.12.6", + "jose": "^4.11.2", + "next": "13.1.0", + "react": "18.2.0", + "react-dom": "18.2.0", + "react-helmet": "^6.1.0", + "urql": "^3.0.3", + "usehooks-ts": "^2.9.1" + }, + "devDependencies": { + "@graphql-codegen/cli": "2.7.0", + "@graphql-codegen/introspection": "2.1.1", + "@graphql-codegen/typed-document-node": "^2.2.14", + "@graphql-codegen/typescript": "2.6.0", + "@graphql-codegen/typescript-operations": "2.4.3", + "@graphql-codegen/typescript-urql": "^3.5.13", + "@graphql-codegen/urql-introspection": "2.1.1", + "@graphql-typed-document-node/core": "^3.1.1", + "@types/node": "^18.7.16", + "@types/react": "^18.0.19", + "@types/react-dom": "^18.0.6", + "@typescript-eslint/eslint-plugin": "^5.36.2", + "@typescript-eslint/parser": "^5.36.2", + "autoprefixer": "^10.4.7", + "clean-publish": "^4.0.1", + "postcss": "^8.4.14", + "pretty-quick": "^3.1.3", + "typescript": "4.8.3", + "eslint-config-saleor": "workspace:*" + }, + "lint-staged": { + "*.{js,ts,tsx}": "eslint --cache --fix", + "*.{js,ts,tsx,css,md,json}": "prettier --write" + } +} diff --git a/apps/slack/pnpm-lock.yaml b/apps/slack/pnpm-lock.yaml new file mode 100644 index 0000000..c2bc9dd --- /dev/null +++ b/apps/slack/pnpm-lock.yaml @@ -0,0 +1,8984 @@ +lockfileVersion: 5.4 + +specifiers: + "@graphql-codegen/cli": 2.7.0 + "@graphql-codegen/introspection": 2.1.1 + "@graphql-codegen/typed-document-node": ^2.2.14 + "@graphql-codegen/typescript": 2.6.0 + "@graphql-codegen/typescript-operations": 2.4.3 + "@graphql-codegen/typescript-urql": ^3.5.13 + "@graphql-codegen/urql-introspection": 2.1.1 + "@graphql-typed-document-node/core": ^3.1.1 + "@material-ui/core": ^4.12.4 + "@material-ui/icons": ^4.11.3 + "@material-ui/lab": 4.0.0-alpha.61 + "@saleor/app-sdk": 0.27.1 + "@saleor/macaw-ui": ^0.7.2 + "@sentry/nextjs": ^7.30.0 + "@types/node": ^18.7.16 + "@types/react": ^18.0.19 + "@types/react-dom": ^18.0.6 + "@typescript-eslint/eslint-plugin": ^5.36.2 + "@typescript-eslint/parser": ^5.36.2 + "@urql/exchange-auth": ^1.0.0 + autoprefixer: ^10.4.7 + clean-publish: ^4.0.1 + clsx: ^1.2.1 + eslint: ^8.23.1 + eslint-config-airbnb: ^19.0.4 + eslint-config-next: 13.1.4 + eslint-config-prettier: ^8.5.0 + eslint-import-resolver-typescript: ^3.5.1 + eslint-plugin-import: ^2.26.0 + eslint-plugin-jsx-a11y: ^6.6.0 + eslint-plugin-react: ^7.31.8 + eslint-plugin-react-hooks: ^4.6.0 + eslint-plugin-simple-import-sort: ^8.0.0 + graphql: ^16.5.0 + graphql-tag: ^2.12.6 + husky: ^8.0.1 + jose: ^4.11.2 + next: 13.1.0 + postcss: ^8.4.14 + prettier: ^2.7.1 + pretty-quick: ^3.1.3 + react: 18.2.0 + react-dom: 18.2.0 + react-helmet: ^6.1.0 + typescript: 4.8.3 + urql: ^3.0.3 + usehooks-ts: ^2.9.1 + +dependencies: + "@material-ui/core": 4.12.4_nylzxt5ale4dsv666zkb25cgtm + "@material-ui/icons": 4.11.3_syzufrrnbgjhwvvotesawp6yai + "@material-ui/lab": 4.0.0-alpha.61_syzufrrnbgjhwvvotesawp6yai + "@saleor/app-sdk": 0.27.1_s75y6mxmikaw2mhqmuko6w7njm + "@saleor/macaw-ui": 0.7.2_3igskpsgnvdgn574z3phvz2joa + "@sentry/nextjs": 7.30.0_next@13.1.0+react@18.2.0 + "@urql/exchange-auth": 1.0.0_graphql@16.5.0 + clsx: 1.2.1 + eslint-config-next: 13.1.4_irgkl5vooow2ydyo6aokmferha + graphql: 16.5.0 + graphql-tag: 2.12.6_graphql@16.5.0 + jose: 4.11.2 + next: 13.1.0_biqbaboplfbrettd7655fr4n2y + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + react-helmet: 6.1.0_react@18.2.0 + urql: 3.0.3_aez2jvt6lsvokp3l4ousdbdxf4 + usehooks-ts: 2.9.1_biqbaboplfbrettd7655fr4n2y + +devDependencies: + "@graphql-codegen/cli": 2.7.0_siupcgn3wlvluhjnbpgmgner4m + "@graphql-codegen/introspection": 2.1.1_graphql@16.5.0 + "@graphql-codegen/typed-document-node": 2.3.2_graphql@16.5.0 + "@graphql-codegen/typescript": 2.6.0_graphql@16.5.0 + "@graphql-codegen/typescript-operations": 2.4.3_graphql@16.5.0 + "@graphql-codegen/typescript-urql": 3.6.2_ubrtutz2urcxyhwqr2zvlqjzha + "@graphql-codegen/urql-introspection": 2.1.1_graphql@16.5.0 + "@graphql-typed-document-node/core": 3.1.1_graphql@16.5.0 + "@types/node": 18.7.16 + "@types/react": 18.0.19 + "@types/react-dom": 18.0.6 + "@typescript-eslint/eslint-plugin": 5.36.2_wxqvmnl3i4rbvz4ixyoiufmx3e + "@typescript-eslint/parser": 5.36.2_irgkl5vooow2ydyo6aokmferha + autoprefixer: 10.4.8_postcss@8.4.14 + clean-publish: 4.0.1 + eslint: 8.23.1 + eslint-config-airbnb: 19.0.4_vaa2l43rrt3zt475houvwxvax4 + eslint-config-prettier: 8.5.0_eslint@8.23.1 + eslint-import-resolver-typescript: 3.5.1_hdzsmr7kawaomymueo2tso6fjq + eslint-plugin-import: 2.26.0_bkwixupcywvgmrzjbgj7n47r6y + eslint-plugin-jsx-a11y: 6.6.0_eslint@8.23.1 + eslint-plugin-react: 7.31.8_eslint@8.23.1 + eslint-plugin-react-hooks: 4.6.0_eslint@8.23.1 + eslint-plugin-simple-import-sort: 8.0.0_eslint@8.23.1 + husky: 8.0.1 + postcss: 8.4.14 + prettier: 2.7.1 + pretty-quick: 3.1.3_prettier@2.7.1 + typescript: 4.8.3 + +packages: + /@ampproject/remapping/2.2.0: + resolution: + { + integrity: sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==, + } + engines: { node: ">=6.0.0" } + dependencies: + "@jridgewell/gen-mapping": 0.1.1 + "@jridgewell/trace-mapping": 0.3.14 + dev: true + + /@ardatan/relay-compiler/12.0.0_graphql@16.5.0: + resolution: + { + integrity: sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==, + } + hasBin: true + peerDependencies: + graphql: "*" + dependencies: + "@babel/core": 7.18.9 + "@babel/generator": 7.18.9 + "@babel/parser": 7.19.0 + "@babel/runtime": 7.18.9 + "@babel/traverse": 7.18.9 + "@babel/types": 7.19.0 + babel-preset-fbjs: 3.4.0_@babel+core@7.18.9 + chalk: 4.1.2 + fb-watchman: 2.0.1 + fbjs: 3.0.4 + glob: 7.2.3 + graphql: 16.5.0 + immutable: 3.7.6 + invariant: 2.2.4 + nullthrows: 1.1.1 + relay-runtime: 12.0.0 + signedsource: 1.0.0 + yargs: 15.4.1 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@babel/code-frame/7.18.6: + resolution: + { + integrity: sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/highlight": 7.18.6 + dev: true + + /@babel/compat-data/7.19.0: + resolution: + { + integrity: sha512-y5rqgTTPTmaF5e2nVhOxw+Ur9HDJLsWb6U/KpgUzRZEdPfE6VOubXBKLdbcUTijzRptednSBDQbYZBOSqJxpJw==, + } + engines: { node: ">=6.9.0" } + dev: true + + /@babel/core/7.18.9: + resolution: + { + integrity: sha512-1LIb1eL8APMy91/IMW+31ckrfBM4yCoLaVzoDhZUKSM4cu1L1nIidyxkCgzPAgrC5WEz36IPEr/eSeSF9pIn+g==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@ampproject/remapping": 2.2.0 + "@babel/code-frame": 7.18.6 + "@babel/generator": 7.18.9 + "@babel/helper-compilation-targets": 7.19.0_@babel+core@7.18.9 + "@babel/helper-module-transforms": 7.18.9 + "@babel/helpers": 7.18.9 + "@babel/parser": 7.19.0 + "@babel/template": 7.18.10 + "@babel/traverse": 7.18.9 + "@babel/types": 7.19.0 + convert-source-map: 1.8.0 + debug: 4.3.4 + gensync: 1.0.0-beta.2 + json5: 2.2.1 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/generator/7.18.9: + resolution: + { + integrity: sha512-wt5Naw6lJrL1/SGkipMiFxJjtyczUWTP38deiP1PO60HsBjDeKk08CGC3S8iVuvf0FmTdgKwU1KIXzSKL1G0Ug==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + "@jridgewell/gen-mapping": 0.3.2 + jsesc: 2.5.2 + dev: true + + /@babel/helper-annotate-as-pure/7.18.6: + resolution: + { + integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-compilation-targets/7.19.0_@babel+core@7.18.9: + resolution: + { + integrity: sha512-Ai5bNWXIvwDvWM7njqsG3feMlL9hCVQsPYXodsZyLwshYkZVJt59Gftau4VrE8S9IT9asd2uSP1hG6wCNw+sXA==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0 + dependencies: + "@babel/compat-data": 7.19.0 + "@babel/core": 7.18.9 + "@babel/helper-validator-option": 7.18.6 + browserslist: 4.21.3 + semver: 6.3.0 + dev: true + + /@babel/helper-create-class-features-plugin/7.19.0_@babel+core@7.18.9: + resolution: + { + integrity: sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-annotate-as-pure": 7.18.6 + "@babel/helper-environment-visitor": 7.18.9 + "@babel/helper-function-name": 7.19.0 + "@babel/helper-member-expression-to-functions": 7.18.9 + "@babel/helper-optimise-call-expression": 7.18.6 + "@babel/helper-replace-supers": 7.18.9 + "@babel/helper-split-export-declaration": 7.18.6 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-environment-visitor/7.18.9: + resolution: + { + integrity: sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==, + } + engines: { node: ">=6.9.0" } + dev: true + + /@babel/helper-function-name/7.19.0: + resolution: + { + integrity: sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/template": 7.18.10 + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-hoist-variables/7.18.6: + resolution: + { + integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-member-expression-to-functions/7.18.9: + resolution: + { + integrity: sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-module-imports/7.18.6: + resolution: + { + integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-module-transforms/7.18.9: + resolution: + { + integrity: sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/helper-environment-visitor": 7.18.9 + "@babel/helper-module-imports": 7.18.6 + "@babel/helper-simple-access": 7.18.6 + "@babel/helper-split-export-declaration": 7.18.6 + "@babel/helper-validator-identifier": 7.18.6 + "@babel/template": 7.18.10 + "@babel/traverse": 7.18.9 + "@babel/types": 7.19.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-optimise-call-expression/7.18.6: + resolution: + { + integrity: sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-plugin-utils/7.19.0: + resolution: + { + integrity: sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==, + } + engines: { node: ">=6.9.0" } + dev: true + + /@babel/helper-replace-supers/7.18.9: + resolution: + { + integrity: sha512-dNsWibVI4lNT6HiuOIBr1oyxo40HvIVmbwPUm3XZ7wMh4k2WxrxTqZwSqw/eEmXDS9np0ey5M2bz9tBmO9c+YQ==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/helper-environment-visitor": 7.18.9 + "@babel/helper-member-expression-to-functions": 7.18.9 + "@babel/helper-optimise-call-expression": 7.18.6 + "@babel/traverse": 7.18.9 + "@babel/types": 7.19.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-simple-access/7.18.6: + resolution: + { + integrity: sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-skip-transparent-expression-wrappers/7.18.9: + resolution: + { + integrity: sha512-imytd2gHi3cJPsybLRbmFrF7u5BIEuI2cNheyKi3/iOBC63kNn3q8Crn2xVuESli0aM4KYsyEqKyS7lFL8YVtw==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-split-export-declaration/7.18.6: + resolution: + { + integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/helper-string-parser/7.18.10: + resolution: + { + integrity: sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==, + } + engines: { node: ">=6.9.0" } + dev: true + + /@babel/helper-validator-identifier/7.18.6: + resolution: + { + integrity: sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==, + } + engines: { node: ">=6.9.0" } + dev: true + + /@babel/helper-validator-option/7.18.6: + resolution: + { + integrity: sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==, + } + engines: { node: ">=6.9.0" } + dev: true + + /@babel/helpers/7.18.9: + resolution: + { + integrity: sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/template": 7.18.10 + "@babel/traverse": 7.18.9 + "@babel/types": 7.19.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/highlight/7.18.6: + resolution: + { + integrity: sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/helper-validator-identifier": 7.18.6 + chalk: 2.4.2 + js-tokens: 4.0.0 + dev: true + + /@babel/parser/7.19.0: + resolution: + { + integrity: sha512-74bEXKX2h+8rrfQUfsBfuZZHzsEs6Eql4pqy/T4Nn6Y9wNPggQOqD6z6pn5Bl8ZfysKouFZT/UXEH94ummEeQw==, + } + engines: { node: ">=6.0.0" } + hasBin: true + dependencies: + "@babel/types": 7.19.0 + dev: true + + /@babel/plugin-proposal-class-properties/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-create-class-features-plugin": 7.19.0_@babel+core@7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-proposal-object-rest-spread/7.18.9_@babel+core@7.18.9: + resolution: + { + integrity: sha512-kDDHQ5rflIeY5xl69CEqGEZ0KY369ehsCIEbTGb4siHG5BE9sga/T0r0OUwyZNLMmZE79E1kbsqAjwFCW4ds6Q==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/compat-data": 7.19.0 + "@babel/core": 7.18.9 + "@babel/helper-compilation-targets": 7.19.0_@babel+core@7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + "@babel/plugin-syntax-object-rest-spread": 7.8.3_@babel+core@7.18.9 + "@babel/plugin-transform-parameters": 7.18.8_@babel+core@7.18.9 + dev: true + + /@babel/plugin-syntax-class-properties/7.12.13_@babel+core@7.18.9: + resolution: + { + integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==, + } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-syntax-flow/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-syntax-jsx/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-syntax-object-rest-spread/7.8.3_@babel+core@7.18.9: + resolution: + { + integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==, + } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-arrow-functions/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-block-scoped-functions/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-block-scoping/7.18.9_@babel+core@7.18.9: + resolution: + { + integrity: sha512-5sDIJRV1KtQVEbt/EIBwGy4T01uYIo4KRB3VUqzkhrAIOGx7AoctL9+Ux88btY0zXdDyPJ9mW+bg+v+XEkGmtw==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-classes/7.19.0_@babel+core@7.18.9: + resolution: + { + integrity: sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-annotate-as-pure": 7.18.6 + "@babel/helper-compilation-targets": 7.19.0_@babel+core@7.18.9 + "@babel/helper-environment-visitor": 7.18.9 + "@babel/helper-function-name": 7.19.0 + "@babel/helper-optimise-call-expression": 7.18.6 + "@babel/helper-plugin-utils": 7.19.0 + "@babel/helper-replace-supers": 7.18.9 + "@babel/helper-split-export-declaration": 7.18.6 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-computed-properties/7.18.9_@babel+core@7.18.9: + resolution: + { + integrity: sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-destructuring/7.18.13_@babel+core@7.18.9: + resolution: + { + integrity: sha512-TodpQ29XekIsex2A+YJPj5ax2plkGa8YYY6mFjCohk/IG9IY42Rtuj1FuDeemfg2ipxIFLzPeA83SIBnlhSIow==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-flow-strip-types/7.18.9_@babel+core@7.18.9: + resolution: + { + integrity: sha512-+G6rp2zRuOAInY5wcggsx4+QVao1qPM0osC9fTUVlAV3zOrzTCnrMAFVnR6+a3T8wz1wFIH7KhYMcMB3u1n80A==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + "@babel/plugin-syntax-flow": 7.18.6_@babel+core@7.18.9 + dev: true + + /@babel/plugin-transform-for-of/7.18.8_@babel+core@7.18.9: + resolution: + { + integrity: sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-function-name/7.18.9_@babel+core@7.18.9: + resolution: + { + integrity: sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-compilation-targets": 7.19.0_@babel+core@7.18.9 + "@babel/helper-function-name": 7.19.0 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-literals/7.18.9_@babel+core@7.18.9: + resolution: + { + integrity: sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-member-expression-literals/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-modules-commonjs/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-Qfv2ZOWikpvmedXQJDSbxNqy7Xr/j2Y8/KfijM0iJyKkBTmWuvCA1yeH1yDM7NJhBW/2aXxeucLj6i80/LAJ/Q==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-module-transforms": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + "@babel/helper-simple-access": 7.18.6 + babel-plugin-dynamic-import-node: 2.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-object-super/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + "@babel/helper-replace-supers": 7.18.9 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-parameters/7.18.8_@babel+core@7.18.9: + resolution: + { + integrity: sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-property-literals/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-react-display-name/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-react-jsx/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-Mz7xMPxoy9kPS/JScj6fJs03TZ/fZ1dJPlMjRAgTaxaS0fUBk8FV/A2rRgfPsVCZqALNwMexD+0Uaf5zlcKPpw==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-annotate-as-pure": 7.18.6 + "@babel/helper-module-imports": 7.18.6 + "@babel/helper-plugin-utils": 7.19.0 + "@babel/plugin-syntax-jsx": 7.18.6_@babel+core@7.18.9 + "@babel/types": 7.19.0 + dev: true + + /@babel/plugin-transform-shorthand-properties/7.18.6_@babel+core@7.18.9: + resolution: + { + integrity: sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/plugin-transform-spread/7.19.0_@babel+core@7.18.9: + resolution: + { + integrity: sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + "@babel/helper-skip-transparent-expression-wrappers": 7.18.9 + dev: true + + /@babel/plugin-transform-template-literals/7.18.9_@babel+core@7.18.9: + resolution: + { + integrity: sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==, + } + engines: { node: ">=6.9.0" } + peerDependencies: + "@babel/core": ^7.0.0-0 + dependencies: + "@babel/core": 7.18.9 + "@babel/helper-plugin-utils": 7.19.0 + dev: true + + /@babel/runtime-corejs3/7.18.9: + resolution: + { + integrity: sha512-qZEWeccZCrHA2Au4/X05QW5CMdm4VjUDCrGq5gf1ZDcM4hRqreKrtwAn7yci9zfgAS9apvnsFXiGBHBAxZdK9A==, + } + engines: { node: ">=6.9.0" } + dependencies: + core-js-pure: 3.23.5 + regenerator-runtime: 0.13.9 + + /@babel/runtime/7.18.9: + resolution: + { + integrity: sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==, + } + engines: { node: ">=6.9.0" } + dependencies: + regenerator-runtime: 0.13.9 + + /@babel/template/7.18.10: + resolution: + { + integrity: sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/code-frame": 7.18.6 + "@babel/parser": 7.19.0 + "@babel/types": 7.19.0 + dev: true + + /@babel/traverse/7.18.9: + resolution: + { + integrity: sha512-LcPAnujXGwBgv3/WHv01pHtb2tihcyW1XuL9wd7jqh1Z8AQkTd+QVjMrMijrln0T7ED3UXLIy36P9Ao7W75rYg==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/code-frame": 7.18.6 + "@babel/generator": 7.18.9 + "@babel/helper-environment-visitor": 7.18.9 + "@babel/helper-function-name": 7.19.0 + "@babel/helper-hoist-variables": 7.18.6 + "@babel/helper-split-export-declaration": 7.18.6 + "@babel/parser": 7.19.0 + "@babel/types": 7.19.0 + debug: 4.3.4 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/types/7.19.0: + resolution: + { + integrity: sha512-YuGopBq3ke25BVSiS6fgF49Ul9gH1x70Bcr6bqRLjWCkcX8Hre1/5+z+IiWOIerRMSSEfGZVB9z9kyq7wVs9YA==, + } + engines: { node: ">=6.9.0" } + dependencies: + "@babel/helper-string-parser": 7.18.10 + "@babel/helper-validator-identifier": 7.18.6 + to-fast-properties: 2.0.0 + dev: true + + /@emotion/hash/0.8.0: + resolution: + { + integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==, + } + dev: false + + /@endemolshinegroup/cosmiconfig-typescript-loader/3.0.2_6wf3rui7fxpk2ozg5pxhvfantu: + resolution: + { + integrity: sha512-QRVtqJuS1mcT56oHpVegkKBlgtWjXw/gHNWO3eL9oyB5Sc7HBoc2OLG/nYpVfT/Jejvo3NUrD0Udk7XgoyDKkA==, + } + engines: { node: ">=10.0.0" } + peerDependencies: + cosmiconfig: ">=6" + dependencies: + cosmiconfig: 7.0.1 + lodash.get: 4.4.2 + make-error: 1.3.6 + ts-node: 9.1.1_typescript@4.8.3 + tslib: 2.4.0 + transitivePeerDependencies: + - typescript + dev: true + + /@eslint/eslintrc/1.3.2: + resolution: + { + integrity: sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 9.4.0 + globals: 13.16.0 + ignore: 5.2.0 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + /@floating-ui/core/0.7.3: + resolution: + { + integrity: sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg==, + } + dev: false + + /@floating-ui/dom/0.5.4: + resolution: + { + integrity: sha512-419BMceRLq0RrmTSDxn8hf9R3VCJv2K9PUfugh5JyEFmdjzDo+e8U5EdR8nzKq8Yj1htzLm3b6eQEEam3/rrtg==, + } + dependencies: + "@floating-ui/core": 0.7.3 + dev: false + + /@floating-ui/react-dom-interactions/0.5.0_nylzxt5ale4dsv666zkb25cgtm: + resolution: + { + integrity: sha512-rfON7mkHjCeogd0BSXPa8GBp1TMxEytJQqGVlCouSUonJ4POqdHsqcxRnCh0yAaGVaL/nB/J1vq28V4RdoLszg==, + } + deprecated: Package renamed to @floating-ui/react + dependencies: + "@floating-ui/react-dom": 0.7.2_nylzxt5ale4dsv666zkb25cgtm + aria-hidden: 1.1.3 + use-isomorphic-layout-effect: 1.1.2_fn6mmk7tilns4p7ajkklhuudvi + transitivePeerDependencies: + - "@types/react" + - react + - react-dom + dev: false + + /@floating-ui/react-dom/0.7.2_nylzxt5ale4dsv666zkb25cgtm: + resolution: + { + integrity: sha512-1T0sJcpHgX/u4I1OzIEhlcrvkUN8ln39nz7fMoE/2HDHrPiMFoOGR7++GYyfUmIQHkkrTinaeQsO3XWubjSvGg==, + } + peerDependencies: + react: ">=16.8.0" + react-dom: ">=16.8.0" + dependencies: + "@floating-ui/dom": 0.5.4 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + use-isomorphic-layout-effect: 1.1.2_fn6mmk7tilns4p7ajkklhuudvi + transitivePeerDependencies: + - "@types/react" + dev: false + + /@graphql-codegen/cli/2.7.0_siupcgn3wlvluhjnbpgmgner4m: + resolution: + { + integrity: sha512-qlBcS6jGfZ/xWXwqiyRLHGRuLC9gUdF8AwGHN7LdAYEP5MjL7pIXb02W5JuvMn47rrvr2Q22H9ECppZX65oSAg==, + } + hasBin: true + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/core": 2.5.1_graphql@16.5.0 + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-tools/apollo-engine-loader": 7.3.1_graphql@16.5.0 + "@graphql-tools/code-file-loader": 7.3.0_graphql@16.5.0 + "@graphql-tools/git-loader": 7.2.0_graphql@16.5.0 + "@graphql-tools/github-loader": 7.3.1_graphql@16.5.0 + "@graphql-tools/graphql-file-loader": 7.4.0_graphql@16.5.0 + "@graphql-tools/json-file-loader": 7.4.0_graphql@16.5.0 + "@graphql-tools/load": 7.7.0_graphql@16.5.0 + "@graphql-tools/prisma-loader": 7.2.2_ewm3rx2a6dfbdevnsyuui3n5xm + "@graphql-tools/url-loader": 7.12.1_ewm3rx2a6dfbdevnsyuui3n5xm + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + change-case-all: 1.0.14 + chokidar: 3.5.3 + common-tags: 1.8.2 + cosmiconfig: 7.0.1 + debounce: 1.2.1 + detect-indent: 6.1.0 + graphql: 16.5.0 + graphql-config: 4.3.1_siupcgn3wlvluhjnbpgmgner4m + inquirer: 8.2.4 + is-glob: 4.0.3 + json-to-pretty-yaml: 1.2.2 + latest-version: 5.1.0 + listr: 0.14.3 + listr-update-renderer: 0.5.0_listr@0.14.3 + log-symbols: 4.1.0 + mkdirp: 1.0.4 + string-env-interpolation: 1.0.1 + ts-log: 2.2.4 + wrap-ansi: 7.0.0 + yaml: 1.10.2 + yargs: 17.5.1 + transitivePeerDependencies: + - "@types/node" + - bufferutil + - encoding + - supports-color + - typescript + - utf-8-validate + - zen-observable + - zenObservable + dev: true + + /@graphql-codegen/core/2.5.1_graphql@16.5.0: + resolution: + { + integrity: sha512-alctBVl2hMnBXDLwkgmnFPrZVIiBDsWJSmxJcM4GKg1PB23+xuov35GE47YAyAhQItE1B1fbYnbb1PtGiDZ4LA==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-tools/schema": 8.5.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.3.1 + dev: true + + /@graphql-codegen/introspection/2.1.1_graphql@16.5.0: + resolution: + { + integrity: sha512-O9zsy0IoFYDo37pBVF4pSvRMDx/AKdgOxyko4R/O+0DHEw9Nya/pQ3dbn+LDLj2n6X+xOXUBUfFvqhODTqU28w==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.3.1 + dev: true + + /@graphql-codegen/plugin-helpers/2.6.0_graphql@16.5.0: + resolution: + { + integrity: sha512-z8uw6GdUvtKyt5YSijtj1yRqI0A2lBWdGIgTjgXaAKqSC+InlVBy+89859LlKNMrO7somdt44cbMys8r4Hbqeg==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + change-case-all: 1.0.14 + common-tags: 1.8.2 + graphql: 16.5.0 + import-from: 4.0.0 + lodash: 4.17.21 + tslib: 2.4.0 + dev: true + + /@graphql-codegen/schema-ast/2.5.0_graphql@16.5.0: + resolution: + { + integrity: sha512-nlF4Yc7h90nmogG2E11TeFJ3/hCkb4SDMSdbJX68b1mhvVEji/kq3zWYKAQ+lAzjZ7HF94Eylm3MrZAjjpCKIA==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.4.0 + dev: true + + /@graphql-codegen/typed-document-node/2.3.2_graphql@16.5.0: + resolution: + { + integrity: sha512-QJtSXEFMx5Ze5vqGXOphhuOAIbWfTPjTAMoNFXtaLsbrihooDNq2/BIujAxHc/Cw0pS2JjMRjbur118v0yXbSQ==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-codegen/visitor-plugin-common": 2.12.0_graphql@16.5.0 + auto-bind: 4.0.0 + change-case-all: 1.0.14 + graphql: 16.5.0 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@graphql-codegen/typescript-operations/2.4.3_graphql@16.5.0: + resolution: + { + integrity: sha512-MW9cU/zCAmfFAObwW23e+GrW3CoV9OX2gVm/V1565WGZXDQPUc5Y5IjdfGfunV4ApkgFDiHpF1Mz/AS55OErgw==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-codegen/typescript": 2.6.0_graphql@16.5.0 + "@graphql-codegen/visitor-plugin-common": 2.10.0_graphql@16.5.0 + auto-bind: 4.0.0 + graphql: 16.5.0 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@graphql-codegen/typescript-urql/3.6.2_ubrtutz2urcxyhwqr2zvlqjzha: + resolution: + { + integrity: sha512-iaAHoFYx3ZIBnIHO5/gvXdkVOYZVKKusrHr/hwOzOM/yVmapXMh/2+9YE9WHr2JVwDcy7STZPeN058hWHgILwg==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + graphql-tag: ^2.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-codegen/visitor-plugin-common": 2.12.0_graphql@16.5.0 + auto-bind: 4.0.0 + graphql: 16.5.0 + graphql-tag: 2.12.6_graphql@16.5.0 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@graphql-codegen/typescript/2.6.0_graphql@16.5.0: + resolution: + { + integrity: sha512-f36ilg8J+wui0OhmQglIZ+2z4Ybc08Y7r7BlBDqfJ1F5X0zau0SlC7Hp2iCoCA0ucqZYtiUU/0n+/R8m1cTrQQ==, + } + peerDependencies: + graphql: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-codegen/schema-ast": 2.5.0_graphql@16.5.0 + "@graphql-codegen/visitor-plugin-common": 2.10.0_graphql@16.5.0 + auto-bind: 4.0.0 + graphql: 16.5.0 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@graphql-codegen/urql-introspection/2.1.1_graphql@16.5.0: + resolution: + { + integrity: sha512-XLDLxyK8N3x3fvbkMoDb6lYPX2/rx3LiYT8dBeZYrBH1i9Tu0kfcEg0GeqNeLxiwnch9PZIC3O+gzROqP+rveA==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@urql/introspection": 0.3.1_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.3.1 + dev: true + + /@graphql-codegen/visitor-plugin-common/2.10.0_graphql@16.5.0: + resolution: + { + integrity: sha512-nWoxHKUdwOJCWV96Ks1x4EwYCWsZDJXB+2j6EQz5j27DzdxmQInZ86degaDCd3EgbwhMQEMtiZiPGFFDrgBkHA==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-tools/optimize": 1.3.0_graphql@16.5.0 + "@graphql-tools/relay-operation-optimizer": 6.5.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + auto-bind: 4.0.0 + change-case-all: 1.0.14 + dependency-graph: 0.11.0 + graphql: 16.5.0 + graphql-tag: 2.12.6_graphql@16.5.0 + parse-filepath: 1.0.2 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@graphql-codegen/visitor-plugin-common/2.12.0_graphql@16.5.0: + resolution: + { + integrity: sha512-ULhFgOY05U+dlPsXkPT2wSBaAZMtEuHPL5Q1u8xwBdHWHi/uT4L5zEcBx+If/f6UWrOw7ufjEM0L7XSupe1iCA==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-codegen/plugin-helpers": 2.6.0_graphql@16.5.0 + "@graphql-tools/optimize": 1.3.0_graphql@16.5.0 + "@graphql-tools/relay-operation-optimizer": 6.5.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + auto-bind: 4.0.0 + change-case-all: 1.0.14 + dependency-graph: 0.11.0 + graphql: 16.5.0 + graphql-tag: 2.12.6_graphql@16.5.0 + parse-filepath: 1.0.2 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@graphql-tools/apollo-engine-loader/7.3.1_graphql@16.5.0: + resolution: + { + integrity: sha512-PJhX4gQeoPtR2BJFYHYVLdLYkqQHB94r9IC64GamFV+kxR+jzQYZJdDTgnFZxvpvGJ7rEgYKNjcfWS+r+CQisQ==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + cross-undici-fetch: 0.4.14 + graphql: 16.5.0 + sync-fetch: 0.4.1 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + dev: true + + /@graphql-tools/batch-execute/8.5.0_graphql@16.5.0: + resolution: + { + integrity: sha512-S9/76X4uYIbVlJyRzXhCBbTJvVD0VvaWNqGiKgkITxlq4aBsTOHVuE84OSi3E1QKP3PTiJYrgMIn220iFOkyQw==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + dataloader: 2.1.0 + graphql: 16.5.0 + tslib: 2.4.0 + value-or-promise: 1.0.11 + dev: true + + /@graphql-tools/code-file-loader/7.3.0_graphql@16.5.0: + resolution: + { + integrity: sha512-mzevVv5JYyyRIbE6R0mxIniCAZWUGdoNYX97HdVgqChLOl2XRf9I8MarVPewHLmjLTZuWrdQx4ta4sPTLk4tUQ==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/graphql-tag-pluck": 7.3.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + globby: 11.1.0 + graphql: 16.5.0 + tslib: 2.4.0 + unixify: 1.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@graphql-tools/delegate/8.8.0_graphql@16.5.0: + resolution: + { + integrity: sha512-dbhfOI8rQXPcowXrbwHLOBY9oGi7qxtlrXF4RuRXmjqGTs2AgogdOE3Ep1+6wFD7qYTuFmHXZ8Cl0PmhoZUgrg==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/batch-execute": 8.5.0_graphql@16.5.0 + "@graphql-tools/schema": 8.5.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + dataloader: 2.1.0 + graphql: 16.5.0 + tslib: 2.4.0 + value-or-promise: 1.0.11 + dev: true + + /@graphql-tools/git-loader/7.2.0_graphql@16.5.0: + resolution: + { + integrity: sha512-aFJ5Py9sCIhiSyE+EK4zC+mQ4zRUNGGNwosqlCYNcmhtGFwlXArB13/rdj2b4p3RsmTe31Mso9VfsEZXQ6CGCw==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/graphql-tag-pluck": 7.3.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + is-glob: 4.0.3 + micromatch: 4.0.5 + tslib: 2.4.0 + unixify: 1.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@graphql-tools/github-loader/7.3.1_graphql@16.5.0: + resolution: + { + integrity: sha512-sus/YOZKhhbcBQTCWFvUdIzFThm/LiAlSh9+Bt+hNz2K05PWzR6XD7Fo2ejh6bSAZvevJBvsH/4xf1YSK86Fkg==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/graphql-tag-pluck": 7.3.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + cross-undici-fetch: 0.4.14 + graphql: 16.5.0 + sync-fetch: 0.4.1 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@graphql-tools/graphql-file-loader/7.4.0_graphql@16.5.0: + resolution: + { + integrity: sha512-r1lslE5GlWO/nbDX82enHjvva7qQiZEIPm+LC9JSgKaYuVoYHuIuIAVYkpBHeaRK1Kbh/86pEhL7PuBZ/cIWSA==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/import": 6.7.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + globby: 11.1.0 + graphql: 16.5.0 + tslib: 2.4.0 + unixify: 1.0.0 + dev: true + + /@graphql-tools/graphql-tag-pluck/7.3.0_graphql@16.5.0: + resolution: + { + integrity: sha512-GxtgGTSOiQuFc/yNWXsPJ5QEgGlH+4qBf1paqUJtjFpm89dZA+VkdjoIDiFg8fyXGivjZ37+XAUbuu6UlsT+6Q==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@babel/parser": 7.19.0 + "@babel/traverse": 7.18.9 + "@babel/types": 7.19.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.4.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@graphql-tools/import/6.7.0_graphql@16.5.0: + resolution: + { + integrity: sha512-u9JL4fClKKyBTQpgb4QFacYUwgBCs4lW1NaHX0hD2zBdahIYidokBY0QkOqOCEAnWeFqpEmAjB62ulLiAJWc2g==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + resolve-from: 5.0.0 + tslib: 2.4.0 + dev: true + + /@graphql-tools/json-file-loader/7.4.0_graphql@16.5.0: + resolution: + { + integrity: sha512-6oR7Ulc5iZc5SM3g1Yj91DqSu3TNbfGK/0baE8KyUlvq6KiIuWFWDy13RGnNesftt4RSWvZqGzu/kzXcBHtt+A==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + globby: 11.1.0 + graphql: 16.5.0 + tslib: 2.4.0 + unixify: 1.0.0 + dev: true + + /@graphql-tools/load/7.7.0_graphql@16.5.0: + resolution: + { + integrity: sha512-6KX7Z8BtlFScDr0pIac92QZWlPGbHcpNMesX/6Y3Vsp3FeFnAYfzZldXZQcJoW7Yl+gHdFwYVq683wSH64kNrw==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/schema": 8.5.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + p-limit: 3.1.0 + tslib: 2.4.0 + dev: true + + /@graphql-tools/merge/8.3.0_graphql@16.5.0: + resolution: + { + integrity: sha512-xRa7RAQok/0DD2YnjuqikMrr7dUAxTpdGtZ7BkvUUGhYs3B3p7reCAfvOVr1DJAqVToP7hdlMk+S5+Ylk+AaqA==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.4.0 + dev: true + + /@graphql-tools/optimize/1.3.0_graphql@16.5.0: + resolution: + { + integrity: sha512-30QOWJoMJEt1De7tAFtWJ6VPrP6SLq+tSQrA3x+WMvCW3q2exq5wPDpvAXOakVKu0y8L2E+YkipC0hcQPBQdLg==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + graphql: 16.5.0 + tslib: 2.4.0 + dev: true + + /@graphql-tools/prisma-loader/7.2.2_ewm3rx2a6dfbdevnsyuui3n5xm: + resolution: + { + integrity: sha512-f5txUBRwwZmPQYL5g5CNdOjOglFE/abtnEVOvUCq+nET0BRuxcuxUD5vykfZnkql9sNvnCFAfrZuBVe5S2n3bA==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/url-loader": 7.12.1_ewm3rx2a6dfbdevnsyuui3n5xm + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + "@types/js-yaml": 4.0.5 + "@types/json-stable-stringify": 1.0.34 + "@types/jsonwebtoken": 8.5.8 + chalk: 4.1.2 + debug: 4.3.4 + dotenv: 16.0.1 + graphql: 16.5.0 + graphql-request: 4.3.0_graphql@16.5.0 + http-proxy-agent: 5.0.0 + https-proxy-agent: 5.0.1 + isomorphic-fetch: 3.0.0 + js-yaml: 4.1.0 + json-stable-stringify: 1.0.1 + jsonwebtoken: 8.5.1 + lodash: 4.17.21 + replaceall: 0.1.6 + scuid: 1.1.0 + tslib: 2.4.0 + yaml-ast-parser: 0.0.43 + transitivePeerDependencies: + - "@types/node" + - bufferutil + - encoding + - supports-color + - utf-8-validate + dev: true + + /@graphql-tools/relay-operation-optimizer/6.5.0_graphql@16.5.0: + resolution: + { + integrity: sha512-snqmdPiM2eBex6pijRFx4H9MPumVd8ZWM3y+aaRwzc73VUNnjHE4NyVZEEIdlbmJ2HoQ9Zrm9aFlHVMK7B59zg==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@ardatan/relay-compiler": 12.0.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.4.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@graphql-tools/schema/8.5.0_graphql@16.5.0: + resolution: + { + integrity: sha512-VeFtKjM3SA9/hCJJfr95aEdC3G0xIKM9z0Qdz4i+eC1g2fdZYnfWFt2ucW4IME+2TDd0enHlKzaV0qk2SLVUww==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/merge": 8.3.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.4.0 + value-or-promise: 1.0.11 + dev: true + + /@graphql-tools/url-loader/7.12.1_ewm3rx2a6dfbdevnsyuui3n5xm: + resolution: + { + integrity: sha512-Fd3ZZLEEr9GGFHEbdrcaMHFQu01BLpFnNDBkISupvjokd497O5Uh0xZvsZGC6mxVt0WWQWpgaK2ef+oLuOdLqQ==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/delegate": 8.8.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + "@graphql-tools/wrap": 8.5.0_graphql@16.5.0 + "@n1ru4l/graphql-live-query": 0.9.0_graphql@16.5.0 + "@types/ws": 8.5.3 + cross-undici-fetch: 0.4.14 + dset: 3.1.2 + extract-files: 11.0.0 + graphql: 16.5.0 + graphql-ws: 5.9.1_graphql@16.5.0 + isomorphic-ws: 5.0.0_ws@8.8.1 + meros: 1.2.0_@types+node@18.7.16 + sync-fetch: 0.4.1 + tslib: 2.4.0 + value-or-promise: 1.0.11 + ws: 8.8.1 + transitivePeerDependencies: + - "@types/node" + - bufferutil + - encoding + - utf-8-validate + dev: true + + /@graphql-tools/utils/8.8.0_graphql@16.5.0: + resolution: + { + integrity: sha512-KJrtx05uSM/cPYFdTnGAS1doL5bftJLAiFCDMZ8Vkifztz3BFn3gpFiy/o4wDtM8s39G46mxmt2Km/RmeltfGw==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + graphql: 16.5.0 + tslib: 2.4.0 + dev: true + + /@graphql-tools/wrap/8.5.0_graphql@16.5.0: + resolution: + { + integrity: sha512-I+x9dBNzC135WWPi04ejqurR/zDmhfeGbCftCaYKF4CvgWd+ZaJx4Uc74n1SBegQtrj+KDrOS4HgKwf9vAVR7A==, + } + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + "@graphql-tools/delegate": 8.8.0_graphql@16.5.0 + "@graphql-tools/schema": 8.5.0_graphql@16.5.0 + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + graphql: 16.5.0 + tslib: 2.4.0 + value-or-promise: 1.0.11 + dev: true + + /@graphql-typed-document-node/core/3.1.1_graphql@16.5.0: + resolution: + { + integrity: sha512-NQ17ii0rK1b34VZonlmT2QMJFI70m0TRwbknO/ihlbatXyaktDhN/98vBiUU6kNBPljqGqyIrl2T4nY2RpFANg==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + graphql: 16.5.0 + + /@humanwhocodes/config-array/0.10.4: + resolution: + { + integrity: sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==, + } + engines: { node: ">=10.10.0" } + dependencies: + "@humanwhocodes/object-schema": 1.2.1 + debug: 4.3.4 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + + /@humanwhocodes/gitignore-to-minimatch/1.0.2: + resolution: + { + integrity: sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==, + } + + /@humanwhocodes/module-importer/1.0.1: + resolution: + { + integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==, + } + engines: { node: ">=12.22" } + + /@humanwhocodes/object-schema/1.2.1: + resolution: + { + integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==, + } + + /@iarna/toml/2.2.5: + resolution: + { + integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==, + } + dev: true + + /@jridgewell/gen-mapping/0.1.1: + resolution: + { + integrity: sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==, + } + engines: { node: ">=6.0.0" } + dependencies: + "@jridgewell/set-array": 1.1.2 + "@jridgewell/sourcemap-codec": 1.4.14 + dev: true + + /@jridgewell/gen-mapping/0.3.2: + resolution: + { + integrity: sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==, + } + engines: { node: ">=6.0.0" } + dependencies: + "@jridgewell/set-array": 1.1.2 + "@jridgewell/sourcemap-codec": 1.4.14 + "@jridgewell/trace-mapping": 0.3.14 + dev: true + + /@jridgewell/resolve-uri/3.1.0: + resolution: + { + integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==, + } + engines: { node: ">=6.0.0" } + dev: true + + /@jridgewell/set-array/1.1.2: + resolution: + { + integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==, + } + engines: { node: ">=6.0.0" } + dev: true + + /@jridgewell/sourcemap-codec/1.4.14: + resolution: + { + integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==, + } + dev: true + + /@jridgewell/trace-mapping/0.3.14: + resolution: + { + integrity: sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==, + } + dependencies: + "@jridgewell/resolve-uri": 3.1.0 + "@jridgewell/sourcemap-codec": 1.4.14 + dev: true + + /@material-ui/core/4.12.4_nylzxt5ale4dsv666zkb25cgtm: + resolution: + { + integrity: sha512-tr7xekNlM9LjA6pagJmL8QCgZXaubWUwkJnoYcMKd4gw/t4XiyvnTkjdGrUVicyB2BsdaAv1tvow45bPM4sSwQ==, + } + engines: { node: ">=8.0.0" } + peerDependencies: + "@types/react": ^16.8.6 || ^17.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + dependencies: + "@babel/runtime": 7.18.9 + "@material-ui/styles": 4.11.5_nylzxt5ale4dsv666zkb25cgtm + "@material-ui/system": 4.12.2_nylzxt5ale4dsv666zkb25cgtm + "@material-ui/types": 5.1.0_@types+react@18.0.19 + "@material-ui/utils": 4.11.3_biqbaboplfbrettd7655fr4n2y + "@types/react": 18.0.19 + "@types/react-transition-group": 4.4.5 + clsx: 1.2.1 + hoist-non-react-statics: 3.3.2 + popper.js: 1.16.1-lts + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + react-is: 17.0.2 + react-transition-group: 4.4.2_biqbaboplfbrettd7655fr4n2y + dev: false + + /@material-ui/icons/4.11.3_syzufrrnbgjhwvvotesawp6yai: + resolution: + { + integrity: sha512-IKHlyx6LDh8n19vzwH5RtHIOHl9Tu90aAAxcbWME6kp4dmvODM3UvOHJeMIDzUbd4muuJKHmlNoBN+mDY4XkBA==, + } + engines: { node: ">=8.0.0" } + peerDependencies: + "@material-ui/core": ^4.0.0 + "@types/react": ^16.8.6 || ^17.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + dependencies: + "@babel/runtime": 7.18.9 + "@material-ui/core": 4.12.4_nylzxt5ale4dsv666zkb25cgtm + "@types/react": 18.0.19 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + dev: false + + /@material-ui/lab/4.0.0-alpha.61_syzufrrnbgjhwvvotesawp6yai: + resolution: + { + integrity: sha512-rSzm+XKiNUjKegj8bzt5+pygZeckNLOr+IjykH8sYdVk7dE9y2ZuUSofiMV2bJk3qU+JHwexmw+q0RyNZB9ugg==, + } + engines: { node: ">=8.0.0" } + peerDependencies: + "@material-ui/core": ^4.12.1 + "@types/react": ^16.8.6 || ^17.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + dependencies: + "@babel/runtime": 7.18.9 + "@material-ui/core": 4.12.4_nylzxt5ale4dsv666zkb25cgtm + "@material-ui/utils": 4.11.3_biqbaboplfbrettd7655fr4n2y + "@types/react": 18.0.19 + clsx: 1.2.1 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + react-is: 17.0.2 + dev: false + + /@material-ui/styles/4.11.5_nylzxt5ale4dsv666zkb25cgtm: + resolution: + { + integrity: sha512-o/41ot5JJiUsIETME9wVLAJrmIWL3j0R0Bj2kCOLbSfqEkKf0fmaPt+5vtblUh5eXr2S+J/8J3DaCb10+CzPGA==, + } + engines: { node: ">=8.0.0" } + peerDependencies: + "@types/react": ^16.8.6 || ^17.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + dependencies: + "@babel/runtime": 7.18.9 + "@emotion/hash": 0.8.0 + "@material-ui/types": 5.1.0_@types+react@18.0.19 + "@material-ui/utils": 4.11.3_biqbaboplfbrettd7655fr4n2y + "@types/react": 18.0.19 + clsx: 1.2.1 + csstype: 2.6.20 + hoist-non-react-statics: 3.3.2 + jss: 10.9.0 + jss-plugin-camel-case: 10.9.0 + jss-plugin-default-unit: 10.9.0 + jss-plugin-global: 10.9.0 + jss-plugin-nested: 10.9.0 + jss-plugin-props-sort: 10.9.0 + jss-plugin-rule-value-function: 10.9.0 + jss-plugin-vendor-prefixer: 10.9.0 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + dev: false + + /@material-ui/system/4.12.2_nylzxt5ale4dsv666zkb25cgtm: + resolution: + { + integrity: sha512-6CSKu2MtmiJgcCGf6nBQpM8fLkuB9F55EKfbdTC80NND5wpTmKzwdhLYLH3zL4cLlK0gVaaltW7/wMuyTnN0Lw==, + } + engines: { node: ">=8.0.0" } + peerDependencies: + "@types/react": ^16.8.6 || ^17.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + dependencies: + "@babel/runtime": 7.18.9 + "@material-ui/utils": 4.11.3_biqbaboplfbrettd7655fr4n2y + "@types/react": 18.0.19 + csstype: 2.6.20 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + dev: false + + /@material-ui/types/5.1.0_@types+react@18.0.19: + resolution: + { + integrity: sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A==, + } + peerDependencies: + "@types/react": "*" + peerDependenciesMeta: + "@types/react": + optional: true + dependencies: + "@types/react": 18.0.19 + dev: false + + /@material-ui/utils/4.11.3_biqbaboplfbrettd7655fr4n2y: + resolution: + { + integrity: sha512-ZuQPV4rBK/V1j2dIkSSEcH5uT6AaHuKWFfotADHsC0wVL1NLd2WkFCm4ZZbX33iO4ydl6V0GPngKm8HZQ2oujg==, + } + engines: { node: ">=8.0.0" } + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + "@babel/runtime": 7.18.9 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + react-is: 17.0.2 + dev: false + + /@n1ru4l/graphql-live-query/0.9.0_graphql@16.5.0: + resolution: + { + integrity: sha512-BTpWy1e+FxN82RnLz4x1+JcEewVdfmUhV1C6/XYD5AjS7PQp9QFF7K8bCD6gzPTr2l+prvqOyVueQhFJxB1vfg==, + } + peerDependencies: + graphql: ^15.4.0 || ^16.0.0 + dependencies: + graphql: 16.5.0 + dev: true + + /@next/env/13.1.0: + resolution: + { + integrity: sha512-6iNixFzCndH+Bl4FetQzOMjxCJqg8fs0LAlZviig1K6mIjOWH2m2oPcHcOg1Ta5VCe7Bx5KG1Hs+NrWDUkBt9A==, + } + dev: false + + /@next/eslint-plugin-next/13.1.4: + resolution: + { + integrity: sha512-a/T30+7Q1scom5t3L+wEBkYzCa+bhT/3DTxzxlNy4Xckw2InzcckQGeIi/larDgh5r2fSSJswhYAZEcKtuJiig==, + } + dependencies: + glob: 7.1.7 + dev: false + + /@next/swc-android-arm-eabi/13.1.0: + resolution: + { + integrity: sha512-ANBZZRjZBV+Sii11ZVxbxSvfIi6dZwu4w+XnJBDmz+0/wtAigpjYWyMkuWZ/RCD7INdusOlU4EgJ99WzWGIDjA==, + } + engines: { node: ">= 10" } + cpu: [arm] + os: [android] + requiresBuild: true + dev: false + optional: true + + /@next/swc-android-arm64/13.1.0: + resolution: + { + integrity: sha512-nPwbkS3aZjCIe61wztgjXjIeylijOP8uGtDGjjJVUF3B/5GLVx3ngZu6tjPTMEgaLM0u//HuGK+aZolWUQWE4g==, + } + engines: { node: ">= 10" } + cpu: [arm64] + os: [android] + requiresBuild: true + dev: false + optional: true + + /@next/swc-darwin-arm64/13.1.0: + resolution: + { + integrity: sha512-0hUydiAW18jK2uGPnZRdnRQtdB/3ZoPo84A6zH7MJHxAWw9lzVsv3kMg9kgVBBlrivzqdNN8rdgA+eYNxzXU9w==, + } + engines: { node: ">= 10" } + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@next/swc-darwin-x64/13.1.0: + resolution: + { + integrity: sha512-3S3iQqJIysklj0Q9gnanuYMzF8H9p+fUVhvSHxVVLcKH4HsE8EGddNkXsaOyznL1kC6vGKw7h6uz1ojaXEafCA==, + } + engines: { node: ">= 10" } + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@next/swc-freebsd-x64/13.1.0: + resolution: + { + integrity: sha512-wAgzwm/em48GIuWq3OYr0BpncMy7c+UA3hsyX+xKh/vb/sOIpQly7JTa+GNdk17s7kprhMfsgzPG3da36NLpkA==, + } + engines: { node: ">= 10" } + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-arm-gnueabihf/13.1.0: + resolution: + { + integrity: sha512-Cr2hzL7ad+4nj9KrR1Cz1RDcsWa61X6I7gc6PToRYIY4gL480Sijq19xo7dlXQPnr1viVzbNiNnNXZASHv7uvw==, + } + engines: { node: ">= 10" } + cpu: [arm] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-arm64-gnu/13.1.0: + resolution: + { + integrity: sha512-EjCIKfeZB9h72evL2yGNwBvE5Im96Zn7o2zxImlvCiUYb/xXDqn4hzhck035BSP3g3sGDLfijFTE1wKRyXIk4w==, + } + engines: { node: ">= 10" } + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-arm64-musl/13.1.0: + resolution: + { + integrity: sha512-WAsZtCtPXlz/7/bnW9ryw856xEun+c6xSwZwbcvrMxtcSiW3z0LD91Nsj3AkexsjRtBjeEpNeVtDExqF2VKKSA==, + } + engines: { node: ">= 10" } + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-x64-gnu/13.1.0: + resolution: + { + integrity: sha512-Tjd5gieI3X9vPce5yF+GsQxOl0jwUkyOrTR1g5PQr+bT/9Qos/yPL48H1L5ayEp0hxgLVPW7skGal7lVnAoVEQ==, + } + engines: { node: ">= 10" } + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-x64-musl/13.1.0: + resolution: + { + integrity: sha512-H9UMEQv40e9pkgdX4mCms0dDf2dimmZ6WXhDTWF/yIh9icgcsHaP73BJ9IFlgvh80wLiUgWZ3LAX4vXnXzidmg==, + } + engines: { node: ">= 10" } + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-win32-arm64-msvc/13.1.0: + resolution: + { + integrity: sha512-LFFIKjW/cPl4wvG8HF/6oYPJZ+Jy32G3FUflC8UW1Od6W9yOSEvadhk9fMyDZN4cgsNOcVc3uVSMpcuuCpbDGw==, + } + engines: { node: ">= 10" } + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@next/swc-win32-ia32-msvc/13.1.0: + resolution: + { + integrity: sha512-MBLaoHZSenMdxhB3Ww1VNEhjyPT3uLjzAi5Ygk48LLLbOGu5KxQolhINRrqGuJWqJRNWSJ9JSFBfJrZwQzrUew==, + } + engines: { node: ">= 10" } + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@next/swc-win32-x64-msvc/13.1.0: + resolution: + { + integrity: sha512-fFTfIQvnmpbKoyh4v3ezlGqtERlgc2Sx8qJwPuYqoVi0V08wCx9wp2Iq1CINxP3UMHkEeNX7gYpDOd+9Cw9EiQ==, + } + engines: { node: ">= 10" } + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@nodelib/fs.scandir/2.1.5: + resolution: + { + integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==, + } + engines: { node: ">= 8" } + dependencies: + "@nodelib/fs.stat": 2.0.5 + run-parallel: 1.2.0 + + /@nodelib/fs.stat/2.0.5: + resolution: + { + integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==, + } + engines: { node: ">= 8" } + + /@nodelib/fs.walk/1.2.8: + resolution: + { + integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==, + } + engines: { node: ">= 8" } + dependencies: + "@nodelib/fs.scandir": 2.1.5 + fastq: 1.13.0 + + /@pkgr/utils/2.3.1: + resolution: + { + integrity: sha512-wfzX8kc1PMyUILA+1Z/EqoE4UCXGy0iRGMhPwdfae1+f0OXlLqCk+By+aMzgJBzR9AzS4CDizioG6Ss1gvAFJw==, + } + engines: { node: ^12.20.0 || ^14.18.0 || >=16.0.0 } + dependencies: + cross-spawn: 7.0.3 + is-glob: 4.0.3 + open: 8.4.0 + picocolors: 1.0.0 + tiny-glob: 0.2.9 + tslib: 2.4.0 + + /@rollup/plugin-sucrase/4.0.4_rollup@2.78.0: + resolution: + { + integrity: sha512-YH4J8yoJb5EVnLhAwWxYAQNh2SJOR+SdZ6XdgoKEv6Kxm33riYkM8MlMaggN87UoISP52qAFyZ5ey56wu6umGg==, + } + engines: { node: ">=12.0.0" } + peerDependencies: + rollup: ^2.53.1 + dependencies: + "@rollup/pluginutils": 4.2.1 + rollup: 2.78.0 + sucrase: 3.25.0 + dev: false + + /@rollup/plugin-virtual/3.0.0_rollup@2.78.0: + resolution: + { + integrity: sha512-K9KORe1myM62o0lKkNR4MmCxjwuAXsZEtIHpaILfv4kILXTOrXt/R2ha7PzMcCHPYdnkWPiBZK8ed4Zr3Ll5lQ==, + } + engines: { node: ">=14.0.0" } + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + rollup: 2.78.0 + dev: false + + /@rollup/pluginutils/4.2.1: + resolution: + { + integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==, + } + engines: { node: ">= 8.0.0" } + dependencies: + estree-walker: 2.0.2 + picomatch: 2.3.1 + dev: false + + /@rushstack/eslint-patch/1.2.0: + resolution: + { + integrity: sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==, + } + dev: false + + /@saleor/app-sdk/0.27.1_s75y6mxmikaw2mhqmuko6w7njm: + resolution: + { + integrity: sha512-ZNbucokKCdBE1qa+YLHvjBVazYcRuUExBdaPW9aNxfeYyXgQNCdHqJx9oA/S1lMEVSbZSIRcn8Sx1+X/eEV8BA==, + } + peerDependencies: + next: ">=12" + react: ">=17" + react-dom: ">=17" + dependencies: + debug: 4.3.4 + fast-glob: 3.2.11 + graphql: 16.6.0 + jose: 4.11.2 + next: 13.1.0_biqbaboplfbrettd7655fr4n2y + raw-body: 2.5.1 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + retes: 0.33.0 + uuid: 8.3.2 + transitivePeerDependencies: + - supports-color + dev: false + + /@saleor/macaw-ui/0.7.2_3igskpsgnvdgn574z3phvz2joa: + resolution: + { + integrity: sha512-Fli7fhTWuHu7q2CzxwTUpB4x9HYaxHSAzCLZLA23VY1ieIWbCxbsXadMiMGWp/nuYitswMr6JXMm+1SDe9K8LQ==, + } + engines: { node: ">=16 <19" } + peerDependencies: + "@material-ui/core": ^4.11.2 + "@material-ui/icons": ^4.11.2 + "@material-ui/lab": ^4.0.0-alpha.58 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + react-helmet: ^6.1.0 + dependencies: + "@floating-ui/react-dom-interactions": 0.5.0_nylzxt5ale4dsv666zkb25cgtm + "@material-ui/core": 4.12.4_nylzxt5ale4dsv666zkb25cgtm + "@material-ui/icons": 4.11.3_syzufrrnbgjhwvvotesawp6yai + "@material-ui/lab": 4.0.0-alpha.61_syzufrrnbgjhwvvotesawp6yai + clsx: 1.2.1 + downshift: 6.1.7_react@18.2.0 + lodash: 4.17.21 + lodash-es: 4.17.21 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + react-helmet: 6.1.0_react@18.2.0 + react-inlinesvg: 3.0.1_react@18.2.0 + transitivePeerDependencies: + - "@types/react" + dev: false + + /@samverschueren/stream-to-observable/0.3.1_rxjs@6.6.7: + resolution: + { + integrity: sha512-c/qwwcHyafOQuVQJj0IlBjf5yYgBI7YPJ77k4fOJYesb41jio65eaJODRUmfYKhTOFBrIZ66kgvGPlNbjuoRdQ==, + } + engines: { node: ">=6" } + peerDependencies: + rxjs: "*" + zen-observable: "*" + peerDependenciesMeta: + rxjs: + optional: true + zen-observable: + optional: true + dependencies: + any-observable: 0.3.0_rxjs@6.6.7 + rxjs: 6.6.7 + transitivePeerDependencies: + - zenObservable + dev: true + + /@sentry/browser/7.30.0: + resolution: + { + integrity: sha512-9hpaNAqIBDLdnrZ51iWkqenRotqqweE1f2AlHO56nyT/UE+u+GdmAiBrgRNqdFQQM13JtTG/gu4HGOyLWb9HEA==, + } + engines: { node: ">=8" } + dependencies: + "@sentry/core": 7.30.0 + "@sentry/replay": 7.30.0_@sentry+browser@7.30.0 + "@sentry/types": 7.30.0 + "@sentry/utils": 7.30.0 + tslib: 1.14.1 + dev: false + + /@sentry/cli/1.74.6: + resolution: + { + integrity: sha512-pJ7JJgozyjKZSTjOGi86chIngZMLUlYt2HOog+OJn+WGvqEkVymu8m462j1DiXAnex9NspB4zLLNuZ/R6rTQHg==, + } + engines: { node: ">= 8" } + hasBin: true + requiresBuild: true + dependencies: + https-proxy-agent: 5.0.1 + mkdirp: 0.5.6 + node-fetch: 2.6.7 + npmlog: 4.1.2 + progress: 2.0.3 + proxy-from-env: 1.1.0 + which: 2.0.2 + transitivePeerDependencies: + - encoding + - supports-color + dev: false + + /@sentry/core/7.30.0: + resolution: + { + integrity: sha512-NeLigkBlpcK63ymM63GoIHurml6V3BUe1Vi+trwm4/qqOTzT7PQhvdJCX+o3+atzRBH+zdb6kd4VWx44Oye3KA==, + } + engines: { node: ">=8" } + dependencies: + "@sentry/types": 7.30.0 + "@sentry/utils": 7.30.0 + tslib: 1.14.1 + dev: false + + /@sentry/integrations/7.30.0: + resolution: + { + integrity: sha512-KU8TnJm1Yldxnhdu/EZcIGXU9ptGQPk6ot4smcNx/mKsy575VrDdyVDx8uIYURWyfsg7eOayt6VdC7ISSODp8A==, + } + engines: { node: ">=8" } + dependencies: + "@sentry/types": 7.30.0 + "@sentry/utils": 7.30.0 + localforage: 1.10.0 + tslib: 1.14.1 + dev: false + + /@sentry/nextjs/7.30.0_next@13.1.0+react@18.2.0: + resolution: + { + integrity: sha512-4gW29QRb9S7AHf8/uJ77xc18JwmFFqdGyZ8YHRSoRhuof9IM0i8sK/NYUaPolaMRHYc3gf8gJsHjH/0AaUXhQA==, + } + engines: { node: ">=8" } + peerDependencies: + next: ^10.0.8 || ^11.0 || ^12.0 || ^13.0 + react: 15.x || 16.x || 17.x || 18.x + webpack: ">= 4.0.0" + peerDependenciesMeta: + webpack: + optional: true + dependencies: + "@rollup/plugin-sucrase": 4.0.4_rollup@2.78.0 + "@rollup/plugin-virtual": 3.0.0_rollup@2.78.0 + "@sentry/core": 7.30.0 + "@sentry/integrations": 7.30.0 + "@sentry/node": 7.30.0 + "@sentry/react": 7.30.0_react@18.2.0 + "@sentry/tracing": 7.30.0 + "@sentry/types": 7.30.0 + "@sentry/utils": 7.30.0 + "@sentry/webpack-plugin": 1.20.0 + chalk: 3.0.0 + next: 13.1.0_biqbaboplfbrettd7655fr4n2y + react: 18.2.0 + rollup: 2.78.0 + tslib: 1.14.1 + transitivePeerDependencies: + - encoding + - supports-color + dev: false + + /@sentry/node/7.30.0: + resolution: + { + integrity: sha512-YYasu6C3I0HBP4N1oc/ed2nunxhGJgtAWaKwq3lo8uk3uF6cB1A8+2e0CpjzU5ejhbaFPUBxHyj4th39Bvku/w==, + } + engines: { node: ">=8" } + dependencies: + "@sentry/core": 7.30.0 + "@sentry/types": 7.30.0 + "@sentry/utils": 7.30.0 + cookie: 0.4.2 + https-proxy-agent: 5.0.1 + lru_map: 0.3.3 + tslib: 1.14.1 + transitivePeerDependencies: + - supports-color + dev: false + + /@sentry/react/7.30.0_react@18.2.0: + resolution: + { + integrity: sha512-yn0GiRewi/Gcig2Fkps95l96zOwiKxQacv3T83bBzlFIuO0vBWqV6imOcJKt4gxU9JoX6RGf9UqeACxzJlDqNg==, + } + engines: { node: ">=8" } + peerDependencies: + react: 15.x || 16.x || 17.x || 18.x + dependencies: + "@sentry/browser": 7.30.0 + "@sentry/types": 7.30.0 + "@sentry/utils": 7.30.0 + hoist-non-react-statics: 3.3.2 + react: 18.2.0 + tslib: 1.14.1 + dev: false + + /@sentry/replay/7.30.0_@sentry+browser@7.30.0: + resolution: + { + integrity: sha512-qJgz1tG0uStqMF5V7gN7KqxZuZY0MMQQY7siwPcSQVYj7X3AQswHjmvD4npEKbIa+jP6aQ6fFjoBjl3c0t3Mmg==, + } + engines: { node: ">=12" } + peerDependencies: + "@sentry/browser": ">=7.24.0" + dependencies: + "@sentry/browser": 7.30.0 + "@sentry/core": 7.30.0 + "@sentry/types": 7.30.0 + "@sentry/utils": 7.30.0 + dev: false + + /@sentry/tracing/7.30.0: + resolution: + { + integrity: sha512-bjGeDeKhpGAmLcWcrXFT/xOfHVwp/j0L1aRHzYHnqgTjVzD0NXcooPu/Nz8vF0paxz+hPD5bJwb8kz/ggJzGWQ==, + } + engines: { node: ">=8" } + dependencies: + "@sentry/core": 7.30.0 + "@sentry/types": 7.30.0 + "@sentry/utils": 7.30.0 + tslib: 1.14.1 + dev: false + + /@sentry/types/7.30.0: + resolution: + { + integrity: sha512-l4A86typvt/SfWh5JffpdxNGkg5EEA8m35BzpIcKmCAQZUDmnb4b478r8jdD2uuOjLmPNmZr1tifdRW4NCLuxQ==, + } + engines: { node: ">=8" } + dev: false + + /@sentry/utils/7.30.0: + resolution: + { + integrity: sha512-tSlBhr5u/LdE2emxIDTDmjmyRr99GnZGIAh5GwRxUgeDQ3VEfNUFlyFodBCbZ6yeYTYd6PWNih5xoHn1+Rf3Sw==, + } + engines: { node: ">=8" } + dependencies: + "@sentry/types": 7.30.0 + tslib: 1.14.1 + dev: false + + /@sentry/webpack-plugin/1.20.0: + resolution: + { + integrity: sha512-Ssj1mJVFsfU6vMCOM2d+h+KQR7QHSfeIP16t4l20Uq/neqWXZUQ2yvQfe4S3BjdbJXz/X4Rw8Hfy1Sd0ocunYw==, + } + engines: { node: ">= 8" } + dependencies: + "@sentry/cli": 1.74.6 + webpack-sources: 3.2.3 + transitivePeerDependencies: + - encoding + - supports-color + dev: false + + /@sindresorhus/is/0.14.0: + resolution: + { + integrity: sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==, + } + engines: { node: ">=6" } + dev: true + + /@swc/helpers/0.4.14: + resolution: + { + integrity: sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==, + } + dependencies: + tslib: 2.4.0 + dev: false + + /@szmarczak/http-timer/1.1.2: + resolution: + { + integrity: sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==, + } + engines: { node: ">=6" } + dependencies: + defer-to-connect: 1.1.3 + dev: true + + /@tootallnate/once/2.0.0: + resolution: + { + integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==, + } + engines: { node: ">= 10" } + dev: true + + /@types/js-yaml/4.0.5: + resolution: + { + integrity: sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==, + } + dev: true + + /@types/json-schema/7.0.11: + resolution: + { + integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==, + } + dev: true + + /@types/json-stable-stringify/1.0.34: + resolution: + { + integrity: sha512-s2cfwagOQAS8o06TcwKfr9Wx11dNGbH2E9vJz1cqV+a/LOyhWNLUNd6JSRYNzvB4d29UuJX2M0Dj9vE1T8fRXw==, + } + dev: true + + /@types/json5/0.0.29: + resolution: + { + integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==, + } + + /@types/jsonwebtoken/8.5.8: + resolution: + { + integrity: sha512-zm6xBQpFDIDM6o9r6HSgDeIcLy82TKWctCXEPbJJcXb5AKmi5BNNdLXneixK4lplX3PqIVcwLBCGE/kAGnlD4A==, + } + dependencies: + "@types/node": 18.7.16 + dev: true + + /@types/keyv/3.1.4: + resolution: + { + integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==, + } + dependencies: + "@types/node": 18.7.16 + dev: true + + /@types/minimatch/3.0.5: + resolution: + { + integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==, + } + dev: true + + /@types/node/18.7.16: + resolution: + { + integrity: sha512-EQHhixfu+mkqHMZl1R2Ovuvn47PUw18azMJOTwSZr9/fhzHNGXAJ0ma0dayRVchprpCj0Kc1K1xKoWaATWF1qg==, + } + dev: true + + /@types/parse-json/4.0.0: + resolution: + { + integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==, + } + dev: true + + /@types/prop-types/15.7.5: + resolution: + { + integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==, + } + + /@types/react-dom/18.0.6: + resolution: + { + integrity: sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==, + } + dependencies: + "@types/react": 18.0.19 + dev: true + + /@types/react-transition-group/4.4.5: + resolution: + { + integrity: sha512-juKD/eiSM3/xZYzjuzH6ZwpP+/lejltmiS3QEzV/vmb/Q8+HfDmxu+Baga8UEMGBqV88Nbg4l2hY/K2DkyaLLA==, + } + dependencies: + "@types/react": 18.0.19 + dev: false + + /@types/react/18.0.19: + resolution: + { + integrity: sha512-BDc3Q+4Q3zsn7k9xZrKfjWyJsSlEDMs38gD1qp2eDazLCdcPqAT+vq1ND+Z8AGel/UiwzNUk8ptpywgNQcJ1MQ==, + } + dependencies: + "@types/prop-types": 15.7.5 + "@types/scheduler": 0.16.2 + csstype: 3.1.0 + + /@types/responselike/1.0.0: + resolution: + { + integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==, + } + dependencies: + "@types/node": 18.7.16 + dev: true + + /@types/scheduler/0.16.2: + resolution: + { + integrity: sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==, + } + + /@types/ws/8.5.3: + resolution: + { + integrity: sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==, + } + dependencies: + "@types/node": 18.7.16 + dev: true + + /@typescript-eslint/eslint-plugin/5.36.2_wxqvmnl3i4rbvz4ixyoiufmx3e: + resolution: + { + integrity: sha512-OwwR8LRwSnI98tdc2z7mJYgY60gf7I9ZfGjN5EjCwwns9bdTuQfAXcsjSB2wSQ/TVNYSGKf4kzVXbNGaZvwiXw==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + peerDependencies: + "@typescript-eslint/parser": ^5.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: "*" + peerDependenciesMeta: + typescript: + optional: true + dependencies: + "@typescript-eslint/parser": 5.36.2_irgkl5vooow2ydyo6aokmferha + "@typescript-eslint/scope-manager": 5.36.2 + "@typescript-eslint/type-utils": 5.36.2_irgkl5vooow2ydyo6aokmferha + "@typescript-eslint/utils": 5.36.2_irgkl5vooow2ydyo6aokmferha + debug: 4.3.4 + eslint: 8.23.1 + functional-red-black-tree: 1.0.1 + ignore: 5.2.0 + regexpp: 3.2.0 + semver: 7.3.7 + tsutils: 3.21.0_typescript@4.8.3 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser/5.36.2_irgkl5vooow2ydyo6aokmferha: + resolution: + { + integrity: sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: "*" + peerDependenciesMeta: + typescript: + optional: true + dependencies: + "@typescript-eslint/scope-manager": 5.36.2 + "@typescript-eslint/types": 5.36.2 + "@typescript-eslint/typescript-estree": 5.36.2_typescript@4.8.3 + debug: 4.3.4 + eslint: 8.23.1 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser/5.48.2_irgkl5vooow2ydyo6aokmferha: + resolution: + { + integrity: sha512-38zMsKsG2sIuM5Oi/olurGwYJXzmtdsHhn5mI/pQogP+BjYVkK5iRazCQ8RGS0V+YLk282uWElN70zAAUmaYHw==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: "*" + peerDependenciesMeta: + typescript: + optional: true + dependencies: + "@typescript-eslint/scope-manager": 5.48.2 + "@typescript-eslint/types": 5.48.2 + "@typescript-eslint/typescript-estree": 5.48.2_typescript@4.8.3 + debug: 4.3.4 + eslint: 8.23.1 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + dev: false + + /@typescript-eslint/scope-manager/5.36.2: + resolution: + { + integrity: sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dependencies: + "@typescript-eslint/types": 5.36.2 + "@typescript-eslint/visitor-keys": 5.36.2 + dev: true + + /@typescript-eslint/scope-manager/5.48.2: + resolution: + { + integrity: sha512-zEUFfonQid5KRDKoI3O+uP1GnrFd4tIHlvs+sTJXiWuypUWMuDaottkJuR612wQfOkjYbsaskSIURV9xo4f+Fw==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dependencies: + "@typescript-eslint/types": 5.48.2 + "@typescript-eslint/visitor-keys": 5.48.2 + dev: false + + /@typescript-eslint/type-utils/5.36.2_irgkl5vooow2ydyo6aokmferha: + resolution: + { + integrity: sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + peerDependencies: + eslint: "*" + typescript: "*" + peerDependenciesMeta: + typescript: + optional: true + dependencies: + "@typescript-eslint/typescript-estree": 5.36.2_typescript@4.8.3 + "@typescript-eslint/utils": 5.36.2_irgkl5vooow2ydyo6aokmferha + debug: 4.3.4 + eslint: 8.23.1 + tsutils: 3.21.0_typescript@4.8.3 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/types/5.36.2: + resolution: + { + integrity: sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dev: true + + /@typescript-eslint/types/5.48.2: + resolution: + { + integrity: sha512-hE7dA77xxu7ByBc6KCzikgfRyBCTst6dZQpwaTy25iMYOnbNljDT4hjhrGEJJ0QoMjrfqrx+j1l1B9/LtKeuqA==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dev: false + + /@typescript-eslint/typescript-estree/5.36.2_typescript@4.8.3: + resolution: + { + integrity: sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + peerDependencies: + typescript: "*" + peerDependenciesMeta: + typescript: + optional: true + dependencies: + "@typescript-eslint/types": 5.36.2 + "@typescript-eslint/visitor-keys": 5.36.2 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.3.7 + tsutils: 3.21.0_typescript@4.8.3 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/typescript-estree/5.48.2_typescript@4.8.3: + resolution: + { + integrity: sha512-bibvD3z6ilnoVxUBFEgkO0k0aFvUc4Cttt0dAreEr+nrAHhWzkO83PEVVuieK3DqcgL6VAK5dkzK8XUVja5Zcg==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + peerDependencies: + typescript: "*" + peerDependenciesMeta: + typescript: + optional: true + dependencies: + "@typescript-eslint/types": 5.48.2 + "@typescript-eslint/visitor-keys": 5.48.2 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.3.7 + tsutils: 3.21.0_typescript@4.8.3 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + dev: false + + /@typescript-eslint/utils/5.36.2_irgkl5vooow2ydyo6aokmferha: + resolution: + { + integrity: sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + "@types/json-schema": 7.0.11 + "@typescript-eslint/scope-manager": 5.36.2 + "@typescript-eslint/types": 5.36.2 + "@typescript-eslint/typescript-estree": 5.36.2_typescript@4.8.3 + eslint: 8.23.1 + eslint-scope: 5.1.1 + eslint-utils: 3.0.0_eslint@8.23.1 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + /@typescript-eslint/visitor-keys/5.36.2: + resolution: + { + integrity: sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dependencies: + "@typescript-eslint/types": 5.36.2 + eslint-visitor-keys: 3.3.0 + dev: true + + /@typescript-eslint/visitor-keys/5.48.2: + resolution: + { + integrity: sha512-z9njZLSkwmjFWUelGEwEbdf4NwKvfHxvGC0OcGN1Hp/XNDIcJ7D5DpPNPv6x6/mFvc1tQHsaWmpD/a4gOvvCJQ==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dependencies: + "@typescript-eslint/types": 5.48.2 + eslint-visitor-keys: 3.3.0 + dev: false + + /@urql/core/3.0.3_graphql@16.5.0: + resolution: + { + integrity: sha512-raQP51ERNtg5BvlN8x8mHVRvk4K0ugWQ69n53BdkjKpXVV5kuWp7trnwriGv1fQKa8HuiGNSCfyslUucc0OVQg==, + } + peerDependencies: + graphql: ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@graphql-typed-document-node/core": 3.1.1_graphql@16.5.0 + graphql: 16.5.0 + wonka: 6.0.0 + dev: false + + /@urql/exchange-auth/1.0.0_graphql@16.5.0: + resolution: + { + integrity: sha512-79hqPQab+ifeINOxvQykvqub4ixWHBEIagN4U67ijcHGMfp3c4yEWRk4IJMPwF+OMT7LrRFuv+jRIZTQn/9VwQ==, + } + peerDependencies: + graphql: ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@urql/core": 3.0.3_graphql@16.5.0 + graphql: 16.5.0 + wonka: 6.0.0 + dev: false + + /@urql/introspection/0.3.1_graphql@16.5.0: + resolution: + { + integrity: sha512-4Srr45lA00cVlfRGtGJqYlc2vcPN6BZwFW9EVY20yROaoADCGNxm6xmScZhxuCRQPhOB9DXtuYs2KNrOo84ZeA==, + } + peerDependencies: + graphql: ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + graphql: 16.5.0 + dev: true + + /abort-controller/3.0.0: + resolution: + { + integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==, + } + engines: { node: ">=6.5" } + dependencies: + event-target-shim: 5.0.1 + dev: true + + /acorn-jsx/5.3.2_acorn@8.8.0: + resolution: + { + integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==, + } + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: 8.8.0 + + /acorn/8.8.0: + resolution: + { + integrity: sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==, + } + engines: { node: ">=0.4.0" } + hasBin: true + + /agent-base/6.0.2: + resolution: + { + integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==, + } + engines: { node: ">= 6.0.0" } + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + + /ajv/6.12.6: + resolution: + { + integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==, + } + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + /ansi-escapes/3.2.0: + resolution: + { + integrity: sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==, + } + engines: { node: ">=4" } + dev: true + + /ansi-escapes/4.3.2: + resolution: + { + integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==, + } + engines: { node: ">=8" } + dependencies: + type-fest: 0.21.3 + dev: true + + /ansi-regex/2.1.1: + resolution: + { + integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==, + } + engines: { node: ">=0.10.0" } + + /ansi-regex/3.0.1: + resolution: + { + integrity: sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==, + } + engines: { node: ">=4" } + dev: true + + /ansi-regex/5.0.1: + resolution: + { + integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==, + } + engines: { node: ">=8" } + + /ansi-styles/2.2.1: + resolution: + { + integrity: sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==, + } + engines: { node: ">=0.10.0" } + dev: true + + /ansi-styles/3.2.1: + resolution: + { + integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==, + } + engines: { node: ">=4" } + dependencies: + color-convert: 1.9.3 + dev: true + + /ansi-styles/4.3.0: + resolution: + { + integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==, + } + engines: { node: ">=8" } + dependencies: + color-convert: 2.0.1 + + /any-observable/0.3.0_rxjs@6.6.7: + resolution: + { + integrity: sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog==, + } + engines: { node: ">=6" } + peerDependencies: + rxjs: "*" + zenObservable: "*" + peerDependenciesMeta: + rxjs: + optional: true + zenObservable: + optional: true + dependencies: + rxjs: 6.6.7 + dev: true + + /any-promise/1.3.0: + resolution: + { + integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==, + } + dev: false + + /anymatch/3.1.2: + resolution: + { + integrity: sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==, + } + engines: { node: ">= 8" } + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + dev: true + + /aproba/1.2.0: + resolution: + { + integrity: sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==, + } + dev: false + + /are-we-there-yet/1.1.7: + resolution: + { + integrity: sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==, + } + dependencies: + delegates: 1.0.0 + readable-stream: 2.3.7 + dev: false + + /arg/4.1.3: + resolution: + { + integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==, + } + dev: true + + /argparse/2.0.1: + resolution: + { + integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==, + } + + /aria-hidden/1.1.3: + resolution: + { + integrity: sha512-RhVWFtKH5BiGMycI72q2RAFMLQi8JP9bLuQXgR5a8Znp7P5KOIADSJeyfI8PCVxLEp067B2HbP5JIiI/PXIZeA==, + } + engines: { node: ">=8.5.0" } + dependencies: + tslib: 1.14.1 + dev: false + + /aria-query/4.2.2: + resolution: + { + integrity: sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==, + } + engines: { node: ">=6.0" } + dependencies: + "@babel/runtime": 7.18.9 + "@babel/runtime-corejs3": 7.18.9 + + /array-differ/3.0.0: + resolution: + { + integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==, + } + engines: { node: ">=8" } + dev: true + + /array-includes/3.1.5: + resolution: + { + integrity: sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + get-intrinsic: 1.1.2 + is-string: 1.0.7 + + /array-union/2.1.0: + resolution: + { + integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==, + } + engines: { node: ">=8" } + + /array.prototype.flat/1.3.0: + resolution: + { + integrity: sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + es-shim-unscopables: 1.0.0 + + /array.prototype.flatmap/1.3.0: + resolution: + { + integrity: sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + es-shim-unscopables: 1.0.0 + + /arrify/2.0.1: + resolution: + { + integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==, + } + engines: { node: ">=8" } + dev: true + + /asap/2.0.6: + resolution: + { + integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==, + } + dev: true + + /ast-types-flow/0.0.7: + resolution: + { + integrity: sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==, + } + + /asynckit/0.4.0: + resolution: + { + integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==, + } + dev: true + + /auto-bind/4.0.0: + resolution: + { + integrity: sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==, + } + engines: { node: ">=8" } + dev: true + + /autoprefixer/10.4.8_postcss@8.4.14: + resolution: + { + integrity: sha512-75Jr6Q/XpTqEf6D2ltS5uMewJIx5irCU1oBYJrWjFenq/m12WRRrz6g15L1EIoYvPLXTbEry7rDOwrcYNj77xw==, + } + engines: { node: ^10 || ^12 || >=14 } + hasBin: true + peerDependencies: + postcss: ^8.1.0 + dependencies: + browserslist: 4.21.3 + caniuse-lite: 1.0.30001374 + fraction.js: 4.2.0 + normalize-range: 0.1.2 + picocolors: 1.0.0 + postcss: 8.4.14 + postcss-value-parser: 4.2.0 + dev: true + + /axe-core/4.4.3: + resolution: + { + integrity: sha512-32+ub6kkdhhWick/UjvEwRchgoetXqTK14INLqbGm5U2TzBkBNF3nQtLYm8ovxSkQWArjEQvftCKryjZaATu3w==, + } + engines: { node: ">=4" } + + /axobject-query/2.2.0: + resolution: + { + integrity: sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==, + } + + /babel-plugin-dynamic-import-node/2.3.3: + resolution: + { + integrity: sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==, + } + dependencies: + object.assign: 4.1.2 + dev: true + + /babel-plugin-syntax-trailing-function-commas/7.0.0-beta.0: + resolution: + { + integrity: sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==, + } + dev: true + + /babel-preset-fbjs/3.4.0_@babel+core@7.18.9: + resolution: + { + integrity: sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==, + } + peerDependencies: + "@babel/core": ^7.0.0 + dependencies: + "@babel/core": 7.18.9 + "@babel/plugin-proposal-class-properties": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-proposal-object-rest-spread": 7.18.9_@babel+core@7.18.9 + "@babel/plugin-syntax-class-properties": 7.12.13_@babel+core@7.18.9 + "@babel/plugin-syntax-flow": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-syntax-jsx": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-syntax-object-rest-spread": 7.8.3_@babel+core@7.18.9 + "@babel/plugin-transform-arrow-functions": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-block-scoped-functions": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-block-scoping": 7.18.9_@babel+core@7.18.9 + "@babel/plugin-transform-classes": 7.19.0_@babel+core@7.18.9 + "@babel/plugin-transform-computed-properties": 7.18.9_@babel+core@7.18.9 + "@babel/plugin-transform-destructuring": 7.18.13_@babel+core@7.18.9 + "@babel/plugin-transform-flow-strip-types": 7.18.9_@babel+core@7.18.9 + "@babel/plugin-transform-for-of": 7.18.8_@babel+core@7.18.9 + "@babel/plugin-transform-function-name": 7.18.9_@babel+core@7.18.9 + "@babel/plugin-transform-literals": 7.18.9_@babel+core@7.18.9 + "@babel/plugin-transform-member-expression-literals": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-modules-commonjs": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-object-super": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-parameters": 7.18.8_@babel+core@7.18.9 + "@babel/plugin-transform-property-literals": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-react-display-name": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-react-jsx": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-shorthand-properties": 7.18.6_@babel+core@7.18.9 + "@babel/plugin-transform-spread": 7.19.0_@babel+core@7.18.9 + "@babel/plugin-transform-template-literals": 7.18.9_@babel+core@7.18.9 + babel-plugin-syntax-trailing-function-commas: 7.0.0-beta.0 + transitivePeerDependencies: + - supports-color + dev: true + + /balanced-match/1.0.2: + resolution: + { + integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==, + } + + /base64-js/1.5.1: + resolution: + { + integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==, + } + dev: true + + /binary-extensions/2.2.0: + resolution: + { + integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==, + } + engines: { node: ">=8" } + dev: true + + /bl/4.1.0: + resolution: + { + integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==, + } + dependencies: + buffer: 5.7.1 + inherits: 2.0.4 + readable-stream: 3.6.0 + dev: true + + /brace-expansion/1.1.11: + resolution: + { + integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==, + } + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + /braces/3.0.2: + resolution: + { + integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==, + } + engines: { node: ">=8" } + dependencies: + fill-range: 7.0.1 + + /browserslist/4.21.3: + resolution: + { + integrity: sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==, + } + engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 } + hasBin: true + dependencies: + caniuse-lite: 1.0.30001374 + electron-to-chromium: 1.4.211 + node-releases: 2.0.6 + update-browserslist-db: 1.0.5_browserslist@4.21.3 + dev: true + + /bser/2.1.1: + resolution: + { + integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==, + } + dependencies: + node-int64: 0.4.0 + dev: true + + /buffer-equal-constant-time/1.0.1: + resolution: { integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk= } + dev: true + + /buffer-from/1.1.2: + resolution: + { + integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==, + } + dev: true + + /buffer/5.7.1: + resolution: + { + integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==, + } + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + dev: true + + /busboy/1.6.0: + resolution: + { + integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==, + } + engines: { node: ">=10.16.0" } + dependencies: + streamsearch: 1.1.0 + + /bytes/3.1.2: + resolution: + { + integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==, + } + engines: { node: ">= 0.8" } + dev: false + + /cacheable-request/6.1.0: + resolution: + { + integrity: sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==, + } + engines: { node: ">=8" } + dependencies: + clone-response: 1.0.3 + get-stream: 5.2.0 + http-cache-semantics: 4.1.0 + keyv: 3.1.0 + lowercase-keys: 2.0.0 + normalize-url: 4.5.1 + responselike: 1.0.2 + dev: true + + /call-bind/1.0.2: + resolution: + { + integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==, + } + dependencies: + function-bind: 1.1.1 + get-intrinsic: 1.1.2 + + /callsites/3.1.0: + resolution: + { + integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==, + } + engines: { node: ">=6" } + + /camel-case/4.1.2: + resolution: + { + integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==, + } + dependencies: + pascal-case: 3.1.2 + tslib: 2.4.0 + dev: true + + /camelcase/5.3.1: + resolution: + { + integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==, + } + engines: { node: ">=6" } + dev: true + + /caniuse-lite/1.0.30001374: + resolution: + { + integrity: sha512-mWvzatRx3w+j5wx/mpFN5v5twlPrabG8NqX2c6e45LCpymdoGqNvRkRutFUqpRTXKFQFNQJasvK0YT7suW6/Hw==, + } + dev: true + + /caniuse-lite/1.0.30001447: + resolution: + { + integrity: sha512-bdKU1BQDPeEXe9A39xJnGtY0uRq/z5osrnXUw0TcK+EYno45Y+U7QU9HhHEyzvMDffpYadFXi3idnSNkcwLkTw==, + } + dev: false + + /capital-case/1.0.4: + resolution: + { + integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==, + } + dependencies: + no-case: 3.0.4 + tslib: 2.4.0 + upper-case-first: 2.0.2 + dev: true + + /chalk/1.1.3: + resolution: + { + integrity: sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==, + } + engines: { node: ">=0.10.0" } + dependencies: + ansi-styles: 2.2.1 + escape-string-regexp: 1.0.5 + has-ansi: 2.0.0 + strip-ansi: 3.0.1 + supports-color: 2.0.0 + dev: true + + /chalk/2.4.2: + resolution: + { + integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==, + } + engines: { node: ">=4" } + dependencies: + ansi-styles: 3.2.1 + escape-string-regexp: 1.0.5 + supports-color: 5.5.0 + dev: true + + /chalk/3.0.0: + resolution: + { + integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==, + } + engines: { node: ">=8" } + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + /chalk/4.1.2: + resolution: + { + integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==, + } + engines: { node: ">=10" } + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + /change-case-all/1.0.14: + resolution: + { + integrity: sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==, + } + dependencies: + change-case: 4.1.2 + is-lower-case: 2.0.2 + is-upper-case: 2.0.2 + lower-case: 2.0.2 + lower-case-first: 2.0.2 + sponge-case: 1.0.1 + swap-case: 2.0.2 + title-case: 3.0.3 + upper-case: 2.0.2 + upper-case-first: 2.0.2 + dev: true + + /change-case/4.1.2: + resolution: + { + integrity: sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==, + } + dependencies: + camel-case: 4.1.2 + capital-case: 1.0.4 + constant-case: 3.0.4 + dot-case: 3.0.4 + header-case: 2.0.4 + no-case: 3.0.4 + param-case: 3.0.4 + pascal-case: 3.1.2 + path-case: 3.0.4 + sentence-case: 3.0.4 + snake-case: 3.0.4 + tslib: 2.4.0 + dev: true + + /chardet/0.7.0: + resolution: + { + integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==, + } + dev: true + + /chokidar/3.5.3: + resolution: + { + integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==, + } + engines: { node: ">= 8.10.0" } + dependencies: + anymatch: 3.1.2 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /clean-publish/4.0.1: + resolution: + { + integrity: sha512-6v0bh5kQD5FDlxBgXDVNNc6KmAB7iIP/GHD91q9xsGVZT5XB9Y8TNqB7dL5u9PTZlBeLpBw+A1AseRlEEJLSWA==, + } + engines: { node: ">= 16.0.0" } + hasBin: true + dependencies: + cross-spawn: 7.0.3 + fast-glob: 3.2.11 + lilconfig: 2.0.6 + micromatch: 4.0.5 + dev: true + + /cli-cursor/2.1.0: + resolution: + { + integrity: sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==, + } + engines: { node: ">=4" } + dependencies: + restore-cursor: 2.0.0 + dev: true + + /cli-cursor/3.1.0: + resolution: + { + integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==, + } + engines: { node: ">=8" } + dependencies: + restore-cursor: 3.1.0 + dev: true + + /cli-spinners/2.6.1: + resolution: + { + integrity: sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==, + } + engines: { node: ">=6" } + dev: true + + /cli-truncate/0.2.1: + resolution: + { + integrity: sha512-f4r4yJnbT++qUPI9NR4XLDLq41gQ+uqnPItWG0F5ZkehuNiTTa3EY0S4AqTSUOeJ7/zU41oWPQSNkW5BqPL9bg==, + } + engines: { node: ">=0.10.0" } + dependencies: + slice-ansi: 0.0.4 + string-width: 1.0.2 + dev: true + + /cli-width/3.0.0: + resolution: + { + integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==, + } + engines: { node: ">= 10" } + dev: true + + /client-only/0.0.1: + resolution: + { + integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==, + } + dev: false + + /cliui/6.0.0: + resolution: + { + integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==, + } + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 6.2.0 + dev: true + + /cliui/7.0.4: + resolution: + { + integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==, + } + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + dev: true + + /clone-response/1.0.3: + resolution: + { + integrity: sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==, + } + dependencies: + mimic-response: 1.0.1 + dev: true + + /clone/1.0.4: + resolution: + { + integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==, + } + engines: { node: ">=0.8" } + dev: true + + /clsx/1.2.1: + resolution: + { + integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==, + } + engines: { node: ">=6" } + dev: false + + /code-point-at/1.1.0: + resolution: + { + integrity: sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==, + } + engines: { node: ">=0.10.0" } + + /color-convert/1.9.3: + resolution: + { + integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==, + } + dependencies: + color-name: 1.1.3 + dev: true + + /color-convert/2.0.1: + resolution: + { + integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==, + } + engines: { node: ">=7.0.0" } + dependencies: + color-name: 1.1.4 + + /color-name/1.1.3: + resolution: + { + integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==, + } + dev: true + + /color-name/1.1.4: + resolution: + { + integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==, + } + + /combined-stream/1.0.8: + resolution: + { + integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==, + } + engines: { node: ">= 0.8" } + dependencies: + delayed-stream: 1.0.0 + dev: true + + /commander/4.1.1: + resolution: + { + integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==, + } + engines: { node: ">= 6" } + dev: false + + /common-tags/1.8.2: + resolution: + { + integrity: sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==, + } + engines: { node: ">=4.0.0" } + dev: true + + /compute-scroll-into-view/1.0.17: + resolution: + { + integrity: sha512-j4dx+Fb0URmzbwwMUrhqWM2BEWHdFGx+qZ9qqASHRPqvTYdqvWnHg0H1hIbcyLnvgnoNAVMlwkepyqM3DaIFUg==, + } + dev: false + + /concat-map/0.0.1: + resolution: + { + integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==, + } + + /confusing-browser-globals/1.0.11: + resolution: + { + integrity: sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==, + } + dev: true + + /console-control-strings/1.1.0: + resolution: + { + integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==, + } + dev: false + + /constant-case/3.0.4: + resolution: + { + integrity: sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==, + } + dependencies: + no-case: 3.0.4 + tslib: 2.4.0 + upper-case: 2.0.2 + dev: true + + /convert-source-map/1.8.0: + resolution: + { + integrity: sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==, + } + dependencies: + safe-buffer: 5.1.2 + dev: true + + /cookie/0.4.2: + resolution: + { + integrity: sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==, + } + engines: { node: ">= 0.6" } + dev: false + + /core-js-pure/3.23.5: + resolution: + { + integrity: sha512-8t78LdpKSuCq4pJYCYk8hl7XEkAX+BP16yRIwL3AanTksxuEf7CM83vRyctmiEL8NDZ3jpUcv56fk9/zG3aIuw==, + } + requiresBuild: true + + /core-util-is/1.0.3: + resolution: + { + integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==, + } + dev: false + + /cosmiconfig-toml-loader/1.0.0: + resolution: + { + integrity: sha512-H/2gurFWVi7xXvCyvsWRLCMekl4tITJcX0QEsDMpzxtuxDyM59xLatYNg4s/k9AA/HdtCYfj2su8mgA0GSDLDA==, + } + dependencies: + "@iarna/toml": 2.2.5 + dev: true + + /cosmiconfig/7.0.1: + resolution: + { + integrity: sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==, + } + engines: { node: ">=10" } + dependencies: + "@types/parse-json": 4.0.0 + import-fresh: 3.3.0 + parse-json: 5.2.0 + path-type: 4.0.0 + yaml: 1.10.2 + dev: true + + /create-require/1.1.1: + resolution: + { + integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==, + } + dev: true + + /cross-fetch/3.1.5: + resolution: + { + integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==, + } + dependencies: + node-fetch: 2.6.7 + transitivePeerDependencies: + - encoding + dev: true + + /cross-spawn/7.0.3: + resolution: + { + integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==, + } + engines: { node: ">= 8" } + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + /cross-undici-fetch/0.4.14: + resolution: + { + integrity: sha512-CCep44A/baoO8kYJBIR1cRO/tRAk29xzb/tH3O85OtgwZGkL5I0tJZ47ccZdrnAJxrl5tlaYhAOx09fJXMcUqQ==, + } + dependencies: + abort-controller: 3.0.0 + busboy: 1.6.0 + form-data-encoder: 1.7.2 + formdata-node: 4.3.3 + node-fetch: 2.6.7 + undici: 5.5.1 + web-streams-polyfill: 3.2.1 + transitivePeerDependencies: + - encoding + dev: true + + /css-vendor/2.0.8: + resolution: + { + integrity: sha512-x9Aq0XTInxrkuFeHKbYC7zWY8ai7qJ04Kxd9MnvbC1uO5DagxoHQjm4JvG+vCdXOoFtCjbL2XSZfxmoYa9uQVQ==, + } + dependencies: + "@babel/runtime": 7.18.9 + is-in-browser: 1.1.3 + dev: false + + /csstype/2.6.20: + resolution: + { + integrity: sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==, + } + dev: false + + /csstype/3.1.0: + resolution: + { + integrity: sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==, + } + + /damerau-levenshtein/1.0.8: + resolution: + { + integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==, + } + + /dataloader/2.1.0: + resolution: + { + integrity: sha512-qTcEYLen3r7ojZNgVUaRggOI+KM7jrKxXeSHhogh/TWxYMeONEMqY+hmkobiYQozsGIyg9OYVzO4ZIfoB4I0pQ==, + } + dev: true + + /date-fns/1.30.1: + resolution: + { + integrity: sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==, + } + dev: true + + /debounce/1.2.1: + resolution: + { + integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==, + } + dev: true + + /debug/2.6.9: + resolution: + { + integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==, + } + peerDependencies: + supports-color: "*" + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.0.0 + + /debug/3.2.7: + resolution: + { + integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==, + } + peerDependencies: + supports-color: "*" + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.3 + + /debug/4.3.4: + resolution: + { + integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==, + } + engines: { node: ">=6.0" } + peerDependencies: + supports-color: "*" + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + + /decamelize/1.2.0: + resolution: + { + integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==, + } + engines: { node: ">=0.10.0" } + dev: true + + /decompress-response/3.3.0: + resolution: + { + integrity: sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==, + } + engines: { node: ">=4" } + dependencies: + mimic-response: 1.0.1 + dev: true + + /deep-extend/0.6.0: + resolution: + { + integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==, + } + engines: { node: ">=4.0.0" } + dev: true + + /deep-is/0.1.4: + resolution: + { + integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==, + } + + /defaults/1.0.3: + resolution: + { + integrity: sha512-s82itHOnYrN0Ib8r+z7laQz3sdE+4FP3d9Q7VLO7U+KRT+CR0GsWuyHxzdAY82I7cXv0G/twrqomTJLOssO5HA==, + } + dependencies: + clone: 1.0.4 + dev: true + + /defer-to-connect/1.1.3: + resolution: + { + integrity: sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==, + } + dev: true + + /define-lazy-prop/2.0.0: + resolution: + { + integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==, + } + engines: { node: ">=8" } + + /define-properties/1.1.4: + resolution: + { + integrity: sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==, + } + engines: { node: ">= 0.4" } + dependencies: + has-property-descriptors: 1.0.0 + object-keys: 1.1.1 + + /delayed-stream/1.0.0: + resolution: + { + integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==, + } + engines: { node: ">=0.4.0" } + dev: true + + /delegates/1.0.0: + resolution: + { + integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==, + } + dev: false + + /depd/2.0.0: + resolution: + { + integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==, + } + engines: { node: ">= 0.8" } + dev: false + + /dependency-graph/0.11.0: + resolution: + { + integrity: sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==, + } + engines: { node: ">= 0.6.0" } + dev: true + + /detect-indent/6.1.0: + resolution: + { + integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==, + } + engines: { node: ">=8" } + dev: true + + /diff/4.0.2: + resolution: + { + integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==, + } + engines: { node: ">=0.3.1" } + dev: true + + /dir-glob/3.0.1: + resolution: + { + integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==, + } + engines: { node: ">=8" } + dependencies: + path-type: 4.0.0 + + /doctrine/2.1.0: + resolution: + { + integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==, + } + engines: { node: ">=0.10.0" } + dependencies: + esutils: 2.0.3 + + /doctrine/3.0.0: + resolution: + { + integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==, + } + engines: { node: ">=6.0.0" } + dependencies: + esutils: 2.0.3 + + /dom-helpers/5.2.1: + resolution: + { + integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==, + } + dependencies: + "@babel/runtime": 7.18.9 + csstype: 3.1.0 + dev: false + + /dot-case/3.0.4: + resolution: + { + integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==, + } + dependencies: + no-case: 3.0.4 + tslib: 2.4.0 + dev: true + + /dotenv/16.0.1: + resolution: + { + integrity: sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ==, + } + engines: { node: ">=12" } + dev: true + + /downshift/6.1.7_react@18.2.0: + resolution: + { + integrity: sha512-cVprZg/9Lvj/uhYRxELzlu1aezRcgPWBjTvspiGTVEU64gF5pRdSRKFVLcxqsZC637cLAGMbL40JavEfWnqgNg==, + } + peerDependencies: + react: ">=16.12.0" + dependencies: + "@babel/runtime": 7.18.9 + compute-scroll-into-view: 1.0.17 + prop-types: 15.8.1 + react: 18.2.0 + react-is: 17.0.2 + tslib: 2.4.0 + dev: false + + /dset/3.1.2: + resolution: + { + integrity: sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==, + } + engines: { node: ">=4" } + dev: true + + /duplexer3/0.1.5: + resolution: + { + integrity: sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==, + } + dev: true + + /ecdsa-sig-formatter/1.0.11: + resolution: + { + integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==, + } + dependencies: + safe-buffer: 5.2.1 + dev: true + + /electron-to-chromium/1.4.211: + resolution: + { + integrity: sha512-BZSbMpyFQU0KBJ1JG26XGeFI3i4op+qOYGxftmZXFZoHkhLgsSv4DHDJfl8ogII3hIuzGt51PaZ195OVu0yJ9A==, + } + dev: true + + /elegant-spinner/1.0.1: + resolution: + { + integrity: sha512-B+ZM+RXvRqQaAmkMlO/oSe5nMUOaUnyfGYCEHoR8wrXsZR2mA0XVibsxV1bvTwxdRWah1PkQqso2EzhILGHtEQ==, + } + engines: { node: ">=0.10.0" } + dev: true + + /emoji-regex/8.0.0: + resolution: + { + integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==, + } + + /emoji-regex/9.2.2: + resolution: + { + integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==, + } + + /end-of-stream/1.4.4: + resolution: + { + integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==, + } + dependencies: + once: 1.4.0 + dev: true + + /enhanced-resolve/5.10.0: + resolution: + { + integrity: sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==, + } + engines: { node: ">=10.13.0" } + dependencies: + graceful-fs: 4.2.10 + tapable: 2.2.1 + + /error-ex/1.3.2: + resolution: + { + integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==, + } + dependencies: + is-arrayish: 0.2.1 + dev: true + + /es-abstract/1.20.1: + resolution: + { + integrity: sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + es-to-primitive: 1.2.1 + function-bind: 1.1.1 + function.prototype.name: 1.1.5 + get-intrinsic: 1.1.2 + get-symbol-description: 1.0.0 + has: 1.0.3 + has-property-descriptors: 1.0.0 + has-symbols: 1.0.3 + internal-slot: 1.0.3 + is-callable: 1.2.4 + is-negative-zero: 2.0.2 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.2 + is-string: 1.0.7 + is-weakref: 1.0.2 + object-inspect: 1.12.2 + object-keys: 1.1.1 + object.assign: 4.1.2 + regexp.prototype.flags: 1.4.3 + string.prototype.trimend: 1.0.5 + string.prototype.trimstart: 1.0.5 + unbox-primitive: 1.0.2 + + /es-shim-unscopables/1.0.0: + resolution: + { + integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==, + } + dependencies: + has: 1.0.3 + + /es-to-primitive/1.2.1: + resolution: + { + integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==, + } + engines: { node: ">= 0.4" } + dependencies: + is-callable: 1.2.4 + is-date-object: 1.0.5 + is-symbol: 1.0.4 + + /escalade/3.1.1: + resolution: + { + integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==, + } + engines: { node: ">=6" } + dev: true + + /escape-string-regexp/1.0.5: + resolution: + { + integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==, + } + engines: { node: ">=0.8.0" } + dev: true + + /escape-string-regexp/4.0.0: + resolution: + { + integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==, + } + engines: { node: ">=10" } + + /eslint-config-airbnb-base/15.0.0_hdzsmr7kawaomymueo2tso6fjq: + resolution: + { + integrity: sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==, + } + engines: { node: ^10.12.0 || >=12.0.0 } + peerDependencies: + eslint: ^7.32.0 || ^8.2.0 + eslint-plugin-import: ^2.25.2 + dependencies: + confusing-browser-globals: 1.0.11 + eslint: 8.23.1 + eslint-plugin-import: 2.26.0_bkwixupcywvgmrzjbgj7n47r6y + object.assign: 4.1.2 + object.entries: 1.1.5 + semver: 6.3.0 + dev: true + + /eslint-config-airbnb/19.0.4_vaa2l43rrt3zt475houvwxvax4: + resolution: + { + integrity: sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==, + } + engines: { node: ^10.12.0 || ^12.22.0 || ^14.17.0 || >=16.0.0 } + peerDependencies: + eslint: ^7.32.0 || ^8.2.0 + eslint-plugin-import: ^2.25.3 + eslint-plugin-jsx-a11y: ^6.5.1 + eslint-plugin-react: ^7.28.0 + eslint-plugin-react-hooks: ^4.3.0 + dependencies: + eslint: 8.23.1 + eslint-config-airbnb-base: 15.0.0_hdzsmr7kawaomymueo2tso6fjq + eslint-plugin-import: 2.26.0_bkwixupcywvgmrzjbgj7n47r6y + eslint-plugin-jsx-a11y: 6.6.0_eslint@8.23.1 + eslint-plugin-react: 7.31.8_eslint@8.23.1 + eslint-plugin-react-hooks: 4.6.0_eslint@8.23.1 + object.assign: 4.1.2 + object.entries: 1.1.5 + dev: true + + /eslint-config-next/13.1.4_irgkl5vooow2ydyo6aokmferha: + resolution: + { + integrity: sha512-r7n9V4/kkiDDVFfBwI3tviGUV/jUzGI0lY3JefxceYaU18gdk2kMgNPyhHobowu1+yHZpZi8iEzRtzeTrtGRLg==, + } + peerDependencies: + eslint: ^7.23.0 || ^8.0.0 + typescript: ">=3.3.1" + peerDependenciesMeta: + typescript: + optional: true + dependencies: + "@next/eslint-plugin-next": 13.1.4 + "@rushstack/eslint-patch": 1.2.0 + "@typescript-eslint/parser": 5.48.2_irgkl5vooow2ydyo6aokmferha + eslint: 8.23.1 + eslint-import-resolver-node: 0.3.6 + eslint-import-resolver-typescript: 3.5.3_hdzsmr7kawaomymueo2tso6fjq + eslint-plugin-import: 2.26.0_yvykkuql7q5wwoyd3vgrje6aqa + eslint-plugin-jsx-a11y: 6.6.0_eslint@8.23.1 + eslint-plugin-react: 7.31.8_eslint@8.23.1 + eslint-plugin-react-hooks: 4.6.0_eslint@8.23.1 + typescript: 4.8.3 + transitivePeerDependencies: + - eslint-import-resolver-webpack + - supports-color + dev: false + + /eslint-config-prettier/8.5.0_eslint@8.23.1: + resolution: + { + integrity: sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==, + } + hasBin: true + peerDependencies: + eslint: ">=7.0.0" + dependencies: + eslint: 8.23.1 + dev: true + + /eslint-import-resolver-node/0.3.6: + resolution: + { + integrity: sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==, + } + dependencies: + debug: 3.2.7 + resolve: 1.22.1 + transitivePeerDependencies: + - supports-color + + /eslint-import-resolver-typescript/3.5.1_hdzsmr7kawaomymueo2tso6fjq: + resolution: + { + integrity: sha512-U7LUjNJPYjNsHvAUAkt/RU3fcTSpbllA0//35B4eLYTX74frmOepbt7F7J3D1IGtj9k21buOpaqtDd4ZlS/BYQ==, + } + engines: { node: ^12.20.0 || ^14.18.0 || >=16.0.0 } + peerDependencies: + eslint: "*" + eslint-plugin-import: "*" + dependencies: + debug: 4.3.4 + enhanced-resolve: 5.10.0 + eslint: 8.23.1 + eslint-plugin-import: 2.26.0_bkwixupcywvgmrzjbgj7n47r6y + get-tsconfig: 4.2.0 + globby: 13.1.2 + is-core-module: 2.10.0 + is-glob: 4.0.3 + synckit: 0.8.4 + transitivePeerDependencies: + - supports-color + dev: true + + /eslint-import-resolver-typescript/3.5.3_hdzsmr7kawaomymueo2tso6fjq: + resolution: + { + integrity: sha512-njRcKYBc3isE42LaTcJNVANR3R99H9bAxBDMNDr2W7yq5gYPxbU3MkdhsQukxZ/Xg9C2vcyLlDsbKfRDg0QvCQ==, + } + engines: { node: ^14.18.0 || >=16.0.0 } + peerDependencies: + eslint: "*" + eslint-plugin-import: "*" + dependencies: + debug: 4.3.4 + enhanced-resolve: 5.10.0 + eslint: 8.23.1 + eslint-plugin-import: 2.26.0_yvykkuql7q5wwoyd3vgrje6aqa + get-tsconfig: 4.2.0 + globby: 13.1.2 + is-core-module: 2.10.0 + is-glob: 4.0.3 + synckit: 0.8.4 + transitivePeerDependencies: + - supports-color + dev: false + + /eslint-module-utils/2.7.3_7liths4w263er5tix7tpkwznyq: + resolution: + { + integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==, + } + engines: { node: ">=4" } + peerDependencies: + "@typescript-eslint/parser": "*" + eslint-import-resolver-node: "*" + eslint-import-resolver-typescript: "*" + eslint-import-resolver-webpack: "*" + peerDependenciesMeta: + "@typescript-eslint/parser": + optional: true + eslint-import-resolver-node: + optional: true + eslint-import-resolver-typescript: + optional: true + eslint-import-resolver-webpack: + optional: true + dependencies: + "@typescript-eslint/parser": 5.36.2_irgkl5vooow2ydyo6aokmferha + debug: 3.2.7 + eslint-import-resolver-node: 0.3.6 + eslint-import-resolver-typescript: 3.5.1_hdzsmr7kawaomymueo2tso6fjq + find-up: 2.1.0 + transitivePeerDependencies: + - supports-color + dev: true + + /eslint-module-utils/2.7.3_ldxyliihv5g6tibz4or2rt2p7i: + resolution: + { + integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==, + } + engines: { node: ">=4" } + peerDependencies: + "@typescript-eslint/parser": "*" + eslint-import-resolver-node: "*" + eslint-import-resolver-typescript: "*" + eslint-import-resolver-webpack: "*" + peerDependenciesMeta: + "@typescript-eslint/parser": + optional: true + eslint-import-resolver-node: + optional: true + eslint-import-resolver-typescript: + optional: true + eslint-import-resolver-webpack: + optional: true + dependencies: + "@typescript-eslint/parser": 5.48.2_irgkl5vooow2ydyo6aokmferha + debug: 3.2.7 + eslint-import-resolver-node: 0.3.6 + eslint-import-resolver-typescript: 3.5.3_hdzsmr7kawaomymueo2tso6fjq + find-up: 2.1.0 + transitivePeerDependencies: + - supports-color + dev: false + + /eslint-plugin-import/2.26.0_bkwixupcywvgmrzjbgj7n47r6y: + resolution: + { + integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==, + } + engines: { node: ">=4" } + peerDependencies: + "@typescript-eslint/parser": "*" + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + peerDependenciesMeta: + "@typescript-eslint/parser": + optional: true + dependencies: + "@typescript-eslint/parser": 5.36.2_irgkl5vooow2ydyo6aokmferha + array-includes: 3.1.5 + array.prototype.flat: 1.3.0 + debug: 2.6.9 + doctrine: 2.1.0 + eslint: 8.23.1 + eslint-import-resolver-node: 0.3.6 + eslint-module-utils: 2.7.3_7liths4w263er5tix7tpkwznyq + has: 1.0.3 + is-core-module: 2.9.0 + is-glob: 4.0.3 + minimatch: 3.1.2 + object.values: 1.1.5 + resolve: 1.22.1 + tsconfig-paths: 3.14.1 + transitivePeerDependencies: + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color + dev: true + + /eslint-plugin-import/2.26.0_yvykkuql7q5wwoyd3vgrje6aqa: + resolution: + { + integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==, + } + engines: { node: ">=4" } + peerDependencies: + "@typescript-eslint/parser": "*" + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + peerDependenciesMeta: + "@typescript-eslint/parser": + optional: true + dependencies: + "@typescript-eslint/parser": 5.48.2_irgkl5vooow2ydyo6aokmferha + array-includes: 3.1.5 + array.prototype.flat: 1.3.0 + debug: 2.6.9 + doctrine: 2.1.0 + eslint: 8.23.1 + eslint-import-resolver-node: 0.3.6 + eslint-module-utils: 2.7.3_ldxyliihv5g6tibz4or2rt2p7i + has: 1.0.3 + is-core-module: 2.9.0 + is-glob: 4.0.3 + minimatch: 3.1.2 + object.values: 1.1.5 + resolve: 1.22.1 + tsconfig-paths: 3.14.1 + transitivePeerDependencies: + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color + dev: false + + /eslint-plugin-jsx-a11y/6.6.0_eslint@8.23.1: + resolution: + { + integrity: sha512-kTeLuIzpNhXL2CwLlc8AHI0aFRwWHcg483yepO9VQiHzM9bZwJdzTkzBszbuPrbgGmq2rlX/FaT2fJQsjUSHsw==, + } + engines: { node: ">=4.0" } + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + "@babel/runtime": 7.18.9 + aria-query: 4.2.2 + array-includes: 3.1.5 + ast-types-flow: 0.0.7 + axe-core: 4.4.3 + axobject-query: 2.2.0 + damerau-levenshtein: 1.0.8 + emoji-regex: 9.2.2 + eslint: 8.23.1 + has: 1.0.3 + jsx-ast-utils: 3.3.2 + language-tags: 1.0.5 + minimatch: 3.1.2 + semver: 6.3.0 + + /eslint-plugin-react-hooks/4.6.0_eslint@8.23.1: + resolution: + { + integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==, + } + engines: { node: ">=10" } + peerDependencies: + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 + dependencies: + eslint: 8.23.1 + + /eslint-plugin-react/7.31.8_eslint@8.23.1: + resolution: + { + integrity: sha512-5lBTZmgQmARLLSYiwI71tiGVTLUuqXantZM6vlSY39OaDSV0M7+32K5DnLkmFrwTe+Ksz0ffuLUC91RUviVZfw==, + } + engines: { node: ">=4" } + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + array-includes: 3.1.5 + array.prototype.flatmap: 1.3.0 + doctrine: 2.1.0 + eslint: 8.23.1 + estraverse: 5.3.0 + jsx-ast-utils: 3.3.2 + minimatch: 3.1.2 + object.entries: 1.1.5 + object.fromentries: 2.0.5 + object.hasown: 1.1.1 + object.values: 1.1.5 + prop-types: 15.8.1 + resolve: 2.0.0-next.4 + semver: 6.3.0 + string.prototype.matchall: 4.0.7 + + /eslint-plugin-simple-import-sort/8.0.0_eslint@8.23.1: + resolution: + { + integrity: sha512-bXgJQ+lqhtQBCuWY/FUWdB27j4+lqcvXv5rUARkzbeWLwea+S5eBZEQrhnO+WgX3ZoJHVj0cn943iyXwByHHQw==, + } + peerDependencies: + eslint: ">=5.0.0" + dependencies: + eslint: 8.23.1 + dev: true + + /eslint-scope/5.1.1: + resolution: + { + integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==, + } + engines: { node: ">=8.0.0" } + dependencies: + esrecurse: 4.3.0 + estraverse: 4.3.0 + dev: true + + /eslint-scope/7.1.1: + resolution: + { + integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + /eslint-utils/3.0.0_eslint@8.23.1: + resolution: + { + integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==, + } + engines: { node: ^10.0.0 || ^12.0.0 || >= 14.0.0 } + peerDependencies: + eslint: ">=5" + dependencies: + eslint: 8.23.1 + eslint-visitor-keys: 2.1.0 + + /eslint-visitor-keys/2.1.0: + resolution: + { + integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==, + } + engines: { node: ">=10" } + + /eslint-visitor-keys/3.3.0: + resolution: + { + integrity: sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + + /eslint/8.23.1: + resolution: + { + integrity: sha512-w7C1IXCc6fNqjpuYd0yPlcTKKmHlHHktRkzmBPZ+7cvNBQuiNjx0xaMTjAJGCafJhQkrFJooREv0CtrVzmHwqg==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + hasBin: true + dependencies: + "@eslint/eslintrc": 1.3.2 + "@humanwhocodes/config-array": 0.10.4 + "@humanwhocodes/gitignore-to-minimatch": 1.0.2 + "@humanwhocodes/module-importer": 1.0.1 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.4 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.1.1 + eslint-utils: 3.0.0_eslint@8.23.1 + eslint-visitor-keys: 3.3.0 + espree: 9.4.0 + esquery: 1.4.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.16.0 + globby: 11.1.0 + grapheme-splitter: 1.0.4 + ignore: 5.2.0 + import-fresh: 3.3.0 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + js-sdsl: 4.1.4 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.1 + regexpp: 3.2.0 + strip-ansi: 6.0.1 + strip-json-comments: 3.1.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + + /espree/9.4.0: + resolution: + { + integrity: sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==, + } + engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + dependencies: + acorn: 8.8.0 + acorn-jsx: 5.3.2_acorn@8.8.0 + eslint-visitor-keys: 3.3.0 + + /esquery/1.4.0: + resolution: + { + integrity: sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==, + } + engines: { node: ">=0.10" } + dependencies: + estraverse: 5.3.0 + + /esrecurse/4.3.0: + resolution: + { + integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==, + } + engines: { node: ">=4.0" } + dependencies: + estraverse: 5.3.0 + + /estraverse/4.3.0: + resolution: + { + integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==, + } + engines: { node: ">=4.0" } + dev: true + + /estraverse/5.3.0: + resolution: + { + integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==, + } + engines: { node: ">=4.0" } + + /estree-walker/2.0.2: + resolution: + { + integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==, + } + dev: false + + /esutils/2.0.3: + resolution: + { + integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==, + } + engines: { node: ">=0.10.0" } + + /event-target-shim/5.0.1: + resolution: + { + integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==, + } + engines: { node: ">=6" } + dev: true + + /execa/4.1.0: + resolution: + { + integrity: sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==, + } + engines: { node: ">=10" } + dependencies: + cross-spawn: 7.0.3 + get-stream: 5.2.0 + human-signals: 1.1.1 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + signal-exit: 3.0.7 + strip-final-newline: 2.0.0 + dev: true + + /exenv/1.2.2: + resolution: + { + integrity: sha512-Z+ktTxTwv9ILfgKCk32OX3n/doe+OcLTRtqK9pcL+JsP3J1/VW8Uvl4ZjLlKqeW4rzK4oesDOGMEMRIZqtP4Iw==, + } + dev: false + + /external-editor/3.1.0: + resolution: + { + integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==, + } + engines: { node: ">=4" } + dependencies: + chardet: 0.7.0 + iconv-lite: 0.4.24 + tmp: 0.0.33 + dev: true + + /extract-files/11.0.0: + resolution: + { + integrity: sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ==, + } + engines: { node: ^12.20 || >= 14.13 } + dev: true + + /extract-files/9.0.0: + resolution: + { + integrity: sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==, + } + engines: { node: ^10.17.0 || ^12.0.0 || >= 13.7.0 } + dev: true + + /fast-deep-equal/3.1.3: + resolution: + { + integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==, + } + + /fast-glob/3.2.11: + resolution: + { + integrity: sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==, + } + engines: { node: ">=8.6.0" } + dependencies: + "@nodelib/fs.stat": 2.0.5 + "@nodelib/fs.walk": 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + + /fast-json-stable-stringify/2.1.0: + resolution: + { + integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==, + } + + /fast-levenshtein/2.0.6: + resolution: + { + integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==, + } + + /fastq/1.13.0: + resolution: + { + integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==, + } + dependencies: + reusify: 1.0.4 + + /fb-watchman/2.0.1: + resolution: + { + integrity: sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==, + } + dependencies: + bser: 2.1.1 + dev: true + + /fbjs-css-vars/1.0.2: + resolution: + { + integrity: sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==, + } + dev: true + + /fbjs/3.0.4: + resolution: + { + integrity: sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==, + } + dependencies: + cross-fetch: 3.1.5 + fbjs-css-vars: 1.0.2 + loose-envify: 1.4.0 + object-assign: 4.1.1 + promise: 7.3.1 + setimmediate: 1.0.5 + ua-parser-js: 0.7.31 + transitivePeerDependencies: + - encoding + dev: true + + /figures/1.7.0: + resolution: + { + integrity: sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==, + } + engines: { node: ">=0.10.0" } + dependencies: + escape-string-regexp: 1.0.5 + object-assign: 4.1.1 + dev: true + + /figures/2.0.0: + resolution: + { + integrity: sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==, + } + engines: { node: ">=4" } + dependencies: + escape-string-regexp: 1.0.5 + dev: true + + /figures/3.2.0: + resolution: + { + integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==, + } + engines: { node: ">=8" } + dependencies: + escape-string-regexp: 1.0.5 + dev: true + + /file-entry-cache/6.0.1: + resolution: + { + integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==, + } + engines: { node: ^10.12.0 || >=12.0.0 } + dependencies: + flat-cache: 3.0.4 + + /fill-range/7.0.1: + resolution: + { + integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==, + } + engines: { node: ">=8" } + dependencies: + to-regex-range: 5.0.1 + + /find-up/2.1.0: + resolution: + { + integrity: sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==, + } + engines: { node: ">=4" } + dependencies: + locate-path: 2.0.0 + + /find-up/4.1.0: + resolution: + { + integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==, + } + engines: { node: ">=8" } + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + dev: true + + /find-up/5.0.0: + resolution: + { + integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==, + } + engines: { node: ">=10" } + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + /flat-cache/3.0.4: + resolution: + { + integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==, + } + engines: { node: ^10.12.0 || >=12.0.0 } + dependencies: + flatted: 3.2.6 + rimraf: 3.0.2 + + /flatted/3.2.6: + resolution: + { + integrity: sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==, + } + + /form-data-encoder/1.7.2: + resolution: + { + integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==, + } + dev: true + + /form-data/3.0.1: + resolution: + { + integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==, + } + engines: { node: ">= 6" } + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.35 + dev: true + + /formdata-node/4.3.3: + resolution: + { + integrity: sha512-coTew7WODO2vF+XhpUdmYz4UBvlsiTMSNaFYZlrXIqYbFd4W7bMwnoALNLE6uvNgzTg2j1JDF0ZImEfF06VPAA==, + } + engines: { node: ">= 12.20" } + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 4.0.0-beta.1 + dev: true + + /fraction.js/4.2.0: + resolution: + { + integrity: sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==, + } + dev: true + + /fs.realpath/1.0.0: + resolution: + { + integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==, + } + + /fsevents/2.3.2: + resolution: + { + integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, + } + engines: { node: ^8.16.0 || ^10.6.0 || >=11.0.0 } + os: [darwin] + requiresBuild: true + optional: true + + /function-bind/1.1.1: + resolution: + { + integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==, + } + + /function.prototype.name/1.1.5: + resolution: + { + integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + functions-have-names: 1.2.3 + + /functional-red-black-tree/1.0.1: + resolution: + { + integrity: sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==, + } + dev: true + + /functions-have-names/1.2.3: + resolution: + { + integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==, + } + + /gauge/2.7.4: + resolution: + { + integrity: sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==, + } + dependencies: + aproba: 1.2.0 + console-control-strings: 1.1.0 + has-unicode: 2.0.1 + object-assign: 4.1.1 + signal-exit: 3.0.7 + string-width: 1.0.2 + strip-ansi: 3.0.1 + wide-align: 1.1.5 + dev: false + + /gensync/1.0.0-beta.2: + resolution: + { + integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==, + } + engines: { node: ">=6.9.0" } + dev: true + + /get-caller-file/2.0.5: + resolution: + { + integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==, + } + engines: { node: 6.* || 8.* || >= 10.* } + dev: true + + /get-intrinsic/1.1.2: + resolution: + { + integrity: sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==, + } + dependencies: + function-bind: 1.1.1 + has: 1.0.3 + has-symbols: 1.0.3 + + /get-stream/4.1.0: + resolution: + { + integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==, + } + engines: { node: ">=6" } + dependencies: + pump: 3.0.0 + dev: true + + /get-stream/5.2.0: + resolution: + { + integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==, + } + engines: { node: ">=8" } + dependencies: + pump: 3.0.0 + dev: true + + /get-symbol-description/1.0.0: + resolution: + { + integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.1.2 + + /get-tsconfig/4.2.0: + resolution: + { + integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==, + } + + /glob-parent/5.1.2: + resolution: + { + integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==, + } + engines: { node: ">= 6" } + dependencies: + is-glob: 4.0.3 + + /glob-parent/6.0.2: + resolution: + { + integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==, + } + engines: { node: ">=10.13.0" } + dependencies: + is-glob: 4.0.3 + + /glob/7.1.6: + resolution: + { + integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==, + } + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: false + + /glob/7.1.7: + resolution: + { + integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==, + } + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: false + + /glob/7.2.3: + resolution: + { + integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==, + } + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + + /globals/11.12.0: + resolution: + { + integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==, + } + engines: { node: ">=4" } + dev: true + + /globals/13.16.0: + resolution: + { + integrity: sha512-A1lrQfpNF+McdPOnnFqY3kSN0AFTy485bTi1bkLk4mVPODIUEcSfhHgRqA+QdXPksrSTTztYXx37NFV+GpGk3Q==, + } + engines: { node: ">=8" } + dependencies: + type-fest: 0.20.2 + + /globalyzer/0.1.0: + resolution: + { + integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==, + } + + /globby/11.1.0: + resolution: + { + integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==, + } + engines: { node: ">=10" } + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.2.11 + ignore: 5.2.0 + merge2: 1.4.1 + slash: 3.0.0 + + /globby/13.1.2: + resolution: + { + integrity: sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ==, + } + engines: { node: ^12.20.0 || ^14.13.1 || >=16.0.0 } + dependencies: + dir-glob: 3.0.1 + fast-glob: 3.2.11 + ignore: 5.2.0 + merge2: 1.4.1 + slash: 4.0.0 + + /globrex/0.1.2: + resolution: + { + integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==, + } + + /got/9.6.0: + resolution: + { + integrity: sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==, + } + engines: { node: ">=8.6" } + dependencies: + "@sindresorhus/is": 0.14.0 + "@szmarczak/http-timer": 1.1.2 + "@types/keyv": 3.1.4 + "@types/responselike": 1.0.0 + cacheable-request: 6.1.0 + decompress-response: 3.3.0 + duplexer3: 0.1.5 + get-stream: 4.1.0 + lowercase-keys: 1.0.1 + mimic-response: 1.0.1 + p-cancelable: 1.1.0 + to-readable-stream: 1.0.0 + url-parse-lax: 3.0.0 + dev: true + + /graceful-fs/4.2.10: + resolution: + { + integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==, + } + + /grapheme-splitter/1.0.4: + resolution: + { + integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==, + } + + /graphql-config/4.3.1_siupcgn3wlvluhjnbpgmgner4m: + resolution: + { + integrity: sha512-czBWzJSGaLJfOHBLuUTZVRTjfgohPfvlaeN1B5nXBVptFARpiFuS7iI4FnRhCGwm6qt1h2j1g05nkg0OIGA6bg==, + } + engines: { node: ">= 10.0.0" } + peerDependencies: + graphql: ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + "@endemolshinegroup/cosmiconfig-typescript-loader": 3.0.2_6wf3rui7fxpk2ozg5pxhvfantu + "@graphql-tools/graphql-file-loader": 7.4.0_graphql@16.5.0 + "@graphql-tools/json-file-loader": 7.4.0_graphql@16.5.0 + "@graphql-tools/load": 7.7.0_graphql@16.5.0 + "@graphql-tools/merge": 8.3.0_graphql@16.5.0 + "@graphql-tools/url-loader": 7.12.1_ewm3rx2a6dfbdevnsyuui3n5xm + "@graphql-tools/utils": 8.8.0_graphql@16.5.0 + cosmiconfig: 7.0.1 + cosmiconfig-toml-loader: 1.0.0 + graphql: 16.5.0 + minimatch: 4.2.1 + string-env-interpolation: 1.0.1 + transitivePeerDependencies: + - "@types/node" + - bufferutil + - encoding + - typescript + - utf-8-validate + dev: true + + /graphql-request/4.3.0_graphql@16.5.0: + resolution: + { + integrity: sha512-2v6hQViJvSsifK606AliqiNiijb1uwWp6Re7o0RTyH+uRTv/u7Uqm2g4Fjq/LgZIzARB38RZEvVBFOQOVdlBow==, + } + peerDependencies: + graphql: 14 - 16 + dependencies: + cross-fetch: 3.1.5 + extract-files: 9.0.0 + form-data: 3.0.1 + graphql: 16.5.0 + transitivePeerDependencies: + - encoding + dev: true + + /graphql-tag/2.12.6_graphql@16.5.0: + resolution: + { + integrity: sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==, + } + engines: { node: ">=10" } + peerDependencies: + graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + graphql: 16.5.0 + tslib: 2.4.0 + + /graphql-ws/5.9.1_graphql@16.5.0: + resolution: + { + integrity: sha512-mL/SWGBwIT9Meq0NlfS55yXXTOeWPMbK7bZBEZhFu46bcGk1coTx2Sdtzxdk+9yHWngD+Fk1PZDWaAutQa9tpw==, + } + engines: { node: ">=10" } + peerDependencies: + graphql: ">=0.11 <=16" + dependencies: + graphql: 16.5.0 + dev: true + + /graphql/16.5.0: + resolution: + { + integrity: sha512-qbHgh8Ix+j/qY+a/ZcJnFQ+j8ezakqPiHwPiZhV/3PgGlgf96QMBB5/f2rkiC9sgLoy/xvT6TSiaf2nTHJh5iA==, + } + engines: { node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0 } + + /graphql/16.6.0: + resolution: + { + integrity: sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw==, + } + engines: { node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0 } + dev: false + + /has-ansi/2.0.0: + resolution: + { + integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==, + } + engines: { node: ">=0.10.0" } + dependencies: + ansi-regex: 2.1.1 + dev: true + + /has-bigints/1.0.2: + resolution: + { + integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==, + } + + /has-flag/3.0.0: + resolution: + { + integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==, + } + engines: { node: ">=4" } + dev: true + + /has-flag/4.0.0: + resolution: + { + integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==, + } + engines: { node: ">=8" } + + /has-property-descriptors/1.0.0: + resolution: + { + integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==, + } + dependencies: + get-intrinsic: 1.1.2 + + /has-symbols/1.0.3: + resolution: + { + integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==, + } + engines: { node: ">= 0.4" } + + /has-tostringtag/1.0.0: + resolution: + { + integrity: sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==, + } + engines: { node: ">= 0.4" } + dependencies: + has-symbols: 1.0.3 + + /has-unicode/2.0.1: + resolution: + { + integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==, + } + dev: false + + /has/1.0.3: + resolution: + { + integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==, + } + engines: { node: ">= 0.4.0" } + dependencies: + function-bind: 1.1.1 + + /header-case/2.0.4: + resolution: + { + integrity: sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==, + } + dependencies: + capital-case: 1.0.4 + tslib: 2.4.0 + dev: true + + /hoist-non-react-statics/3.3.2: + resolution: + { + integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==, + } + dependencies: + react-is: 16.13.1 + dev: false + + /http-cache-semantics/4.1.0: + resolution: + { + integrity: sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==, + } + dev: true + + /http-errors/2.0.0: + resolution: + { + integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==, + } + engines: { node: ">= 0.8" } + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.1 + toidentifier: 1.0.1 + dev: false + + /http-proxy-agent/5.0.0: + resolution: + { + integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==, + } + engines: { node: ">= 6" } + dependencies: + "@tootallnate/once": 2.0.0 + agent-base: 6.0.2 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /https-proxy-agent/5.0.1: + resolution: + { + integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==, + } + engines: { node: ">= 6" } + dependencies: + agent-base: 6.0.2 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + + /human-signals/1.1.1: + resolution: + { + integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==, + } + engines: { node: ">=8.12.0" } + dev: true + + /husky/8.0.1: + resolution: + { + integrity: sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==, + } + engines: { node: ">=14" } + hasBin: true + dev: true + + /hyphenate-style-name/1.0.4: + resolution: + { + integrity: sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==, + } + dev: false + + /iconv-lite/0.4.24: + resolution: + { + integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==, + } + engines: { node: ">=0.10.0" } + dependencies: + safer-buffer: 2.1.2 + + /ieee754/1.2.1: + resolution: + { + integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==, + } + dev: true + + /ignore/5.2.0: + resolution: + { + integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==, + } + engines: { node: ">= 4" } + + /immediate/3.0.6: + resolution: + { + integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==, + } + dev: false + + /immutable/3.7.6: + resolution: + { + integrity: sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw==, + } + engines: { node: ">=0.8.0" } + dev: true + + /import-fresh/3.3.0: + resolution: + { + integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==, + } + engines: { node: ">=6" } + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + /import-from/4.0.0: + resolution: + { + integrity: sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==, + } + engines: { node: ">=12.2" } + dev: true + + /imurmurhash/0.1.4: + resolution: + { + integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==, + } + engines: { node: ">=0.8.19" } + + /indent-string/3.2.0: + resolution: + { + integrity: sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==, + } + engines: { node: ">=4" } + dev: true + + /inflight/1.0.6: + resolution: + { + integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==, + } + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + /inherits/2.0.4: + resolution: + { + integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, + } + + /ini/1.3.8: + resolution: + { + integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==, + } + dev: true + + /inquirer/8.2.4: + resolution: + { + integrity: sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==, + } + engines: { node: ">=12.0.0" } + dependencies: + ansi-escapes: 4.3.2 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-width: 3.0.0 + external-editor: 3.1.0 + figures: 3.2.0 + lodash: 4.17.21 + mute-stream: 0.0.8 + ora: 5.4.1 + run-async: 2.4.1 + rxjs: 7.5.6 + string-width: 4.2.3 + strip-ansi: 6.0.1 + through: 2.3.8 + wrap-ansi: 7.0.0 + dev: true + + /internal-slot/1.0.3: + resolution: + { + integrity: sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==, + } + engines: { node: ">= 0.4" } + dependencies: + get-intrinsic: 1.1.2 + has: 1.0.3 + side-channel: 1.0.4 + + /invariant/2.2.4: + resolution: + { + integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==, + } + dependencies: + loose-envify: 1.4.0 + dev: true + + /is-absolute/1.0.0: + resolution: + { + integrity: sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==, + } + engines: { node: ">=0.10.0" } + dependencies: + is-relative: 1.0.0 + is-windows: 1.0.2 + dev: true + + /is-arrayish/0.2.1: + resolution: + { + integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==, + } + dev: true + + /is-bigint/1.0.4: + resolution: + { + integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==, + } + dependencies: + has-bigints: 1.0.2 + + /is-binary-path/2.1.0: + resolution: + { + integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==, + } + engines: { node: ">=8" } + dependencies: + binary-extensions: 2.2.0 + dev: true + + /is-boolean-object/1.1.2: + resolution: + { + integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + has-tostringtag: 1.0.0 + + /is-callable/1.2.4: + resolution: + { + integrity: sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==, + } + engines: { node: ">= 0.4" } + + /is-core-module/2.10.0: + resolution: + { + integrity: sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==, + } + dependencies: + has: 1.0.3 + + /is-core-module/2.9.0: + resolution: + { + integrity: sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==, + } + dependencies: + has: 1.0.3 + + /is-date-object/1.0.5: + resolution: + { + integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==, + } + engines: { node: ">= 0.4" } + dependencies: + has-tostringtag: 1.0.0 + + /is-docker/2.2.1: + resolution: + { + integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==, + } + engines: { node: ">=8" } + hasBin: true + + /is-extglob/2.1.1: + resolution: + { + integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==, + } + engines: { node: ">=0.10.0" } + + /is-fullwidth-code-point/1.0.0: + resolution: + { + integrity: sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==, + } + engines: { node: ">=0.10.0" } + dependencies: + number-is-nan: 1.0.1 + + /is-fullwidth-code-point/2.0.0: + resolution: + { + integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==, + } + engines: { node: ">=4" } + dev: true + + /is-fullwidth-code-point/3.0.0: + resolution: + { + integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==, + } + engines: { node: ">=8" } + + /is-glob/4.0.3: + resolution: + { + integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==, + } + engines: { node: ">=0.10.0" } + dependencies: + is-extglob: 2.1.1 + + /is-in-browser/1.1.3: + resolution: + { + integrity: sha512-FeXIBgG/CPGd/WUxuEyvgGTEfwiG9Z4EKGxjNMRqviiIIfsmgrpnHLffEDdwUHqNva1VEW91o3xBT/m8Elgl9g==, + } + dev: false + + /is-interactive/1.0.0: + resolution: + { + integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==, + } + engines: { node: ">=8" } + dev: true + + /is-lower-case/2.0.2: + resolution: + { + integrity: sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /is-negative-zero/2.0.2: + resolution: + { + integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==, + } + engines: { node: ">= 0.4" } + + /is-number-object/1.0.7: + resolution: + { + integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==, + } + engines: { node: ">= 0.4" } + dependencies: + has-tostringtag: 1.0.0 + + /is-number/7.0.0: + resolution: + { + integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==, + } + engines: { node: ">=0.12.0" } + + /is-observable/1.1.0: + resolution: + { + integrity: sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==, + } + engines: { node: ">=4" } + dependencies: + symbol-observable: 1.2.0 + dev: true + + /is-promise/2.2.2: + resolution: + { + integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==, + } + dev: true + + /is-regex/1.1.4: + resolution: + { + integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + has-tostringtag: 1.0.0 + + /is-relative/1.0.0: + resolution: + { + integrity: sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==, + } + engines: { node: ">=0.10.0" } + dependencies: + is-unc-path: 1.0.0 + dev: true + + /is-shared-array-buffer/1.0.2: + resolution: + { + integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==, + } + dependencies: + call-bind: 1.0.2 + + /is-stream/1.1.0: + resolution: + { + integrity: sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==, + } + engines: { node: ">=0.10.0" } + dev: true + + /is-stream/2.0.1: + resolution: + { + integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==, + } + engines: { node: ">=8" } + dev: true + + /is-string/1.0.7: + resolution: + { + integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==, + } + engines: { node: ">= 0.4" } + dependencies: + has-tostringtag: 1.0.0 + + /is-symbol/1.0.4: + resolution: + { + integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==, + } + engines: { node: ">= 0.4" } + dependencies: + has-symbols: 1.0.3 + + /is-unc-path/1.0.0: + resolution: + { + integrity: sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==, + } + engines: { node: ">=0.10.0" } + dependencies: + unc-path-regex: 0.1.2 + dev: true + + /is-unicode-supported/0.1.0: + resolution: + { + integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==, + } + engines: { node: ">=10" } + dev: true + + /is-upper-case/2.0.2: + resolution: + { + integrity: sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /is-weakref/1.0.2: + resolution: + { + integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==, + } + dependencies: + call-bind: 1.0.2 + + /is-windows/1.0.2: + resolution: + { + integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==, + } + engines: { node: ">=0.10.0" } + dev: true + + /is-wsl/2.2.0: + resolution: + { + integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==, + } + engines: { node: ">=8" } + dependencies: + is-docker: 2.2.1 + + /isarray/1.0.0: + resolution: + { + integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==, + } + dev: false + + /isexe/2.0.0: + resolution: + { + integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==, + } + + /isomorphic-fetch/3.0.0: + resolution: + { + integrity: sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==, + } + dependencies: + node-fetch: 2.6.7 + whatwg-fetch: 3.6.2 + transitivePeerDependencies: + - encoding + dev: true + + /isomorphic-ws/5.0.0_ws@8.8.1: + resolution: + { + integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==, + } + peerDependencies: + ws: "*" + dependencies: + ws: 8.8.1 + dev: true + + /jose/4.11.2: + resolution: + { + integrity: sha512-njj0VL2TsIxCtgzhO+9RRobBvws4oYyCM8TpvoUQwl/MbIM3NFJRR9+e6x0sS5xXaP1t6OCBkaBME98OV9zU5A==, + } + dev: false + + /js-sdsl/4.1.4: + resolution: + { + integrity: sha512-Y2/yD55y5jteOAmY50JbUZYwk3CP3wnLPEZnlR1w9oKhITrBEtAxwuWKebFf8hMrPMgbYwFoWK/lH2sBkErELw==, + } + + /js-tokens/4.0.0: + resolution: + { + integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==, + } + + /js-yaml/4.1.0: + resolution: + { + integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==, + } + hasBin: true + dependencies: + argparse: 2.0.1 + + /jsesc/2.5.2: + resolution: + { + integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==, + } + engines: { node: ">=4" } + hasBin: true + dev: true + + /json-buffer/3.0.0: + resolution: { integrity: sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg= } + dev: true + + /json-parse-even-better-errors/2.3.1: + resolution: + { + integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==, + } + dev: true + + /json-schema-traverse/0.4.1: + resolution: + { + integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==, + } + + /json-stable-stringify-without-jsonify/1.0.1: + resolution: + { + integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==, + } + + /json-stable-stringify/1.0.1: + resolution: + { + integrity: sha512-i/J297TW6xyj7sDFa7AmBPkQvLIxWr2kKPWI26tXydnZrzVAocNqn5DMNT1Mzk0vit1V5UkRM7C1KdVNp7Lmcg==, + } + dependencies: + jsonify: 0.0.0 + dev: true + + /json-to-pretty-yaml/1.2.2: + resolution: + { + integrity: sha512-rvm6hunfCcqegwYaG5T4yKJWxc9FXFgBVrcTZ4XfSVRwa5HA/Xs+vB/Eo9treYYHCeNM0nrSUr82V/M31Urc7A==, + } + engines: { node: ">= 0.2.0" } + dependencies: + remedial: 1.0.8 + remove-trailing-spaces: 1.0.8 + dev: true + + /json5/1.0.1: + resolution: + { + integrity: sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==, + } + hasBin: true + dependencies: + minimist: 1.2.6 + + /json5/2.2.1: + resolution: + { + integrity: sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==, + } + engines: { node: ">=6" } + hasBin: true + dev: true + + /jsonify/0.0.0: + resolution: + { + integrity: sha512-trvBk1ki43VZptdBI5rIlG4YOzyeH/WefQt5rj1grasPn4iiZWKet8nkgc4GlsAylaztn0qZfUYOiTsASJFdNA==, + } + dev: true + + /jsonwebtoken/8.5.1: + resolution: + { + integrity: sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==, + } + engines: { node: ">=4", npm: ">=1.4.28" } + dependencies: + jws: 3.2.2 + lodash.includes: 4.3.0 + lodash.isboolean: 3.0.3 + lodash.isinteger: 4.0.4 + lodash.isnumber: 3.0.3 + lodash.isplainobject: 4.0.6 + lodash.isstring: 4.0.1 + lodash.once: 4.1.1 + ms: 2.1.3 + semver: 5.7.1 + dev: true + + /jss-plugin-camel-case/10.9.0: + resolution: + { + integrity: sha512-UH6uPpnDk413/r/2Olmw4+y54yEF2lRIV8XIZyuYpgPYTITLlPOsq6XB9qeqv+75SQSg3KLocq5jUBXW8qWWww==, + } + dependencies: + "@babel/runtime": 7.18.9 + hyphenate-style-name: 1.0.4 + jss: 10.9.0 + dev: false + + /jss-plugin-default-unit/10.9.0: + resolution: + { + integrity: sha512-7Ju4Q9wJ/MZPsxfu4T84mzdn7pLHWeqoGd/D8O3eDNNJ93Xc8PxnLmV8s8ZPNRYkLdxZqKtm1nPQ0BM4JRlq2w==, + } + dependencies: + "@babel/runtime": 7.18.9 + jss: 10.9.0 + dev: false + + /jss-plugin-global/10.9.0: + resolution: + { + integrity: sha512-4G8PHNJ0x6nwAFsEzcuVDiBlyMsj2y3VjmFAx/uHk/R/gzJV+yRHICjT4MKGGu1cJq2hfowFWCyrr/Gg37FbgQ==, + } + dependencies: + "@babel/runtime": 7.18.9 + jss: 10.9.0 + dev: false + + /jss-plugin-nested/10.9.0: + resolution: + { + integrity: sha512-2UJnDrfCZpMYcpPYR16oZB7VAC6b/1QLsRiAutOt7wJaaqwCBvNsosLEu/fUyKNQNGdvg2PPJFDO5AX7dwxtoA==, + } + dependencies: + "@babel/runtime": 7.18.9 + jss: 10.9.0 + tiny-warning: 1.0.3 + dev: false + + /jss-plugin-props-sort/10.9.0: + resolution: + { + integrity: sha512-7A76HI8bzwqrsMOJTWKx/uD5v+U8piLnp5bvru7g/3ZEQOu1+PjHvv7bFdNO3DwNPC9oM0a//KwIJsIcDCjDzw==, + } + dependencies: + "@babel/runtime": 7.18.9 + jss: 10.9.0 + dev: false + + /jss-plugin-rule-value-function/10.9.0: + resolution: + { + integrity: sha512-IHJv6YrEf8pRzkY207cPmdbBstBaE+z8pazhPShfz0tZSDtRdQua5jjg6NMz3IbTasVx9FdnmptxPqSWL5tyJg==, + } + dependencies: + "@babel/runtime": 7.18.9 + jss: 10.9.0 + tiny-warning: 1.0.3 + dev: false + + /jss-plugin-vendor-prefixer/10.9.0: + resolution: + { + integrity: sha512-MbvsaXP7iiVdYVSEoi+blrW+AYnTDvHTW6I6zqi7JcwXdc6I9Kbm234nEblayhF38EftoenbM+5218pidmC5gA==, + } + dependencies: + "@babel/runtime": 7.18.9 + css-vendor: 2.0.8 + jss: 10.9.0 + dev: false + + /jss/10.9.0: + resolution: + { + integrity: sha512-YpzpreB6kUunQBbrlArlsMpXYyndt9JATbt95tajx0t4MTJJcCJdd4hdNpHmOIDiUJrF/oX5wtVFrS3uofWfGw==, + } + dependencies: + "@babel/runtime": 7.18.9 + csstype: 3.1.0 + is-in-browser: 1.1.3 + tiny-warning: 1.0.3 + dev: false + + /jsx-ast-utils/3.3.2: + resolution: + { + integrity: sha512-4ZCADZHRkno244xlNnn4AOG6sRQ7iBZ5BbgZ4vW4y5IZw7cVUD1PPeblm1xx/nfmMxPdt/LHsXZW8z/j58+l9Q==, + } + engines: { node: ">=4.0" } + dependencies: + array-includes: 3.1.5 + object.assign: 4.1.2 + + /jwa/1.4.1: + resolution: + { + integrity: sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==, + } + dependencies: + buffer-equal-constant-time: 1.0.1 + ecdsa-sig-formatter: 1.0.11 + safe-buffer: 5.2.1 + dev: true + + /jws/3.2.2: + resolution: + { + integrity: sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==, + } + dependencies: + jwa: 1.4.1 + safe-buffer: 5.2.1 + dev: true + + /keyv/3.1.0: + resolution: + { + integrity: sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==, + } + dependencies: + json-buffer: 3.0.0 + dev: true + + /language-subtag-registry/0.3.22: + resolution: + { + integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==, + } + + /language-tags/1.0.5: + resolution: + { + integrity: sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==, + } + dependencies: + language-subtag-registry: 0.3.22 + + /latest-version/5.1.0: + resolution: + { + integrity: sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==, + } + engines: { node: ">=8" } + dependencies: + package-json: 6.5.0 + dev: true + + /levn/0.4.1: + resolution: + { + integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==, + } + engines: { node: ">= 0.8.0" } + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + /lie/3.1.1: + resolution: + { + integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==, + } + dependencies: + immediate: 3.0.6 + dev: false + + /lilconfig/2.0.6: + resolution: + { + integrity: sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==, + } + engines: { node: ">=10" } + dev: true + + /lines-and-columns/1.2.4: + resolution: + { + integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==, + } + + /listr-silent-renderer/1.1.1: + resolution: + { + integrity: sha512-L26cIFm7/oZeSNVhWB6faeorXhMg4HNlb/dS/7jHhr708jxlXrtrBWo4YUxZQkc6dGoxEAe6J/D3juTRBUzjtA==, + } + engines: { node: ">=4" } + dev: true + + /listr-update-renderer/0.5.0_listr@0.14.3: + resolution: + { + integrity: sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA==, + } + engines: { node: ">=6" } + peerDependencies: + listr: ^0.14.2 + dependencies: + chalk: 1.1.3 + cli-truncate: 0.2.1 + elegant-spinner: 1.0.1 + figures: 1.7.0 + indent-string: 3.2.0 + listr: 0.14.3 + log-symbols: 1.0.2 + log-update: 2.3.0 + strip-ansi: 3.0.1 + dev: true + + /listr-verbose-renderer/0.5.0: + resolution: + { + integrity: sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw==, + } + engines: { node: ">=4" } + dependencies: + chalk: 2.4.2 + cli-cursor: 2.1.0 + date-fns: 1.30.1 + figures: 2.0.0 + dev: true + + /listr/0.14.3: + resolution: + { + integrity: sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA==, + } + engines: { node: ">=6" } + dependencies: + "@samverschueren/stream-to-observable": 0.3.1_rxjs@6.6.7 + is-observable: 1.1.0 + is-promise: 2.2.2 + is-stream: 1.1.0 + listr-silent-renderer: 1.1.1 + listr-update-renderer: 0.5.0_listr@0.14.3 + listr-verbose-renderer: 0.5.0 + p-map: 2.1.0 + rxjs: 6.6.7 + transitivePeerDependencies: + - zen-observable + - zenObservable + dev: true + + /localforage/1.10.0: + resolution: + { + integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==, + } + dependencies: + lie: 3.1.1 + dev: false + + /locate-path/2.0.0: + resolution: + { + integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==, + } + engines: { node: ">=4" } + dependencies: + p-locate: 2.0.0 + path-exists: 3.0.0 + + /locate-path/5.0.0: + resolution: + { + integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==, + } + engines: { node: ">=8" } + dependencies: + p-locate: 4.1.0 + dev: true + + /locate-path/6.0.0: + resolution: + { + integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==, + } + engines: { node: ">=10" } + dependencies: + p-locate: 5.0.0 + + /lodash-es/4.17.21: + resolution: + { + integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==, + } + dev: false + + /lodash.get/4.4.2: + resolution: + { + integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==, + } + dev: true + + /lodash.includes/4.3.0: + resolution: + { + integrity: sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==, + } + dev: true + + /lodash.isboolean/3.0.3: + resolution: + { + integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==, + } + dev: true + + /lodash.isinteger/4.0.4: + resolution: + { + integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==, + } + dev: true + + /lodash.isnumber/3.0.3: + resolution: + { + integrity: sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==, + } + dev: true + + /lodash.isplainobject/4.0.6: + resolution: + { + integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==, + } + dev: true + + /lodash.isstring/4.0.1: + resolution: + { + integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==, + } + dev: true + + /lodash.merge/4.6.2: + resolution: + { + integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==, + } + + /lodash.once/4.1.1: + resolution: + { + integrity: sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==, + } + dev: true + + /lodash/4.17.21: + resolution: + { + integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==, + } + + /log-symbols/1.0.2: + resolution: + { + integrity: sha512-mmPrW0Fh2fxOzdBbFv4g1m6pR72haFLPJ2G5SJEELf1y+iaQrDG6cWCPjy54RHYbZAt7X+ls690Kw62AdWXBzQ==, + } + engines: { node: ">=0.10.0" } + dependencies: + chalk: 1.1.3 + dev: true + + /log-symbols/4.1.0: + resolution: + { + integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==, + } + engines: { node: ">=10" } + dependencies: + chalk: 4.1.2 + is-unicode-supported: 0.1.0 + dev: true + + /log-update/2.3.0: + resolution: + { + integrity: sha512-vlP11XfFGyeNQlmEn9tJ66rEW1coA/79m5z6BCkudjbAGE83uhAcGYrBFwfs3AdLiLzGRusRPAbSPK9xZteCmg==, + } + engines: { node: ">=4" } + dependencies: + ansi-escapes: 3.2.0 + cli-cursor: 2.1.0 + wrap-ansi: 3.0.1 + dev: true + + /loose-envify/1.4.0: + resolution: + { + integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==, + } + hasBin: true + dependencies: + js-tokens: 4.0.0 + + /lower-case-first/2.0.2: + resolution: + { + integrity: sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /lower-case/2.0.2: + resolution: + { + integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /lowercase-keys/1.0.1: + resolution: + { + integrity: sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==, + } + engines: { node: ">=0.10.0" } + dev: true + + /lowercase-keys/2.0.0: + resolution: + { + integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==, + } + engines: { node: ">=8" } + dev: true + + /lru-cache/6.0.0: + resolution: + { + integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==, + } + engines: { node: ">=10" } + dependencies: + yallist: 4.0.0 + + /lru_map/0.3.3: + resolution: + { + integrity: sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==, + } + dev: false + + /make-error/1.3.6: + resolution: + { + integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==, + } + dev: true + + /map-cache/0.2.2: + resolution: + { + integrity: sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==, + } + engines: { node: ">=0.10.0" } + dev: true + + /merge-stream/2.0.0: + resolution: + { + integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==, + } + dev: true + + /merge2/1.4.1: + resolution: + { + integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==, + } + engines: { node: ">= 8" } + + /meros/1.2.0_@types+node@18.7.16: + resolution: + { + integrity: sha512-3QRZIS707pZQnijHdhbttXRWwrHhZJ/gzolneoxKVz9N/xmsvY/7Ls8lpnI9gxbgxjcHsAVEW3mgwiZCo6kkJQ==, + } + engines: { node: ">=12" } + peerDependencies: + "@types/node": ">=12" + peerDependenciesMeta: + "@types/node": + optional: true + dependencies: + "@types/node": 18.7.16 + dev: true + + /micromatch/4.0.5: + resolution: + { + integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==, + } + engines: { node: ">=8.6" } + dependencies: + braces: 3.0.2 + picomatch: 2.3.1 + + /mime-db/1.52.0: + resolution: + { + integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==, + } + engines: { node: ">= 0.6" } + dev: true + + /mime-types/2.1.35: + resolution: + { + integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==, + } + engines: { node: ">= 0.6" } + dependencies: + mime-db: 1.52.0 + dev: true + + /mimic-fn/1.2.0: + resolution: + { + integrity: sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==, + } + engines: { node: ">=4" } + dev: true + + /mimic-fn/2.1.0: + resolution: + { + integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==, + } + engines: { node: ">=6" } + dev: true + + /mimic-response/1.0.1: + resolution: + { + integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==, + } + engines: { node: ">=4" } + dev: true + + /minimatch/3.1.2: + resolution: + { + integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==, + } + dependencies: + brace-expansion: 1.1.11 + + /minimatch/4.2.1: + resolution: + { + integrity: sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==, + } + engines: { node: ">=10" } + dependencies: + brace-expansion: 1.1.11 + dev: true + + /minimist/1.2.6: + resolution: + { + integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==, + } + + /mkdirp/0.5.6: + resolution: + { + integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==, + } + hasBin: true + dependencies: + minimist: 1.2.6 + dev: false + + /mkdirp/1.0.4: + resolution: + { + integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==, + } + engines: { node: ">=10" } + hasBin: true + dev: true + + /mri/1.2.0: + resolution: + { + integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==, + } + engines: { node: ">=4" } + dev: true + + /ms/2.0.0: + resolution: + { + integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==, + } + + /ms/2.1.2: + resolution: + { + integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==, + } + + /ms/2.1.3: + resolution: + { + integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==, + } + + /multimatch/4.0.0: + resolution: + { + integrity: sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==, + } + engines: { node: ">=8" } + dependencies: + "@types/minimatch": 3.0.5 + array-differ: 3.0.0 + array-union: 2.1.0 + arrify: 2.0.1 + minimatch: 3.1.2 + dev: true + + /mute-stream/0.0.8: + resolution: + { + integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==, + } + dev: true + + /mz/2.7.0: + resolution: + { + integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==, + } + dependencies: + any-promise: 1.3.0 + object-assign: 4.1.1 + thenify-all: 1.6.0 + dev: false + + /nanoid/3.3.4: + resolution: + { + integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==, + } + engines: { node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1 } + hasBin: true + + /natural-compare/1.4.0: + resolution: + { + integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==, + } + + /next/13.1.0_biqbaboplfbrettd7655fr4n2y: + resolution: + { + integrity: sha512-lQMZH1V94L5IL/WaihQkTYabSY73aqgrkGPJB5uz+2O3ES4I3losV/maXLY7l7x5e+oNyE9N81upNQ8uRsR5/A==, + } + engines: { node: ">=14.6.0" } + hasBin: true + peerDependencies: + fibers: ">= 3.1.0" + node-sass: ^6.0.0 || ^7.0.0 + react: ^18.2.0 + react-dom: ^18.2.0 + sass: ^1.3.0 + peerDependenciesMeta: + fibers: + optional: true + node-sass: + optional: true + sass: + optional: true + dependencies: + "@next/env": 13.1.0 + "@swc/helpers": 0.4.14 + caniuse-lite: 1.0.30001447 + postcss: 8.4.14 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + styled-jsx: 5.1.1_react@18.2.0 + optionalDependencies: + "@next/swc-android-arm-eabi": 13.1.0 + "@next/swc-android-arm64": 13.1.0 + "@next/swc-darwin-arm64": 13.1.0 + "@next/swc-darwin-x64": 13.1.0 + "@next/swc-freebsd-x64": 13.1.0 + "@next/swc-linux-arm-gnueabihf": 13.1.0 + "@next/swc-linux-arm64-gnu": 13.1.0 + "@next/swc-linux-arm64-musl": 13.1.0 + "@next/swc-linux-x64-gnu": 13.1.0 + "@next/swc-linux-x64-musl": 13.1.0 + "@next/swc-win32-arm64-msvc": 13.1.0 + "@next/swc-win32-ia32-msvc": 13.1.0 + "@next/swc-win32-x64-msvc": 13.1.0 + transitivePeerDependencies: + - "@babel/core" + - babel-plugin-macros + dev: false + + /no-case/3.0.4: + resolution: + { + integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==, + } + dependencies: + lower-case: 2.0.2 + tslib: 2.4.0 + dev: true + + /node-domexception/1.0.0: + resolution: + { + integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==, + } + engines: { node: ">=10.5.0" } + dev: true + + /node-fetch/2.6.7: + resolution: + { + integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==, + } + engines: { node: 4.x || >=6.0.0 } + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + + /node-int64/0.4.0: + resolution: + { + integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==, + } + dev: true + + /node-releases/2.0.6: + resolution: + { + integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==, + } + dev: true + + /normalize-path/2.1.1: + resolution: + { + integrity: sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==, + } + engines: { node: ">=0.10.0" } + dependencies: + remove-trailing-separator: 1.1.0 + dev: true + + /normalize-path/3.0.0: + resolution: + { + integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==, + } + engines: { node: ">=0.10.0" } + dev: true + + /normalize-range/0.1.2: + resolution: + { + integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==, + } + engines: { node: ">=0.10.0" } + dev: true + + /normalize-url/4.5.1: + resolution: + { + integrity: sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==, + } + engines: { node: ">=8" } + dev: true + + /npm-run-path/4.0.1: + resolution: + { + integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==, + } + engines: { node: ">=8" } + dependencies: + path-key: 3.1.1 + dev: true + + /npmlog/4.1.2: + resolution: + { + integrity: sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==, + } + dependencies: + are-we-there-yet: 1.1.7 + console-control-strings: 1.1.0 + gauge: 2.7.4 + set-blocking: 2.0.0 + dev: false + + /nullthrows/1.1.1: + resolution: + { + integrity: sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==, + } + dev: true + + /number-is-nan/1.0.1: + resolution: + { + integrity: sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==, + } + engines: { node: ">=0.10.0" } + + /object-assign/4.1.1: + resolution: + { + integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==, + } + engines: { node: ">=0.10.0" } + + /object-inspect/1.12.2: + resolution: + { + integrity: sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==, + } + + /object-keys/1.1.1: + resolution: + { + integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==, + } + engines: { node: ">= 0.4" } + + /object.assign/4.1.2: + resolution: + { + integrity: sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + has-symbols: 1.0.3 + object-keys: 1.1.1 + + /object.entries/1.1.5: + resolution: + { + integrity: sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + + /object.fromentries/2.0.5: + resolution: + { + integrity: sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + + /object.hasown/1.1.1: + resolution: + { + integrity: sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A==, + } + dependencies: + define-properties: 1.1.4 + es-abstract: 1.20.1 + + /object.values/1.1.5: + resolution: + { + integrity: sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + + /once/1.4.0: + resolution: + { + integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==, + } + dependencies: + wrappy: 1.0.2 + + /onetime/2.0.1: + resolution: + { + integrity: sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==, + } + engines: { node: ">=4" } + dependencies: + mimic-fn: 1.2.0 + dev: true + + /onetime/5.1.2: + resolution: + { + integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==, + } + engines: { node: ">=6" } + dependencies: + mimic-fn: 2.1.0 + dev: true + + /open/8.4.0: + resolution: + { + integrity: sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==, + } + engines: { node: ">=12" } + dependencies: + define-lazy-prop: 2.0.0 + is-docker: 2.2.1 + is-wsl: 2.2.0 + + /optionator/0.9.1: + resolution: + { + integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==, + } + engines: { node: ">= 0.8.0" } + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.3 + + /ora/5.4.1: + resolution: + { + integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==, + } + engines: { node: ">=10" } + dependencies: + bl: 4.1.0 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-spinners: 2.6.1 + is-interactive: 1.0.0 + is-unicode-supported: 0.1.0 + log-symbols: 4.1.0 + strip-ansi: 6.0.1 + wcwidth: 1.0.1 + dev: true + + /os-tmpdir/1.0.2: + resolution: + { + integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==, + } + engines: { node: ">=0.10.0" } + dev: true + + /p-cancelable/1.1.0: + resolution: + { + integrity: sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==, + } + engines: { node: ">=6" } + dev: true + + /p-limit/1.3.0: + resolution: + { + integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==, + } + engines: { node: ">=4" } + dependencies: + p-try: 1.0.0 + + /p-limit/2.3.0: + resolution: + { + integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==, + } + engines: { node: ">=6" } + dependencies: + p-try: 2.2.0 + dev: true + + /p-limit/3.1.0: + resolution: + { + integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==, + } + engines: { node: ">=10" } + dependencies: + yocto-queue: 0.1.0 + + /p-locate/2.0.0: + resolution: + { + integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==, + } + engines: { node: ">=4" } + dependencies: + p-limit: 1.3.0 + + /p-locate/4.1.0: + resolution: + { + integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==, + } + engines: { node: ">=8" } + dependencies: + p-limit: 2.3.0 + dev: true + + /p-locate/5.0.0: + resolution: + { + integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==, + } + engines: { node: ">=10" } + dependencies: + p-limit: 3.1.0 + + /p-map/2.1.0: + resolution: + { + integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==, + } + engines: { node: ">=6" } + dev: true + + /p-try/1.0.0: + resolution: + { + integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==, + } + engines: { node: ">=4" } + + /p-try/2.2.0: + resolution: + { + integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==, + } + engines: { node: ">=6" } + dev: true + + /package-json/6.5.0: + resolution: + { + integrity: sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==, + } + engines: { node: ">=8" } + dependencies: + got: 9.6.0 + registry-auth-token: 4.2.2 + registry-url: 5.1.0 + semver: 6.3.0 + dev: true + + /param-case/3.0.4: + resolution: + { + integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==, + } + dependencies: + dot-case: 3.0.4 + tslib: 2.4.0 + dev: true + + /parent-module/1.0.1: + resolution: + { + integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==, + } + engines: { node: ">=6" } + dependencies: + callsites: 3.1.0 + + /parse-filepath/1.0.2: + resolution: + { + integrity: sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==, + } + engines: { node: ">=0.8" } + dependencies: + is-absolute: 1.0.0 + map-cache: 0.2.2 + path-root: 0.1.1 + dev: true + + /parse-json/5.2.0: + resolution: + { + integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==, + } + engines: { node: ">=8" } + dependencies: + "@babel/code-frame": 7.18.6 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + dev: true + + /pascal-case/3.1.2: + resolution: + { + integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==, + } + dependencies: + no-case: 3.0.4 + tslib: 2.4.0 + dev: true + + /path-case/3.0.4: + resolution: + { + integrity: sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==, + } + dependencies: + dot-case: 3.0.4 + tslib: 2.4.0 + dev: true + + /path-exists/3.0.0: + resolution: + { + integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==, + } + engines: { node: ">=4" } + + /path-exists/4.0.0: + resolution: + { + integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==, + } + engines: { node: ">=8" } + + /path-is-absolute/1.0.1: + resolution: + { + integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==, + } + engines: { node: ">=0.10.0" } + + /path-key/3.1.1: + resolution: + { + integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==, + } + engines: { node: ">=8" } + + /path-parse/1.0.7: + resolution: + { + integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==, + } + + /path-root-regex/0.1.2: + resolution: + { + integrity: sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==, + } + engines: { node: ">=0.10.0" } + dev: true + + /path-root/0.1.1: + resolution: + { + integrity: sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==, + } + engines: { node: ">=0.10.0" } + dependencies: + path-root-regex: 0.1.2 + dev: true + + /path-type/4.0.0: + resolution: + { + integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==, + } + engines: { node: ">=8" } + + /picocolors/1.0.0: + resolution: + { + integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==, + } + + /picomatch/2.3.1: + resolution: + { + integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==, + } + engines: { node: ">=8.6" } + + /pirates/4.0.5: + resolution: + { + integrity: sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==, + } + engines: { node: ">= 6" } + dev: false + + /popper.js/1.16.1-lts: + resolution: + { + integrity: sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA==, + } + dev: false + + /postcss-value-parser/4.2.0: + resolution: + { + integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==, + } + dev: true + + /postcss/8.4.14: + resolution: + { + integrity: sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==, + } + engines: { node: ^10 || ^12 || >=14 } + dependencies: + nanoid: 3.3.4 + picocolors: 1.0.0 + source-map-js: 1.0.2 + + /prelude-ls/1.2.1: + resolution: + { + integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==, + } + engines: { node: ">= 0.8.0" } + + /prepend-http/2.0.0: + resolution: + { + integrity: sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==, + } + engines: { node: ">=4" } + dev: true + + /prettier/2.7.1: + resolution: + { + integrity: sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==, + } + engines: { node: ">=10.13.0" } + hasBin: true + dev: true + + /pretty-quick/3.1.3_prettier@2.7.1: + resolution: + { + integrity: sha512-kOCi2FJabvuh1as9enxYmrnBC6tVMoVOenMaBqRfsvBHB0cbpYHjdQEpSglpASDFEXVwplpcGR4CLEaisYAFcA==, + } + engines: { node: ">=10.13" } + hasBin: true + peerDependencies: + prettier: ">=2.0.0" + dependencies: + chalk: 3.0.0 + execa: 4.1.0 + find-up: 4.1.0 + ignore: 5.2.0 + mri: 1.2.0 + multimatch: 4.0.0 + prettier: 2.7.1 + dev: true + + /process-nextick-args/2.0.1: + resolution: + { + integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==, + } + dev: false + + /progress/2.0.3: + resolution: + { + integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==, + } + engines: { node: ">=0.4.0" } + dev: false + + /promise/7.3.1: + resolution: + { + integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==, + } + dependencies: + asap: 2.0.6 + dev: true + + /prop-types/15.8.1: + resolution: + { + integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==, + } + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react-is: 16.13.1 + + /proxy-from-env/1.1.0: + resolution: + { + integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==, + } + dev: false + + /pump/3.0.0: + resolution: + { + integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==, + } + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + dev: true + + /punycode/2.1.1: + resolution: + { + integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==, + } + engines: { node: ">=6" } + + /queue-microtask/1.2.3: + resolution: + { + integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==, + } + + /raw-body/2.5.1: + resolution: + { + integrity: sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==, + } + engines: { node: ">= 0.8" } + dependencies: + bytes: 3.1.2 + http-errors: 2.0.0 + iconv-lite: 0.4.24 + unpipe: 1.0.0 + dev: false + + /rc/1.2.8: + resolution: + { + integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==, + } + hasBin: true + dependencies: + deep-extend: 0.6.0 + ini: 1.3.8 + minimist: 1.2.6 + strip-json-comments: 2.0.1 + dev: true + + /react-dom/18.2.0_react@18.2.0: + resolution: + { + integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==, + } + peerDependencies: + react: ^18.2.0 + dependencies: + loose-envify: 1.4.0 + react: 18.2.0 + scheduler: 0.23.0 + dev: false + + /react-fast-compare/3.2.0: + resolution: + { + integrity: sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==, + } + dev: false + + /react-from-dom/0.6.2_react@18.2.0: + resolution: + { + integrity: sha512-qvWWTL/4xw4k/Dywd41RBpLQUSq97csuv15qrxN+izNeLYlD9wn5W8LspbfYe5CWbaSdkZ72BsaYBPQf2x4VbQ==, + } + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + react: 18.2.0 + dev: false + + /react-helmet/6.1.0_react@18.2.0: + resolution: + { + integrity: sha512-4uMzEY9nlDlgxr61NL3XbKRy1hEkXmKNXhjbAIOVw5vcFrsdYbH2FEwcNyWvWinl103nXgzYNlns9ca+8kFiWw==, + } + peerDependencies: + react: ">=16.3.0" + dependencies: + object-assign: 4.1.1 + prop-types: 15.8.1 + react: 18.2.0 + react-fast-compare: 3.2.0 + react-side-effect: 2.1.2_react@18.2.0 + dev: false + + /react-inlinesvg/3.0.1_react@18.2.0: + resolution: + { + integrity: sha512-cBfoyfseNI2PkDA7ZKIlDoHq0eMfpoC3DhKBQNC+/X1M4ZQB+aXW+YiNPUDDDKXUsGDUIZWWiZWNFeauDIVdoA==, + } + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + exenv: 1.2.2 + react: 18.2.0 + react-from-dom: 0.6.2_react@18.2.0 + dev: false + + /react-is/16.13.1: + resolution: + { + integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==, + } + + /react-is/17.0.2: + resolution: + { + integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==, + } + dev: false + + /react-side-effect/2.1.2_react@18.2.0: + resolution: + { + integrity: sha512-PVjOcvVOyIILrYoyGEpDN3vmYNLdy1CajSFNt4TDsVQC5KpTijDvWVoR+/7Rz2xT978D8/ZtFceXxzsPwZEDvw==, + } + peerDependencies: + react: ^16.3.0 || ^17.0.0 || ^18.0.0 + dependencies: + react: 18.2.0 + dev: false + + /react-transition-group/4.4.2_biqbaboplfbrettd7655fr4n2y: + resolution: + { + integrity: sha512-/RNYfRAMlZwDSr6z4zNKV6xu53/e2BuaBbGhbyYIXTrmgu/bGHzmqOs7mJSJBHy9Ud+ApHx3QjrkKSp1pxvlFg==, + } + peerDependencies: + react: ">=16.6.0" + react-dom: ">=16.6.0" + dependencies: + "@babel/runtime": 7.18.9 + dom-helpers: 5.2.1 + loose-envify: 1.4.0 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + dev: false + + /react/18.2.0: + resolution: + { + integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==, + } + engines: { node: ">=0.10.0" } + dependencies: + loose-envify: 1.4.0 + dev: false + + /readable-stream/2.3.7: + resolution: + { + integrity: sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==, + } + dependencies: + core-util-is: 1.0.3 + inherits: 2.0.4 + isarray: 1.0.0 + process-nextick-args: 2.0.1 + safe-buffer: 5.1.2 + string_decoder: 1.1.1 + util-deprecate: 1.0.2 + dev: false + + /readable-stream/3.6.0: + resolution: + { + integrity: sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==, + } + engines: { node: ">= 6" } + dependencies: + inherits: 2.0.4 + string_decoder: 1.3.0 + util-deprecate: 1.0.2 + dev: true + + /readdirp/3.6.0: + resolution: + { + integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==, + } + engines: { node: ">=8.10.0" } + dependencies: + picomatch: 2.3.1 + dev: true + + /regenerator-runtime/0.13.9: + resolution: + { + integrity: sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==, + } + + /regexp.prototype.flags/1.4.3: + resolution: + { + integrity: sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==, + } + engines: { node: ">= 0.4" } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + functions-have-names: 1.2.3 + + /regexpp/3.2.0: + resolution: + { + integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==, + } + engines: { node: ">=8" } + + /registry-auth-token/4.2.2: + resolution: + { + integrity: sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==, + } + engines: { node: ">=6.0.0" } + dependencies: + rc: 1.2.8 + dev: true + + /registry-url/5.1.0: + resolution: + { + integrity: sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==, + } + engines: { node: ">=8" } + dependencies: + rc: 1.2.8 + dev: true + + /relay-runtime/12.0.0: + resolution: + { + integrity: sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==, + } + dependencies: + "@babel/runtime": 7.18.9 + fbjs: 3.0.4 + invariant: 2.2.4 + transitivePeerDependencies: + - encoding + dev: true + + /remedial/1.0.8: + resolution: + { + integrity: sha512-/62tYiOe6DzS5BqVsNpH/nkGlX45C/Sp6V+NtiN6JQNS1Viay7cWkazmRkrQrdFj2eshDe96SIQNIoMxqhzBOg==, + } + dev: true + + /remove-trailing-separator/1.1.0: + resolution: + { + integrity: sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==, + } + dev: true + + /remove-trailing-spaces/1.0.8: + resolution: + { + integrity: sha512-O3vsMYfWighyFbTd8hk8VaSj9UAGENxAtX+//ugIst2RMk5e03h6RoIS+0ylsFxY1gvmPuAY/PO4It+gPEeySA==, + } + dev: true + + /replaceall/0.1.6: + resolution: + { + integrity: sha512-sL26E4+8Kec7bwpRjHlQvbNZcpnGroT3PA7ywsgH6GjzxAg4IGNlNalLoRC/JmTed7cMhyDbi44pWw1kMhDxlw==, + } + engines: { node: ">= 0.8.x" } + dev: true + + /require-directory/2.1.1: + resolution: + { + integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==, + } + engines: { node: ">=0.10.0" } + dev: true + + /require-main-filename/2.0.0: + resolution: + { + integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==, + } + dev: true + + /resolve-from/4.0.0: + resolution: + { + integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==, + } + engines: { node: ">=4" } + + /resolve-from/5.0.0: + resolution: + { + integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==, + } + engines: { node: ">=8" } + dev: true + + /resolve/1.22.1: + resolution: + { + integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==, + } + hasBin: true + dependencies: + is-core-module: 2.10.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + /resolve/2.0.0-next.4: + resolution: + { + integrity: sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==, + } + hasBin: true + dependencies: + is-core-module: 2.10.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + /responselike/1.0.2: + resolution: + { + integrity: sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==, + } + dependencies: + lowercase-keys: 1.0.1 + dev: true + + /restore-cursor/2.0.0: + resolution: + { + integrity: sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==, + } + engines: { node: ">=4" } + dependencies: + onetime: 2.0.1 + signal-exit: 3.0.7 + dev: true + + /restore-cursor/3.1.0: + resolution: + { + integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==, + } + engines: { node: ">=8" } + dependencies: + onetime: 5.1.2 + signal-exit: 3.0.7 + dev: true + + /retes/0.33.0: + resolution: + { + integrity: sha512-I6V1G2JkJ2JFIFSVuultNXepf7BW8SCaSUOq5IETM2fDjFim5Dg5F1zU/QbplNW0mqkk8QCw+I722v3nPkpRlA==, + } + dependencies: + busboy: 1.6.0 + zod: 3.19.1 + dev: false + + /reusify/1.0.4: + resolution: + { + integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==, + } + engines: { iojs: ">=1.0.0", node: ">=0.10.0" } + + /rimraf/3.0.2: + resolution: + { + integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==, + } + hasBin: true + dependencies: + glob: 7.2.3 + + /rollup/2.78.0: + resolution: + { + integrity: sha512-4+YfbQC9QEVvKTanHhIAFVUFSRsezvQF8vFOJwtGfb9Bb+r014S+qryr9PSmw8x6sMnPkmFBGAvIFVQxvJxjtg==, + } + engines: { node: ">=10.0.0" } + hasBin: true + optionalDependencies: + fsevents: 2.3.2 + dev: false + + /run-async/2.4.1: + resolution: + { + integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==, + } + engines: { node: ">=0.12.0" } + dev: true + + /run-parallel/1.2.0: + resolution: + { + integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==, + } + dependencies: + queue-microtask: 1.2.3 + + /rxjs/6.6.7: + resolution: + { + integrity: sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==, + } + engines: { npm: ">=2.0.0" } + dependencies: + tslib: 1.14.1 + dev: true + + /rxjs/7.5.6: + resolution: + { + integrity: sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /safe-buffer/5.1.2: + resolution: + { + integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==, + } + + /safe-buffer/5.2.1: + resolution: + { + integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==, + } + dev: true + + /safer-buffer/2.1.2: + resolution: + { + integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==, + } + + /scheduler/0.23.0: + resolution: + { + integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==, + } + dependencies: + loose-envify: 1.4.0 + dev: false + + /scuid/1.1.0: + resolution: + { + integrity: sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg==, + } + dev: true + + /semver/5.7.1: + resolution: + { + integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==, + } + hasBin: true + dev: true + + /semver/6.3.0: + resolution: + { + integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==, + } + hasBin: true + + /semver/7.3.7: + resolution: + { + integrity: sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==, + } + engines: { node: ">=10" } + hasBin: true + dependencies: + lru-cache: 6.0.0 + + /sentence-case/3.0.4: + resolution: + { + integrity: sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==, + } + dependencies: + no-case: 3.0.4 + tslib: 2.4.0 + upper-case-first: 2.0.2 + dev: true + + /set-blocking/2.0.0: + resolution: + { + integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==, + } + + /setimmediate/1.0.5: + resolution: + { + integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==, + } + dev: true + + /setprototypeof/1.2.0: + resolution: + { + integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==, + } + dev: false + + /shebang-command/2.0.0: + resolution: + { + integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==, + } + engines: { node: ">=8" } + dependencies: + shebang-regex: 3.0.0 + + /shebang-regex/3.0.0: + resolution: + { + integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==, + } + engines: { node: ">=8" } + + /side-channel/1.0.4: + resolution: + { + integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==, + } + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.1.2 + object-inspect: 1.12.2 + + /signal-exit/3.0.7: + resolution: + { + integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==, + } + + /signedsource/1.0.0: + resolution: + { + integrity: sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww==, + } + dev: true + + /slash/3.0.0: + resolution: + { + integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==, + } + engines: { node: ">=8" } + + /slash/4.0.0: + resolution: + { + integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==, + } + engines: { node: ">=12" } + + /slice-ansi/0.0.4: + resolution: { integrity: sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU= } + engines: { node: ">=0.10.0" } + dev: true + + /snake-case/3.0.4: + resolution: + { + integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==, + } + dependencies: + dot-case: 3.0.4 + tslib: 2.4.0 + dev: true + + /source-map-js/1.0.2: + resolution: + { + integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==, + } + engines: { node: ">=0.10.0" } + + /source-map-support/0.5.21: + resolution: + { + integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==, + } + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + dev: true + + /source-map/0.6.1: + resolution: + { + integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, + } + engines: { node: ">=0.10.0" } + dev: true + + /sponge-case/1.0.1: + resolution: + { + integrity: sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /statuses/2.0.1: + resolution: + { + integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==, + } + engines: { node: ">= 0.8" } + dev: false + + /streamsearch/1.1.0: + resolution: + { + integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==, + } + engines: { node: ">=10.0.0" } + + /string-env-interpolation/1.0.1: + resolution: + { + integrity: sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg==, + } + dev: true + + /string-width/1.0.2: + resolution: + { + integrity: sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==, + } + engines: { node: ">=0.10.0" } + dependencies: + code-point-at: 1.1.0 + is-fullwidth-code-point: 1.0.0 + strip-ansi: 3.0.1 + + /string-width/2.1.1: + resolution: + { + integrity: sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==, + } + engines: { node: ">=4" } + dependencies: + is-fullwidth-code-point: 2.0.0 + strip-ansi: 4.0.0 + dev: true + + /string-width/4.2.3: + resolution: + { + integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==, + } + engines: { node: ">=8" } + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + /string.prototype.matchall/4.0.7: + resolution: + { + integrity: sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==, + } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + get-intrinsic: 1.1.2 + has-symbols: 1.0.3 + internal-slot: 1.0.3 + regexp.prototype.flags: 1.4.3 + side-channel: 1.0.4 + + /string.prototype.trimend/1.0.5: + resolution: + { + integrity: sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==, + } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + + /string.prototype.trimstart/1.0.5: + resolution: + { + integrity: sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==, + } + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.4 + es-abstract: 1.20.1 + + /string_decoder/1.1.1: + resolution: + { + integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==, + } + dependencies: + safe-buffer: 5.1.2 + dev: false + + /string_decoder/1.3.0: + resolution: + { + integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==, + } + dependencies: + safe-buffer: 5.2.1 + dev: true + + /strip-ansi/3.0.1: + resolution: + { + integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==, + } + engines: { node: ">=0.10.0" } + dependencies: + ansi-regex: 2.1.1 + + /strip-ansi/4.0.0: + resolution: + { + integrity: sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==, + } + engines: { node: ">=4" } + dependencies: + ansi-regex: 3.0.1 + dev: true + + /strip-ansi/6.0.1: + resolution: + { + integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==, + } + engines: { node: ">=8" } + dependencies: + ansi-regex: 5.0.1 + + /strip-bom/3.0.0: + resolution: + { + integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==, + } + engines: { node: ">=4" } + + /strip-final-newline/2.0.0: + resolution: + { + integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==, + } + engines: { node: ">=6" } + dev: true + + /strip-json-comments/2.0.1: + resolution: + { + integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==, + } + engines: { node: ">=0.10.0" } + dev: true + + /strip-json-comments/3.1.1: + resolution: + { + integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==, + } + engines: { node: ">=8" } + + /styled-jsx/5.1.1_react@18.2.0: + resolution: + { + integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==, + } + engines: { node: ">= 12.0.0" } + peerDependencies: + "@babel/core": "*" + babel-plugin-macros: "*" + react: ">= 16.8.0 || 17.x.x || ^18.0.0-0" + peerDependenciesMeta: + "@babel/core": + optional: true + babel-plugin-macros: + optional: true + dependencies: + client-only: 0.0.1 + react: 18.2.0 + dev: false + + /sucrase/3.25.0: + resolution: + { + integrity: sha512-WxTtwEYXSmZArPGStGBicyRsg5TBEFhT5b7N+tF+zauImP0Acy+CoUK0/byJ8JNPK/5lbpWIVuFagI4+0l85QQ==, + } + engines: { node: ">=8" } + hasBin: true + dependencies: + commander: 4.1.1 + glob: 7.1.6 + lines-and-columns: 1.2.4 + mz: 2.7.0 + pirates: 4.0.5 + ts-interface-checker: 0.1.13 + dev: false + + /supports-color/2.0.0: + resolution: + { + integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==, + } + engines: { node: ">=0.8.0" } + dev: true + + /supports-color/5.5.0: + resolution: + { + integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==, + } + engines: { node: ">=4" } + dependencies: + has-flag: 3.0.0 + dev: true + + /supports-color/7.2.0: + resolution: + { + integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==, + } + engines: { node: ">=8" } + dependencies: + has-flag: 4.0.0 + + /supports-preserve-symlinks-flag/1.0.0: + resolution: + { + integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==, + } + engines: { node: ">= 0.4" } + + /swap-case/2.0.2: + resolution: + { + integrity: sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /symbol-observable/1.2.0: + resolution: + { + integrity: sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==, + } + engines: { node: ">=0.10.0" } + dev: true + + /sync-fetch/0.4.1: + resolution: + { + integrity: sha512-JDtyFEvnKUzt1CxRtzzsGgkBanEv8XRmLyJo0F0nGkpCR8EjYmpOJJXz8GA/SWtlPU0nAYh0+CNMNnFworGyOA==, + } + engines: { node: ">=14" } + dependencies: + buffer: 5.7.1 + node-fetch: 2.6.7 + transitivePeerDependencies: + - encoding + dev: true + + /synckit/0.8.4: + resolution: + { + integrity: sha512-Dn2ZkzMdSX827QbowGbU/4yjWuvNaCoScLLoMo/yKbu+P4GBR6cRGKZH27k6a9bRzdqcyd1DE96pQtQ6uNkmyw==, + } + engines: { node: ^14.18.0 || >=16.0.0 } + dependencies: + "@pkgr/utils": 2.3.1 + tslib: 2.4.0 + + /tapable/2.2.1: + resolution: + { + integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==, + } + engines: { node: ">=6" } + + /text-table/0.2.0: + resolution: + { + integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==, + } + + /thenify-all/1.6.0: + resolution: + { + integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==, + } + engines: { node: ">=0.8" } + dependencies: + thenify: 3.3.1 + dev: false + + /thenify/3.3.1: + resolution: + { + integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==, + } + dependencies: + any-promise: 1.3.0 + dev: false + + /through/2.3.8: + resolution: + { + integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==, + } + dev: true + + /tiny-glob/0.2.9: + resolution: + { + integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==, + } + dependencies: + globalyzer: 0.1.0 + globrex: 0.1.2 + + /tiny-warning/1.0.3: + resolution: + { + integrity: sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==, + } + dev: false + + /title-case/3.0.3: + resolution: + { + integrity: sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /tmp/0.0.33: + resolution: + { + integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==, + } + engines: { node: ">=0.6.0" } + dependencies: + os-tmpdir: 1.0.2 + dev: true + + /to-fast-properties/2.0.0: + resolution: + { + integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==, + } + engines: { node: ">=4" } + dev: true + + /to-readable-stream/1.0.0: + resolution: + { + integrity: sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==, + } + engines: { node: ">=6" } + dev: true + + /to-regex-range/5.0.1: + resolution: + { + integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==, + } + engines: { node: ">=8.0" } + dependencies: + is-number: 7.0.0 + + /toidentifier/1.0.1: + resolution: + { + integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==, + } + engines: { node: ">=0.6" } + dev: false + + /tr46/0.0.3: + resolution: + { + integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==, + } + + /ts-interface-checker/0.1.13: + resolution: + { + integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==, + } + dev: false + + /ts-log/2.2.4: + resolution: + { + integrity: sha512-DEQrfv6l7IvN2jlzc/VTdZJYsWUnQNCsueYjMkC/iXoEoi5fNan6MjeDqkvhfzbmHgdz9UxDUluX3V5HdjTydQ==, + } + dev: true + + /ts-node/9.1.1_typescript@4.8.3: + resolution: + { + integrity: sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==, + } + engines: { node: ">=10.0.0" } + hasBin: true + peerDependencies: + typescript: ">=2.7" + dependencies: + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + source-map-support: 0.5.21 + typescript: 4.8.3 + yn: 3.1.1 + dev: true + + /tsconfig-paths/3.14.1: + resolution: + { + integrity: sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==, + } + dependencies: + "@types/json5": 0.0.29 + json5: 1.0.1 + minimist: 1.2.6 + strip-bom: 3.0.0 + + /tslib/1.14.1: + resolution: + { + integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==, + } + + /tslib/2.3.1: + resolution: + { + integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==, + } + dev: true + + /tslib/2.4.0: + resolution: + { + integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==, + } + + /tsutils/3.21.0_typescript@4.8.3: + resolution: + { + integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==, + } + engines: { node: ">= 6" } + peerDependencies: + typescript: ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + dependencies: + tslib: 1.14.1 + typescript: 4.8.3 + + /type-check/0.4.0: + resolution: + { + integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==, + } + engines: { node: ">= 0.8.0" } + dependencies: + prelude-ls: 1.2.1 + + /type-fest/0.20.2: + resolution: + { + integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==, + } + engines: { node: ">=10" } + + /type-fest/0.21.3: + resolution: + { + integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==, + } + engines: { node: ">=10" } + dev: true + + /typescript/4.8.3: + resolution: + { + integrity: sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==, + } + engines: { node: ">=4.2.0" } + hasBin: true + + /ua-parser-js/0.7.31: + resolution: + { + integrity: sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==, + } + dev: true + + /unbox-primitive/1.0.2: + resolution: + { + integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==, + } + dependencies: + call-bind: 1.0.2 + has-bigints: 1.0.2 + has-symbols: 1.0.3 + which-boxed-primitive: 1.0.2 + + /unc-path-regex/0.1.2: + resolution: + { + integrity: sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==, + } + engines: { node: ">=0.10.0" } + dev: true + + /undici/5.5.1: + resolution: + { + integrity: sha512-MEvryPLf18HvlCbLSzCW0U00IMftKGI5udnjrQbC5D4P0Hodwffhv+iGfWuJwg16Y/TK11ZFK8i+BPVW2z/eAw==, + } + engines: { node: ">=12.18" } + dev: true + + /unixify/1.0.0: + resolution: + { + integrity: sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg==, + } + engines: { node: ">=0.10.0" } + dependencies: + normalize-path: 2.1.1 + dev: true + + /unpipe/1.0.0: + resolution: + { + integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==, + } + engines: { node: ">= 0.8" } + dev: false + + /update-browserslist-db/1.0.5_browserslist@4.21.3: + resolution: + { + integrity: sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==, + } + hasBin: true + peerDependencies: + browserslist: ">= 4.21.0" + dependencies: + browserslist: 4.21.3 + escalade: 3.1.1 + picocolors: 1.0.0 + dev: true + + /upper-case-first/2.0.2: + resolution: + { + integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /upper-case/2.0.2: + resolution: + { + integrity: sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==, + } + dependencies: + tslib: 2.4.0 + dev: true + + /uri-js/4.4.1: + resolution: + { + integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==, + } + dependencies: + punycode: 2.1.1 + + /url-parse-lax/3.0.0: + resolution: + { + integrity: sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==, + } + engines: { node: ">=4" } + dependencies: + prepend-http: 2.0.0 + dev: true + + /urql/3.0.3_aez2jvt6lsvokp3l4ousdbdxf4: + resolution: + { + integrity: sha512-aVUAMRLdc5AOk239DxgXt6ZxTl/fEmjr7oyU5OGo8uvpqu42FkeJErzd2qBzhAQ3DyusoZIbqbBLPlnKo/yy2A==, + } + peerDependencies: + graphql: ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + react: ">= 16.8.0" + dependencies: + "@urql/core": 3.0.3_graphql@16.5.0 + graphql: 16.5.0 + react: 18.2.0 + wonka: 6.0.0 + dev: false + + /use-isomorphic-layout-effect/1.1.2_fn6mmk7tilns4p7ajkklhuudvi: + resolution: + { + integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==, + } + peerDependencies: + "@types/react": "*" + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + dependencies: + "@types/react": 18.0.19 + react: 18.2.0 + dev: false + + /usehooks-ts/2.9.1_biqbaboplfbrettd7655fr4n2y: + resolution: + { + integrity: sha512-2FAuSIGHlY+apM9FVlj8/oNhd+1y+Uwv5QNkMQz1oSfdHk4PXo1qoCw9I5M7j0vpH8CSWFJwXbVPeYDjLCx9PA==, + } + engines: { node: ">=16.15.0", npm: ">=8" } + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + dev: false + + /util-deprecate/1.0.2: + resolution: + { + integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==, + } + + /uuid/8.3.2: + resolution: + { + integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==, + } + hasBin: true + dev: false + + /value-or-promise/1.0.11: + resolution: + { + integrity: sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg==, + } + engines: { node: ">=12" } + dev: true + + /wcwidth/1.0.1: + resolution: + { + integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==, + } + dependencies: + defaults: 1.0.3 + dev: true + + /web-streams-polyfill/3.2.1: + resolution: + { + integrity: sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==, + } + engines: { node: ">= 8" } + dev: true + + /web-streams-polyfill/4.0.0-beta.1: + resolution: + { + integrity: sha512-3ux37gEX670UUphBF9AMCq8XM6iQ8Ac6A+DSRRjDoRBm1ufCkaCDdNVbaqq60PsEkdNlLKrGtv/YBP4EJXqNtQ==, + } + engines: { node: ">= 12" } + dev: true + + /webidl-conversions/3.0.1: + resolution: + { + integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==, + } + + /webpack-sources/3.2.3: + resolution: + { + integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==, + } + engines: { node: ">=10.13.0" } + dev: false + + /whatwg-fetch/3.6.2: + resolution: + { + integrity: sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==, + } + dev: true + + /whatwg-url/5.0.0: + resolution: + { + integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==, + } + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + + /which-boxed-primitive/1.0.2: + resolution: + { + integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==, + } + dependencies: + is-bigint: 1.0.4 + is-boolean-object: 1.1.2 + is-number-object: 1.0.7 + is-string: 1.0.7 + is-symbol: 1.0.4 + + /which-module/2.0.0: + resolution: + { + integrity: sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==, + } + dev: true + + /which/2.0.2: + resolution: + { + integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==, + } + engines: { node: ">= 8" } + hasBin: true + dependencies: + isexe: 2.0.0 + + /wide-align/1.1.5: + resolution: + { + integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==, + } + dependencies: + string-width: 4.2.3 + dev: false + + /wonka/6.0.0: + resolution: + { + integrity: sha512-TEiIOqkhQXbcmL1RrjxPCzTX15V5FSyJvZRSiTxvgTgrJMaOVKmzGTdRVh349CfaNo9dsIhWDyg1/GNq4NWrEg==, + } + dev: false + + /word-wrap/1.2.3: + resolution: + { + integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==, + } + engines: { node: ">=0.10.0" } + + /wrap-ansi/3.0.1: + resolution: + { + integrity: sha512-iXR3tDXpbnTpzjKSylUJRkLuOrEC7hwEB221cgn6wtF8wpmz28puFXAEfPT5zrjM3wahygB//VuWEr1vTkDcNQ==, + } + engines: { node: ">=4" } + dependencies: + string-width: 2.1.1 + strip-ansi: 4.0.0 + dev: true + + /wrap-ansi/6.2.0: + resolution: + { + integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==, + } + engines: { node: ">=8" } + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /wrap-ansi/7.0.0: + resolution: + { + integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==, + } + engines: { node: ">=10" } + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /wrappy/1.0.2: + resolution: + { + integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==, + } + + /ws/8.8.1: + resolution: + { + integrity: sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==, + } + engines: { node: ">=10.0.0" } + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + + /y18n/4.0.3: + resolution: + { + integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==, + } + dev: true + + /y18n/5.0.8: + resolution: + { + integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==, + } + engines: { node: ">=10" } + dev: true + + /yallist/4.0.0: + resolution: + { + integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==, + } + + /yaml-ast-parser/0.0.43: + resolution: + { + integrity: sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==, + } + dev: true + + /yaml/1.10.2: + resolution: + { + integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==, + } + engines: { node: ">= 6" } + dev: true + + /yargs-parser/18.1.3: + resolution: + { + integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==, + } + engines: { node: ">=6" } + dependencies: + camelcase: 5.3.1 + decamelize: 1.2.0 + dev: true + + /yargs-parser/21.0.1: + resolution: + { + integrity: sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==, + } + engines: { node: ">=12" } + dev: true + + /yargs/15.4.1: + resolution: + { + integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==, + } + engines: { node: ">=8" } + dependencies: + cliui: 6.0.0 + decamelize: 1.2.0 + find-up: 4.1.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + require-main-filename: 2.0.0 + set-blocking: 2.0.0 + string-width: 4.2.3 + which-module: 2.0.0 + y18n: 4.0.3 + yargs-parser: 18.1.3 + dev: true + + /yargs/17.5.1: + resolution: + { + integrity: sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==, + } + engines: { node: ">=12" } + dependencies: + cliui: 7.0.4 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.0.1 + dev: true + + /yn/3.1.1: + resolution: + { + integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==, + } + engines: { node: ">=6" } + dev: true + + /yocto-queue/0.1.0: + resolution: + { + integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==, + } + engines: { node: ">=10" } + + /zod/3.19.1: + resolution: + { + integrity: sha512-LYjZsEDhCdYET9ikFu6dVPGp2YH9DegXjdJToSzD9rO6fy4qiRYFoyEYwps88OseJlPyl2NOe2iJuhEhL7IpEA==, + } + dev: false diff --git a/apps/slack/public/favicon.ico b/apps/slack/public/favicon.ico new file mode 100644 index 0000000..718d6fe Binary files /dev/null and b/apps/slack/public/favicon.ico differ diff --git a/apps/slack/public/vercel.svg b/apps/slack/public/vercel.svg new file mode 100644 index 0000000..fbf0e25 --- /dev/null +++ b/apps/slack/public/vercel.svg @@ -0,0 +1,4 @@ + + + \ No newline at end of file diff --git a/apps/slack/sentry.client.config.js b/apps/slack/sentry.client.config.js new file mode 100644 index 0000000..d480b2d --- /dev/null +++ b/apps/slack/sentry.client.config.js @@ -0,0 +1,17 @@ +// This file configures the initialization of Sentry on the browser. +// The config you add here will be used whenever a page is visited. +// https://docs.sentry.io/platforms/javascript/guides/nextjs/ + +import * as Sentry from "@sentry/nextjs"; + +const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; + +Sentry.init({ + dsn: SENTRY_DSN, + // Adjust this value in production, or use tracesSampler for greater control + tracesSampleRate: 1.0, + // ... + // Note: if you want to override the automatic release value, do not set a + // `release` value here - use the environment variable `SENTRY_RELEASE`, so + // that it will also get attached to your source maps +}); diff --git a/apps/slack/sentry.edge.config.js b/apps/slack/sentry.edge.config.js new file mode 100644 index 0000000..1c3e861 --- /dev/null +++ b/apps/slack/sentry.edge.config.js @@ -0,0 +1,17 @@ +// This file configures the initialization of Sentry on the server. +// The config you add here will be used whenever middleware or an Edge route handles a request. +// https://docs.sentry.io/platforms/javascript/guides/nextjs/ + +import * as Sentry from "@sentry/nextjs"; + +const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; + +Sentry.init({ + dsn: SENTRY_DSN, + // Adjust this value in production, or use tracesSampler for greater control + tracesSampleRate: 1.0, + // ... + // Note: if you want to override the automatic release value, do not set a + // `release` value here - use the environment variable `SENTRY_RELEASE`, so + // that it will also get attached to your source maps +}); diff --git a/apps/slack/sentry.server.config.js b/apps/slack/sentry.server.config.js new file mode 100644 index 0000000..a7e581b --- /dev/null +++ b/apps/slack/sentry.server.config.js @@ -0,0 +1,17 @@ +// This file configures the initialization of Sentry on the server. +// The config you add here will be used whenever the server handles a request. +// https://docs.sentry.io/platforms/javascript/guides/nextjs/ + +import * as Sentry from "@sentry/nextjs"; + +const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; + +Sentry.init({ + dsn: SENTRY_DSN, + // Adjust this value in production, or use tracesSampler for greater control + tracesSampleRate: 1.0, + // ... + // Note: if you want to override the automatic release value, do not set a + // `release` value here - use the environment variable `SENTRY_RELEASE`, so + // that it will also get attached to your source maps +}); diff --git a/apps/slack/src/assets/saleor-logo-dark.svg b/apps/slack/src/assets/saleor-logo-dark.svg new file mode 100644 index 0000000..7cd344d --- /dev/null +++ b/apps/slack/src/assets/saleor-logo-dark.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/slack/src/assets/saleor-logo.svg b/apps/slack/src/assets/saleor-logo.svg new file mode 100644 index 0000000..57d3083 --- /dev/null +++ b/apps/slack/src/assets/saleor-logo.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/apps/slack/src/components/AccessWarning/AccessWarning.tsx b/apps/slack/src/components/AccessWarning/AccessWarning.tsx new file mode 100644 index 0000000..19cdb8e --- /dev/null +++ b/apps/slack/src/components/AccessWarning/AccessWarning.tsx @@ -0,0 +1,34 @@ +import { Typography } from "@material-ui/core"; +import React from "react"; + +type WarningCause = + | "not_in_iframe" + | "missing_access_token" + | "invalid_access_token" + | "unknown_cause"; + +interface AccessWarningProps { + cause?: WarningCause; +} + +const warnings: Record = { + not_in_iframe: "The view can only be displayed in the iframe.", + missing_access_token: "App doesn't have an access token.", + invalid_access_token: "Access token is invalid.", + unknown_cause: "Something went wrong.", +}; + +function AccessWarning({ cause = "unknown_cause" }: AccessWarningProps) { + return ( +
+ + App can't be accessed outside of the Saleor Dashboard + + + ❌ {warnings[cause]} + +
+ ); +} + +export default AccessWarning; diff --git a/apps/slack/src/components/AppColumnsLayout/AppColumnsLayout.tsx b/apps/slack/src/components/AppColumnsLayout/AppColumnsLayout.tsx new file mode 100644 index 0000000..94ee503 --- /dev/null +++ b/apps/slack/src/components/AppColumnsLayout/AppColumnsLayout.tsx @@ -0,0 +1,21 @@ +import { makeStyles } from "@saleor/macaw-ui"; +import { PropsWithChildren } from "react"; + +const useStyles = makeStyles({ + root: { + display: "grid", + gridTemplateColumns: "280px auto 280px", + alignItems: "start", + gap: 32, + maxWidth: 1180, + margin: "0 auto", + }, +}); + +type Props = PropsWithChildren<{}>; + +export const AppColumnsLayout = ({ children }: Props) => { + const styles = useStyles(); + + return
{children}
; +}; diff --git a/apps/slack/src/components/AppIcon/AppIcon.tsx b/apps/slack/src/components/AppIcon/AppIcon.tsx new file mode 100644 index 0000000..9799738 --- /dev/null +++ b/apps/slack/src/components/AppIcon/AppIcon.tsx @@ -0,0 +1,28 @@ +import { Typography } from "@material-ui/core"; +import { makeStyles } from "@saleor/macaw-ui"; + +const useStyles = makeStyles({ + appIconContainer: { + background: `rgb(95, 58, 199)`, + display: "flex", + flexDirection: "column", + justifyContent: "center", + alignItems: "center", + borderRadius: "50%", + color: "#fff", + width: 50, + height: 50, + }, +}); + +export const AppIcon = () => { + const styles = useStyles(); + + return ( +
+
+ S +
+
+ ); +}; diff --git a/apps/slack/src/components/ConfigurationError/ConfigurationError.tsx b/apps/slack/src/components/ConfigurationError/ConfigurationError.tsx new file mode 100644 index 0000000..7716c83 --- /dev/null +++ b/apps/slack/src/components/ConfigurationError/ConfigurationError.tsx @@ -0,0 +1,51 @@ +import { AplReadyResult } from "@saleor/app-sdk/APL"; +import { Alert } from "@saleor/macaw-ui"; + +const vercelInfo = ( +
+ +

+ App detected Vercel hosting. Check if Vercel is currently redeploying your app and try again + in few minutes +

+
+
+); + +export function ConfigurationError({ + isVercel, + appReady, +}: { + isVercel: boolean; + appReady: AplReadyResult; +}) { + return ( +
+

⚠️ Can't connect with the App API

+ {isVercel && vercelInfo} + {appReady.ready ? null : ( +
+

Environment variables validation is incorrect

+

{appReady.error.message}

+
+ )} + You may see this error because: +
    +
  • Internet connection has been lost
  • +
  • Application installation process is still in progress.
  • +
  • + Application is misconfigured. If you would like to know more how auth configuration is + kept,{" "} + + go to APL documentation + + . +
  • +
+
+ ); +} diff --git a/apps/slack/src/components/LoadingPage/LoadingPage.tsx b/apps/slack/src/components/LoadingPage/LoadingPage.tsx new file mode 100644 index 0000000..02b98e9 --- /dev/null +++ b/apps/slack/src/components/LoadingPage/LoadingPage.tsx @@ -0,0 +1,20 @@ +import { CircularProgress, Typography } from "@material-ui/core"; +import React from "react"; + +import { useStyles } from "./styles"; + +function LoadingPage() { + const classes = useStyles(); + + return ( +
+ + + + Attempting connection to Saleor Dashboard + +
+ ); +} + +export default LoadingPage; diff --git a/apps/slack/src/components/LoadingPage/styles.ts b/apps/slack/src/components/LoadingPage/styles.ts new file mode 100644 index 0000000..b392343 --- /dev/null +++ b/apps/slack/src/components/LoadingPage/styles.ts @@ -0,0 +1,14 @@ +import { makeStyles } from "@saleor/macaw-ui"; + +const useStyles = makeStyles((theme) => ({ + loaderContainer: { + display: "flex", + flexDirection: "column", + alignItems: "center", + }, + message: { + marginTop: theme.spacing(4), + }, +})); + +export { useStyles }; diff --git a/apps/slack/src/components/MainBar/MainBar.tsx b/apps/slack/src/components/MainBar/MainBar.tsx new file mode 100644 index 0000000..8495217 --- /dev/null +++ b/apps/slack/src/components/MainBar/MainBar.tsx @@ -0,0 +1,52 @@ +import { makeStyles } from "@saleor/macaw-ui"; +import { ReactNode } from "react"; +import { Paper, PaperProps } from "@material-ui/core"; + +import clsx from "clsx"; + +const useStyles = makeStyles((theme) => ({ + root: { + height: 96, + padding: "0 32px", + display: "flex", + alignItems: "center", + justifyContent: "space-between", + }, + leftColumn: { + marginRight: "auto", + }, + rightColumn: {}, + iconColumn: { + marginRight: 24, + }, + appName: { fontSize: 24, margin: 0 }, + appAuthor: { + fontSize: 12, + textTransform: "uppercase", + color: theme.palette.text.secondary, + fontWeight: 500, + margin: 0, + }, +})); + +type Props = { + name: string; + author: string; + rightColumnContent?: ReactNode; + icon?: ReactNode; +} & PaperProps; + +export const MainBar = ({ name, author, rightColumnContent, className, icon }: Props) => { + const styles = useStyles(); + + return ( + + {icon &&
{icon}
} +
+

{name}

+

{author}

+
+
{rightColumnContent}
+
+ ); +}; diff --git a/apps/slack/src/components/SlackAppMainBar/SlackAppMainBar.tsx b/apps/slack/src/components/SlackAppMainBar/SlackAppMainBar.tsx new file mode 100644 index 0000000..bd75da3 --- /dev/null +++ b/apps/slack/src/components/SlackAppMainBar/SlackAppMainBar.tsx @@ -0,0 +1,60 @@ +import { GitHub, OfflineBoltOutlined } from "@material-ui/icons"; +import { Button, makeStyles } from "@saleor/macaw-ui"; +import { MainBar } from "../MainBar/MainBar"; +import { useAppBridge, actions } from "@saleor/app-sdk/app-bridge"; +import { AppIcon } from "../AppIcon/AppIcon"; + +const useStyles = makeStyles({ + buttonsGrid: { display: "flex", gap: 10 }, + topBar: { + marginBottom: 32, + }, + indexActions: { + marginTop: 10, + }, +}); + +export const SlackAppMainBar = () => { + const { appBridge } = useAppBridge(); + const styles = useStyles(); + + const openInNewTab = (url: string) => { + appBridge?.dispatch( + actions.Redirect({ + to: url, + newContext: true, + }) + ); + }; + + return ( + } + className={styles.topBar} + name="Saleor Slack" + author="By Saleor Commerce" + rightColumnContent={ +
+ + +
+ } + /> + ); +}; diff --git a/apps/slack/src/hooks/theme-synchronizer.tsx b/apps/slack/src/hooks/theme-synchronizer.tsx new file mode 100644 index 0000000..b07b09d --- /dev/null +++ b/apps/slack/src/hooks/theme-synchronizer.tsx @@ -0,0 +1,38 @@ +import { useAppBridge } from "@saleor/app-sdk/app-bridge"; +import { useTheme } from "@saleor/macaw-ui"; +import { memo, useEffect } from "react"; + +/** + * Macaw-ui stores its theme mode in memory and local storage. To synchronize App with Dashboard, + * Macaw must be informed about this change from AppBridge. + * + * If you are not using Macaw, you can remove this. + */ +function _ThemeSynchronizer() { + const { appBridgeState, appBridge } = useAppBridge(); + const { setTheme, themeType } = useTheme(); + + // todo - replace this hook to appBridge.subscribe and react only only on initial theme event + // useEffect(() =>{ + // appBridge?.subscribe('theme',console.log) + // },[appBridge]) + + useEffect(() => { + if (!setTheme || !appBridgeState?.theme) { + return; + } + + if (themeType !== appBridgeState?.theme) { + setTheme(appBridgeState.theme); + /** + * Hack to fix macaw, which is going into infinite loop on light mode (probably de-sync local storage with react state) + * TODO Fix me when Macaw 2.0 is shipped + */ + window.localStorage.setItem("macaw-ui-theme", appBridgeState.theme); + } + }, [appBridgeState?.theme, setTheme, themeType]); + + return null; +} + +export const ThemeSynchronizer = memo(_ThemeSynchronizer); diff --git a/apps/slack/src/hooks/useAppApi.ts b/apps/slack/src/hooks/useAppApi.ts new file mode 100644 index 0000000..63f07ee --- /dev/null +++ b/apps/slack/src/hooks/useAppApi.ts @@ -0,0 +1,64 @@ +import { useAppBridge } from "@saleor/app-sdk/app-bridge"; +import { SALEOR_API_URL_HEADER } from "@saleor/app-sdk/const"; +import { useEffect, useState } from "react"; + +type Options = Record; + +interface UseFetchProps { + url: string; + options?: Options; + skip?: boolean; +} + +// This hook is meant to be used mainly for internal API calls +const useAppApi = ({ url, options, skip }: UseFetchProps) => { + const { appBridgeState } = useAppBridge(); + + const [data, setData] = useState(); + const [error, setError] = useState(); + const [loading, setLoading] = useState(false); + + const fetchOptions: RequestInit = { + ...options, + headers: [ + [SALEOR_API_URL_HEADER, appBridgeState?.saleorApiUrl!], + ["authorization-bearer", appBridgeState?.token!], + ], + }; + + useEffect(() => { + const fetchData = async () => { + setLoading(true); + setError(undefined); + + try { + const res = await fetch(url, fetchOptions); + + if (!res.ok) { + throw new Error(`Error status: ${res.status}`); + } + + const json = await res.json(); + setData(json); + } catch (e) { + setError(e as unknown); + } finally { + setLoading(false); + } + }; + + if (appBridgeState?.ready && !skip) { + fetchData(); + } + + return () => { + setLoading(false); + setError(undefined); + setData(undefined); + }; + }, [url, options, skip]); + + return { data, error, loading }; +}; + +export default useAppApi; diff --git a/apps/slack/src/lib/graphql.ts b/apps/slack/src/lib/graphql.ts new file mode 100644 index 0000000..1448c8a --- /dev/null +++ b/apps/slack/src/lib/graphql.ts @@ -0,0 +1,48 @@ +import { AuthConfig, authExchange } from "@urql/exchange-auth"; +import { + cacheExchange, + createClient as urqlCreateClient, + dedupExchange, + fetchExchange, +} from "urql"; + +interface IAuthState { + token: string; +} + +export const createClient = (url: string, getAuth: AuthConfig["getAuth"]) => + urqlCreateClient({ + url, + exchanges: [ + dedupExchange, + cacheExchange, + authExchange({ + addAuthToOperation: ({ authState, operation }) => { + if (!authState || !authState?.token) { + return operation; + } + + const fetchOptions = + typeof operation.context.fetchOptions === "function" + ? operation.context.fetchOptions() + : operation.context.fetchOptions || {}; + + return { + ...operation, + context: { + ...operation.context, + fetchOptions: { + ...fetchOptions, + headers: { + ...fetchOptions.headers, + "Authorization-Bearer": authState.token, + }, + }, + }, + }; + }, + getAuth, + }), + fetchExchange, + ], + }); diff --git a/apps/slack/src/lib/is-in-iframe.ts b/apps/slack/src/lib/is-in-iframe.ts new file mode 100644 index 0000000..e1f481c --- /dev/null +++ b/apps/slack/src/lib/is-in-iframe.ts @@ -0,0 +1,7 @@ +export function isInIframe() { + try { + return window.self !== window.top; + } catch (e) { + return true; + } +} diff --git a/apps/slack/src/lib/metadata.ts b/apps/slack/src/lib/metadata.ts new file mode 100644 index 0000000..400074c --- /dev/null +++ b/apps/slack/src/lib/metadata.ts @@ -0,0 +1,61 @@ +import { EncryptedMetadataManager, MetadataEntry } from "@saleor/app-sdk/settings-manager"; +import { Client } from "urql"; + +import { + FetchAppDetailsDocument, + FetchAppDetailsQuery, + UpdateAppMetadataDocument, +} from "../../generated/graphql"; +import { settingsManagerSecretKey } from "./saleor-app"; + +// Function is using urql graphql client to fetch all available metadata. +// Before returning query result, we are transforming response to list of objects with key and value fields +// which can be used by the manager. +// Result of this query is cached by the manager. +export async function fetchAllMetadata(client: Client): Promise { + const { error, data } = await client + .query(FetchAppDetailsDocument, {}) + .toPromise(); + + if (error) { + console.debug("Error during fetching the metadata: ", error); + return []; + } + + return data?.app?.privateMetadata.map((md) => ({ key: md.key, value: md.value })) || []; +} + +// Mutate function takes urql client and metadata entries, and construct mutation to the API. +// Before data are send, additional query for required App ID is made. +// The manager will use updated entries returned by this mutation to update it's cache. +export async function mutateMetadata(client: Client, appId: string, metadata: MetadataEntry[]) { + const { error: mutationError, data: mutationData } = await client + .mutation(UpdateAppMetadataDocument, { + id: appId, + input: metadata, + }) + .toPromise(); + + if (mutationError) { + console.debug("Mutation error: ", mutationError); + throw new Error(`Mutation error: ${mutationError.message}`); + } + + return ( + mutationData?.updatePrivateMetadata?.item?.privateMetadata.map((md) => ({ + key: md.key, + value: md.value, + })) || [] + ); +} + +export const createSettingsManager = (client: Client, appId: string) => + // EncryptedMetadataManager gives you interface to manipulate metadata and cache values in memory. + // We recommend it for production, because all values are encrypted. + // If your use case require plain text values, you can use MetadataManager. + new EncryptedMetadataManager({ + // Secret key should be randomly created for production and set as environment variable + encryptionKey: settingsManagerSecretKey, + fetchMetadata: () => fetchAllMetadata(client), + mutateMetadata: (metadata) => mutateMetadata(client, appId, metadata), + }); diff --git a/apps/slack/src/lib/no-ssr-wrapper.tsx b/apps/slack/src/lib/no-ssr-wrapper.tsx new file mode 100644 index 0000000..4917e33 --- /dev/null +++ b/apps/slack/src/lib/no-ssr-wrapper.tsx @@ -0,0 +1,8 @@ +import React, { PropsWithChildren } from "react"; +import dynamic from "next/dynamic"; + +const Wrapper = (props: PropsWithChildren<{}>) => {props.children}; + +export const NoSSRWrapper = dynamic(() => Promise.resolve(Wrapper), { + ssr: false, +}); diff --git a/apps/slack/src/lib/saleor-app.ts b/apps/slack/src/lib/saleor-app.ts new file mode 100644 index 0000000..99ee378 --- /dev/null +++ b/apps/slack/src/lib/saleor-app.ts @@ -0,0 +1,51 @@ +import { APL, FileAPL, SaleorCloudAPL, UpstashAPL } from "@saleor/app-sdk/APL"; +import { SaleorApp } from "@saleor/app-sdk/saleor-app"; + +/** + * By default, auth data are stored in the `.auth-data.json` (FileAPL). + * For multi-tenant applications and deployments please use UpstashAPL. + * + * To read more about storing auth data, read the + * [APL documentation](https://github.com/saleor/saleor-app-sdk/blob/main/docs/apl.md) + */ + +let apl: APL; +switch (process.env.APL) { + case "upstash": + // Require `UPSTASH_URL` and `UPSTASH_TOKEN` environment variables + apl = new UpstashAPL(); + break; + case "saleor-cloud": { + if (!process.env.REST_APL_ENDPOINT || !process.env.REST_APL_TOKEN) { + throw new Error("Rest APL is not configured - missing env variables. Check saleor-app.ts"); + } + + apl = new SaleorCloudAPL({ + resourceUrl: process.env.REST_APL_ENDPOINT as string, + token: process.env.REST_APL_TOKEN as string, + }); + break; + } + default: + apl = new FileAPL(); +} + +// TODO: Investigate why no-ssr-wrapper does not prevent this code from execution during the build time +// if (!process.env.SECRET_KEY && process.env.NODE_ENV === "production") { +// throw new Error( +// "For production deployment SECRET_KEY is mandatory to use EncryptedSettingsManager." +// ); +// } + +// Use placeholder value for the development +export const settingsManagerSecretKey = process.env.SECRET_KEY || "CHANGE_ME"; + +/** + * Prohibit installation from Saleors other than specified by the regex. + * Regex source is ENV so if ENV is not set, all installations will be allowed. + */ +export const allowedUrlsPattern = process.env.ALLOWED_DOMAIN_PATTERN; + +export const saleorApp = new SaleorApp({ + apl, +}); diff --git a/apps/slack/src/lib/slack.ts b/apps/slack/src/lib/slack.ts new file mode 100644 index 0000000..bfc253a --- /dev/null +++ b/apps/slack/src/lib/slack.ts @@ -0,0 +1,52 @@ +import { OrderCreatedWebhookPayloadFragment } from "../../generated/graphql"; + +export const sendSlackMessage = async ( + to: string, + data: { + order: Exclude; + saleorDomain: string; + } +) => { + const { + saleorDomain, + order: { id, number, user, shippingAddress, subtotal, shippingPrice, total }, + } = data; + + const response = await fetch(to, { + method: "POST", + body: JSON.stringify({ + blocks: [ + { + type: "section", + text: { + type: "mrkdwn", + text: `Order has been created 🎉`, + }, + }, + { + type: "section", + text: { + type: "mrkdwn", + text: `*Customer*\n${user?.firstName} ${user?.lastName}\n${user?.email}`, + }, + }, + { + type: "section", + text: { + type: "mrkdwn", + text: `*Shipping Address*\n${shippingAddress?.streetAddress1}\n${shippingAddress?.postalCode} ${shippingAddress?.city}\n${shippingAddress?.country.country}`, + }, + }, + { + type: "section", + text: { + type: "mrkdwn", + text: `*Subtotal*\n${subtotal.gross.amount} ${subtotal.gross.currency}\n*Shipping*\n${shippingPrice.gross.amount} ${shippingPrice.gross.currency}\n*Total*\n${total.gross.amount} ${total.gross.currency}`, + }, + }, + ], + }), + }); + + return response; +}; diff --git a/apps/slack/src/pages/_app.tsx b/apps/slack/src/pages/_app.tsx new file mode 100644 index 0000000..bb9d01c --- /dev/null +++ b/apps/slack/src/pages/_app.tsx @@ -0,0 +1,64 @@ +import "../styles/globals.css"; + +import { Theme } from "@material-ui/core/styles"; +import { AppBridge, AppBridgeProvider } from "@saleor/app-sdk/app-bridge"; +import { RoutePropagator } from "@saleor/app-sdk/app-bridge/next"; +import { ThemeProvider as MacawUIThemeProvider } from "@saleor/macaw-ui"; +import React, { PropsWithChildren, useEffect } from "react"; + +import { AppLayoutProps } from "../../types"; +import { ThemeSynchronizer } from "../hooks/theme-synchronizer"; +import { NoSSRWrapper } from "../lib/no-ssr-wrapper"; + +const themeOverrides: Partial = { + overrides: { + MuiTableCell: { + body: { + paddingBottom: 8, + paddingTop: 8, + }, + root: { + height: 56, + paddingBottom: 4, + paddingTop: 4, + }, + }, + }, +}; + +/** + * Ensure instance is a singleton. + * TODO: This is React 18 issue, consider hiding this workaround inside app-sdk + */ +const appBridgeInstance = + typeof window !== "undefined" ? new AppBridge({ autoNotifyReady: false }) : undefined; + +// That's a hack required by Macaw-UI incompatibility with React@18 +const ThemeProvider = MacawUIThemeProvider as React.FC< + PropsWithChildren<{ overrides: Partial; ssr: boolean; defaultTheme?: "light" | "dark" }> +>; + +function SaleorApp({ Component, pageProps }: AppLayoutProps) { + const getLayout = Component.getLayout ?? ((page) => page); + + useEffect(() => { + const jssStyles = document.querySelector("#jss-server-side"); + if (jssStyles) { + jssStyles?.parentElement?.removeChild(jssStyles); + } + }, []); + + return ( + + + + + + {getLayout()} + + + + ); +} + +export default SaleorApp; diff --git a/apps/slack/src/pages/_document.tsx b/apps/slack/src/pages/_document.tsx new file mode 100644 index 0000000..51a520b --- /dev/null +++ b/apps/slack/src/pages/_document.tsx @@ -0,0 +1,19 @@ +import { Head, Html, Main, NextScript } from "next/document"; + +export default function Document() { + return ( + + + + + + +
+ + + + ); +} diff --git a/apps/slack/src/pages/_error.js b/apps/slack/src/pages/_error.js new file mode 100644 index 0000000..55c3486 --- /dev/null +++ b/apps/slack/src/pages/_error.js @@ -0,0 +1,39 @@ +/** + * NOTE: This requires `@sentry/nextjs` version 7.3.0 or higher. + * + * NOTE: If using this with `next` version 12.2.0 or lower, uncomment the + * penultimate line in `CustomErrorComponent`. + * + * This page is loaded by Nextjs: + * - on the server, when data-fetching methods throw or reject + * - on the client, when `getInitialProps` throws or rejects + * - on the client, when a React lifecycle method throws or rejects, and it's + * caught by the built-in Nextjs error boundary + * + * See: + * - https://nextjs.org/docs/basic-features/data-fetching/overview + * - https://nextjs.org/docs/api-reference/data-fetching/get-initial-props + * - https://reactjs.org/docs/error-boundaries.html + */ + +import * as Sentry from "@sentry/nextjs"; +import NextErrorComponent from "next/error"; + +const CustomErrorComponent = (props) => { + // If you're using a Nextjs version prior to 12.2.1, uncomment this to + // compensate for https://github.com/vercel/next.js/issues/8592 + // Sentry.captureUnderscoreErrorException(props); + + return ; +}; + +CustomErrorComponent.getInitialProps = async (contextData) => { + // In case this is running in a serverless function, await this in order to give Sentry + // time to send the error before the lambda exits + await Sentry.captureUnderscoreErrorException(contextData); + + // This will contain the status code of the response + return NextErrorComponent.getInitialProps(contextData); +}; + +export default CustomErrorComponent; diff --git a/apps/slack/src/pages/_error.tsx b/apps/slack/src/pages/_error.tsx new file mode 100644 index 0000000..d431a7f --- /dev/null +++ b/apps/slack/src/pages/_error.tsx @@ -0,0 +1,75 @@ +import * as Sentry from "@sentry/nextjs"; +import { NextPageContext } from "next"; +import NextErrorComponent, { ErrorProps } from "next/error"; + +interface ErrorPageProps { + err: Error; + statusCode: number; + hasGetInitialPropsRun: boolean; +} + +interface AppErrorProps extends ErrorProps { + err?: Error; + hasGetInitialPropsRun?: boolean; +} + +function MyError({ statusCode, hasGetInitialPropsRun, err }: ErrorPageProps) { + if (!hasGetInitialPropsRun && err) { + // getInitialProps is not called when an exception is thrown + // at the top level of a module while it is being loaded. + // As a workaround, we pass err via _app.js so it can be captured + // Read more: https://github.com/vercel/next.js/issues/8592. + Sentry.captureException(err); + // Flushing is not required in this case as it only happens on the client + } + + return ; +} + +MyError.getInitialProps = async (context: NextPageContext) => { + const errorInitialProps: AppErrorProps = await NextErrorComponent.getInitialProps(context); + + const { res, err, asPath } = context; + + // Workaround for https://github.com/vercel/next.js/issues/8592, mark when + // getInitialProps has run + errorInitialProps.hasGetInitialPropsRun = true; + + // Returning early because we don't want to log 404 errors to Sentry. + if (res?.statusCode === 404) { + return errorInitialProps; + } + + // Running on the server, the response object (`res`) is available. + // + // Next.js will pass an err on the server if a page's data fetching methods + // threw or returned a Promise that rejected + // + // Running on the client (browser), Next.js will provide an err if: + // + // - a page's `getInitialProps` threw or returned a Promise that rejected + // - an exception was thrown somewhere in the React lifecycle (render, + // componentDidMount, etc) that was caught by Next.js's React Error + // Boundary. Read more about what types of exceptions are caught by Error + // Boundaries: https://reactjs.org/docs/error-boundaries.html + + if (err) { + Sentry.captureException(err); + + // Flushing before returning is necessary if deploying to Vercel, see + // https://vercel.com/docs/platform/limits#streaming-responses + await Sentry.flush(2000); + + return errorInitialProps; + } + + // If this point is reached, getInitialProps was called without any + // information about what the error might be. This is unexpected and may + // indicate a bug introduced in Next.js, so record it in Sentry + Sentry.captureException(new Error(`_error.js getInitialProps missing data at path: ${asPath}`)); + await Sentry.flush(2000); + + return errorInitialProps; +}; + +export default MyError; diff --git a/apps/slack/src/pages/api/configuration.ts b/apps/slack/src/pages/api/configuration.ts new file mode 100644 index 0000000..ebb9fa3 --- /dev/null +++ b/apps/slack/src/pages/api/configuration.ts @@ -0,0 +1,57 @@ +import { createProtectedHandler, ProtectedHandlerContext } from "@saleor/app-sdk/handlers/next"; +import { NextApiRequest, NextApiResponse } from "next"; + +import { createClient } from "../../lib/graphql"; +import { createSettingsManager } from "../../lib/metadata"; +import { saleorApp } from "../../lib/saleor-app"; + +const WEBHOOK_URL = "WEBHOOK_URL"; + +interface PostRequestBody { + data: { key: string; value: string }[]; +} + +export const handler = async ( + req: NextApiRequest, + res: NextApiResponse, + ctx: ProtectedHandlerContext +) => { + const { + authData: { token, saleorApiUrl, appId }, + } = ctx; + + const client = createClient(saleorApiUrl, async () => Promise.resolve({ token })); + + const settings = createSettingsManager(client, appId); + + switch (req.method!) { + case "GET": + res.status(200).json({ + success: true, + data: [{ key: WEBHOOK_URL, value: await settings.get(WEBHOOK_URL) }], + }); + return; + case "POST": { + const reqBody = req.body as PostRequestBody; + const newWebhookUrl = (await reqBody.data?.find((entry) => entry.key === WEBHOOK_URL))?.value; + if (!newWebhookUrl) { + console.error("New value for the webhook URL has not been found"); + res.status(400).json({ + success: false, + message: "Wrong request body", + }); + return; + } + await settings.set({ key: WEBHOOK_URL, value: newWebhookUrl }); + res.status(200).json({ + success: true, + data: [{ key: WEBHOOK_URL, value: await settings.get(WEBHOOK_URL) }], + }); + return; + } + default: + res.status(405).end(); + } +}; + +export default createProtectedHandler(handler, saleorApp.apl, ["MANAGE_APPS", "MANAGE_ORDERS"]); diff --git a/apps/slack/src/pages/api/manifest.ts b/apps/slack/src/pages/api/manifest.ts new file mode 100644 index 0000000..72390ef --- /dev/null +++ b/apps/slack/src/pages/api/manifest.ts @@ -0,0 +1,24 @@ +import { createManifestHandler } from "@saleor/app-sdk/handlers/next"; +import { AppManifest } from "@saleor/app-sdk/types"; + +import packageJson from "../../../package.json"; +import { orderCreatedWebhook } from "./webhooks/order-created"; + +const handler = createManifestHandler({ + async manifestFactory(context) { + const manifest: AppManifest = { + name: packageJson.name, + tokenTargetUrl: `${context.appBaseUrl}/api/register`, + appUrl: context.appBaseUrl, + permissions: ["MANAGE_ORDERS"], + id: "saleor.app", + version: packageJson.version, + webhooks: [orderCreatedWebhook.getWebhookManifest(context.appBaseUrl)], + extensions: [], + }; + + return manifest; + }, +}); + +export default handler; diff --git a/apps/slack/src/pages/api/register.ts b/apps/slack/src/pages/api/register.ts new file mode 100644 index 0000000..4217557 --- /dev/null +++ b/apps/slack/src/pages/api/register.ts @@ -0,0 +1,26 @@ +import { createAppRegisterHandler } from "@saleor/app-sdk/handlers/next"; + +import { allowedUrlsPattern, saleorApp } from "../../lib/saleor-app"; + +const handler = createAppRegisterHandler({ + apl: saleorApp.apl, + allowedSaleorUrls: [ + (url) => { + if (allowedUrlsPattern) { + const regex = new RegExp(allowedUrlsPattern); + if (regex.test(url)) { + console.debug(`Registration from the URL ${url} has been accepted`); + return true; + } + console.debug( + `Registration from the URL ${url} has been rejected, since it's not meet the regex pattern ${allowedUrlsPattern}` + ); + return false; + } + + return true; + }, + ], +}); + +export default handler; diff --git a/apps/slack/src/pages/api/slack-app-manifest.ts b/apps/slack/src/pages/api/slack-app-manifest.ts new file mode 100644 index 0000000..133ce0c --- /dev/null +++ b/apps/slack/src/pages/api/slack-app-manifest.ts @@ -0,0 +1,31 @@ +import { NextApiRequest, NextApiResponse } from "next"; + +export const handler = async (req: NextApiRequest, res: NextApiResponse) => { + const manifest = { + display_information: { + name: "Saleor", + description: "Receive notifications to your Slack channel", + background_color: "#231e49", + }, + features: { + bot_user: { + display_name: "Saleor", + always_online: false, + }, + }, + oauth_config: { + scopes: { + bot: ["incoming-webhook"], + }, + }, + settings: { + org_deploy_enabled: false, + socket_mode_enabled: false, + token_rotation_enabled: false, + }, + }; + + return res.status(200).json(manifest); +}; + +export default handler; diff --git a/apps/slack/src/pages/api/webhooks/order-created.ts b/apps/slack/src/pages/api/webhooks/order-created.ts new file mode 100644 index 0000000..0185c89 --- /dev/null +++ b/apps/slack/src/pages/api/webhooks/order-created.ts @@ -0,0 +1,118 @@ +import { NextWebhookApiHandler, SaleorAsyncWebhook } from "@saleor/app-sdk/handlers/next"; +import { gql } from "urql"; + +import { OrderCreatedWebhookPayloadFragment } from "../../../../generated/graphql"; +import { createClient } from "../../../lib/graphql"; +import { createSettingsManager } from "../../../lib/metadata"; +import { saleorApp } from "../../../lib/saleor-app"; +import { sendSlackMessage } from "../../../lib/slack"; + +const OrderCreatedWebhookPayload = gql` + fragment OrderCreatedWebhookPayload on OrderCreated { + order { + id + number + user { + email + firstName + lastName + } + shippingAddress { + streetAddress1 + city + postalCode + country { + country + } + } + subtotal { + gross { + amount + currency + } + } + shippingPrice { + gross { + amount + currency + } + } + total { + gross { + amount + currency + } + } + } + } +`; + +const OrderCreatedGraphqlSubscription = gql` + ${OrderCreatedWebhookPayload} + subscription OrderCreated { + event { + ...OrderCreatedWebhookPayload + } + } +`; + +export const orderCreatedWebhook = new SaleorAsyncWebhook({ + name: "Order Created in Saleor", + webhookPath: "api/webhooks/order-created", + asyncEvent: "ORDER_CREATED", + apl: saleorApp.apl, + subscriptionQueryAst: OrderCreatedGraphqlSubscription, +}); + +const handler: NextWebhookApiHandler = async ( + req, + res, + context +) => { + const { payload, authData } = context; + + const { saleorApiUrl, token, appId } = authData; + + const client = createClient(saleorApiUrl, async () => Promise.resolve({ token })); + + const settings = createSettingsManager(client, appId); + + const webhookUrl = await settings.get("WEBHOOK_URL"); + + if (!webhookUrl) { + return res.status(400).send({ + success: false, + message: + "The application has not been configured yet - Missing webhook URL configuration value", + }); + } + + if (!payload.order) { + return res.status(400).send({ success: false, message: "Order not found in request payload" }); + } + + const response = await sendSlackMessage(webhookUrl, { + saleorDomain: authData.domain, + order: payload.order, + }); + + if (response.status !== 200) { + const errorMessage = await response.text(); + console.error(`Slack API responded with code ${response.status}: ${errorMessage}`); + + return res.status(500).send({ + success: false, + message: `Slack API responded with status ${response.status}. Message: ${errorMessage}`, + }); + } + + return res.status(200).send({ success: true, message: "Slack message sent!" }); +}; + +export default orderCreatedWebhook.createHandler(handler); + +export const config = { + api: { + bodyParser: false, + }, +}; diff --git a/apps/slack/src/pages/configuration.tsx b/apps/slack/src/pages/configuration.tsx new file mode 100644 index 0000000..8483029 --- /dev/null +++ b/apps/slack/src/pages/configuration.tsx @@ -0,0 +1,250 @@ +import { + Card, + CardContent, + CardHeader, + List, + ListItem, + TextField, + Typography, +} from "@material-ui/core"; +import Skeleton from "@material-ui/lab/Skeleton"; +import { AplReadyResult, VercelAPL } from "@saleor/app-sdk/APL"; +import { useAppBridge, withAuthorization } from "@saleor/app-sdk/app-bridge"; +import { SALEOR_API_URL_HEADER, SALEOR_AUTHORIZATION_BEARER_HEADER } from "@saleor/app-sdk/const"; +import { ConfirmButton, ConfirmButtonTransitionState, makeStyles } from "@saleor/macaw-ui"; +import { GetServerSideProps } from "next"; +import { ChangeEvent, ReactElement, SyntheticEvent, useEffect, useState } from "react"; + +import AccessWarning from "../components/AccessWarning/AccessWarning"; +import { ConfigurationError } from "../components/ConfigurationError/ConfigurationError"; +import useAppApi from "../hooks/useAppApi"; +import { saleorApp } from "../lib/saleor-app"; +import useDashboardNotifier from "../utils/useDashboardNotifier"; +import { Link } from "@material-ui/core"; +import { SlackAppMainBar } from "../components/SlackAppMainBar/SlackAppMainBar"; +import { AppColumnsLayout } from "../components/AppColumnsLayout/AppColumnsLayout"; + +interface ConfigurationField { + key: string; + value: string; +} + +const useStyles = makeStyles((theme) => ({ + confirmButton: { + marginLeft: "auto", + }, + fieldContainer: { + marginBottom: theme.spacing(2), + }, + additionalInfo: { + marginBottom: theme.spacing(3), + }, +})); + +type PageProps = { + isVercel: boolean; + appReady: AplReadyResult; +}; + +export const getServerSideProps: GetServerSideProps = async () => { + const isVercel = saleorApp.apl instanceof VercelAPL; + const isAppReady = await saleorApp.isReady(); + + return { + props: { + isVercel, + appReady: isAppReady, + }, + }; +}; + +function Configuration({ isVercel, appReady }: PageProps) { + const classes = useStyles(); + const { appBridgeState } = useAppBridge(); + const [notify] = useDashboardNotifier(); + const [configuration, setConfiguration] = useState(); + const [transitionState, setTransitionState] = useState("default"); + + const { data: configurationData, error } = useAppApi<{ data: ConfigurationField[] }>({ + url: "/api/configuration", + }); + + useEffect(() => { + if (configurationData && !configuration) { + setConfiguration(configurationData.data); + } + }, [configurationData, configuration]); + + const handleSubmit = (event: SyntheticEvent) => { + event.preventDefault(); + setTransitionState("loading"); + + fetch("/api/configuration", { + method: "POST", + headers: [ + ["content-type", "application/json"], + [SALEOR_API_URL_HEADER, appBridgeState?.saleorApiUrl!], + [SALEOR_AUTHORIZATION_BEARER_HEADER, appBridgeState?.token!], + ], + body: JSON.stringify({ data: configuration }), + }) + .then(async (response) => { + setTransitionState(response.status === 200 ? "success" : "error"); + await notify({ + status: "success", + title: "Success", + text: "Configuration updated successfully", + }); + }) + .catch(async () => { + setTransitionState("error"); + await notify({ + status: "error", + title: "Configuration update failed", + }); + }); + }; + + const onChange = (event: ChangeEvent) => { + const { name, value } = event.target as HTMLInputElement; + setConfiguration((prev) => + prev!.map((prevField) => (prevField.key === name ? { ...prevField, value } : prevField)) + ); + }; + + if (error) { + console.error("Can't establish connection with the App API: ", error); + return ; + } + + if (configuration === undefined) { + return ; + } + + return ( +
+ {configuration!.map(({ key, value }) => ( +
+ +
+ ))} +

+ This webhook will be called when new order is created and `order_created` event is + triggered. +

+
+ +
+
+ ); +} + +function Instructions() { + const { appBridge } = useAppBridge(); + + const { data } = useAppApi({ + url: "/api/slack-app-manifest", + }); + + const slackUrl = new URL("https://api.slack.com/apps"); + slackUrl.searchParams.append("new_app", "1"); + slackUrl.searchParams.append("manifest_json", JSON.stringify(data)); + + const openExternalUrl = (to: string) => { + appBridge?.dispatch({ + type: "redirect", + payload: { + newContext: true, + actionId: "redirect_from_slack_app", + to, + }, + }); + }; + + return ( + <> + How to configure + + + { + e.preventDefault(); + openExternalUrl(slackUrl.href); + }} + href={slackUrl.href} + > + Install Slack application + + + + Copy incoming Webhook URL from Slack app configuration and paste it below into + `WEBHOOK_URL` field + + Save configuration + + Useful links + + + { + e.preventDefault(); + openExternalUrl("https://github.com/saleor/saleor-app-slack"); + }} + href="https://github.com/saleor/saleor-app-slack" + > + Visit repository & readme + + + + { + e.preventDefault(); + openExternalUrl("https://api.slack.com/messaging/webhooks"); + }} + href="https://api.slack.com/messaging/webhooks" + > + Read about Slack apps that use incoming webhooks + + + + + ); +} + +const ConfigurationWithAuth = withAuthorization({ + notIframe: , + unmounted: null, + noDashboardToken: , + dashboardTokenInvalid: , +})(Configuration); + +ConfigurationWithAuth.getLayout = (page: ReactElement) => ( +
+ + +
+ + + {page} + + + + + + + + +
+); + +export default ConfigurationWithAuth; diff --git a/apps/slack/src/pages/index.tsx b/apps/slack/src/pages/index.tsx new file mode 100644 index 0000000..1d5fa62 --- /dev/null +++ b/apps/slack/src/pages/index.tsx @@ -0,0 +1,141 @@ +import { NextPage } from "next"; +import { useAppBridge } from "@saleor/app-sdk/app-bridge"; +import { useRouter } from "next/router"; +import React, { FormEventHandler, useEffect } from "react"; +import { useIsMounted } from "usehooks-ts"; +import Image from "next/image"; +import SaleorLogoImage from "../assets/saleor-logo.svg"; +import SaleorLogoImageDark from "../assets/saleor-logo-dark.svg"; +import { InputAdornment, LinearProgress, TextField, Typography } from "@material-ui/core"; +import { Button, makeStyles, useTheme } from "@saleor/macaw-ui"; +import { isInIframe } from "../lib/is-in-iframe"; + +const useStyles = makeStyles({ + root: { + maxWidth: 960, + margin: "50px auto", + }, + headline: { + marginTop: 70, + lineHeight: 1.5, + }, + grid: { + display: "grid", + gridTemplateColumns: "50% 50%", + gap: 116, + marginTop: 48, + }, + form: { + marginTop: 24, + }, + submitButton: { + marginTop: 12, + }, + buttons: { + marginTop: 24, + "& > *": { + marginBottom: 12, + }, + }, +}); + +const Input = () => { + return ( + .saleor.cloud, + }} + /> + ); +}; + +/** + * Common landing page in case of app being open outside the Dashboard. + * Allows quick installation with Saleor env input + * + * Can be safely removed + */ +const IndexPage: NextPage = () => { + const styles = useStyles(); + const { appBridgeState } = useAppBridge(); + const isMounted = useIsMounted(); + const { replace } = useRouter(); + const { themeType } = useTheme(); + + const onFormSubmit: FormEventHandler = (e) => { + e.preventDefault(); + + const appOrigin = window.location.origin; + const appManifestUrl = new URL("api/manifest", appOrigin); + const saleorUrlSlug = new FormData(e.currentTarget).get("saleor-url") as string; + const saleorUrl = new URL("https://" + saleorUrlSlug.replace("https://", "") + ".saleor.cloud"); + + const installationUrl = new URL( + `dashboard/apps/install?manifestUrl=${appManifestUrl}`, + saleorUrl + ).href; + + window.location.href = installationUrl; + }; + + useEffect(() => { + if (isMounted() && appBridgeState?.ready) { + replace("/configuration"); + } + }, [isMounted, appBridgeState?.ready]); + + /** + * TODO Check also some timeout and show error if appBridge never handshakes + */ + if (isInIframe()) { + return ; + } + + return ( +
+ Saleor logo + + The Slack App has to be
+ launched in the Saleor Dashboard +
+
+
+ + Provide you Saleor URL +
to quickly install the app +
+
+ + +
+
+
+ + Or check the instructions +
and see how to install the app +
+
+ + +
+
+
+
+ ); +}; + +export default IndexPage; diff --git a/apps/slack/src/styles/globals.css b/apps/slack/src/styles/globals.css new file mode 100644 index 0000000..a70ca08 --- /dev/null +++ b/apps/slack/src/styles/globals.css @@ -0,0 +1,26 @@ +body { + font-family: Inter, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, + "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; + color: #111; + padding: 1rem 2rem; +} + +code { + background: #f6f8fa; + border: 1px solid #eaeaea; + border-radius: 5px; + display: inline-block; + margin-top: 10px; + padding: 0.75rem; + font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, + Bitstream Vera Sans Mono, Courier New, monospace; +} + +code::before { + content: "$ "; + opacity: 0.6; +} + +li { + padding-bottom: 1rem; +} diff --git a/apps/slack/src/utils/useDashboardNotifier.ts b/apps/slack/src/utils/useDashboardNotifier.ts new file mode 100644 index 0000000..199a4a4 --- /dev/null +++ b/apps/slack/src/utils/useDashboardNotifier.ts @@ -0,0 +1,12 @@ +import { actions, NotificationPayload, useAppBridge } from "@saleor/app-sdk/app-bridge"; + +const useDashboardNotifier = () => { + const { appBridge, appBridgeState } = useAppBridge(); + + const notify = (payload: NotificationPayload) => + appBridgeState?.ready && appBridge?.dispatch(actions.Notification(payload)); + + return [notify]; +}; + +export default useDashboardNotifier; diff --git a/apps/slack/tsconfig.json b/apps/slack/tsconfig.json new file mode 100644 index 0000000..99710e8 --- /dev/null +++ b/apps/slack/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] +} diff --git a/apps/slack/types.ts b/apps/slack/types.ts new file mode 100644 index 0000000..f4d6c4a --- /dev/null +++ b/apps/slack/types.ts @@ -0,0 +1,17 @@ +import { NextPage } from "next"; +import { AppProps as NextAppProps } from "next/app"; +import { NextComponentType, NextPageContext } from "next/types"; +import { ReactElement, ReactNode } from "react"; + +export type PageWithLayout = NextPage & { + getLayout?: (page: ReactElement) => ReactNode; +}; + +export type AppProps = { + pageProps: NextAppProps["pageProps"]; + Component: NextComponentType & { layoutProps: any }; +}; + +export type AppLayoutProps = AppProps & { + Component: PageWithLayout; +}; diff --git a/package.json b/package.json index 2bb1ae2..8e496ed 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@changesets/cli": "^2.26.0", "eslint-config-saleor": "workspace:*", "prettier": "^2.8.3", - "turbo": "^1.7.3", + "turbo": "^1.7.4", "eslint": "^8.33.0" }, "engines": { diff --git a/packages/eslint-config-saleor/index.js b/packages/eslint-config-saleor/index.js index 92a34b9..fc7ea9d 100644 --- a/packages/eslint-config-saleor/index.js +++ b/packages/eslint-config-saleor/index.js @@ -1,10 +1,12 @@ module.exports = { extends: ["next", "turbo", "prettier"], - rules: {}, - // todo - check this, it was default in turbo - // parserOptions: { - // babelOptions: { - // presets: [require.resolve("next/babel")], - // }, - // }, -}; + rules: { + "@next/next/no-html-link-for-pages": "off", + "react/jsx-key": "off", + }, + parserOptions: { + babelOptions: { + presets: [require.resolve("next/babel")], + }, + }, +}; \ No newline at end of file diff --git a/packages/eslint-config-saleor/package.json b/packages/eslint-config-saleor/package.json index e82c5f8..13afd13 100644 --- a/packages/eslint-config-saleor/package.json +++ b/packages/eslint-config-saleor/package.json @@ -5,9 +5,11 @@ "license": "MIT", "dependencies": { "eslint-config-next": "^13.1.6", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-react": "7.28.0", - "eslint-config-turbo": "^0.0.7" + "eslint-config-prettier": "^8.6.0", + "eslint-plugin-react": "7.32.2", + "eslint-config-turbo": "^0.0.7", + "eslint": "^8.33.0", + "typescript": "^4.9.5" }, "publishConfig": { "access": "public" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 58e5674..cb1d18e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,13 +8,13 @@ importers: eslint: ^8.33.0 eslint-config-saleor: workspace:* prettier: ^2.8.3 - turbo: ^1.7.3 + turbo: ^1.7.4 devDependencies: '@changesets/cli': 2.26.0 eslint: 8.33.0 eslint-config-saleor: link:packages/eslint-config-saleor prettier: 2.8.3 - turbo: 1.7.3 + turbo: 1.7.4 apps/data-importer: specifiers: @@ -368,17 +368,100 @@ importers: prettier: 2.8.3 typescript: 4.8.4 + apps/slack: + specifiers: + '@graphql-codegen/cli': 2.7.0 + '@graphql-codegen/introspection': 2.1.1 + '@graphql-codegen/typed-document-node': ^2.2.14 + '@graphql-codegen/typescript': 2.6.0 + '@graphql-codegen/typescript-operations': 2.4.3 + '@graphql-codegen/typescript-urql': ^3.5.13 + '@graphql-codegen/urql-introspection': 2.1.1 + '@graphql-typed-document-node/core': ^3.1.1 + '@material-ui/core': ^4.12.4 + '@material-ui/icons': ^4.11.3 + '@material-ui/lab': 4.0.0-alpha.61 + '@saleor/app-sdk': 0.27.1 + '@saleor/macaw-ui': ^0.7.2 + '@sentry/nextjs': ^7.30.0 + '@types/node': ^18.7.16 + '@types/react': ^18.0.19 + '@types/react-dom': ^18.0.6 + '@typescript-eslint/eslint-plugin': ^5.36.2 + '@typescript-eslint/parser': ^5.36.2 + '@urql/exchange-auth': ^1.0.0 + autoprefixer: ^10.4.7 + clean-publish: ^4.0.1 + clsx: ^1.2.1 + eslint-config-next: 13.1.4 + eslint-config-saleor: workspace:* + graphql: ^16.5.0 + graphql-tag: ^2.12.6 + jose: ^4.11.2 + next: 13.1.0 + postcss: ^8.4.14 + pretty-quick: ^3.1.3 + react: 18.2.0 + react-dom: 18.2.0 + react-helmet: ^6.1.0 + typescript: 4.8.3 + urql: ^3.0.3 + usehooks-ts: ^2.9.1 + dependencies: + '@material-ui/core': 4.12.4_5ndqzdd6t4rivxsukjv3i3ak2q + '@material-ui/icons': 4.11.3_x54wk6dsnsxe7g7vvfmytp77te + '@material-ui/lab': 4.0.0-alpha.61_x54wk6dsnsxe7g7vvfmytp77te + '@saleor/app-sdk': 0.27.1_s75y6mxmikaw2mhqmuko6w7njm + '@saleor/macaw-ui': 0.7.2_2dwar4pp5qoelfawvjffoi6dne + '@sentry/nextjs': 7.36.0_next@13.1.0+react@18.2.0 + '@urql/exchange-auth': 1.0.0_graphql@16.6.0 + clsx: 1.2.1 + eslint-config-next: 13.1.4_typescript@4.8.3 + graphql: 16.6.0 + graphql-tag: 2.12.6_graphql@16.6.0 + jose: 4.11.4 + next: 13.1.0_biqbaboplfbrettd7655fr4n2y + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + react-helmet: 6.1.0_react@18.2.0 + urql: 3.0.3_onqnqwb3ubg5opvemcqf7c2qhy + usehooks-ts: 2.9.1_biqbaboplfbrettd7655fr4n2y + devDependencies: + '@graphql-codegen/cli': 2.7.0_d3dx4krdt4fsynqrp5lqxelwe4 + '@graphql-codegen/introspection': 2.1.1_graphql@16.6.0 + '@graphql-codegen/typed-document-node': 2.3.13_graphql@16.6.0 + '@graphql-codegen/typescript': 2.6.0_graphql@16.6.0 + '@graphql-codegen/typescript-operations': 2.4.3_graphql@16.6.0 + '@graphql-codegen/typescript-urql': 3.7.3_sy4knu3obj4ys7pjcqbyfxmqle + '@graphql-codegen/urql-introspection': 2.1.1_graphql@16.6.0 + '@graphql-typed-document-node/core': 3.1.1_graphql@16.6.0 + '@types/node': 18.13.0 + '@types/react': 18.0.27 + '@types/react-dom': 18.0.10 + '@typescript-eslint/eslint-plugin': 5.51.0_tmcqyxthgnqsjnfifazzby2acy + '@typescript-eslint/parser': 5.51.0_typescript@4.8.3 + autoprefixer: 10.4.13_postcss@8.4.21 + clean-publish: 4.1.1 + eslint-config-saleor: link:../../packages/eslint-config-saleor + postcss: 8.4.21 + pretty-quick: 3.1.3 + typescript: 4.8.3 + packages/eslint-config-saleor: specifiers: + eslint: ^8.33.0 eslint-config-next: ^13.1.6 - eslint-config-prettier: ^8.3.0 + eslint-config-prettier: ^8.6.0 eslint-config-turbo: ^0.0.7 - eslint-plugin-react: 7.28.0 + eslint-plugin-react: 7.32.2 + typescript: ^4.9.5 dependencies: - eslint-config-next: 13.1.6 - eslint-config-prettier: 8.6.0 - eslint-config-turbo: 0.0.7 - eslint-plugin-react: 7.28.0 + eslint: 8.33.0 + eslint-config-next: 13.1.6_4vsywjlpuriuw3tl5oq6zy5a64 + eslint-config-prettier: 8.6.0_eslint@8.33.0 + eslint-config-turbo: 0.0.7_eslint@8.33.0 + eslint-plugin-react: 7.32.2_eslint@8.33.0 + typescript: 4.9.5 packages/shared: specifiers: {} @@ -1589,7 +1672,6 @@ packages: strip-json-comments: 3.1.1 transitivePeerDependencies: - supports-color - dev: true /@fast-csv/format/4.3.5: resolution: {integrity: sha512-8iRn6QF3I8Ak78lNAa+Gdl5MJJBM5vRHivFtMRUWINdevNo00K7OXxS2PshawLKTejVwieIlPmK5YlLu6w4u8A==} @@ -1843,6 +1925,60 @@ packages: - zenObservable dev: true + /@graphql-codegen/cli/2.7.0_d3dx4krdt4fsynqrp5lqxelwe4: + resolution: {integrity: sha512-qlBcS6jGfZ/xWXwqiyRLHGRuLC9gUdF8AwGHN7LdAYEP5MjL7pIXb02W5JuvMn47rrvr2Q22H9ECppZX65oSAg==} + hasBin: true + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + '@graphql-codegen/core': 2.5.1_graphql@16.6.0 + '@graphql-codegen/plugin-helpers': 2.7.2_graphql@16.6.0 + '@graphql-tools/apollo-engine-loader': 7.3.25_d3dx4krdt4fsynqrp5lqxelwe4 + '@graphql-tools/code-file-loader': 7.3.20_graphql@16.6.0 + '@graphql-tools/git-loader': 7.2.19_graphql@16.6.0 + '@graphql-tools/github-loader': 7.3.26_d3dx4krdt4fsynqrp5lqxelwe4 + '@graphql-tools/graphql-file-loader': 7.5.16_graphql@16.6.0 + '@graphql-tools/json-file-loader': 7.4.17_graphql@16.6.0 + '@graphql-tools/load': 7.8.12_graphql@16.6.0 + '@graphql-tools/prisma-loader': 7.2.62_d3dx4krdt4fsynqrp5lqxelwe4 + '@graphql-tools/url-loader': 7.17.11_d3dx4krdt4fsynqrp5lqxelwe4 + '@graphql-tools/utils': 8.13.1_graphql@16.6.0 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + change-case-all: 1.0.14 + chokidar: 3.5.3 + common-tags: 1.8.2 + cosmiconfig: 7.1.0 + debounce: 1.2.1 + detect-indent: 6.1.0 + graphql: 16.6.0 + graphql-config: 4.4.1_d3dx4krdt4fsynqrp5lqxelwe4 + inquirer: 8.2.5 + is-glob: 4.0.3 + json-to-pretty-yaml: 1.2.2 + latest-version: 5.1.0 + listr: 0.14.3 + listr-update-renderer: 0.5.0_listr@0.14.3 + log-symbols: 4.1.0 + mkdirp: 1.0.4 + string-env-interpolation: 1.0.1 + ts-log: 2.2.5 + wrap-ansi: 7.0.0 + yaml: 1.10.2 + yargs: 17.6.2 + transitivePeerDependencies: + - '@babel/core' + - '@types/node' + - bufferutil + - cosmiconfig-toml-loader + - cosmiconfig-typescript-loader + - encoding + - supports-color + - utf-8-validate + - zen-observable + - zenObservable + dev: true + /@graphql-codegen/core/2.5.1_graphql@16.6.0: resolution: {integrity: sha512-alctBVl2hMnBXDLwkgmnFPrZVIiBDsWJSmxJcM4GKg1PB23+xuov35GE47YAyAhQItE1B1fbYnbb1PtGiDZ4LA==} peerDependencies: @@ -2774,7 +2910,6 @@ packages: minimatch: 3.1.2 transitivePeerDependencies: - supports-color - dev: true /@humanwhocodes/config-array/0.9.5: resolution: {integrity: sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==} @@ -2790,11 +2925,9 @@ packages: /@humanwhocodes/module-importer/1.0.1: resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} engines: {node: '>=12.22'} - dev: true /@humanwhocodes/object-schema/1.2.1: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} - dev: true /@iarna/toml/2.2.5: resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} @@ -3158,6 +3291,10 @@ packages: resolution: {integrity: sha512-9P9THmRFVKGKt9DYqeC2aKIxm8rlvkK38V1P1sRE7qyoPBIs8l9oo79QoSdPtOWfzkbDAVUqvbQGgTMsb8BtJg==} dev: false + /@next/env/13.1.0: + resolution: {integrity: sha512-6iNixFzCndH+Bl4FetQzOMjxCJqg8fs0LAlZviig1K6mIjOWH2m2oPcHcOg1Ta5VCe7Bx5KG1Hs+NrWDUkBt9A==} + dev: false + /@next/env/13.1.2: resolution: {integrity: sha512-PpT4UZIX66VMTqXt4HKEJ+/PwbS+tWmmhZlazaws1a+dbUA5pPdjntQ46Jvj616i3ZKN9doS9LHx3y50RLjAWg==} dev: false @@ -3172,6 +3309,12 @@ packages: glob: 7.1.7 dev: true + /@next/eslint-plugin-next/13.1.4: + resolution: {integrity: sha512-a/T30+7Q1scom5t3L+wEBkYzCa+bhT/3DTxzxlNy4Xckw2InzcckQGeIi/larDgh5r2fSSJswhYAZEcKtuJiig==} + dependencies: + glob: 7.1.7 + dev: false + /@next/eslint-plugin-next/13.1.6: resolution: {integrity: sha512-o7cauUYsXjzSJkay8wKjpKJf2uLzlggCsGUkPu3lP09Pv97jYlekTC20KJrjQKmSv5DXV0R/uks2ZXhqjNkqAw==} dependencies: @@ -3187,6 +3330,15 @@ packages: dev: false optional: true + /@next/swc-android-arm-eabi/13.1.0: + resolution: {integrity: sha512-ANBZZRjZBV+Sii11ZVxbxSvfIi6dZwu4w+XnJBDmz+0/wtAigpjYWyMkuWZ/RCD7INdusOlU4EgJ99WzWGIDjA==} + engines: {node: '>= 10'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: false + optional: true + /@next/swc-android-arm-eabi/13.1.2: resolution: {integrity: sha512-7mRz1owoGsbfIcdOJA3kk7KEwPZ+OvVT1z9DkR/yru4QdVLF69h/1SHy0vlUNQMxDRllabhxCfkoZCB34GOGAg==} engines: {node: '>= 10'} @@ -3214,6 +3366,15 @@ packages: dev: false optional: true + /@next/swc-android-arm64/13.1.0: + resolution: {integrity: sha512-nPwbkS3aZjCIe61wztgjXjIeylijOP8uGtDGjjJVUF3B/5GLVx3ngZu6tjPTMEgaLM0u//HuGK+aZolWUQWE4g==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: false + optional: true + /@next/swc-android-arm64/13.1.2: resolution: {integrity: sha512-mgjZ2eJSayovQm1LcE54BLSI4jjnnnLtq5GY5g+DdPuUiCT644gKtjZ/w2BQvuIecCqqBO+Ph9yzo/wUTq7NLg==} engines: {node: '>= 10'} @@ -3241,6 +3402,15 @@ packages: dev: false optional: true + /@next/swc-darwin-arm64/13.1.0: + resolution: {integrity: sha512-0hUydiAW18jK2uGPnZRdnRQtdB/3ZoPo84A6zH7MJHxAWw9lzVsv3kMg9kgVBBlrivzqdNN8rdgA+eYNxzXU9w==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + /@next/swc-darwin-arm64/13.1.2: resolution: {integrity: sha512-RikoQqy109r2222UJlyGs4dZw2BibkfPqpeFdW5JEGv+L2PStlHID8DwyVYbmHfQ0VIBGvbf/NAUtFakAWlhwg==} engines: {node: '>= 10'} @@ -3268,6 +3438,15 @@ packages: dev: false optional: true + /@next/swc-darwin-x64/13.1.0: + resolution: {integrity: sha512-3S3iQqJIysklj0Q9gnanuYMzF8H9p+fUVhvSHxVVLcKH4HsE8EGddNkXsaOyznL1kC6vGKw7h6uz1ojaXEafCA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + /@next/swc-darwin-x64/13.1.2: resolution: {integrity: sha512-JbDZjaTvL8gyPC5TAH6OnD4jmXPkyUxRYPvu08ZmhT/XAFBb/Cso0BdXyDax/BPCG70mimP9d3hXNKNq+A0VtQ==} engines: {node: '>= 10'} @@ -3295,6 +3474,15 @@ packages: dev: false optional: true + /@next/swc-freebsd-x64/13.1.0: + resolution: {integrity: sha512-wAgzwm/em48GIuWq3OYr0BpncMy7c+UA3hsyX+xKh/vb/sOIpQly7JTa+GNdk17s7kprhMfsgzPG3da36NLpkA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: false + optional: true + /@next/swc-freebsd-x64/13.1.2: resolution: {integrity: sha512-ax4j8VrdFQ/xc3W7Om0u1vnDxVApQHKsChBbAMynCrnycZmpbqK4MZu4ZkycT+mx2eccCiqZROpbzDbEdPosEw==} engines: {node: '>= 10'} @@ -3322,6 +3510,15 @@ packages: dev: false optional: true + /@next/swc-linux-arm-gnueabihf/13.1.0: + resolution: {integrity: sha512-Cr2hzL7ad+4nj9KrR1Cz1RDcsWa61X6I7gc6PToRYIY4gL480Sijq19xo7dlXQPnr1viVzbNiNnNXZASHv7uvw==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@next/swc-linux-arm-gnueabihf/13.1.2: resolution: {integrity: sha512-NcRHTesnCxnUvSJa637PQJffBBkmqi5XS/xVWGY7dI6nyJ+pC96Oj7kd+mcjnFUQI5lHKbg39qBWKtOzbezc4w==} engines: {node: '>= 10'} @@ -3349,6 +3546,15 @@ packages: dev: false optional: true + /@next/swc-linux-arm64-gnu/13.1.0: + resolution: {integrity: sha512-EjCIKfeZB9h72evL2yGNwBvE5Im96Zn7o2zxImlvCiUYb/xXDqn4hzhck035BSP3g3sGDLfijFTE1wKRyXIk4w==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@next/swc-linux-arm64-gnu/13.1.2: resolution: {integrity: sha512-AxJdjocLtPrsBY4P2COSBIc3crT5bpjgGenNuINoensOlXhBkYM0aRDYZdydwXOhG+kN2ngUvfgitop9pa204w==} engines: {node: '>= 10'} @@ -3376,6 +3582,15 @@ packages: dev: false optional: true + /@next/swc-linux-arm64-musl/13.1.0: + resolution: {integrity: sha512-WAsZtCtPXlz/7/bnW9ryw856xEun+c6xSwZwbcvrMxtcSiW3z0LD91Nsj3AkexsjRtBjeEpNeVtDExqF2VKKSA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@next/swc-linux-arm64-musl/13.1.2: resolution: {integrity: sha512-JmNimDkcCRq7P5zpkdqeaSZ69qKDntEPtyIaMNWqy5M0WUJxGim0Fs6Qzxayiyvuuh9Guxks4woQ/j/ZvX/c8Q==} engines: {node: '>= 10'} @@ -3403,6 +3618,15 @@ packages: dev: false optional: true + /@next/swc-linux-x64-gnu/13.1.0: + resolution: {integrity: sha512-Tjd5gieI3X9vPce5yF+GsQxOl0jwUkyOrTR1g5PQr+bT/9Qos/yPL48H1L5ayEp0hxgLVPW7skGal7lVnAoVEQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@next/swc-linux-x64-gnu/13.1.2: resolution: {integrity: sha512-TsLsjZwUlgmvI42neTuIoD6K9RlXCUzqPtvIClgXxVO0um0DiZwK+M+0zX/uVXhMVphfPY2c5YeR1zFSIONY4A==} engines: {node: '>= 10'} @@ -3430,6 +3654,15 @@ packages: dev: false optional: true + /@next/swc-linux-x64-musl/13.1.0: + resolution: {integrity: sha512-H9UMEQv40e9pkgdX4mCms0dDf2dimmZ6WXhDTWF/yIh9icgcsHaP73BJ9IFlgvh80wLiUgWZ3LAX4vXnXzidmg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@next/swc-linux-x64-musl/13.1.2: resolution: {integrity: sha512-eSkyXgCXydEFPTkcncQOGepafedPte6JT/OofB9uvruucrrMVBagCASOuPxodWEMrlfEKSXVnExMKIlfmQMD7A==} engines: {node: '>= 10'} @@ -3457,6 +3690,15 @@ packages: dev: false optional: true + /@next/swc-win32-arm64-msvc/13.1.0: + resolution: {integrity: sha512-LFFIKjW/cPl4wvG8HF/6oYPJZ+Jy32G3FUflC8UW1Od6W9yOSEvadhk9fMyDZN4cgsNOcVc3uVSMpcuuCpbDGw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: false + optional: true + /@next/swc-win32-arm64-msvc/13.1.2: resolution: {integrity: sha512-DmXFaRTgt2KrV9dmRLifDJE+cYiutHVFIw5/C9BtnwXH39uf3YbPxeD98vNrtqqqZVVLXY/1ySaSIwzYnqeY9g==} engines: {node: '>= 10'} @@ -3484,6 +3726,15 @@ packages: dev: false optional: true + /@next/swc-win32-ia32-msvc/13.1.0: + resolution: {integrity: sha512-MBLaoHZSenMdxhB3Ww1VNEhjyPT3uLjzAi5Ygk48LLLbOGu5KxQolhINRrqGuJWqJRNWSJ9JSFBfJrZwQzrUew==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: false + optional: true + /@next/swc-win32-ia32-msvc/13.1.2: resolution: {integrity: sha512-3+nBkuFs/wT+lmRVQNH5SyDT7I4vUlNPntosEaEP63FuYQdPLaxz0GvcR66MdFSFh2fsvazpe4wciOwVS4FItQ==} engines: {node: '>= 10'} @@ -3511,6 +3762,15 @@ packages: dev: false optional: true + /@next/swc-win32-x64-msvc/13.1.0: + resolution: {integrity: sha512-fFTfIQvnmpbKoyh4v3ezlGqtERlgc2Sx8qJwPuYqoVi0V08wCx9wp2Iq1CINxP3UMHkEeNX7gYpDOd+9Cw9EiQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false + optional: true + /@next/swc-win32-x64-msvc/13.1.2: resolution: {integrity: sha512-avsyveEvcvH42PvKjR4Pb8JlLttuGURr2H3ZhS2b85pHOiZ7yjH3rMUoGnNzuLMApyxYaCvd4MedPrLhnNhkog==} engines: {node: '>= 10'} @@ -3718,6 +3978,27 @@ packages: - supports-color dev: false + /@saleor/app-sdk/0.27.1_s75y6mxmikaw2mhqmuko6w7njm: + resolution: {integrity: sha512-ZNbucokKCdBE1qa+YLHvjBVazYcRuUExBdaPW9aNxfeYyXgQNCdHqJx9oA/S1lMEVSbZSIRcn8Sx1+X/eEV8BA==} + peerDependencies: + next: '>=12' + react: '>=17' + react-dom: '>=17' + dependencies: + debug: 4.3.4 + fast-glob: 3.2.12 + graphql: 16.6.0 + jose: 4.11.4 + next: 13.1.0_biqbaboplfbrettd7655fr4n2y + raw-body: 2.5.1 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + retes: 0.33.0 + uuid: 8.3.2 + transitivePeerDependencies: + - supports-color + dev: false + /@saleor/macaw-ui/0.7.2_2dwar4pp5qoelfawvjffoi6dne: resolution: {integrity: sha512-Fli7fhTWuHu7q2CzxwTUpB4x9HYaxHSAzCLZLA23VY1ieIWbCxbsXadMiMGWp/nuYitswMr6JXMm+1SDe9K8LQ==} engines: {node: '>=16 <19'} @@ -3894,6 +4175,36 @@ packages: - supports-color dev: false + /@sentry/nextjs/7.36.0_next@13.1.0+react@18.2.0: + resolution: {integrity: sha512-7IUwBjCjo3rWuvEG16D1wKb0D+aMyCU920VGCAQVZaqTZAgrgAKfpTa1Sk0fmDxYglW1EBI9QM+WEnOa9RleLw==} + engines: {node: '>=8'} + peerDependencies: + next: ^10.0.8 || ^11.0 || ^12.0 || ^13.0 + react: 16.x || 17.x || 18.x + webpack: '>= 4.0.0' + peerDependenciesMeta: + webpack: + optional: true + dependencies: + '@rollup/plugin-commonjs': 24.0.0_rollup@2.78.0 + '@sentry/core': 7.36.0 + '@sentry/integrations': 7.36.0 + '@sentry/node': 7.36.0 + '@sentry/react': 7.36.0_react@18.2.0 + '@sentry/tracing': 7.36.0 + '@sentry/types': 7.36.0 + '@sentry/utils': 7.36.0 + '@sentry/webpack-plugin': 1.20.0 + chalk: 3.0.0 + next: 13.1.0_biqbaboplfbrettd7655fr4n2y + react: 18.2.0 + rollup: 2.78.0 + tslib: 1.14.1 + transitivePeerDependencies: + - encoding + - supports-color + dev: false + /@sentry/nextjs/7.36.0_next@13.1.2+react@18.2.0: resolution: {integrity: sha512-7IUwBjCjo3rWuvEG16D1wKb0D+aMyCU920VGCAQVZaqTZAgrgAKfpTa1Sk0fmDxYglW1EBI9QM+WEnOa9RleLw==} engines: {node: '>=8'} @@ -4368,6 +4679,10 @@ packages: resolution: {integrity: sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==} dev: true + /@types/json-schema/7.0.11: + resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} + dev: true + /@types/json-stable-stringify/1.0.34: resolution: {integrity: sha512-s2cfwagOQAS8o06TcwKfr9Wx11dNGbH2E9vJz1cqV+a/LOyhWNLUNd6JSRYNzvB4d29UuJX2M0Dj9vE1T8fRXw==} dev: true @@ -4490,13 +4805,44 @@ packages: resolution: {integrity: sha512-KQf+QAMWKMrtBMsB8/24w53tEsxllMj6TuA80TT/5igJalLI/zm0L3oXRbIAl4Ohfc85gyHX/jhMwsVkmhLU4A==} dev: true + /@types/semver/7.3.13: + resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==} + dev: true + /@types/ws/8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: '@types/node': 18.13.0 dev: true - /@typescript-eslint/parser/5.51.0: + /@typescript-eslint/eslint-plugin/5.51.0_tmcqyxthgnqsjnfifazzby2acy: + resolution: {integrity: sha512-wcAwhEWm1RgNd7dxD/o+nnLW8oH+6RK1OGnmbmkj/GGoDPV1WWMVP0FXYQBivKHdwM1pwii3bt//RC62EriIUQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + '@typescript-eslint/parser': ^5.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/parser': 5.51.0_typescript@4.8.3 + '@typescript-eslint/scope-manager': 5.51.0 + '@typescript-eslint/type-utils': 5.51.0_typescript@4.8.3 + '@typescript-eslint/utils': 5.51.0_typescript@4.8.3 + debug: 4.3.4 + grapheme-splitter: 1.0.4 + ignore: 5.2.4 + natural-compare-lite: 1.4.0 + regexpp: 3.2.0 + semver: 7.3.8 + tsutils: 3.21.0_typescript@4.8.3 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser/5.51.0_4vsywjlpuriuw3tl5oq6zy5a64: resolution: {integrity: sha512-fEV0R9gGmfpDeRzJXn+fGQKcl0inIeYobmmUWijZh9zA7bxJ8clPhV9up2ZQzATxAiFAECqPQyMDB4o4B81AaA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -4508,8 +4854,10 @@ packages: dependencies: '@typescript-eslint/scope-manager': 5.51.0 '@typescript-eslint/types': 5.51.0 - '@typescript-eslint/typescript-estree': 5.51.0 + '@typescript-eslint/typescript-estree': 5.51.0_typescript@4.9.5 debug: 4.3.4 + eslint: 8.33.0 + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: false @@ -4534,6 +4882,24 @@ packages: - supports-color dev: true + /@typescript-eslint/parser/5.51.0_typescript@4.8.3: + resolution: {integrity: sha512-fEV0R9gGmfpDeRzJXn+fGQKcl0inIeYobmmUWijZh9zA7bxJ8clPhV9up2ZQzATxAiFAECqPQyMDB4o4B81AaA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 5.51.0 + '@typescript-eslint/types': 5.51.0 + '@typescript-eslint/typescript-estree': 5.51.0_typescript@4.8.3 + debug: 4.3.4 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + /@typescript-eslint/scope-manager/5.51.0: resolution: {integrity: sha512-gNpxRdlx5qw3yaHA0SFuTjW4rxeYhpHxt491PEcKF8Z6zpq0kMhe0Tolxt0qjlojS+/wArSDlj/LtE69xUJphQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -4541,11 +4907,30 @@ packages: '@typescript-eslint/types': 5.51.0 '@typescript-eslint/visitor-keys': 5.51.0 + /@typescript-eslint/type-utils/5.51.0_typescript@4.8.3: + resolution: {integrity: sha512-QHC5KKyfV8sNSyHqfNa0UbTbJ6caB8uhcx2hYcWVvJAZYJRBo5HyyZfzMdRx8nvS+GyMg56fugMzzWnojREuQQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: '*' + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/typescript-estree': 5.51.0_typescript@4.8.3 + '@typescript-eslint/utils': 5.51.0_typescript@4.8.3 + debug: 4.3.4 + tsutils: 3.21.0_typescript@4.8.3 + typescript: 4.8.3 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/types/5.51.0: resolution: {integrity: sha512-SqOn0ANn/v6hFn0kjvLwiDi4AzR++CBZz0NV5AnusT2/3y32jdc0G4woXPWHCumWtUXZKPAS27/9vziSsC9jnw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - /@typescript-eslint/typescript-estree/5.51.0: + /@typescript-eslint/typescript-estree/5.51.0_typescript@4.8.3: resolution: {integrity: sha512-TSkNupHvNRkoH9FMA3w7TazVFcBPveAAmb7Sz+kArY6sLT86PA5Vx80cKlYmd8m3Ha2SwofM1KwraF24lM9FvA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -4560,10 +4945,10 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.3.8 - tsutils: 3.21.0 + tsutils: 3.21.0_typescript@4.8.3 + typescript: 4.8.3 transitivePeerDependencies: - supports-color - dev: false /@typescript-eslint/typescript-estree/5.51.0_typescript@4.8.4: resolution: {integrity: sha512-TSkNupHvNRkoH9FMA3w7TazVFcBPveAAmb7Sz+kArY6sLT86PA5Vx80cKlYmd8m3Ha2SwofM1KwraF24lM9FvA==} @@ -4586,6 +4971,46 @@ packages: - supports-color dev: true + /@typescript-eslint/typescript-estree/5.51.0_typescript@4.9.5: + resolution: {integrity: sha512-TSkNupHvNRkoH9FMA3w7TazVFcBPveAAmb7Sz+kArY6sLT86PA5Vx80cKlYmd8m3Ha2SwofM1KwraF24lM9FvA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 5.51.0 + '@typescript-eslint/visitor-keys': 5.51.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.3.8 + tsutils: 3.21.0_typescript@4.9.5 + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: false + + /@typescript-eslint/utils/5.51.0_typescript@4.8.3: + resolution: {integrity: sha512-76qs+5KWcaatmwtwsDJvBk4H76RJQBFe+Gext0EfJdC3Vd2kpY2Pf//OHHzHp84Ciw0/rYoGTDnIAr3uWhhJYw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + '@types/json-schema': 7.0.11 + '@types/semver': 7.3.13 + '@typescript-eslint/scope-manager': 5.51.0 + '@typescript-eslint/types': 5.51.0 + '@typescript-eslint/typescript-estree': 5.51.0_typescript@4.8.3 + eslint-scope: 5.1.1 + eslint-utils: 3.0.0 + semver: 7.3.8 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/visitor-keys/5.51.0: resolution: {integrity: sha512-Oh2+eTdjHjOFjKA27sxESlA87YPSOJafGCR0md5oeMdh1ZcCfAGCIOL216uTBAkAIptvLIfKQhl7lHxMJet4GQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -4823,7 +5248,6 @@ packages: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: acorn: 8.8.2 - dev: true /acorn-walk/8.2.0: resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} @@ -4862,7 +5286,6 @@ packages: fast-json-stable-stringify: 2.1.0 json-schema-traverse: 0.4.1 uri-js: 4.4.1 - dev: true /algoliasearch-helper/3.11.3_algoliasearch@4.14.2: resolution: {integrity: sha512-TbaEvLwiuGygHQIB8y+OsJKQQ40+JKUua5B91X66tMUHyyhbNHvqyr0lqd3wCoyKx7WybyQrC0WJvzoIeh24Aw==} @@ -5026,7 +5449,6 @@ packages: /argparse/2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - dev: true /aria-hidden/1.2.2_3stiutgnnbnfnf3uowm5cip22i: resolution: {integrity: sha512-6y/ogyDTk/7YAe91T3E2PR1ALVKyM2QbTio5HwM+N1Q6CMlCKhvClyIjkckBswa0f2xJhjsfzIGa1yVSe1UMVA==} @@ -5554,7 +5976,6 @@ packages: dependencies: ansi-styles: 4.3.0 supports-color: 7.2.0 - dev: true /change-case-all/1.0.14: resolution: {integrity: sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==} @@ -6256,7 +6677,6 @@ packages: engines: {node: '>=6.0.0'} dependencies: esutils: 2.0.3 - dev: true /dom-accessibility-api/0.5.16: resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==} @@ -6535,7 +6955,31 @@ packages: - supports-color dev: true - /eslint-config-next/13.1.6: + /eslint-config-next/13.1.4_typescript@4.8.3: + resolution: {integrity: sha512-r7n9V4/kkiDDVFfBwI3tviGUV/jUzGI0lY3JefxceYaU18gdk2kMgNPyhHobowu1+yHZpZi8iEzRtzeTrtGRLg==} + peerDependencies: + eslint: ^7.23.0 || ^8.0.0 + typescript: '>=3.3.1' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@next/eslint-plugin-next': 13.1.4 + '@rushstack/eslint-patch': 1.2.0 + '@typescript-eslint/parser': 5.51.0_typescript@4.8.3 + eslint-import-resolver-node: 0.3.7 + eslint-import-resolver-typescript: 3.5.3_5rfvta7qn57kxm7ir36ta6fixq + eslint-plugin-import: 2.27.5_4woqni3yla7wvvtsvqk3qwjtf4 + eslint-plugin-jsx-a11y: 6.7.1 + eslint-plugin-react: 7.32.2 + eslint-plugin-react-hooks: 4.6.0 + typescript: 4.8.3 + transitivePeerDependencies: + - eslint-import-resolver-webpack + - supports-color + dev: false + + /eslint-config-next/13.1.6_4vsywjlpuriuw3tl5oq6zy5a64: resolution: {integrity: sha512-0cg7h5wztg/SoLAlxljZ0ZPUQ7i6QKqRiP4M2+MgTZtxWwNKb2JSwNc18nJ6/kXBI6xYvPraTbQSIhAuVw6czw==} peerDependencies: eslint: ^7.23.0 || ^8.0.0 @@ -6546,25 +6990,20 @@ packages: dependencies: '@next/eslint-plugin-next': 13.1.6 '@rushstack/eslint-patch': 1.2.0 - '@typescript-eslint/parser': 5.51.0 + '@typescript-eslint/parser': 5.51.0_4vsywjlpuriuw3tl5oq6zy5a64 + eslint: 8.33.0 eslint-import-resolver-node: 0.3.7 - eslint-import-resolver-typescript: 3.5.3_5rfvta7qn57kxm7ir36ta6fixq - eslint-plugin-import: 2.27.5_4woqni3yla7wvvtsvqk3qwjtf4 - eslint-plugin-jsx-a11y: 6.7.1 - eslint-plugin-react: 7.32.2 - eslint-plugin-react-hooks: 4.6.0 + eslint-import-resolver-typescript: 3.5.3_ohdts44xlqyeyrlje4qnefqeay + eslint-plugin-import: 2.27.5_kuqv7qxblf6fgldep4hddd7xwa + eslint-plugin-jsx-a11y: 6.7.1_eslint@8.33.0 + eslint-plugin-react: 7.32.2_eslint@8.33.0 + eslint-plugin-react-hooks: 4.6.0_eslint@8.33.0 + typescript: 4.9.5 transitivePeerDependencies: - eslint-import-resolver-webpack - supports-color dev: false - /eslint-config-prettier/8.6.0: - resolution: {integrity: sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==} - hasBin: true - peerDependencies: - eslint: '>=7.0.0' - dev: false - /eslint-config-prettier/8.6.0_eslint@8.27.0: resolution: {integrity: sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==} hasBin: true @@ -6574,12 +7013,22 @@ packages: eslint: 8.27.0 dev: true - /eslint-config-turbo/0.0.7: + /eslint-config-prettier/8.6.0_eslint@8.33.0: + resolution: {integrity: sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + dependencies: + eslint: 8.33.0 + dev: false + + /eslint-config-turbo/0.0.7_eslint@8.33.0: resolution: {integrity: sha512-WbrGlyfs94rOXrhombi1wjIAYGdV2iosgJRndOZtmDQeq5GLTzYmBUCJQZWtLBEBUPCj96RxZ2OL7Cn+xv/Azg==} peerDependencies: eslint: '>6.6.0' dependencies: - eslint-plugin-turbo: 0.0.7 + eslint: 8.33.0 + eslint-plugin-turbo: 0.0.7_eslint@8.33.0 dev: false /eslint-import-resolver-node/0.3.7: @@ -6628,6 +7077,26 @@ packages: - supports-color dev: false + /eslint-import-resolver-typescript/3.5.3_ohdts44xlqyeyrlje4qnefqeay: + resolution: {integrity: sha512-njRcKYBc3isE42LaTcJNVANR3R99H9bAxBDMNDr2W7yq5gYPxbU3MkdhsQukxZ/Xg9C2vcyLlDsbKfRDg0QvCQ==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + eslint: '*' + eslint-plugin-import: '*' + dependencies: + debug: 4.3.4 + enhanced-resolve: 5.12.0 + eslint: 8.33.0 + eslint-plugin-import: 2.27.5_kuqv7qxblf6fgldep4hddd7xwa + get-tsconfig: 4.4.0 + globby: 13.1.3 + is-core-module: 2.11.0 + is-glob: 4.0.3 + synckit: 0.8.5 + transitivePeerDependencies: + - supports-color + dev: false + /eslint-module-utils/2.7.4_ayntagxiesqd2engtsqrvzzbfq: resolution: {integrity: sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==} engines: {node: '>=4'} @@ -6679,7 +7148,7 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.51.0 + '@typescript-eslint/parser': 5.51.0_typescript@4.8.3 debug: 3.2.7 eslint-import-resolver-node: 0.3.7 eslint-import-resolver-typescript: 3.5.3_5rfvta7qn57kxm7ir36ta6fixq @@ -6687,6 +7156,36 @@ packages: - supports-color dev: false + /eslint-module-utils/2.7.4_wj7ubv6viehxm3sdjw6f37lxha: + resolution: {integrity: sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: '*' + eslint-import-resolver-node: '*' + eslint-import-resolver-typescript: '*' + eslint-import-resolver-webpack: '*' + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + eslint: + optional: true + eslint-import-resolver-node: + optional: true + eslint-import-resolver-typescript: + optional: true + eslint-import-resolver-webpack: + optional: true + dependencies: + '@typescript-eslint/parser': 5.51.0_4vsywjlpuriuw3tl5oq6zy5a64 + debug: 3.2.7 + eslint: 8.33.0 + eslint-import-resolver-node: 0.3.7 + eslint-import-resolver-typescript: 3.5.3_ohdts44xlqyeyrlje4qnefqeay + transitivePeerDependencies: + - supports-color + dev: false + /eslint-plugin-import/2.27.5_4woqni3yla7wvvtsvqk3qwjtf4: resolution: {integrity: sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==} engines: {node: '>=4'} @@ -6697,7 +7196,7 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.51.0 + '@typescript-eslint/parser': 5.51.0_typescript@4.8.3 array-includes: 3.1.6 array.prototype.flat: 1.3.1 array.prototype.flatmap: 1.3.1 @@ -6752,6 +7251,39 @@ packages: - supports-color dev: true + /eslint-plugin-import/2.27.5_kuqv7qxblf6fgldep4hddd7xwa: + resolution: {integrity: sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + dependencies: + '@typescript-eslint/parser': 5.51.0_4vsywjlpuriuw3tl5oq6zy5a64 + array-includes: 3.1.6 + array.prototype.flat: 1.3.1 + array.prototype.flatmap: 1.3.1 + debug: 3.2.7 + doctrine: 2.1.0 + eslint: 8.33.0 + eslint-import-resolver-node: 0.3.7 + eslint-module-utils: 2.7.4_wj7ubv6viehxm3sdjw6f37lxha + has: 1.0.3 + is-core-module: 2.11.0 + is-glob: 4.0.3 + minimatch: 3.1.2 + object.values: 1.1.6 + resolve: 1.22.1 + semver: 6.3.0 + tsconfig-paths: 3.14.1 + transitivePeerDependencies: + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color + dev: false + /eslint-plugin-jsx-a11y/6.7.1: resolution: {integrity: sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==} engines: {node: '>=4.0'} @@ -6801,6 +7333,31 @@ packages: semver: 6.3.0 dev: true + /eslint-plugin-jsx-a11y/6.7.1_eslint@8.33.0: + resolution: {integrity: sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==} + engines: {node: '>=4.0'} + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + '@babel/runtime': 7.20.13 + aria-query: 5.1.3 + array-includes: 3.1.6 + array.prototype.flatmap: 1.3.1 + ast-types-flow: 0.0.7 + axe-core: 4.6.3 + axobject-query: 3.1.1 + damerau-levenshtein: 1.0.8 + emoji-regex: 9.2.2 + eslint: 8.33.0 + has: 1.0.3 + jsx-ast-utils: 3.3.3 + language-tags: 1.0.5 + minimatch: 3.1.2 + object.entries: 1.1.6 + object.fromentries: 2.0.6 + semver: 6.3.0 + dev: false + /eslint-plugin-react-hooks/4.6.0: resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} engines: {node: '>=10'} @@ -6817,26 +7374,13 @@ packages: eslint: 8.27.0 dev: true - /eslint-plugin-react/7.28.0: - resolution: {integrity: sha512-IOlFIRHzWfEQQKcAD4iyYDndHwTQiCMcJVJjxempf203jnNLUnW34AXLrV33+nEXoifJE2ZEGmcjKPL8957eSw==} - engines: {node: '>=4'} + /eslint-plugin-react-hooks/4.6.0_eslint@8.33.0: + resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} + engines: {node: '>=10'} peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 dependencies: - array-includes: 3.1.6 - array.prototype.flatmap: 1.3.1 - doctrine: 2.1.0 - estraverse: 5.3.0 - jsx-ast-utils: 3.3.3 - minimatch: 3.1.2 - object.entries: 1.1.6 - object.fromentries: 2.0.6 - object.hasown: 1.1.2 - object.values: 1.1.6 - prop-types: 15.8.1 - resolve: 2.0.0-next.4 - semver: 6.3.0 - string.prototype.matchall: 4.0.8 + eslint: 8.33.0 dev: false /eslint-plugin-react/7.32.2: @@ -6886,18 +7430,60 @@ packages: string.prototype.matchall: 4.0.8 dev: true - /eslint-plugin-turbo/0.0.7: + /eslint-plugin-react/7.32.2_eslint@8.33.0: + resolution: {integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==} + engines: {node: '>=4'} + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + array-includes: 3.1.6 + array.prototype.flatmap: 1.3.1 + array.prototype.tosorted: 1.1.1 + doctrine: 2.1.0 + eslint: 8.33.0 + estraverse: 5.3.0 + jsx-ast-utils: 3.3.3 + minimatch: 3.1.2 + object.entries: 1.1.6 + object.fromentries: 2.0.6 + object.hasown: 1.1.2 + object.values: 1.1.6 + prop-types: 15.8.1 + resolve: 2.0.0-next.4 + semver: 6.3.0 + string.prototype.matchall: 4.0.8 + dev: false + + /eslint-plugin-turbo/0.0.7_eslint@8.33.0: resolution: {integrity: sha512-iajOH8eD4jha3duztGVBD1BEmvNrQBaA/y3HFHf91vMDRYRwH7BpHSDFtxydDpk5ghlhRxG299SFxz7D6z4MBQ==} peerDependencies: eslint: '>6.6.0' + dependencies: + eslint: 8.33.0 dev: false + /eslint-scope/5.1.1: + resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} + engines: {node: '>=8.0.0'} + dependencies: + esrecurse: 4.3.0 + estraverse: 4.3.0 + dev: true + /eslint-scope/7.1.1: resolution: {integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: esrecurse: 4.3.0 estraverse: 5.3.0 + + /eslint-utils/3.0.0: + resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} + engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} + peerDependencies: + eslint: '>=5' + dependencies: + eslint-visitor-keys: 2.1.0 dev: true /eslint-utils/3.0.0_eslint@8.15.0: @@ -6928,12 +7514,10 @@ packages: dependencies: eslint: 8.33.0 eslint-visitor-keys: 2.1.0 - dev: true /eslint-visitor-keys/2.1.0: resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==} engines: {node: '>=10'} - dev: true /eslint-visitor-keys/3.3.0: resolution: {integrity: sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==} @@ -7077,7 +7661,6 @@ packages: text-table: 0.2.0 transitivePeerDependencies: - supports-color - dev: true /espree/9.4.1: resolution: {integrity: sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==} @@ -7086,7 +7669,6 @@ packages: acorn: 8.8.2 acorn-jsx: 5.3.2_acorn@8.8.2 eslint-visitor-keys: 3.3.0 - dev: true /esprima/4.0.1: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} @@ -7098,13 +7680,16 @@ packages: engines: {node: '>=0.10'} dependencies: estraverse: 5.3.0 - dev: true /esrecurse/4.3.0: resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} engines: {node: '>=4.0'} dependencies: estraverse: 5.3.0 + + /estraverse/4.3.0: + resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} + engines: {node: '>=4.0'} dev: true /estraverse/5.3.0: @@ -7200,7 +7785,6 @@ packages: /fast-json-stable-stringify/2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - dev: true /fast-levenshtein/2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} @@ -7297,7 +7881,6 @@ packages: engines: {node: ^10.12.0 || >=12.0.0} dependencies: flat-cache: 3.0.4 - dev: true /file-saver/2.0.5: resolution: {integrity: sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==} @@ -7348,7 +7931,6 @@ packages: dependencies: locate-path: 6.0.0 path-exists: 4.0.0 - dev: true /find-yarn-workspace-root2/1.2.16: resolution: {integrity: sha512-hr6hb1w8ePMpPVUK39S4RlwJzi+xPLuVuG8XlwXU3KD5Yn3qgBWVfy3AzNlDhWvE1EORCE65/Qm26rFQt3VLVA==} @@ -7363,11 +7945,9 @@ packages: dependencies: flatted: 3.2.7 rimraf: 3.0.2 - dev: true /flatted/3.2.7: resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} - dev: true /follow-redirects/1.15.2: resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==} @@ -7579,7 +8159,6 @@ packages: engines: {node: '>=10.13.0'} dependencies: is-glob: 4.0.3 - dev: true /glob/7.1.7: resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==} @@ -7621,7 +8200,6 @@ packages: engines: {node: '>=8'} dependencies: type-fest: 0.20.2 - dev: true /globalthis/1.0.3: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} @@ -7688,7 +8266,6 @@ packages: /grapheme-splitter/1.0.4: resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} - dev: true /graphql-config/4.3.6_tlz2ma6byvlbw5iffqokhee6bi: resolution: {integrity: sha512-i7mAPwc0LAZPnYu2bI8B6yXU5820Wy/ArvmOseDLZIu0OU1UTULEuexHo6ZcHXeT9NvGGaUPQZm8NV3z79YydA==} @@ -8052,7 +8629,6 @@ packages: /imurmurhash/0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} - dev: true /indent-string/3.2.0: resolution: {integrity: sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==} @@ -8294,7 +8870,6 @@ packages: /is-path-inside/3.0.3: resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} engines: {node: '>=8'} - dev: true /is-plain-obj/1.1.0: resolution: {integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==} @@ -8491,7 +9066,6 @@ packages: /js-sdsl/4.3.0: resolution: {integrity: sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==} - dev: true /js-sha3/0.8.0: resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} @@ -8513,7 +9087,6 @@ packages: hasBin: true dependencies: argparse: 2.0.1 - dev: true /jsdom/20.0.3: resolution: {integrity: sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==} @@ -8569,11 +9142,9 @@ packages: /json-schema-traverse/0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - dev: true /json-stable-stringify-without-jsonify/1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - dev: true /json-stable-stringify/1.0.2: resolution: {integrity: sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==} @@ -8767,7 +9338,6 @@ packages: dependencies: prelude-ls: 1.2.1 type-check: 0.4.0 - dev: true /lie/3.1.1: resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==} @@ -8908,7 +9478,6 @@ packages: engines: {node: '>=10'} dependencies: p-locate: 5.0.0 - dev: true /lodash-es/4.17.21: resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} @@ -9370,9 +9939,12 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + /natural-compare-lite/1.4.0: + resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} + dev: true + /natural-compare/1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - dev: true /next-urql/4.0.0_react@18.2.0+urql@3.0.3: resolution: {integrity: sha512-c/dLhNg9bP+ku7GJDAYlsNnKEazrjcDnRx8/mBsGnjMj4c0yM+p2PBGbirWXkYL7Z2ogOHnSqHTt8swB9sJvQg==} @@ -9430,6 +10002,50 @@ packages: - babel-plugin-macros dev: false + /next/13.1.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-lQMZH1V94L5IL/WaihQkTYabSY73aqgrkGPJB5uz+2O3ES4I3losV/maXLY7l7x5e+oNyE9N81upNQ8uRsR5/A==} + engines: {node: '>=14.6.0'} + hasBin: true + peerDependencies: + fibers: '>= 3.1.0' + node-sass: ^6.0.0 || ^7.0.0 + react: ^18.2.0 + react-dom: ^18.2.0 + sass: ^1.3.0 + peerDependenciesMeta: + fibers: + optional: true + node-sass: + optional: true + sass: + optional: true + dependencies: + '@next/env': 13.1.0 + '@swc/helpers': 0.4.14 + caniuse-lite: 1.0.30001450 + postcss: 8.4.14 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + styled-jsx: 5.1.1_react@18.2.0 + optionalDependencies: + '@next/swc-android-arm-eabi': 13.1.0 + '@next/swc-android-arm64': 13.1.0 + '@next/swc-darwin-arm64': 13.1.0 + '@next/swc-darwin-x64': 13.1.0 + '@next/swc-freebsd-x64': 13.1.0 + '@next/swc-linux-arm-gnueabihf': 13.1.0 + '@next/swc-linux-arm64-gnu': 13.1.0 + '@next/swc-linux-arm64-musl': 13.1.0 + '@next/swc-linux-x64-gnu': 13.1.0 + '@next/swc-linux-x64-musl': 13.1.0 + '@next/swc-win32-arm64-msvc': 13.1.0 + '@next/swc-win32-ia32-msvc': 13.1.0 + '@next/swc-win32-x64-msvc': 13.1.0 + transitivePeerDependencies: + - '@babel/core' + - babel-plugin-macros + dev: false + /next/13.1.2_biqbaboplfbrettd7655fr4n2y: resolution: {integrity: sha512-Rdnnb2YH///w78FEOR/IQ6TXga+qpth4OqFSem48ng1PYYKr6XBsIk1XVaRcIGM3o6iiHnun0nJvkJHDf+ICyQ==} engines: {node: '>=14.6.0'} @@ -9813,7 +10429,6 @@ packages: prelude-ls: 1.2.1 type-check: 0.4.0 word-wrap: 1.2.3 - dev: true /ora/5.4.1: resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} @@ -9863,7 +10478,6 @@ packages: engines: {node: '>=10'} dependencies: yocto-queue: 0.1.0 - dev: true /p-limit/4.0.0: resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} @@ -9883,7 +10497,6 @@ packages: engines: {node: '>=10'} dependencies: p-limit: 3.1.0 - dev: true /p-map/2.1.0: resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==} @@ -9973,7 +10586,6 @@ packages: /path-exists/4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} - dev: true /path-is-absolute/1.0.1: resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} @@ -10145,7 +10757,6 @@ packages: /prelude-ls/1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} - dev: true /prepend-http/2.0.0: resolution: {integrity: sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==} @@ -10166,6 +10777,21 @@ packages: ansi-styles: 5.2.0 react-is: 17.0.2 + /pretty-quick/3.1.3: + resolution: {integrity: sha512-kOCi2FJabvuh1as9enxYmrnBC6tVMoVOenMaBqRfsvBHB0cbpYHjdQEpSglpASDFEXVwplpcGR4CLEaisYAFcA==} + engines: {node: '>=10.13'} + hasBin: true + peerDependencies: + prettier: '>=2.0.0' + dependencies: + chalk: 3.0.0 + execa: 4.1.0 + find-up: 4.1.0 + ignore: 5.2.4 + mri: 1.2.0 + multimatch: 4.0.0 + dev: true + /pretty-quick/3.1.3_prettier@2.8.3: resolution: {integrity: sha512-kOCi2FJabvuh1as9enxYmrnBC6tVMoVOenMaBqRfsvBHB0cbpYHjdQEpSglpASDFEXVwplpcGR4CLEaisYAFcA==} engines: {node: '>=10.13'} @@ -10753,7 +11379,6 @@ packages: /regexpp/3.2.0: resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} engines: {node: '>=8'} - dev: true /registry-auth-token/4.2.2: resolution: {integrity: sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==} @@ -11547,7 +12172,6 @@ packages: /text-table/0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} - dev: true /thread-stream/2.3.0: resolution: {integrity: sha512-kaDqm1DET9pp3NXwR8382WHbnpXnRkN9xGN9dQt3B2+dmXiW8X1SOwmFOxAErEQ47ObhZ96J6yhZNXuyCOL7KA==} @@ -11739,14 +12363,14 @@ packages: /tslib/2.5.0: resolution: {integrity: sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==} - /tsutils/3.21.0: + /tsutils/3.21.0_typescript@4.8.3: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' dependencies: tslib: 1.14.1 - dev: false + typescript: 4.8.3 /tsutils/3.21.0_typescript@4.8.4: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} @@ -11758,6 +12382,16 @@ packages: typescript: 4.8.4 dev: true + /tsutils/3.21.0_typescript@4.9.5: + resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} + engines: {node: '>= 6'} + peerDependencies: + typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' + dependencies: + tslib: 1.14.1 + typescript: 4.9.5 + dev: false + /tty-table/4.1.6: resolution: {integrity: sha512-kRj5CBzOrakV4VRRY5kUWbNYvo/FpOsz65DzI5op9P+cHov3+IqPbo1JE1ZnQGkHdZgNFDsrEjrfqqy/Ply9fw==} engines: {node: '>=8.0.0'} @@ -11772,65 +12406,65 @@ packages: yargs: 17.6.2 dev: true - /turbo-darwin-64/1.7.3: - resolution: {integrity: sha512-7j9+j1CVztmdevnClT3rG/GRhULf3ukwmv+l48l8uwsXNI53zLso+UYMql6RsjZDbD6sESwh0CHeKNwGmOylFA==} + /turbo-darwin-64/1.7.4: + resolution: {integrity: sha512-ZyYrQlUl8K/mYN1e6R7bEhPPYjMakz0DYMaexkyD7TAijQtWmTSd4a+I7VknOYNEssnUZ/v41GU3gPV1JAzxxQ==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /turbo-darwin-arm64/1.7.3: - resolution: {integrity: sha512-puS9+pqpiy4MrIvWRBTg3qfO2+JPXR7reQcXQ7qUreuyAJnSw9H9/TIHjeK6FFxUfQbmruylPtH6dNpfcML9CA==} + /turbo-darwin-arm64/1.7.4: + resolution: {integrity: sha512-CKIXg9uqp1a+Yeq/c4U0alPOqvwLUq5SBZf1PGYhGqJsfG0fRBtJfkUjHuBsuJIOGXg8rCmcGSWGIsIF6fqYuw==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /turbo-linux-64/1.7.3: - resolution: {integrity: sha512-BnbpgcK8Wag6fhnff7tMaecswmFHN/T56VIDnjcwcJnK9H3jdwpjwZlmcDtkoslzjPj3VuqHyqLDMvSb3ejXSg==} + /turbo-linux-64/1.7.4: + resolution: {integrity: sha512-RIUl4RUFFyzD2T024vL7509Ygwcw+SEa8NOwPfaN6TtJHK7RZV/SBP3fLNVOptG9WRLnOWX3OvsLMbiOqDLLyA==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /turbo-linux-arm64/1.7.3: - resolution: {integrity: sha512-+epY+0dfjmAJNZHfj7rID2hENRaeM3D0Ijqkhh/M53o46fQMwPNqI5ff9erh+f9r8sWuTpVnRlZeu7TE1P/Okw==} + /turbo-linux-arm64/1.7.4: + resolution: {integrity: sha512-Bg65F0AjYYYxqE6RPf2H5TIGuA/EyWMeGOATHVSZOWAbYcnG3Ly03GZii8AHnUi7ntWBdjwvXf/QbOS1ayNB6A==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /turbo-windows-64/1.7.3: - resolution: {integrity: sha512-/2Z8WB4fASlq/diO6nhmHYuDCRPm3dkdUE6yhwQarXPOm936m4zj3xGQA2eSWMpvfst4xjVxxU7P7HOIOyWChA==} + /turbo-windows-64/1.7.4: + resolution: {integrity: sha512-rTaV50XZ2BRxRHOHqt1UsWfeDmYLbn8UKE6g2D2ED+uW+kmnTvR9s01nmlGWd2sAuWcRYQyQ2V+O09VfKPKcQw==} cpu: [x64] os: [win32] requiresBuild: true dev: true optional: true - /turbo-windows-arm64/1.7.3: - resolution: {integrity: sha512-UD9Uhop42xj1l1ba5LRdwqRq1Of+RgqQuv+QMd1xOAZ2FXn/91uhkfLv+H4Pkiw7XdUohOxpj/FcOvjCiiUxGw==} + /turbo-windows-arm64/1.7.4: + resolution: {integrity: sha512-h8sxdKPvHTnWUPtwnYszFMmSO0P/iUUwmYY9n7iYThA71zSao28UeZ0H0Gw75cY3MPjvkjn2C4EBAUGPjuZJLw==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /turbo/1.7.3: - resolution: {integrity: sha512-mrqo72vPQO6ykmARThaNP/KXPDuBDSqDXfkUxD8hX1ET3YSFbOWJixlHU32tPtiFIhScIKbEGShEVWBrLeM0wg==} + /turbo/1.7.4: + resolution: {integrity: sha512-8RLedDoUL0kkVKWEZ/RMM70BvKLyDFen06QuKKhYC2XNOfNKqFDqzIdcY/vGick869bNIWalChoy4O07k0HLsA==} hasBin: true requiresBuild: true optionalDependencies: - turbo-darwin-64: 1.7.3 - turbo-darwin-arm64: 1.7.3 - turbo-linux-64: 1.7.3 - turbo-linux-arm64: 1.7.3 - turbo-windows-64: 1.7.3 - turbo-windows-arm64: 1.7.3 + turbo-darwin-64: 1.7.4 + turbo-darwin-arm64: 1.7.4 + turbo-linux-64: 1.7.4 + turbo-linux-arm64: 1.7.4 + turbo-windows-64: 1.7.4 + turbo-windows-arm64: 1.7.4 dev: true /type-check/0.3.2: @@ -11844,7 +12478,6 @@ packages: engines: {node: '>= 0.8.0'} dependencies: prelude-ls: 1.2.1 - dev: true /type-detect/4.0.8: resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} @@ -11858,7 +12491,6 @@ packages: /type-fest/0.20.2: resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} engines: {node: '>=10'} - dev: true /type-fest/0.21.3: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} @@ -11882,6 +12514,11 @@ packages: for-each: 0.3.3 is-typed-array: 1.1.10 + /typescript/4.8.3: + resolution: {integrity: sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==} + engines: {node: '>=4.2.0'} + hasBin: true + /typescript/4.8.4: resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} engines: {node: '>=4.2.0'} @@ -11892,7 +12529,6 @@ packages: resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true - dev: true /ua-parser-js/0.7.33: resolution: {integrity: sha512-s8ax/CeZdK9R/56Sui0WM6y9OFREJarMRHqLB2EwkovemBxNQ+Bqu8GAsUnVcXKgphb++ghr/B2BZx4mahujPw==} @@ -12014,7 +12650,6 @@ packages: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: punycode: 2.3.0 - dev: true /url-join/5.0.0: resolution: {integrity: sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==} @@ -12588,7 +13223,6 @@ packages: /yocto-queue/0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} - dev: true /yocto-queue/1.0.0: resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} diff --git a/turbo.json b/turbo.json index b5244e7..27ce204 100644 --- a/turbo.json +++ b/turbo.json @@ -49,6 +49,23 @@ "SENTRY_AUTH_TOKEN" ] }, + "build#saleor-app-slack": { + "env": [ + "APL", + "APP_DEBUG", + "NODE_ENV", + "SECRET_KEY", + "ALLOWED_DOMAIN_PATTERN", + "REST_APL_ENDPOINT", + "REST_APL_TOKEN", + "NEXT_PUBLIC_SENTRY_DSN", + "SENTRY_DSN", + "NEXT_PUBLIC_SENTRY_DSN", + "SENTRY_ORG", + "SENTRY_PROJECT", + "SENTRY_AUTH_TOKEN" + ] + }, "lint": { "outputs": [] },