diff --git a/introspection.json b/introspection.json index 0453ae98d..3472cfab4 100644 --- a/introspection.json +++ b/introspection.json @@ -549,6 +549,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "PASSWORD_RESET_ALREADY_REQUESTED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "REQUIRED", "description": null, @@ -3099,6 +3105,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "author", + "description": "The App's author name.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "extensions", "description": "App's dashboard extensions.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", @@ -3852,6 +3870,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "UNSUPPORTED_SALEOR_VERSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -4883,6 +4907,49 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "AppManifestRequiredSaleorVersion", + "description": null, + "fields": [ + { + "name": "constraint", + "description": "Required Saleor version as semver range.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "satisfied", + "description": "Informs if the Saleor version matches the required one.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "AppManifestWebhook", @@ -10573,7 +10640,7 @@ }, { "name": "values", - "description": "The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.", + "description": "The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.This field will be removed in Saleor 4.0.", "type": { "kind": "LIST", "name": null, @@ -10591,6 +10658,130 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "dropdown", + "description": "Attribute value ID.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "INPUT_OBJECT", + "name": "AttributeValueSelectableTypeInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "swatch", + "description": "Attribute value ID.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "INPUT_OBJECT", + "name": "AttributeValueSelectableTypeInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "multiselect", + "description": "List of attribute value IDs.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AttributeValueSelectableTypeInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "numeric", + "description": "Numeric value of an attribute.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "file", + "description": "URL of the file attribute. Every time, a new value is created.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "contentType", + "description": "File content type.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "references", + "description": "List of entity IDs that will be used as references.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "richText", + "description": "Text content in JSON format.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "SCALAR", + "name": "JSONString", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "plainText", + "description": "Plain text content.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "boolean", "description": "The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created.", @@ -10602,6 +10793,30 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "date", + "description": "Represents the date value of the attribute value.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "dateTime", + "description": "Represents the date/time value of the attribute value.\n\nAdded in Saleor 3.12.", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -11607,7 +11822,7 @@ "args": [ { "name": "size", - "description": "Size of the image. If not provided, the original image will be returned.", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", "type": { "kind": "SCALAR", "name": "Int", @@ -11619,7 +11834,7 @@ }, { "name": "format", - "description": "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.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -18407,7 +18622,7 @@ "args": [ { "name": "size", - "description": "Size of the image. If not provided, the original image will be returned.", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", "type": { "kind": "SCALAR", "name": "Int", @@ -18419,7 +18634,7 @@ }, { "name": "format", - "description": "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.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -41219,6 +41434,30 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "requiredSaleorVersion", + "description": "Determines the app's required Saleor version as semver range.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "AppManifestRequiredSaleorVersion", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "author", + "description": "The App's author name.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -45594,6 +45833,55 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "stockBulkUpdate", + "description": "Updates stocks for a given variant and warehouse.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", + "args": [ + { + "name": "errorPolicy", + "description": "Policies of error handling. DEFAULT: REJECT_EVERYTHING", + "type": { + "kind": "ENUM", + "name": "ErrorPolicyEnum", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stocks", + "description": "Input list of stocks to update.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "StockBulkUpdateInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "StockBulkUpdate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "staffNotificationRecipientCreate", "description": "Creates a new staff notification recipient. \n\nRequires one of the following permissions: MANAGE_SETTINGS.", @@ -58793,7 +59081,7 @@ }, { "name": "shippingTaxClass", - "description": "Denormalized tax class assigned to the shipping method.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", + "description": "Denormalized tax class assigned to the shipping method.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [], "type": { "kind": "OBJECT", @@ -63309,7 +63597,7 @@ "args": [ { "name": "size", - "description": "Size of the image. If not provided, the original image will be returned.", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", "type": { "kind": "SCALAR", "name": "Int", @@ -63321,7 +63609,7 @@ }, { "name": "format", - "description": "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.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -63514,7 +63802,7 @@ }, { "name": "taxClass", - "description": "Denormalized tax class of the product in this order line.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", + "description": "Denormalized tax class of the product in this order line.\n\nAdded in Saleor 3.9.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [], "type": { "kind": "OBJECT", @@ -68038,7 +68326,7 @@ }, { "name": "availableAttributes", - "description": "Attributes that can be assigned to the page type.\n\nRequires one of the following permissions: MANAGE_PAGES.", + "description": "Attributes that can be assigned to the page type.\n\nRequires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", "args": [ { "name": "filter", @@ -68123,7 +68411,7 @@ }, { "name": "hasPages", - "description": "Whether page type has pages assigned.\n\nRequires one of the following permissions: MANAGE_PAGES.", + "description": "Whether page type has pages assigned.\n\nRequires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", "args": [], "type": { "kind": "SCALAR", @@ -73808,7 +74096,7 @@ "args": [ { "name": "size", - "description": "Size of the image. If not provided, the original image will be returned.", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", "type": { "kind": "SCALAR", "name": "Int", @@ -73820,7 +74108,7 @@ }, { "name": "format", - "description": "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.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -74221,7 +74509,7 @@ }, { "name": "taxClass", - "description": "Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", + "description": "Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [], "type": { "kind": "OBJECT", @@ -75572,7 +75860,7 @@ }, { "name": "taxCode", - "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product.", + "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.", "type": { "kind": "SCALAR", "name": "String", @@ -76653,7 +76941,7 @@ "args": [ { "name": "size", - "description": "Size of the image. If not provided, the original image will be returned.", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", "type": { "kind": "SCALAR", "name": "Int", @@ -76665,7 +76953,7 @@ }, { "name": "format", - "description": "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.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -76814,7 +77102,7 @@ }, { "name": "taxCode", - "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product.", + "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.", "type": { "kind": "SCALAR", "name": "String", @@ -77176,7 +77464,7 @@ "args": [ { "name": "size", - "description": "Size of the image. If not provided, the original image will be returned.", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", "type": { "kind": "SCALAR", "name": "Int", @@ -77188,7 +77476,7 @@ }, { "name": "format", - "description": "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.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", @@ -79198,7 +79486,7 @@ }, { "name": "taxClass", - "description": "Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER.", + "description": "Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [], "type": { "kind": "OBJECT", @@ -80016,7 +80304,7 @@ }, { "name": "taxCode", - "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type.", + "description": "Tax rate for enabled tax gateway. \n\nDEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.", "type": { "kind": "SCALAR", "name": "String", @@ -93879,7 +94167,7 @@ }, { "name": "taxClass", - "description": "Tax class assigned to this shipping method.\n\nRequires one of the following permissions: MANAGE_TAXES, MANAGE_SHIPPING.", + "description": "Tax class assigned to this shipping method.\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [], "type": { "kind": "OBJECT", @@ -99450,6 +99738,285 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "StockBulkResult", + "description": null, + "fields": [ + { + "name": "stock", + "description": "Stock data.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Stock", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": "List of errors occurred on create or update attempt.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StockBulkUpdateError", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "StockBulkUpdate", + "description": "Updates stocks for a given variant and warehouse.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_PRODUCTS.", + "fields": [ + { + "name": "count", + "description": "Returns how many objects were updated.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "results", + "description": "List of the updated stocks.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StockBulkResult", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StockBulkUpdateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "StockBulkUpdateError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StockBulkUpdateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "StockBulkUpdateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "StockBulkUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "variantId", + "description": "Variant ID.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantExternalReference", + "description": "Variant external reference.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "warehouseId", + "description": "Warehouse ID.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "warehouseExternalReference", + "description": "Warehouse external reference.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "quantity", + "description": "Quantity of items available for sell.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "StockCountableConnection", @@ -103041,6 +103608,18 @@ "inputFields": null, "interfaces": null, "enumValues": [ + { + "name": "ORIGINAL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "AVIF", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "WEBP", "description": null, @@ -106476,7 +107055,7 @@ "args": [ { "name": "size", - "description": "Size of the image. If not provided, the original image will be returned.", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", "type": { "kind": "SCALAR", "name": "Int", @@ -106488,7 +107067,7 @@ }, { "name": "format", - "description": "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.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.6.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "type": { "kind": "ENUM", "name": "ThumbnailFormatEnum", diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index 084c357d7..2c43fa23f 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -1191,6 +1191,9 @@ "context": "unassign collection from sale and save, button", "string": "Unassign and save" }, + "6SL46U": { + "string": "by {author}" + }, "6WRFp2": { "context": "order history message", "string": "Note was added to the order" diff --git a/schema.graphql b/schema.graphql index 3e9651b80..7b351a998 100644 --- a/schema.graphql +++ b/schema.graphql @@ -85,6 +85,7 @@ enum AccountErrorCode { PASSWORD_TOO_COMMON PASSWORD_TOO_SHORT PASSWORD_TOO_SIMILAR + PASSWORD_RESET_ALREADY_REQUESTED REQUIRED UNIQUE JWT_SIGNATURE_EXPIRED @@ -596,6 +597,15 @@ type App implements Node & ObjectWithMetadata { """JWT token used to authenticate by thridparty app.""" accessToken: String + """ + The App's author name. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + author: String + """ App's dashboard extensions. @@ -734,6 +744,7 @@ enum AppErrorCode { UNIQUE OUT_OF_SCOPE_APP OUT_OF_SCOPE_PERMISSION + UNSUPPORTED_SALEOR_VERSION } """Represents app data.""" @@ -921,6 +932,26 @@ type AppManifestExtension { target: AppExtensionTargetEnum! } +type AppManifestRequiredSaleorVersion { + """ + Required Saleor version as semver range. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + constraint: String! + + """ + Informs if the Saleor version matches the required one. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + satisfied: Boolean! +} + type AppManifestWebhook { """The name of the webhook.""" name: String! @@ -2227,14 +2258,91 @@ input BulkAttributeValueInput { id: ID """ - The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. + The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.This field will be removed in Saleor 4.0. """ values: [String!] + """ + Attribute value ID. + + Added in Saleor 3.12. + """ + dropdown: AttributeValueSelectableTypeInput + + """ + Attribute value ID. + + Added in Saleor 3.12. + """ + swatch: AttributeValueSelectableTypeInput + + """ + List of attribute value IDs. + + Added in Saleor 3.12. + """ + multiselect: [AttributeValueSelectableTypeInput!] + + """ + Numeric value of an attribute. + + Added in Saleor 3.12. + """ + numeric: String + + """ + URL of the file attribute. Every time, a new value is created. + + Added in Saleor 3.12. + """ + file: String + + """ + File content type. + + Added in Saleor 3.12. + """ + contentType: String + + """ + List of entity IDs that will be used as references. + + Added in Saleor 3.12. + """ + references: [ID!] + + """ + Text content in JSON format. + + Added in Saleor 3.12. + """ + richText: JSONString + + """ + Plain text content. + + Added in Saleor 3.12. + """ + plainText: String + """ The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. """ boolean: Boolean + + """ + Represents the date value of the attribute value. + + Added in Saleor 3.12. + """ + date: Date + + """ + Represents the date/time value of the attribute value. + + Added in Saleor 3.12. + """ + dateTime: DateTime } type BulkProductError { @@ -2477,12 +2585,12 @@ type Category implements Node & ObjectWithMetadata { ): CategoryCountableConnection backgroundImage( """ - Size of the image. If not provided, the original image will be returned. + Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended). """ size: Int """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. + The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. @@ -4042,12 +4150,12 @@ type Collection implements Node & ObjectWithMetadata { ): ProductCountableConnection backgroundImage( """ - Size of the image. If not provided, the original image will be returned. + Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended). """ size: Int """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. + The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. @@ -8634,6 +8742,24 @@ type Manifest { Note: this API is currently in Feature Preview and can be subject to changes at later point. """ audience: String + + """ + Determines the app's required Saleor version as semver range. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + requiredSaleorVersion: AppManifestRequiredSaleorVersion + + """ + The App's author name. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + author: String } type Margin { @@ -9646,6 +9772,23 @@ type Mutation { taxExemption: Boolean! ): TaxExemptionManage + """ + Updates stocks for a given variant and warehouse. + + Added in Saleor 3.13. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_PRODUCTS. + """ + stockBulkUpdate( + """Policies of error handling. DEFAULT: REJECT_EVERYTHING""" + errorPolicy: ErrorPolicyEnum + + """Input list of stocks to update.""" + stocks: [StockBulkUpdateInput!]! + ): StockBulkUpdate + """ Creates a new staff notification recipient. @@ -13529,7 +13672,7 @@ type Order implements Node & ObjectWithMetadata { 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. + Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ shippingTaxClass: TaxClass @@ -14491,12 +14634,12 @@ type OrderLine implements Node & ObjectWithMetadata { digitalContentUrl: DigitalContentUrl thumbnail( """ - Size of the image. If not provided, the original image will be returned. + Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended). """ size: Int """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. + The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. @@ -14557,7 +14700,7 @@ type OrderLine implements Node & ObjectWithMetadata { 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. + Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxClass: TaxClass @@ -15591,7 +15734,7 @@ type PageType implements Node & ObjectWithMetadata { """ Attributes that can be assigned to the page type. - Requires one of the following permissions: MANAGE_PAGES. + Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ availableAttributes( filter: AttributeFilterInput @@ -15613,7 +15756,7 @@ type PageType implements Node & ObjectWithMetadata { """ Whether page type has pages assigned. - Requires one of the following permissions: MANAGE_PAGES. + Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES. """ hasPages: Boolean } @@ -16844,12 +16987,12 @@ type Product implements Node & ObjectWithMetadata { 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. + Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended). """ size: Int """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. + The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. @@ -16965,7 +17108,7 @@ type Product implements Node & ObjectWithMetadata { """ 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. + Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxClass: TaxClass @@ -17274,7 +17417,7 @@ input ProductCreateInput { """ 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. + DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. """ taxCode: String @@ -17518,12 +17661,12 @@ type ProductImage { sortOrder: Int url( """ - Size of the image. If not provided, the original image will be returned. + Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended). """ size: Int """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. + The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. @@ -17571,7 +17714,7 @@ input ProductInput { """ 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. + DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. """ taxCode: String @@ -17673,12 +17816,12 @@ type ProductMedia implements Node & ObjectWithMetadata { oembedData: JSONString! url( """ - Size of the image. If not provided, the original image will be returned. + Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended). """ size: Int """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. + The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. @@ -18173,7 +18316,7 @@ type ProductType implements Node & ObjectWithMetadata { """ 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. + Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxClass: TaxClass @@ -18325,7 +18468,7 @@ input ProductTypeInput { """ 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. + DEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. """ taxCode: String @@ -21882,7 +22025,7 @@ type ShippingMethodType implements Node & ObjectWithMetadata { """ Tax class assigned to this shipping method. - Requires one of the following permissions: MANAGE_TAXES, MANAGE_SHIPPING. + Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxClass: TaxClass } @@ -23161,6 +23304,70 @@ enum StockAvailability { OUT_OF_STOCK } +type StockBulkResult { + """Stock data.""" + stock: Stock + + """List of errors occurred on create or update attempt.""" + errors: [StockBulkUpdateError!] +} + +""" +Updates stocks for a given variant and warehouse. + +Added in Saleor 3.13. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: MANAGE_PRODUCTS. +""" +type StockBulkUpdate { + """Returns how many objects were updated.""" + count: Int! + + """List of the updated stocks.""" + results: [StockBulkResult!]! + errors: [StockBulkUpdateError!]! +} + +type StockBulkUpdateError { + """ + 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: StockBulkUpdateErrorCode! +} + +"""An enumeration.""" +enum StockBulkUpdateErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED +} + +input StockBulkUpdateInput { + """Variant ID.""" + variantId: ID + + """Variant external reference.""" + variantExternalReference: String + + """Warehouse ID.""" + warehouseId: ID + + """Warehouse external reference.""" + warehouseExternalReference: String + + """Quantity of items available for sell.""" + quantity: Int! +} + type StockCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! @@ -24030,6 +24237,8 @@ type ThumbnailCreated implements Event { """An enumeration.""" enum ThumbnailFormatEnum { + ORIGINAL + AVIF WEBP } @@ -24785,12 +24994,12 @@ type User implements Node & ObjectWithMetadata { editableGroups: [Group!] avatar( """ - Size of the image. If not provided, the original image will be returned. + Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended). """ size: Int """ - The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned. + The format of the image. When not provided, format of the original image will be used. Added in Saleor 3.6. diff --git a/src/apps/components/AppPage/AppPage.tsx b/src/apps/components/AppPage/AppPage.tsx index fd99fcf5e..f894113ba 100644 --- a/src/apps/components/AppPage/AppPage.tsx +++ b/src/apps/components/AppPage/AppPage.tsx @@ -28,6 +28,7 @@ export const AppPage: React.FC = ({ name={data?.name} supportUrl={data?.supportUrl} homepageUrl={data?.homepageUrl} + author={data?.author} /> = ({ name, supportUrl, homepageUrl, + author, }) => { const location = useLocation(); const goBackLink = location.state?.from ?? AppUrls.resolveAppListUrl(); @@ -33,33 +35,48 @@ export const AppPageNav: React.FC = ({ - {name} + + {name} + + {author && ( + + )} + + - - {supportUrl && ( - - )} - {homepageUrl && ( - - )} - + + + {supportUrl && ( + + )} + {homepageUrl && ( + + )} ); diff --git a/src/apps/fixtures.ts b/src/apps/fixtures.ts index 2a22c2d98..d9aec8316 100644 --- a/src/apps/fixtures.ts +++ b/src/apps/fixtures.ts @@ -105,6 +105,7 @@ export const appDetails: NonNullable = { isActive: true, metadata: [], name: "app1", + author: "Saleor Commerce", permissions: [ { __typename: "Permission", diff --git a/src/apps/queries.ts b/src/apps/queries.ts index 5889385fc..9dfe4bb5b 100644 --- a/src/apps/queries.ts +++ b/src/apps/queries.ts @@ -46,6 +46,7 @@ export const appDetails = gql` app(id: $id) { ...App aboutApp + author permissions { code name diff --git a/src/graphql/hooks.generated.ts b/src/graphql/hooks.generated.ts index e633fca91..f7405935c 100644 --- a/src/graphql/hooks.generated.ts +++ b/src/graphql/hooks.generated.ts @@ -3414,6 +3414,7 @@ export const AppDocument = gql` app(id: $id) { ...App aboutApp + author permissions { code name diff --git a/src/graphql/typePolicies.generated.ts b/src/graphql/typePolicies.generated.ts index 2c038cfab..fa2188549 100644 --- a/src/graphql/typePolicies.generated.ts +++ b/src/graphql/typePolicies.generated.ts @@ -158,7 +158,7 @@ export type AllocationFieldPolicy = { quantity?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type AppKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'permissions' | 'created' | 'isActive' | 'name' | 'type' | 'tokens' | 'webhooks' | 'aboutApp' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'configurationUrl' | 'appUrl' | 'manifestUrl' | 'version' | 'accessToken' | 'extensions' | AppKeySpecifier)[]; +export type AppKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'permissions' | 'created' | 'isActive' | 'name' | 'type' | 'tokens' | 'webhooks' | 'aboutApp' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'configurationUrl' | 'appUrl' | 'manifestUrl' | 'version' | 'accessToken' | 'author' | 'extensions' | AppKeySpecifier)[]; export type AppFieldPolicy = { id?: FieldPolicy | FieldReadFunction, privateMetadata?: FieldPolicy | FieldReadFunction, @@ -184,6 +184,7 @@ export type AppFieldPolicy = { manifestUrl?: FieldPolicy | FieldReadFunction, version?: FieldPolicy | FieldReadFunction, accessToken?: FieldPolicy | FieldReadFunction, + author?: FieldPolicy | FieldReadFunction, extensions?: FieldPolicy | FieldReadFunction }; export type AppActivateKeySpecifier = ('appErrors' | 'errors' | 'app' | AppActivateKeySpecifier)[]; @@ -303,6 +304,11 @@ export type AppManifestExtensionFieldPolicy = { mount?: FieldPolicy | FieldReadFunction, target?: FieldPolicy | FieldReadFunction }; +export type AppManifestRequiredSaleorVersionKeySpecifier = ('constraint' | 'satisfied' | AppManifestRequiredSaleorVersionKeySpecifier)[]; +export type AppManifestRequiredSaleorVersionFieldPolicy = { + constraint?: FieldPolicy | FieldReadFunction, + satisfied?: FieldPolicy | FieldReadFunction +}; export type AppManifestWebhookKeySpecifier = ('name' | 'asyncEvents' | 'syncEvents' | 'query' | 'targetUrl' | AppManifestWebhookKeySpecifier)[]; export type AppManifestWebhookFieldPolicy = { name?: FieldPolicy | FieldReadFunction, @@ -2087,7 +2093,7 @@ export type LimitsFieldPolicy = { staffUsers?: FieldPolicy | FieldReadFunction, warehouses?: FieldPolicy | FieldReadFunction }; -export type ManifestKeySpecifier = ('identifier' | 'version' | 'name' | 'about' | 'permissions' | 'appUrl' | 'configurationUrl' | 'tokenTargetUrl' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'extensions' | 'webhooks' | 'audience' | ManifestKeySpecifier)[]; +export type ManifestKeySpecifier = ('identifier' | 'version' | 'name' | 'about' | 'permissions' | 'appUrl' | 'configurationUrl' | 'tokenTargetUrl' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'extensions' | 'webhooks' | 'audience' | 'requiredSaleorVersion' | 'author' | ManifestKeySpecifier)[]; export type ManifestFieldPolicy = { identifier?: FieldPolicy | FieldReadFunction, version?: FieldPolicy | FieldReadFunction, @@ -2103,7 +2109,9 @@ export type ManifestFieldPolicy = { supportUrl?: FieldPolicy | FieldReadFunction, extensions?: FieldPolicy | FieldReadFunction, webhooks?: FieldPolicy | FieldReadFunction, - audience?: FieldPolicy | FieldReadFunction + audience?: FieldPolicy | FieldReadFunction, + requiredSaleorVersion?: FieldPolicy | FieldReadFunction, + author?: FieldPolicy | FieldReadFunction }; export type MarginKeySpecifier = ('start' | 'stop' | MarginKeySpecifier)[]; export type MarginFieldPolicy = { @@ -2313,7 +2321,7 @@ export type MoneyRangeFieldPolicy = { start?: FieldPolicy | FieldReadFunction, stop?: FieldPolicy | FieldReadFunction }; -export type MutationKeySpecifier = ('webhookCreate' | 'webhookDelete' | 'webhookUpdate' | 'eventDeliveryRetry' | 'webhookDryRun' | 'webhookTrigger' | 'createWarehouse' | 'updateWarehouse' | 'deleteWarehouse' | 'assignWarehouseShippingZone' | 'unassignWarehouseShippingZone' | 'taxClassCreate' | 'taxClassDelete' | 'taxClassUpdate' | 'taxConfigurationUpdate' | 'taxCountryConfigurationUpdate' | 'taxCountryConfigurationDelete' | 'taxExemptionManage' | 'staffNotificationRecipientCreate' | 'staffNotificationRecipientUpdate' | 'staffNotificationRecipientDelete' | 'shopDomainUpdate' | 'shopSettingsUpdate' | 'shopFetchTaxRates' | 'shopSettingsTranslate' | 'shopAddressUpdate' | 'orderSettingsUpdate' | 'giftCardSettingsUpdate' | 'shippingMethodChannelListingUpdate' | 'shippingPriceCreate' | 'shippingPriceDelete' | 'shippingPriceBulkDelete' | 'shippingPriceUpdate' | 'shippingPriceTranslate' | 'shippingPriceExcludeProducts' | 'shippingPriceRemoveProductFromExclude' | 'shippingZoneCreate' | 'shippingZoneDelete' | 'shippingZoneBulkDelete' | 'shippingZoneUpdate' | 'productAttributeAssign' | 'productAttributeAssignmentUpdate' | 'productAttributeUnassign' | 'categoryCreate' | 'categoryDelete' | 'categoryBulkDelete' | 'categoryUpdate' | 'categoryTranslate' | 'collectionAddProducts' | 'collectionCreate' | 'collectionDelete' | 'collectionReorderProducts' | 'collectionBulkDelete' | 'collectionRemoveProducts' | 'collectionUpdate' | 'collectionTranslate' | 'collectionChannelListingUpdate' | 'productCreate' | 'productDelete' | 'productBulkDelete' | 'productUpdate' | 'productTranslate' | 'productChannelListingUpdate' | 'productMediaCreate' | 'productVariantReorder' | 'productMediaDelete' | 'productMediaBulkDelete' | 'productMediaReorder' | 'productMediaUpdate' | 'productTypeCreate' | 'productTypeDelete' | 'productTypeBulkDelete' | 'productTypeUpdate' | 'productTypeReorderAttributes' | 'productReorderAttributeValues' | 'digitalContentCreate' | 'digitalContentDelete' | 'digitalContentUpdate' | 'digitalContentUrlCreate' | 'productVariantCreate' | 'productVariantDelete' | 'productVariantBulkCreate' | 'productVariantBulkUpdate' | 'productVariantBulkDelete' | 'productVariantStocksCreate' | 'productVariantStocksDelete' | 'productVariantStocksUpdate' | 'productVariantUpdate' | 'productVariantSetDefault' | 'productVariantTranslate' | 'productVariantChannelListingUpdate' | 'productVariantReorderAttributeValues' | 'productVariantPreorderDeactivate' | 'variantMediaAssign' | 'variantMediaUnassign' | 'paymentCapture' | 'paymentRefund' | 'paymentVoid' | 'paymentInitialize' | 'paymentCheckBalance' | 'transactionCreate' | 'transactionUpdate' | 'transactionRequestAction' | 'pageCreate' | 'pageDelete' | 'pageBulkDelete' | 'pageBulkPublish' | 'pageUpdate' | 'pageTranslate' | 'pageTypeCreate' | 'pageTypeUpdate' | 'pageTypeDelete' | 'pageTypeBulkDelete' | 'pageAttributeAssign' | 'pageAttributeUnassign' | 'pageTypeReorderAttributes' | 'pageReorderAttributeValues' | 'draftOrderComplete' | 'draftOrderCreate' | 'draftOrderDelete' | 'draftOrderBulkDelete' | 'draftOrderLinesBulkDelete' | 'draftOrderUpdate' | 'orderAddNote' | 'orderCancel' | 'orderCapture' | 'orderConfirm' | 'orderFulfill' | 'orderFulfillmentCancel' | 'orderFulfillmentApprove' | 'orderFulfillmentUpdateTracking' | 'orderFulfillmentRefundProducts' | 'orderFulfillmentReturnProducts' | 'orderLinesCreate' | 'orderLineDelete' | 'orderLineUpdate' | 'orderDiscountAdd' | 'orderDiscountUpdate' | 'orderDiscountDelete' | 'orderLineDiscountUpdate' | 'orderLineDiscountRemove' | 'orderMarkAsPaid' | 'orderRefund' | 'orderUpdate' | 'orderUpdateShipping' | 'orderVoid' | 'orderBulkCancel' | 'deleteMetadata' | 'deletePrivateMetadata' | 'updateMetadata' | 'updatePrivateMetadata' | 'assignNavigation' | 'menuCreate' | 'menuDelete' | 'menuBulkDelete' | 'menuUpdate' | 'menuItemCreate' | 'menuItemDelete' | 'menuItemBulkDelete' | 'menuItemUpdate' | 'menuItemTranslate' | 'menuItemMove' | 'invoiceRequest' | 'invoiceRequestDelete' | 'invoiceCreate' | 'invoiceDelete' | 'invoiceUpdate' | 'invoiceSendNotification' | 'giftCardActivate' | 'giftCardCreate' | 'giftCardDelete' | 'giftCardDeactivate' | 'giftCardUpdate' | 'giftCardResend' | 'giftCardAddNote' | 'giftCardBulkCreate' | 'giftCardBulkDelete' | 'giftCardBulkActivate' | 'giftCardBulkDeactivate' | 'pluginUpdate' | 'externalNotificationTrigger' | 'saleCreate' | 'saleDelete' | 'saleBulkDelete' | 'saleUpdate' | 'saleCataloguesAdd' | 'saleCataloguesRemove' | 'saleTranslate' | 'saleChannelListingUpdate' | 'voucherCreate' | 'voucherDelete' | 'voucherBulkDelete' | 'voucherUpdate' | 'voucherCataloguesAdd' | 'voucherCataloguesRemove' | 'voucherTranslate' | 'voucherChannelListingUpdate' | 'exportProducts' | 'exportGiftCards' | 'fileUpload' | 'checkoutAddPromoCode' | 'checkoutBillingAddressUpdate' | 'checkoutComplete' | 'checkoutCreate' | 'checkoutCustomerAttach' | 'checkoutCustomerDetach' | 'checkoutEmailUpdate' | 'checkoutLineDelete' | 'checkoutLinesDelete' | 'checkoutLinesAdd' | 'checkoutLinesUpdate' | 'checkoutRemovePromoCode' | 'checkoutPaymentCreate' | 'checkoutShippingAddressUpdate' | 'checkoutShippingMethodUpdate' | 'checkoutDeliveryMethodUpdate' | 'checkoutLanguageCodeUpdate' | 'orderCreateFromCheckout' | 'channelCreate' | 'channelUpdate' | 'channelDelete' | 'channelActivate' | 'channelDeactivate' | 'channelReorderWarehouses' | 'attributeCreate' | 'attributeDelete' | 'attributeUpdate' | 'attributeTranslate' | 'attributeBulkDelete' | 'attributeValueBulkDelete' | 'attributeValueCreate' | 'attributeValueDelete' | 'attributeValueUpdate' | 'attributeValueTranslate' | 'attributeReorderValues' | 'appCreate' | 'appUpdate' | 'appDelete' | 'appTokenCreate' | 'appTokenDelete' | 'appTokenVerify' | 'appInstall' | 'appRetryInstall' | 'appDeleteFailedInstallation' | 'appFetchManifest' | 'appActivate' | 'appDeactivate' | 'tokenCreate' | 'tokenRefresh' | 'tokenVerify' | 'tokensDeactivateAll' | 'externalAuthenticationUrl' | 'externalObtainAccessTokens' | 'externalRefresh' | 'externalLogout' | 'externalVerify' | 'requestPasswordReset' | 'confirmAccount' | 'setPassword' | 'passwordChange' | 'requestEmailChange' | 'confirmEmailChange' | 'accountAddressCreate' | 'accountAddressUpdate' | 'accountAddressDelete' | 'accountSetDefaultAddress' | 'accountRegister' | 'accountUpdate' | 'accountRequestDeletion' | 'accountDelete' | 'addressCreate' | 'addressUpdate' | 'addressDelete' | 'addressSetDefault' | 'customerCreate' | 'customerUpdate' | 'customerDelete' | 'customerBulkDelete' | 'staffCreate' | 'staffUpdate' | 'staffDelete' | 'staffBulkDelete' | 'userAvatarUpdate' | 'userAvatarDelete' | 'userBulkSetActive' | 'permissionGroupCreate' | 'permissionGroupUpdate' | 'permissionGroupDelete' | MutationKeySpecifier)[]; +export type MutationKeySpecifier = ('webhookCreate' | 'webhookDelete' | 'webhookUpdate' | 'eventDeliveryRetry' | 'webhookDryRun' | 'webhookTrigger' | 'createWarehouse' | 'updateWarehouse' | 'deleteWarehouse' | 'assignWarehouseShippingZone' | 'unassignWarehouseShippingZone' | 'taxClassCreate' | 'taxClassDelete' | 'taxClassUpdate' | 'taxConfigurationUpdate' | 'taxCountryConfigurationUpdate' | 'taxCountryConfigurationDelete' | 'taxExemptionManage' | 'stockBulkUpdate' | 'staffNotificationRecipientCreate' | 'staffNotificationRecipientUpdate' | 'staffNotificationRecipientDelete' | 'shopDomainUpdate' | 'shopSettingsUpdate' | 'shopFetchTaxRates' | 'shopSettingsTranslate' | 'shopAddressUpdate' | 'orderSettingsUpdate' | 'giftCardSettingsUpdate' | 'shippingMethodChannelListingUpdate' | 'shippingPriceCreate' | 'shippingPriceDelete' | 'shippingPriceBulkDelete' | 'shippingPriceUpdate' | 'shippingPriceTranslate' | 'shippingPriceExcludeProducts' | 'shippingPriceRemoveProductFromExclude' | 'shippingZoneCreate' | 'shippingZoneDelete' | 'shippingZoneBulkDelete' | 'shippingZoneUpdate' | 'productAttributeAssign' | 'productAttributeAssignmentUpdate' | 'productAttributeUnassign' | 'categoryCreate' | 'categoryDelete' | 'categoryBulkDelete' | 'categoryUpdate' | 'categoryTranslate' | 'collectionAddProducts' | 'collectionCreate' | 'collectionDelete' | 'collectionReorderProducts' | 'collectionBulkDelete' | 'collectionRemoveProducts' | 'collectionUpdate' | 'collectionTranslate' | 'collectionChannelListingUpdate' | 'productCreate' | 'productDelete' | 'productBulkDelete' | 'productUpdate' | 'productTranslate' | 'productChannelListingUpdate' | 'productMediaCreate' | 'productVariantReorder' | 'productMediaDelete' | 'productMediaBulkDelete' | 'productMediaReorder' | 'productMediaUpdate' | 'productTypeCreate' | 'productTypeDelete' | 'productTypeBulkDelete' | 'productTypeUpdate' | 'productTypeReorderAttributes' | 'productReorderAttributeValues' | 'digitalContentCreate' | 'digitalContentDelete' | 'digitalContentUpdate' | 'digitalContentUrlCreate' | 'productVariantCreate' | 'productVariantDelete' | 'productVariantBulkCreate' | 'productVariantBulkUpdate' | 'productVariantBulkDelete' | 'productVariantStocksCreate' | 'productVariantStocksDelete' | 'productVariantStocksUpdate' | 'productVariantUpdate' | 'productVariantSetDefault' | 'productVariantTranslate' | 'productVariantChannelListingUpdate' | 'productVariantReorderAttributeValues' | 'productVariantPreorderDeactivate' | 'variantMediaAssign' | 'variantMediaUnassign' | 'paymentCapture' | 'paymentRefund' | 'paymentVoid' | 'paymentInitialize' | 'paymentCheckBalance' | 'transactionCreate' | 'transactionUpdate' | 'transactionRequestAction' | 'pageCreate' | 'pageDelete' | 'pageBulkDelete' | 'pageBulkPublish' | 'pageUpdate' | 'pageTranslate' | 'pageTypeCreate' | 'pageTypeUpdate' | 'pageTypeDelete' | 'pageTypeBulkDelete' | 'pageAttributeAssign' | 'pageAttributeUnassign' | 'pageTypeReorderAttributes' | 'pageReorderAttributeValues' | 'draftOrderComplete' | 'draftOrderCreate' | 'draftOrderDelete' | 'draftOrderBulkDelete' | 'draftOrderLinesBulkDelete' | 'draftOrderUpdate' | 'orderAddNote' | 'orderCancel' | 'orderCapture' | 'orderConfirm' | 'orderFulfill' | 'orderFulfillmentCancel' | 'orderFulfillmentApprove' | 'orderFulfillmentUpdateTracking' | 'orderFulfillmentRefundProducts' | 'orderFulfillmentReturnProducts' | 'orderLinesCreate' | 'orderLineDelete' | 'orderLineUpdate' | 'orderDiscountAdd' | 'orderDiscountUpdate' | 'orderDiscountDelete' | 'orderLineDiscountUpdate' | 'orderLineDiscountRemove' | 'orderMarkAsPaid' | 'orderRefund' | 'orderUpdate' | 'orderUpdateShipping' | 'orderVoid' | 'orderBulkCancel' | 'deleteMetadata' | 'deletePrivateMetadata' | 'updateMetadata' | 'updatePrivateMetadata' | 'assignNavigation' | 'menuCreate' | 'menuDelete' | 'menuBulkDelete' | 'menuUpdate' | 'menuItemCreate' | 'menuItemDelete' | 'menuItemBulkDelete' | 'menuItemUpdate' | 'menuItemTranslate' | 'menuItemMove' | 'invoiceRequest' | 'invoiceRequestDelete' | 'invoiceCreate' | 'invoiceDelete' | 'invoiceUpdate' | 'invoiceSendNotification' | 'giftCardActivate' | 'giftCardCreate' | 'giftCardDelete' | 'giftCardDeactivate' | 'giftCardUpdate' | 'giftCardResend' | 'giftCardAddNote' | 'giftCardBulkCreate' | 'giftCardBulkDelete' | 'giftCardBulkActivate' | 'giftCardBulkDeactivate' | 'pluginUpdate' | 'externalNotificationTrigger' | 'saleCreate' | 'saleDelete' | 'saleBulkDelete' | 'saleUpdate' | 'saleCataloguesAdd' | 'saleCataloguesRemove' | 'saleTranslate' | 'saleChannelListingUpdate' | 'voucherCreate' | 'voucherDelete' | 'voucherBulkDelete' | 'voucherUpdate' | 'voucherCataloguesAdd' | 'voucherCataloguesRemove' | 'voucherTranslate' | 'voucherChannelListingUpdate' | 'exportProducts' | 'exportGiftCards' | 'fileUpload' | 'checkoutAddPromoCode' | 'checkoutBillingAddressUpdate' | 'checkoutComplete' | 'checkoutCreate' | 'checkoutCustomerAttach' | 'checkoutCustomerDetach' | 'checkoutEmailUpdate' | 'checkoutLineDelete' | 'checkoutLinesDelete' | 'checkoutLinesAdd' | 'checkoutLinesUpdate' | 'checkoutRemovePromoCode' | 'checkoutPaymentCreate' | 'checkoutShippingAddressUpdate' | 'checkoutShippingMethodUpdate' | 'checkoutDeliveryMethodUpdate' | 'checkoutLanguageCodeUpdate' | 'orderCreateFromCheckout' | 'channelCreate' | 'channelUpdate' | 'channelDelete' | 'channelActivate' | 'channelDeactivate' | 'channelReorderWarehouses' | 'attributeCreate' | 'attributeDelete' | 'attributeUpdate' | 'attributeTranslate' | 'attributeBulkDelete' | 'attributeValueBulkDelete' | 'attributeValueCreate' | 'attributeValueDelete' | 'attributeValueUpdate' | 'attributeValueTranslate' | 'attributeReorderValues' | 'appCreate' | 'appUpdate' | 'appDelete' | 'appTokenCreate' | 'appTokenDelete' | 'appTokenVerify' | 'appInstall' | 'appRetryInstall' | 'appDeleteFailedInstallation' | 'appFetchManifest' | 'appActivate' | 'appDeactivate' | 'tokenCreate' | 'tokenRefresh' | 'tokenVerify' | 'tokensDeactivateAll' | 'externalAuthenticationUrl' | 'externalObtainAccessTokens' | 'externalRefresh' | 'externalLogout' | 'externalVerify' | 'requestPasswordReset' | 'confirmAccount' | 'setPassword' | 'passwordChange' | 'requestEmailChange' | 'confirmEmailChange' | 'accountAddressCreate' | 'accountAddressUpdate' | 'accountAddressDelete' | 'accountSetDefaultAddress' | 'accountRegister' | 'accountUpdate' | 'accountRequestDeletion' | 'accountDelete' | 'addressCreate' | 'addressUpdate' | 'addressDelete' | 'addressSetDefault' | 'customerCreate' | 'customerUpdate' | 'customerDelete' | 'customerBulkDelete' | 'staffCreate' | 'staffUpdate' | 'staffDelete' | 'staffBulkDelete' | 'userAvatarUpdate' | 'userAvatarDelete' | 'userBulkSetActive' | 'permissionGroupCreate' | 'permissionGroupUpdate' | 'permissionGroupDelete' | MutationKeySpecifier)[]; export type MutationFieldPolicy = { webhookCreate?: FieldPolicy | FieldReadFunction, webhookDelete?: FieldPolicy | FieldReadFunction, @@ -2333,6 +2341,7 @@ export type MutationFieldPolicy = { taxCountryConfigurationUpdate?: FieldPolicy | FieldReadFunction, taxCountryConfigurationDelete?: FieldPolicy | FieldReadFunction, taxExemptionManage?: FieldPolicy | FieldReadFunction, + stockBulkUpdate?: FieldPolicy | FieldReadFunction, staffNotificationRecipientCreate?: FieldPolicy | FieldReadFunction, staffNotificationRecipientUpdate?: FieldPolicy | FieldReadFunction, staffNotificationRecipientDelete?: FieldPolicy | FieldReadFunction, @@ -4812,6 +4821,23 @@ export type StockFieldPolicy = { quantityAllocated?: FieldPolicy | FieldReadFunction, quantityReserved?: FieldPolicy | FieldReadFunction }; +export type StockBulkResultKeySpecifier = ('stock' | 'errors' | StockBulkResultKeySpecifier)[]; +export type StockBulkResultFieldPolicy = { + stock?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type StockBulkUpdateKeySpecifier = ('count' | 'results' | 'errors' | StockBulkUpdateKeySpecifier)[]; +export type StockBulkUpdateFieldPolicy = { + count?: FieldPolicy | FieldReadFunction, + results?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type StockBulkUpdateErrorKeySpecifier = ('field' | 'message' | 'code' | StockBulkUpdateErrorKeySpecifier)[]; +export type StockBulkUpdateErrorFieldPolicy = { + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction +}; export type StockCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | StockCountableConnectionKeySpecifier)[]; export type StockCountableConnectionFieldPolicy = { pageInfo?: FieldPolicy | FieldReadFunction, @@ -5779,6 +5805,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | AppManifestExtensionKeySpecifier | (() => undefined | AppManifestExtensionKeySpecifier), fields?: AppManifestExtensionFieldPolicy, }, + AppManifestRequiredSaleorVersion?: Omit & { + keyFields?: false | AppManifestRequiredSaleorVersionKeySpecifier | (() => undefined | AppManifestRequiredSaleorVersionKeySpecifier), + fields?: AppManifestRequiredSaleorVersionFieldPolicy, + }, AppManifestWebhook?: Omit & { keyFields?: false | AppManifestWebhookKeySpecifier | (() => undefined | AppManifestWebhookKeySpecifier), fields?: AppManifestWebhookFieldPolicy, @@ -7891,6 +7921,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | StockKeySpecifier | (() => undefined | StockKeySpecifier), fields?: StockFieldPolicy, }, + StockBulkResult?: Omit & { + keyFields?: false | StockBulkResultKeySpecifier | (() => undefined | StockBulkResultKeySpecifier), + fields?: StockBulkResultFieldPolicy, + }, + StockBulkUpdate?: Omit & { + keyFields?: false | StockBulkUpdateKeySpecifier | (() => undefined | StockBulkUpdateKeySpecifier), + fields?: StockBulkUpdateFieldPolicy, + }, + StockBulkUpdateError?: Omit & { + keyFields?: false | StockBulkUpdateErrorKeySpecifier | (() => undefined | StockBulkUpdateErrorKeySpecifier), + fields?: StockBulkUpdateErrorFieldPolicy, + }, StockCountableConnection?: Omit & { keyFields?: false | StockCountableConnectionKeySpecifier | (() => undefined | StockCountableConnectionKeySpecifier), fields?: StockCountableConnectionFieldPolicy, diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 8edb0c42c..043b7ca85 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -81,6 +81,7 @@ export enum AccountErrorCode { PASSWORD_TOO_COMMON = 'PASSWORD_TOO_COMMON', PASSWORD_TOO_SHORT = 'PASSWORD_TOO_SHORT', PASSWORD_TOO_SIMILAR = 'PASSWORD_TOO_SIMILAR', + PASSWORD_RESET_ALREADY_REQUESTED = 'PASSWORD_RESET_ALREADY_REQUESTED', REQUIRED = 'REQUIRED', UNIQUE = 'UNIQUE', JWT_SIGNATURE_EXPIRED = 'JWT_SIGNATURE_EXPIRED', @@ -185,7 +186,8 @@ export enum AppErrorCode { REQUIRED = 'REQUIRED', UNIQUE = 'UNIQUE', OUT_OF_SCOPE_APP = 'OUT_OF_SCOPE_APP', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION' + OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', + UNSUPPORTED_SALEOR_VERSION = 'UNSUPPORTED_SALEOR_VERSION' } export type AppExtensionFilterInput = { @@ -688,10 +690,76 @@ export type AttributeWhereInput = { export type BulkAttributeValueInput = { /** ID of the selected attribute. */ id?: InputMaybe; - /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ + /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.This field will be removed in Saleor 4.0. */ values?: InputMaybe>; + /** + * Attribute value ID. + * + * Added in Saleor 3.12. + */ + dropdown?: InputMaybe; + /** + * Attribute value ID. + * + * Added in Saleor 3.12. + */ + swatch?: InputMaybe; + /** + * List of attribute value IDs. + * + * Added in Saleor 3.12. + */ + multiselect?: InputMaybe>; + /** + * Numeric value of an attribute. + * + * Added in Saleor 3.12. + */ + numeric?: InputMaybe; + /** + * URL of the file attribute. Every time, a new value is created. + * + * Added in Saleor 3.12. + */ + file?: InputMaybe; + /** + * File content type. + * + * Added in Saleor 3.12. + */ + contentType?: InputMaybe; + /** + * List of entity IDs that will be used as references. + * + * Added in Saleor 3.12. + */ + references?: InputMaybe>; + /** + * Text content in JSON format. + * + * Added in Saleor 3.12. + */ + richText?: InputMaybe; + /** + * Plain text content. + * + * Added in Saleor 3.12. + */ + plainText?: InputMaybe; /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ boolean?: InputMaybe; + /** + * Represents the date value of the attribute value. + * + * Added in Saleor 3.12. + */ + date?: InputMaybe; + /** + * Represents the date/time value of the attribute value. + * + * Added in Saleor 3.12. + */ + dateTime?: InputMaybe; }; export type CardInput = { @@ -4079,7 +4147,7 @@ export type ProductCreateInput = { /** * 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. + * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; /** Search engine optimization fields. */ @@ -4231,7 +4299,7 @@ export type ProductInput = { /** * 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. + * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; /** Search engine optimization fields. */ @@ -4406,7 +4474,7 @@ export type ProductTypeInput = { /** * 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. + * DEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ taxCode?: InputMaybe; /** ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. */ @@ -5126,6 +5194,27 @@ export enum StockAvailability { OUT_OF_STOCK = 'OUT_OF_STOCK' } +/** An enumeration. */ +export enum StockBulkUpdateErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + INVALID = 'INVALID', + NOT_FOUND = 'NOT_FOUND', + REQUIRED = 'REQUIRED' +} + +export type StockBulkUpdateInput = { + /** Variant ID. */ + variantId?: InputMaybe; + /** Variant external reference. */ + variantExternalReference?: InputMaybe; + /** Warehouse ID. */ + warehouseId?: InputMaybe; + /** Warehouse external reference. */ + warehouseExternalReference?: InputMaybe; + /** Quantity of items available for sell. */ + quantity: Scalars['Int']; +}; + /** An enumeration. */ export enum StockErrorCode { ALREADY_EXISTS = 'ALREADY_EXISTS', @@ -5317,6 +5406,8 @@ export enum TaxExemptionManageErrorCode { /** An enumeration. */ export enum ThumbnailFormatEnum { + ORIGINAL = 'ORIGINAL', + AVIF = 'AVIF', WEBP = 'WEBP' } @@ -6841,7 +6932,7 @@ export type AppQueryVariables = Exact<{ }>; -export type AppQuery = { __typename: 'Query', app: { __typename: 'App', aboutApp: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null }; +export type AppQuery = { __typename: 'Query', app: { __typename: 'App', aboutApp: string | null, author: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null }; export type ExtensionListQueryVariables = Exact<{ filter: AppExtensionFilterInput;