diff --git a/introspection.json b/introspection.json index baf265376..0d6ae1ff8 100644 --- a/introspection.json +++ b/introspection.json @@ -2684,7 +2684,7 @@ { "kind": "ENUM", "name": "AllocationStrategyEnum", - "description": "Determine the allocation strategy for the channel.\n\n PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order\n within the channel\n\n PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock\n ", + "description": "Determine the allocation strategy for the channel.\n\n PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order\n within the channel\n\n PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock", "fields": null, "inputFields": null, "interfaces": null, @@ -3160,6 +3160,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "brand", + "description": "App's brand data.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "AppBrand", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -3249,6 +3261,85 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "AppBrand", + "description": "Represents the app's brand data.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "logo", + "description": "App's logos details.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AppBrandLogo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "AppBrandLogo", + "description": "Represents the app's brand logo data.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "default", + "description": "URL to the default logo image.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "size", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "format", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "ENUM", + "name": "IconThumbnailFormatEnum", + "ofType": null + }, + "defaultValue": "ORIGINAL", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "AppCountableConnection", @@ -4302,7 +4393,7 @@ { "kind": "ENUM", "name": "AppExtensionTargetEnum", - "description": "All available ways of opening an app extension.\n\n POPUP - app's extension will be mounted as a popup window\n APP_PAGE - redirect to app's page\n ", + "description": "All available ways of opening an app extension.\n\n POPUP - app's extension will be mounted as a popup window\n APP_PAGE - redirect to app's page", "fields": null, "inputFields": null, "interfaces": null, @@ -4733,6 +4824,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "brand", + "description": "App's brand data.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "AppBrand", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -4828,6 +4931,85 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "AppManifestBrand", + "description": "Represents the app's manifest brand data.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "logo", + "description": "App's logos details.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AppManifestBrandLogo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "AppManifestBrandLogo", + "description": "Represents the app's manifest brand data.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "default", + "description": "Data URL with a base64 encoded logo image.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "size", + "description": "Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "format", + "description": "The format of the image. When not provided, format of the original image will be used.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "ENUM", + "name": "IconThumbnailFormatEnum", + "ofType": null + }, + "defaultValue": "ORIGINAL", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "AppManifestExtension", @@ -6665,6 +6847,242 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "AttributeBulkTranslate", + "description": "Creates/updates translations for attributes.\n\nAdded in Saleor 3.14.\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_TRANSLATIONS.", + "fields": [ + { + "name": "count", + "description": "Returns how many translations were created/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 translations.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AttributeBulkTranslateResult", + "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": "AttributeBulkTranslateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "AttributeBulkTranslateError", + "description": null, + "fields": [ + { + "name": "path", + "description": "Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "AttributeTranslateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AttributeBulkTranslateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": "Attribute ID.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalReference", + "description": "External reference of an attribute.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "languageCode", + "description": "Translation language code.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "LanguageCodeEnum", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "translationFields", + "description": "Translation fields.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "NameTranslationInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "AttributeBulkTranslateResult", + "description": null, + "fields": [ + { + "name": "translation", + "description": "Attribute translation data.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "AttributeTranslation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": "List of errors occurred on translation attempt.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AttributeBulkTranslateError", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "AttributeChoicesSortField", @@ -8268,6 +8686,41 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "AttributeTranslateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "AttributeTranslation", @@ -9011,6 +9464,242 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "AttributeValueBulkTranslate", + "description": "Creates/updates translations for attributes values.\n\nAdded in Saleor 3.14.\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_TRANSLATIONS.", + "fields": [ + { + "name": "count", + "description": "Returns how many translations were created/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 translations.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AttributeValueBulkTranslateResult", + "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": "AttributeValueBulkTranslateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "AttributeValueBulkTranslateError", + "description": null, + "fields": [ + { + "name": "path", + "description": "Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "AttributeValueTranslateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AttributeValueBulkTranslateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": "Attribute value ID.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalReference", + "description": "External reference of an attribute value.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "languageCode", + "description": "Translation language code.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "LanguageCodeEnum", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "translationFields", + "description": "Translation fields.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AttributeValueTranslationInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "AttributeValueBulkTranslateResult", + "description": null, + "fields": [ + { + "name": "translation", + "description": "Attribute value translation data.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "AttributeValueTranslation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": "List of errors occurred on translation attempt.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AttributeValueBulkTranslateError", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "AttributeValueCountableConnection", @@ -9597,6 +10286,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "externalReference", + "description": "External ID of this attribute.\n\nAdded in Saleor 3.14.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "values", "description": "The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. This field will be removed in Saleor 4.0.", @@ -9619,7 +10320,7 @@ }, { "name": "dropdown", - "description": "Attribute value ID.\n\nAdded in Saleor 3.9.", + "description": "Attribute value ID or external reference.\n\nAdded in Saleor 3.9.", "type": { "kind": "INPUT_OBJECT", "name": "AttributeValueSelectableTypeInput", @@ -9631,7 +10332,7 @@ }, { "name": "swatch", - "description": "Attribute value ID.\n\nAdded in Saleor 3.9.", + "description": "Attribute value ID or external reference.\n\nAdded in Saleor 3.9.", "type": { "kind": "INPUT_OBJECT", "name": "AttributeValueSelectableTypeInput", @@ -9643,7 +10344,7 @@ }, { "name": "multiselect", - "description": "List of attribute value IDs.\n\nAdded in Saleor 3.9.", + "description": "List of attribute value IDs or external references.\n\nAdded in Saleor 3.9.", "type": { "kind": "LIST", "name": null, @@ -9785,7 +10486,7 @@ { "kind": "INPUT_OBJECT", "name": "AttributeValueSelectableTypeInput", - "description": "Represents attribute value. If no ID provided, value will be resolved. \n\nAdded in Saleor 3.9.", + "description": "Represents attribute value.\n1. If ID is provided, then attribute value will be resolved by ID.\n2. If externalReference is provided, then attribute value will be resolved by external reference.\n3. If value is provided, then attribute value will be resolved by value. If this attribute value doesn't exist, then it will be created.\n4. If externalReference and value is provided then new attribute value will be created.\n\nAdded in Saleor 3.9.", "fields": null, "inputFields": [ { @@ -9800,6 +10501,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "externalReference", + "description": "External reference of an attribute value.\n\nAdded in Saleor 3.14.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "value", "description": "The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.", @@ -10014,6 +10727,41 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "AttributeValueTranslateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "AttributeValueTranslation", @@ -10658,6 +11406,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "externalReference", + "description": "External ID of this attribute.\n\nAdded in Saleor 3.14.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "values", "description": "The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.This field will be removed in Saleor 4.0.", @@ -11694,6 +12454,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "where", + "description": "Filtering options for products.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "INPUT_OBJECT", + "name": "ProductWhereInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "sortBy", "description": "Sort products.\n\nAdded in Saleor 3.10.", @@ -11860,7 +12632,7 @@ "name": "ThumbnailFormatEnum", "ofType": null }, - "defaultValue": null, + "defaultValue": "ORIGINAL", "isDeprecated": false, "deprecationReason": null } @@ -15567,7 +16339,7 @@ { "kind": "ENUM", "name": "CheckoutAuthorizeStatusEnum", - "description": "Determine a current authorize status for checkout.\n\n We treat the checkout as fully authorized when the sum of authorized and charged\n funds cover the checkout.total.\n We treat the checkout as partially authorized when the sum of authorized and charged\n funds covers only part of the checkout.total\n We treat the checkout as not authorized when the sum of authorized and charged funds\n is 0.\n\n NONE - the funds are not authorized\n PARTIAL - the cover funds don't cover fully the checkout's total\n FULL - the cover funds covers the checkout's total\n ", + "description": "Determine a current authorize status for checkout.\n\n We treat the checkout as fully authorized when the sum of authorized and charged\n funds cover the checkout.total.\n We treat the checkout as partially authorized when the sum of authorized and charged\n funds covers only part of the checkout.total\n We treat the checkout as not authorized when the sum of authorized and charged funds\n is 0.\n\n NONE - the funds are not authorized\n PARTIAL - the cover funds don't cover fully the checkout's total\n FULL - the cover funds covers the checkout's total", "fields": null, "inputFields": null, "interfaces": null, @@ -15667,7 +16439,7 @@ { "kind": "ENUM", "name": "CheckoutChargeStatusEnum", - "description": "Determine the current charge status for the checkout.\n\n The checkout is considered overcharged when the sum of the transactionItem's charge\n amounts exceeds the value of `checkout.total`.\n If the sum of the transactionItem's charge amounts equals\n `checkout.total`, we consider the checkout to be fully charged.\n If the sum of the transactionItem's charge amounts covers a part of the\n `checkout.total`, we treat the checkout as partially charged.\n\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the checkout's total\n FULL - the funds that are charged fully cover the checkout's total\n OVERCHARGED - the charged funds are bigger than checkout's total\n ", + "description": "Determine the current charge status for the checkout.\n\n The checkout is considered overcharged when the sum of the transactionItem's charge\n amounts exceeds the value of `checkout.total`.\n If the sum of the transactionItem's charge amounts equals\n `checkout.total`, we consider the checkout to be fully charged.\n If the sum of the transactionItem's charge amounts covers a part of the\n `checkout.total`, we treat the checkout as partially charged.\n\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the checkout's total\n FULL - the funds that are charged fully cover the checkout's total\n OVERCHARGED - the charged funds are bigger than checkout's total", "fields": null, "inputFields": null, "interfaces": null, @@ -19105,6 +19877,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "where", + "description": "Filtering options for products.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "INPUT_OBJECT", + "name": "ProductWhereInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "sortBy", "description": "Sort products.", @@ -19198,7 +19982,7 @@ "name": "ThumbnailFormatEnum", "ofType": null }, - "defaultValue": null, + "defaultValue": "ORIGINAL", "isDeprecated": false, "deprecationReason": null } @@ -25112,6 +25896,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "Day", + "description": "The `Day` scalar type represents number of days by integer value.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "DeactivateAllUserTokens", @@ -25181,6 +25975,96 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "DecimalFilterInput", + "description": "Define the filtering options for decimal fields.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": null, + "inputFields": [ + { + "name": "eq", + "description": "The value equal to.", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "oneOf", + "description": "The value included in.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "range", + "description": "The value in range.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DecimalRangeInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "DecimalRangeInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "gte", + "description": "Decimal value greater than or equal to.", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lte", + "description": "Decimal value less than or equal to.", + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "DeleteMetadata", @@ -28075,6 +28959,11 @@ "name": "MenuUpdated", "ofType": null }, + { + "kind": "OBJECT", + "name": "OrderBulkCreated", + "ofType": null + }, { "kind": "OBJECT", "name": "OrderCancelled", @@ -32673,8 +33562,8 @@ "name": "User", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 4.0." }, { "name": "createdByEmail", @@ -32697,8 +33586,8 @@ "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 4.0." }, { "name": "lastUsedOn", @@ -35789,6 +36678,49 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "GlobalIDFilterInput", + "description": "Define the filtering options for foreign key fields.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": null, + "inputFields": [ + { + "name": "eq", + "description": "The value equal to.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "oneOf", + "description": "The value included in.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Group", @@ -36036,6 +36968,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "IconThumbnailFormatEnum", + "description": "Thumbnail formats for icon images.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "ORIGINAL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "WEBP", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Image", @@ -42592,6 +43547,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "brand", + "description": "App's brand data.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "AppManifestBrand", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -42637,7 +43604,7 @@ { "kind": "ENUM", "name": "MarkAsPaidStrategyEnum", - "description": "Determine the mark as paid strategy for the channel.\n\n TRANSACTION_FLOW - new orders marked as paid will receive a\n `TransactionItem` object, that will cover the `order.total`.\n\n PAYMENT_FLOW - new orders marked as paid will receive a\n `Payment` object, that will cover the `order.total`.\n\n ", + "description": "Determine the mark as paid strategy for the channel.\n\n TRANSACTION_FLOW - new orders marked as paid will receive a\n `TransactionItem` object, that will cover the `order.total`.\n\n PAYMENT_FLOW - new orders marked as paid will receive a\n `Payment` object, that will cover the `order.total`.", "fields": null, "inputFields": null, "interfaces": null, @@ -47263,7 +48230,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "\n\nDEPRECATED: this mutation will be removed in Saleor 4.0." + "deprecationReason": "\\n\\nDEPRECATED: this mutation will be removed in Saleor 4.0." }, { "name": "shopSettingsTranslate", @@ -47362,7 +48329,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "\n\nDEPRECATED: this mutation will be removed in Saleor 4.0. Use `channelUpdate` mutation instead." + "deprecationReason": "\\n\\nDEPRECATED: this mutation will be removed in Saleor 4.0. Use `channelUpdate` mutation instead." }, { "name": "giftCardSettingsUpdate", @@ -50741,7 +51708,7 @@ }, { "name": "transactionUpdate", - "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", + "description": "Update transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app.", "args": [ { "name": "id", @@ -50851,7 +51818,7 @@ }, { "name": "transactionEventReport", - "description": "Report the event for the transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", + "description": "Report the event for the transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app.", "args": [ { "name": "amount", @@ -53075,6 +54042,67 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "orderBulkCreate", + "description": "Creates multiple orders.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS_IMPORT.", + "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": "orders", + "description": "Input list of orders to create. Orders limit: 50.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stockUpdatePolicy", + "description": "Determine how stock should be updated, while processing the order. DEFAULT: UPDATE - Only do update, if there is enough stocks.", + "type": { + "kind": "ENUM", + "name": "StockUpdatePolicyEnum", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "OrderBulkCreate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "deleteMetadata", "description": "Delete metadata of an object. To use it, you need to have access to the modified object.", @@ -56817,6 +57845,55 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "attributeBulkTranslate", + "description": "Creates/updates translations for attributes.\n\nAdded in Saleor 3.14.\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_TRANSLATIONS.", + "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": "translations", + "description": "List of attributes translations.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AttributeBulkTranslateInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "AttributeBulkTranslate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "attributeBulkDelete", "description": "Deletes attributes. \n\nRequires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.", @@ -57026,6 +58103,55 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "attributeValueBulkTranslate", + "description": "Creates/updates translations for attributes values.\n\nAdded in Saleor 3.14.\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_TRANSLATIONS.", + "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": "translations", + "description": "List of attribute values translations.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AttributeValueBulkTranslateInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "AttributeValueBulkTranslate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "attributeValueTranslate", "description": "Creates/updates translations for an attribute value. \n\nRequires one of the following permissions: MANAGE_TRANSLATIONS.", @@ -61048,7 +62174,7 @@ }, { "name": "totalCaptured", - "description": "Amount captured for the order. ", + "description": "Amount captured for the order.", "args": [], "type": { "kind": "NON_NULL", @@ -61631,7 +62757,7 @@ { "kind": "ENUM", "name": "OrderAuthorizeStatusEnum", - "description": "Determine a current authorize status for order.\n\n We treat the order as fully authorized when the sum of authorized and charged funds\n cover the `order.total`-`order.totalGrantedRefund`.\n We treat the order as partially authorized when the sum of authorized and charged\n funds covers only part of the `order.total`-`order.totalGrantedRefund`.\n We treat the order as not authorized when the sum of authorized and charged funds is\n 0.\n\n NONE - the funds are not authorized\n PARTIAL - the funds that are authorized and charged don't cover fully the\n `order.total`-`order.totalGrantedRefund`\n FULL - the funds that are authorized and charged fully cover the\n `order.total`-`order.totalGrantedRefund`\n ", + "description": "Determine a current authorize status for order.\n\n We treat the order as fully authorized when the sum of authorized and charged funds\n cover the `order.total`-`order.totalGrantedRefund`.\n We treat the order as partially authorized when the sum of authorized and charged\n funds covers only part of the `order.total`-`order.totalGrantedRefund`.\n We treat the order as not authorized when the sum of authorized and charged funds is\n 0.\n\n NONE - the funds are not authorized\n PARTIAL - the funds that are authorized and charged don't cover fully the\n `order.total`-`order.totalGrantedRefund`\n FULL - the funds that are authorized and charged fully cover the\n `order.total`-`order.totalGrantedRefund`", "fields": null, "inputFields": null, "interfaces": null, @@ -61732,6 +62858,1619 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderBulkCreate", + "description": "Creates multiple orders.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: MANAGE_ORDERS_IMPORT.", + "fields": [ + { + "name": "count", + "description": "Returns how many objects were created.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "results", + "description": "List of the created orders.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrderBulkCreateResult", + "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": "OrderBulkCreateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateDeliveryMethodInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "warehouseId", + "description": "The ID of the warehouse.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "warehouseName", + "description": "The name of the warehouse.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingMethodId", + "description": "The ID of the shipping method.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingMethodName", + "description": "The name of the shipping method.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingPrice", + "description": "The price of the shipping.", + "type": { + "kind": "INPUT_OBJECT", + "name": "TaxedMoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingTaxRate", + "description": "Tax rate of the shipping.", + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingTaxClassId", + "description": "The ID of the tax class.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingTaxClassName", + "description": "The name of the tax class.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingTaxClassMetadata", + "description": "Metadata of the tax class.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingTaxClassPrivateMetadata", + "description": "Private metadata of the tax class.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderBulkCreateError", + "description": null, + "fields": [ + { + "name": "path", + "description": "Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "ENUM", + "name": "OrderBulkCreateErrorCode", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "OrderBulkCreateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNIQUE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "BULK_LIMIT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TOO_MANY_IDENTIFIERS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FUTURE_DATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID_QUANTITY", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PRICE_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOTE_LENGTH", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INSUFFICIENT_STOCK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NON_EXISTING_STOCK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NO_RELATED_ORDER_LINE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NEGATIVE_INDEX", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ORDER_LINE_FULFILLMENT_LINE_MISMATCH", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "METADATA_KEY_REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INCORRECT_CURRENCY", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateFulfillmentInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "trackingCode", + "description": "Fulfillment's tracking code.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lines", + "description": "List of items informing how to fulfill the order.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateFulfillmentLineInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateFulfillmentLineInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "variantId", + "description": "The ID of the product variant.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantSku", + "description": "The SKU of the product variant.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantExternalReference", + "description": "The external ID of the product variant.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "quantity", + "description": "The number of line items to be fulfilled from given warehouse.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "warehouse", + "description": "ID of the warehouse from which the item will be fulfilled.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "orderLineIndex", + "description": "0-based index of order line, which the fulfillment line refers to.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "externalReference", + "description": "External ID of the order.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "channel", + "description": "Slug of the channel associated with the order.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": "The date, when the order was inserted to Saleor database.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "Status of the order.", + "type": { + "kind": "ENUM", + "name": "OrderStatus", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "user", + "description": "Customer associated with the order.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateUserInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "trackingClientId", + "description": "Tracking ID of the customer.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "billingAddress", + "description": "Billing address of the customer.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "shippingAddress", + "description": "Shipping address of the customer.", + "type": { + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "currency", + "description": "Currency code.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metadata", + "description": "Metadata of the order.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetadata", + "description": "Private metadata of the order.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "customerNote", + "description": "Note about customer.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "notes", + "description": "Notes related to the order.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateNoteInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "languageCode", + "description": "Order language code.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "LanguageCodeEnum", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "displayGrossPrices", + "description": "Determines whether checkout prices should include taxes, when displayed in a storefront.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "weight", + "description": "Weight of the order in kg.", + "type": { + "kind": "SCALAR", + "name": "WeightScalar", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "redirectUrl", + "description": "URL of a view, where users should be redirected to see the order details.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lines", + "description": "List of order lines.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateOrderLineInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deliveryMethod", + "description": "The delivery method selected for this order.", + "type": { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateDeliveryMethodInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "giftCards", + "description": "List of gift card codes associated with the order.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "voucher", + "description": "Code of a voucher associated with the order.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "discounts", + "description": "List of discounts.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderDiscountCommonInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fulfillments", + "description": "Fulfillments of the order.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateFulfillmentInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactions", + "description": "Transactions related to the order.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TransactionCreateInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "invoices", + "description": "Invoices related to the order.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateInvoiceInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateInvoiceInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "createdAt", + "description": "The date, when the invoice was created.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "number", + "description": "Invoice number.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "url", + "description": "URL of the invoice to download.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metadata", + "description": "Metadata of the invoice.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetadata", + "description": "Private metadata of the invoice.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateNoteInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "message", + "description": "Note message. Max characters: 255.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "date", + "description": "The date associated with the message.", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "userId", + "description": "The user ID associated with the message.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "userEmail", + "description": "The user email associated with the message.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "userExternalReference", + "description": "The user external ID associated with the message.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "appId", + "description": "The app ID associated with the message.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateOrderLineInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "variantId", + "description": "The ID of the product variant.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantSku", + "description": "The SKU of the product variant.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantExternalReference", + "description": "The external ID of the product variant.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantName", + "description": "The name of the product variant.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "productName", + "description": "The name of the product.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "translatedVariantName", + "description": "Translation of the product variant name.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "translatedProductName", + "description": "Translation of the product name.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": "The date, when the order line was created.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isShippingRequired", + "description": "Determines whether shipping of the order line items is required.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isGiftCard", + "description": "Gift card flag.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "quantity", + "description": "Number of items in the order line", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalPrice", + "description": "Price of the order line.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TaxedMoneyInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "undiscountedTotalPrice", + "description": "Price of the order line excluding applied discount.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TaxedMoneyInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "warehouse", + "description": "The ID of the warehouse, where the line will be allocated.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metadata", + "description": "Metadata of the order line.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetadata", + "description": "Private metadata of the order line.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "taxRate", + "description": "Tax rate of the order line.", + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "taxClassId", + "description": "The ID of the tax class.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "taxClassName", + "description": "The name of the tax class.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "taxClassMetadata", + "description": "Metadata of the tax class.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "taxClassPrivateMetadata", + "description": "Private metadata of the tax class.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderBulkCreateResult", + "description": null, + "fields": [ + { + "name": "order", + "description": "Order data.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": "List of errors occurred on create attempt.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrderBulkCreateError", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrderBulkCreateUserInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": "Customer ID associated with the order.", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email", + "description": "Customer email associated with the order.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalReference", + "description": "Customer external ID associated with the order.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderBulkCreated", + "description": "Event sent when orders are imported.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "orders", + "description": "The orders the event relates to.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "OrderCancel", @@ -61954,7 +64693,7 @@ { "kind": "ENUM", "name": "OrderChargeStatusEnum", - "description": "Determine the current charge status for the order.\n\n An order is considered overcharged when the sum of the\n transactionItem's charge amounts exceeds the value of\n `order.total` - `order.totalGrantedRefund`.\n If the sum of the transactionItem's charge amounts equals\n `order.total` - `order.totalGrantedRefund`, we consider the order to be fully\n charged.\n If the sum of the transactionItem's charge amounts covers a part of the\n `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged.\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the\n `order.total`-`order.totalGrantedRefund`\n FULL - the funds that are charged fully cover the\n `order.total`-`order.totalGrantedRefund`\n OVERCHARGED - the charged funds are bigger than the\n `order.total`-`order.totalGrantedRefund`\n ", + "description": "Determine the current charge status for the order.\n\n An order is considered overcharged when the sum of the\n transactionItem's charge amounts exceeds the value of\n `order.total` - `order.totalGrantedRefund`.\n If the sum of the transactionItem's charge amounts equals\n `order.total` - `order.totalGrantedRefund`, we consider the order to be fully\n charged.\n If the sum of the transactionItem's charge amounts covers a part of the\n `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged.\n\n NONE - the funds are not charged.\n PARTIAL - the funds that are charged don't cover the\n `order.total`-`order.totalGrantedRefund`\n FULL - the funds that are charged fully cover the\n `order.total`-`order.totalGrantedRefund`\n OVERCHARGED - the charged funds are bigger than the\n `order.total`-`order.totalGrantedRefund`", "fields": null, "inputFields": null, "interfaces": null, @@ -63727,7 +66466,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature).Use `TransactionEvent` to track the status of `TransactionItem`." + "deprecationReason": "This field will be removed in Saleor 3.15 (Preview Feature).Use `TransactionEvent` to track the status of `TransactionItem`." }, { "name": "reference", @@ -64089,7 +66828,7 @@ { "kind": "ENUM", "name": "OrderEventsEnum", - "description": "The different order event types. ", + "description": "The different order event types.", "fields": null, "inputFields": null, "interfaces": null, @@ -64282,7 +67021,7 @@ }, { "name": "TRANSACTION_CAPTURE_REQUESTED", - "description": "This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead.", + "description": "This field will be removed in Saleor 3.15 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead.", "isDeprecated": false, "deprecationReason": null }, @@ -64294,7 +67033,7 @@ }, { "name": "TRANSACTION_VOID_REQUESTED", - "description": "This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead.", + "description": "This field will be removed in Saleor 3.15 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead.", "isDeprecated": false, "deprecationReason": null }, @@ -66171,7 +68910,7 @@ "name": "ThumbnailFormatEnum", "ofType": null }, - "defaultValue": null, + "defaultValue": "ORIGINAL", "isDeprecated": false, "deprecationReason": null } @@ -66494,6 +69233,18 @@ "defaultValue": "false", "isDeprecated": false, "deprecationReason": null + }, + { + "name": "price", + "description": "Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -67144,6 +69895,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "BULK_CREATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -67811,6 +70568,22 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "deleteExpiredOrdersAfter", + "description": "The time in days after expired orders will be deleted.\n\nAdded in Saleor 3.14.\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": "Day", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -67928,6 +70701,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "deleteExpiredOrdersAfter", + "description": "The time in days after expired orders will be deleted.Allowed range is from 1 to 120.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "Day", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "markAsPaidStrategy", "description": "Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid.\n`PAYMENT_FLOW` - [default option] creates the `Payment` object.\n`TRANSACTION_FLOW` - creates the `TransactionItem` object.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", @@ -74420,7 +77205,7 @@ "name": "StorePaymentMethodEnum", "ofType": null }, - "defaultValue": null, + "defaultValue": "NONE", "isDeprecated": false, "deprecationReason": null }, @@ -75109,6 +77894,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "MANAGE_ORDERS_IMPORT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "MANAGE_PAGES", "description": null, @@ -77459,7 +80250,7 @@ "name": "ThumbnailFormatEnum", "ofType": null }, - "defaultValue": null, + "defaultValue": "ORIGINAL", "isDeprecated": false, "deprecationReason": null } @@ -81040,7 +83831,7 @@ "name": "ThumbnailFormatEnum", "ofType": null }, - "defaultValue": null, + "defaultValue": "ORIGINAL", "isDeprecated": false, "deprecationReason": null } @@ -81563,7 +84354,7 @@ "name": "ThumbnailFormatEnum", "ofType": null }, - "defaultValue": null, + "defaultValue": "ORIGINAL", "isDeprecated": false, "deprecationReason": null } @@ -86559,7 +89350,7 @@ { "kind": "OBJECT", "name": "ProductVariantChannelListing", - "description": "Represents product varaint channel listing.", + "description": "Represents product variant channel listing.", "fields": [ { "name": "id", @@ -89036,6 +91827,333 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "ProductWhereInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "metadata", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataFilter", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ids", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": "Filter by product name.", + "type": { + "kind": "INPUT_OBJECT", + "name": "StringFilterInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "slug", + "description": "Filter by product slug.", + "type": { + "kind": "INPUT_OBJECT", + "name": "StringFilterInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "productType", + "description": "Filter by product type.", + "type": { + "kind": "INPUT_OBJECT", + "name": "GlobalIDFilterInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "category", + "description": "Filter by product category.", + "type": { + "kind": "INPUT_OBJECT", + "name": "GlobalIDFilterInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "collection", + "description": "Filter by collection.", + "type": { + "kind": "INPUT_OBJECT", + "name": "GlobalIDFilterInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isAvailable", + "description": "Filter by availability for purchase.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isPublished", + "description": "Filter by public visibility.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isVisibleInListing", + "description": "Filter by visibility on the channel.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "publishedFrom", + "description": "Filter by the publication date.", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "availableFrom", + "description": "Filter by the date of availability for purchase.", + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hasCategory", + "description": "Filter by product with category assigned.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "price", + "description": "Filter by product variant price.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DecimalFilterInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "minimalPrice", + "description": "Filter by the lowest variant price after discounts.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DecimalFilterInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "attributes", + "description": "Filter by attributes associated with the product.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AttributeInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stockAvailability", + "description": "Filter by variants having specific stock status.", + "type": { + "kind": "ENUM", + "name": "StockAvailability", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stocks", + "description": "Filter by stock of the product variant.", + "type": { + "kind": "INPUT_OBJECT", + "name": "ProductStockFilterInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "giftCard", + "description": "Filter on whether product is a gift card or not.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hasPreorderedVariants", + "description": "Filter by product with preordered variants.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt", + "description": "Filter by when was the most recent update.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateTimeRangeInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "AND", + "description": "List of conditions that must be met.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ProductWhereInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "OR", + "description": "A list of conditions of which at least one must be met.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ProductWhereInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "PublishableChannelListingInput", @@ -89673,7 +92791,7 @@ }, { "name": "taxCountryConfigurations", - "description": "\n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", + "description": "\\n\\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.", "args": [], "type": { "kind": "LIST", @@ -90410,6 +93528,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "where", + "description": "Where filtering options.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "type": { + "kind": "INPUT_OBJECT", + "name": "ProductWhereInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "sortBy", "description": "Sort products.", @@ -90422,6 +93552,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "search", + "description": "Search products.\n\nAdded in Saleor 3.14.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "channel", "description": "Slug of a channel for which the data should be returned.", @@ -104593,6 +107735,35 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "StockUpdatePolicyEnum", + "description": "Determine how stocks should be updated, while processing an order.\n\n SKIP - stocks are not checked and not updated.\n UPDATE - only do update, if there is enough stock.\n FORCE - force update, if there is not enough stock.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "SKIP", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UPDATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FORCE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "ENUM", "name": "StorePaymentMethodEnum", @@ -107649,6 +110820,49 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "TaxedMoneyInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "gross", + "description": "Gross value of an item.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "net", + "description": "Net value of an item.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "TaxedMoneyRange", @@ -108142,7 +111356,7 @@ { "kind": "ENUM", "name": "TransactionActionEnum", - "description": "Represents possible actions on payment transaction.\n\n The following actions are possible:\n CHARGE - Represents the charge action.\n REFUND - Represents a refund action.\n VOID - Represents a void action. This field will be removed\n in Saleor 3.14 (Preview Feature). Use `CANCEL` instead.\n CANCEL - Represents a cancel action. Added in Saleor 3.12.\n ", + "description": "Represents possible actions on payment transaction.\n\n The following actions are possible:\n CHARGE - Represents the charge action.\n REFUND - Represents a refund action.\n VOID - Represents a void action. This field will be removed\n in Saleor 3.14 (Preview Feature). Use `CANCEL` instead.\n CANCEL - Represents a cancel action. Added in Saleor 3.12.", "fields": null, "inputFields": null, "interfaces": null, @@ -108606,7 +111820,7 @@ "inputFields": [ { "name": "status", - "description": "Status of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.", + "description": "Status of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.", "type": { "kind": "SCALAR", "name": "String", @@ -108618,7 +111832,7 @@ }, { "name": "type", - "description": "Payment type used for this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead.", + "description": "Payment type used for this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `name` and `message` instead.", "type": { "kind": "SCALAR", "name": "String", @@ -108654,7 +111868,7 @@ }, { "name": "reference", - "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead.", + "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `pspReference` instead.", "type": { "kind": "SCALAR", "name": "String", @@ -108734,7 +111948,7 @@ }, { "name": "amountVoided", - "description": "Amount voided by this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead.", + "description": "Amount voided by this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `amountCanceled` instead.", "type": { "kind": "INPUT_OBJECT", "name": "MoneyInput", @@ -108860,7 +112074,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature). Use `type` instead." + "deprecationReason": "This field will be removed in Saleor 3.15 (Preview Feature). Use `type` instead." }, { "name": "reference", @@ -108876,7 +112090,7 @@ } }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature).Use `pspReference` instead." + "deprecationReason": "This field will be removed in Saleor 3.15 (Preview Feature).Use `pspReference` instead." }, { "name": "pspReference", @@ -108904,7 +112118,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead." + "deprecationReason": "This field will be removed in Saleor 3.15 (Preview Feature). Use `message` instead." }, { "name": "message", @@ -108998,7 +112212,7 @@ "inputFields": [ { "name": "status", - "description": "Current status of the payment transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Status will be calculated by Saleor.", + "description": "Current status of the payment transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Status will be calculated by Saleor.", "type": { "kind": "ENUM", "name": "TransactionStatus", @@ -109010,7 +112224,7 @@ }, { "name": "reference", - "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead.", + "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `pspReference` instead.", "type": { "kind": "SCALAR", "name": "String", @@ -109034,7 +112248,7 @@ }, { "name": "name", - "description": "Name of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead. `name` field will be added to `message`.", + "description": "Name of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `message` instead. `name` field will be added to `message`.", "type": { "kind": "SCALAR", "name": "String", @@ -109064,7 +112278,7 @@ { "kind": "OBJECT", "name": "TransactionEventReport", - "description": "Report the event for the transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", + "description": "Report the event for the transaction.\n\nAdded in Saleor 3.13.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app.", "fields": [ { "name": "alreadyProcessed", @@ -109227,7 +112441,7 @@ { "kind": "ENUM", "name": "TransactionEventTypeEnum", - "description": "Represents possible event types.\n\n Added in Saleor 3.12.\n\n The following types are possible:\n AUTHORIZATION_SUCCESS - represents success authorization.\n AUTHORIZATION_FAILURE - represents failure authorization.\n AUTHORIZATION_ADJUSTMENT - represents authorization adjustment.\n AUTHORIZATION_REQUEST - represents authorization request.\n AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs\n additional actions from the customer.\n CHARGE_ACTION_REQUIRED - represents charge that needs\n additional actions from the customer.\n CHARGE_SUCCESS - represents success charge.\n CHARGE_FAILURE - represents failure charge.\n CHARGE_BACK - represents chargeback.\n CHARGE_REQUEST - represents charge request.\n REFUND_SUCCESS - represents success refund.\n REFUND_FAILURE - represents failure refund.\n REFUND_REVERSE - represents reverse refund.\n REFUND_REQUEST - represents refund request.\n CANCEL_SUCCESS - represents success cancel.\n CANCEL_FAILURE - represents failure cancel.\n CANCEL_REQUEST - represents cancel request.\n INFO - represents info event.\n ", + "description": "Represents possible event types.\n\n Added in Saleor 3.12.\n\n The following types are possible:\n AUTHORIZATION_SUCCESS - represents success authorization.\n AUTHORIZATION_FAILURE - represents failure authorization.\n AUTHORIZATION_ADJUSTMENT - represents authorization adjustment.\n AUTHORIZATION_REQUEST - represents authorization request.\n AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs\n additional actions from the customer.\n CHARGE_ACTION_REQUIRED - represents charge that needs\n additional actions from the customer.\n CHARGE_SUCCESS - represents success charge.\n CHARGE_FAILURE - represents failure charge.\n CHARGE_BACK - represents chargeback.\n CHARGE_REQUEST - represents charge request.\n REFUND_SUCCESS - represents success refund.\n REFUND_FAILURE - represents failure refund.\n REFUND_REVERSE - represents reverse refund.\n REFUND_REQUEST - represents refund request.\n CANCEL_SUCCESS - represents success cancel.\n CANCEL_FAILURE - represents failure cancel.\n CANCEL_REQUEST - represents cancel request.\n INFO - represents info event.", "fields": null, "inputFields": null, "interfaces": null, @@ -109346,7 +112560,7 @@ { "kind": "ENUM", "name": "TransactionFlowStrategyEnum", - "description": "Determine the transaction flow strategy.\n\n AUTHORIZATION - the processed transaction should be only authorized\n CHARGE - the processed transaction should be charged.\n ", + "description": "Determine the transaction flow strategy.\n\n AUTHORIZATION - the processed transaction should be only authorized\n CHARGE - the processed transaction should be charged.", "fields": null, "inputFields": null, "interfaces": null, @@ -109985,7 +113199,7 @@ } }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature).Use `canceledAmount` instead." + "deprecationReason": "This field will be removed in Saleor 3.15 (Preview Feature).Use `canceledAmount` instead." }, { "name": "canceledAmount", @@ -110065,7 +113279,7 @@ } }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions." + "deprecationReason": "This field will be removed in Saleor 3.15 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions." }, { "name": "type", @@ -110081,7 +113295,7 @@ } }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature). Use `name` or `message` instead." + "deprecationReason": "This field will be removed in Saleor 3.15 (Preview Feature). Use `name` or `message` instead." }, { "name": "name", @@ -110129,7 +113343,7 @@ } }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 3.14 (Preview Feature).Use `pspReference` instead." + "deprecationReason": "This field will be removed in Saleor 3.15 (Preview Feature).Use `pspReference` instead." }, { "name": "pspReference", @@ -110974,7 +114188,7 @@ { "kind": "ENUM", "name": "TransactionStatus", - "description": "Represents a status of payment transaction.\n\n The following statuses are possible:\n SUCCESS - Represents a sucess action.\n FAILURE - Represents a failure action.\n PENDING - Represents a pending action.\n ", + "description": "Represents a status of payment transaction.\n\n The following statuses are possible:\n SUCCESS - Represents a sucess action.\n FAILURE - Represents a failure action.\n PENDING - Represents a pending action.", "fields": null, "inputFields": null, "interfaces": null, @@ -111003,7 +114217,7 @@ { "kind": "OBJECT", "name": "TransactionUpdate", - "description": "Create transaction for checkout or order.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS.", + "description": "Update transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app.", "fields": [ { "name": "transaction", @@ -111153,7 +114367,7 @@ "inputFields": [ { "name": "status", - "description": "Status of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.", + "description": "Status of the transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.", "type": { "kind": "SCALAR", "name": "String", @@ -111165,7 +114379,7 @@ }, { "name": "type", - "description": "Payment type used for this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead.", + "description": "Payment type used for this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `name` and `message` instead.", "type": { "kind": "SCALAR", "name": "String", @@ -111201,7 +114415,7 @@ }, { "name": "reference", - "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead.", + "description": "Reference of the transaction. \n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `pspReference` instead.", "type": { "kind": "SCALAR", "name": "String", @@ -111281,7 +114495,7 @@ }, { "name": "amountVoided", - "description": "Amount voided by this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead.", + "description": "Amount voided by this transaction.\n\nDEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `amountCanceled` instead.", "type": { "kind": "INPUT_OBJECT", "name": "MoneyInput", @@ -112981,7 +116195,7 @@ "name": "ThumbnailFormatEnum", "ofType": null }, - "defaultValue": null, + "defaultValue": "ORIGINAL", "isDeprecated": false, "deprecationReason": null } @@ -119992,6 +123206,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ORDER_BULK_CREATED", + "description": "Orders are imported.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "DRAFT_ORDER_CREATED", "description": "A draft order is created.", @@ -120711,6 +123931,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ORDER_BULK_CREATED", + "description": "Orders are imported.\n\nAdded in Saleor 3.14.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "DRAFT_ORDER_CREATED", "description": "A draft order is created.", @@ -121651,6 +124877,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ORDER_BULK_CREATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "DRAFT_ORDER_CREATED", "description": null, diff --git a/schema.graphql b/schema.graphql index a29994591..d5421c082 100644 --- a/schema.graphql +++ b/schema.graphql @@ -488,7 +488,6 @@ Determine the allocation strategy for the channel. within the channel PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock - """ enum AllocationStrategyEnum { PRIORITIZE_SORTING_ORDER @@ -623,6 +622,15 @@ type App implements Node & ObjectWithMetadata { Added in Saleor 3.1. """ extensions: [AppExtension!]! + + """ + App's brand data. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + brand: AppBrand } """ @@ -636,6 +644,56 @@ type AppActivate { app: App } +""" +Represents the app's brand data. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type AppBrand { + """ + App's logos details. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + logo: AppBrandLogo! +} + +""" +Represents the app's brand logo data. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type AppBrandLogo { + """ + URL to the default logo image. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + default( + """ + 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. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + format: IconThumbnailFormatEnum = ORIGINAL + ): String! +} + type AppCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! @@ -824,7 +882,6 @@ 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 @@ -896,6 +953,15 @@ type AppInstallation implements Node & Job { message: String appName: String! manifestUrl: String! + + """ + App's brand data. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + brand: AppBrand } """ @@ -920,6 +986,56 @@ type AppInstalled implements Event { app: App } +""" +Represents the app's manifest brand data. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type AppManifestBrand { + """ + App's logos details. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + logo: AppManifestBrandLogo! +} + +""" +Represents the app's manifest brand data. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type AppManifestBrandLogo { + """ + Data URL with a base64 encoded logo image. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + default( + """ + 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. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + format: IconThumbnailFormatEnum = ORIGINAL + ): String! +} + type AppManifestExtension { """List of the app extension's permissions.""" permissions: [Permission!]! @@ -1345,6 +1461,59 @@ type AttributeBulkDelete { errors: [AttributeError!]! } +""" +Creates/updates translations for attributes. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type AttributeBulkTranslate { + """Returns how many translations were created/updated.""" + count: Int! + + """List of the translations.""" + results: [AttributeBulkTranslateResult!]! + errors: [AttributeBulkTranslateError!]! +} + +type AttributeBulkTranslateError { + """ + Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + path: String + + """The error message.""" + message: String + + """The error code.""" + code: AttributeTranslateErrorCode! +} + +input AttributeBulkTranslateInput { + """Attribute ID.""" + id: ID + + """External reference of an attribute.""" + externalReference: String + + """Translation language code.""" + languageCode: LanguageCodeEnum! + + """Translation fields.""" + translationFields: NameTranslationInput! +} + +type AttributeBulkTranslateResult { + """Attribute translation data.""" + translation: AttributeTranslation + + """List of errors occurred on translation attempt.""" + errors: [AttributeBulkTranslateError!] +} + enum AttributeChoicesSortField { """Sort attribute choice by name.""" NAME @@ -1685,6 +1854,14 @@ type AttributeTranslate { attribute: Attribute } +"""An enumeration.""" +enum AttributeTranslateErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED +} + type AttributeTranslation implements Node { id: ID! @@ -1868,6 +2045,59 @@ type AttributeValueBulkDelete { errors: [AttributeError!]! } +""" +Creates/updates translations for attributes values. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" +type AttributeValueBulkTranslate { + """Returns how many translations were created/updated.""" + count: Int! + + """List of the translations.""" + results: [AttributeValueBulkTranslateResult!]! + errors: [AttributeValueBulkTranslateError!]! +} + +type AttributeValueBulkTranslateError { + """ + Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + path: String + + """The error message.""" + message: String + + """The error code.""" + code: AttributeValueTranslateErrorCode! +} + +input AttributeValueBulkTranslateInput { + """Attribute value ID.""" + id: ID + + """External reference of an attribute value.""" + externalReference: String + + """Translation language code.""" + languageCode: LanguageCodeEnum! + + """Translation fields.""" + translationFields: AttributeValueTranslationInput! +} + +type AttributeValueBulkTranslateResult { + """Attribute value translation data.""" + translation: AttributeValueTranslation + + """List of errors occurred on translation attempt.""" + errors: [AttributeValueBulkTranslateError!] +} + type AttributeValueCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! @@ -2003,27 +2233,34 @@ input AttributeValueInput { """ID of the selected attribute.""" id: ID + """ + External ID of this attribute. + + Added in Saleor 3.14. + """ + externalReference: String + """ 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. + Attribute value ID or external reference. Added in Saleor 3.9. """ dropdown: AttributeValueSelectableTypeInput """ - Attribute value ID. + Attribute value ID or external reference. Added in Saleor 3.9. """ swatch: AttributeValueSelectableTypeInput """ - List of attribute value IDs. + List of attribute value IDs or external references. Added in Saleor 3.9. """ @@ -2062,7 +2299,11 @@ input AttributeValueInput { } """ -Represents attribute value. If no ID provided, value will be resolved. +Represents attribute value. +1. If ID is provided, then attribute value will be resolved by ID. +2. If externalReference is provided, then attribute value will be resolved by external reference. +3. If value is provided, then attribute value will be resolved by value. If this attribute value doesn't exist, then it will be created. +4. If externalReference and value is provided then new attribute value will be created. Added in Saleor 3.9. """ @@ -2070,6 +2311,13 @@ input AttributeValueSelectableTypeInput { """ID of an attribute value.""" id: ID + """ + External reference of an attribute value. + + Added in Saleor 3.14. + """ + externalReference: String + """ The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. """ @@ -2118,6 +2366,14 @@ type AttributeValueTranslate { attributeValue: AttributeValue } +"""An enumeration.""" +enum AttributeValueTranslateErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED +} + type AttributeValueTranslation implements Node { id: ID! @@ -2258,6 +2514,13 @@ input BulkAttributeValueInput { """ID of the selected attribute.""" id: ID + """ + External ID of this attribute. + + Added in Saleor 3.14. + """ + externalReference: String + """ 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. """ @@ -2549,6 +2812,15 @@ type Category implements Node & ObjectWithMetadata { """ filter: ProductFilterInput + """ + Filtering options for products. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + where: ProductWhereInput + """ Sort products. @@ -2605,7 +2877,7 @@ type Category implements Node & ObjectWithMetadata { Added in Saleor 3.6. """ - format: ThumbnailFormatEnum + format: ThumbnailFormatEnum = ORIGINAL ): Image """Returns translated category fields for the given language code.""" @@ -3496,7 +3768,6 @@ Determine a current authorize status for checkout. NONE - the funds are not authorized PARTIAL - the cover funds don't cover fully the checkout's total FULL - the cover funds covers the checkout's total - """ enum CheckoutAuthorizeStatusEnum { NONE @@ -3527,7 +3798,6 @@ Determine the current charge status for the checkout. PARTIAL - the funds that are charged don't cover the checkout's total FULL - the funds that are charged fully cover the checkout's total OVERCHARGED - the charged funds are bigger than checkout's total - """ enum CheckoutChargeStatusEnum { NONE @@ -4246,6 +4516,15 @@ type Collection implements Node & ObjectWithMetadata { """Filtering options for products.""" filter: ProductFilterInput + """ + Filtering options for products. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + where: ProductWhereInput + """Sort products.""" sortBy: ProductOrder @@ -4276,7 +4555,7 @@ type Collection implements Node & ObjectWithMetadata { Added in Saleor 3.6. """ - format: ThumbnailFormatEnum + format: ThumbnailFormatEnum = ORIGINAL ): Image """Returns translated collection fields for the given language code.""" @@ -5500,6 +5779,9 @@ input DateTimeRangeInput { lte: DateTime } +"""The `Day` scalar type represents number of days by integer value.""" +scalar Day + """ Deactivate all JWT tokens of the currently authenticated user. @@ -5518,6 +5800,32 @@ parses float to the Decimal on the way back. """ scalar Decimal +""" +Define the filtering options for decimal fields. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +input DecimalFilterInput { + """The value equal to.""" + eq: Decimal + + """The value included in.""" + oneOf: [Decimal!] + + """The value in range.""" + range: DecimalRangeInput +} + +input DecimalRangeInput { + """Decimal value greater than or equal to.""" + gte: Decimal + + """Decimal value less than or equal to.""" + lte: Decimal +} + """ Delete metadata of an object. To use it, you need to have access to the modified object. """ @@ -6933,7 +7241,7 @@ type GiftCard implements Node & ObjectWithMetadata { Added in Saleor 3.1. """ - usedBy: User + usedBy: User @deprecated(reason: "This field will be removed in Saleor 4.0.") """ Email address of the user who bought or issued gift card. @@ -6949,7 +7257,7 @@ type GiftCard implements Node & ObjectWithMetadata { Added in Saleor 3.1. """ - usedByEmail: String + usedByEmail: String @deprecated(reason: "This field will be removed in Saleor 4.0.") lastUsedOn: DateTime expiryDate: Date @@ -7690,6 +7998,21 @@ type GiftCardUpdated implements Event { giftCard: GiftCard } +""" +Define the filtering options for foreign key fields. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +input GlobalIDFilterInput { + """The value equal to.""" + eq: ID + + """The value included in.""" + oneOf: [ID!] +} + """Represents permission group data.""" type Group implements Node { id: ID! @@ -7746,6 +8069,12 @@ type GroupCountableEdge { cursor: String! } +"""Thumbnail formats for icon images.""" +enum IconThumbnailFormatEnum { + ORIGINAL + WEBP +} + """Represents an image.""" type Image { """The URL of the image.""" @@ -8921,6 +9250,15 @@ type Manifest { Note: this API is currently in Feature Preview and can be subject to changes at later point. """ author: String + + """ + App's brand data. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + brand: AppManifestBrand } type Margin { @@ -8936,8 +9274,6 @@ Determine the mark as paid strategy for the channel. PAYMENT_FLOW - new orders marked as paid will receive a `Payment` object, that will cover the `order.total`. - - """ enum MarkAsPaidStrategyEnum { TRANSACTION_FLOW @@ -10014,7 +10350,7 @@ type Mutation { 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. @@ -10047,7 +10383,7 @@ type Mutation { orderSettingsUpdate( """Fields required to update shop order settings.""" input: OrderSettingsUpdateInput! - ): OrderSettingsUpdate @deprecated(reason: "\n\nDEPRECATED: this mutation will be removed in Saleor 4.0. Use `channelUpdate` mutation instead.") + ): OrderSettingsUpdate @deprecated(reason: "\\n\\nDEPRECATED: this mutation will be removed in Saleor 4.0. Use `channelUpdate` mutation instead.") """ Update gift card settings. @@ -11044,13 +11380,13 @@ type Mutation { ): TransactionCreate """ - Create transaction for checkout or order. + Update transaction. Added in Saleor 3.4. Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires the following permissions: OWNER and HANDLE_PAYMENTS. + Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app. """ transactionUpdate( """The ID of the transaction.""" @@ -11092,7 +11428,7 @@ type Mutation { Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires the following permissions: OWNER and HANDLE_PAYMENTS. + Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app. """ transactionEventReport( """The amount of the event to report.""" @@ -11766,6 +12102,28 @@ type Mutation { ids: [ID!]! ): OrderBulkCancel + """ + Creates multiple orders. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_ORDERS_IMPORT. + """ + orderBulkCreate( + """Policies of error handling. DEFAULT: REJECT_EVERYTHING""" + errorPolicy: ErrorPolicyEnum + + """Input list of orders to create. Orders limit: 50.""" + orders: [OrderBulkCreateInput!]! + + """ + Determine how stock should be updated, while processing the order. DEFAULT: UPDATE - Only do update, if there is enough stocks. + """ + stockUpdatePolicy: StockUpdatePolicyEnum + ): OrderBulkCreate + """ Delete metadata of an object. To use it, you need to have access to the modified object. """ @@ -13046,6 +13404,23 @@ type Mutation { languageCode: LanguageCodeEnum! ): AttributeTranslate + """ + Creates/updates translations for attributes. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ + attributeBulkTranslate( + """Policies of error handling. DEFAULT: REJECT_EVERYTHING""" + errorPolicy: ErrorPolicyEnum + + """List of attributes translations.""" + translations: [AttributeBulkTranslateInput!]! + ): AttributeBulkTranslate + """ Deletes attributes. @@ -13116,6 +13491,23 @@ type Mutation { input: AttributeValueUpdateInput! ): AttributeValueUpdate + """ + Creates/updates translations for attributes values. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ + attributeValueBulkTranslate( + """Policies of error handling. DEFAULT: REJECT_EVERYTHING""" + errorPolicy: ErrorPolicyEnum + + """List of attribute values translations.""" + translations: [AttributeValueBulkTranslateInput!]! + ): AttributeValueBulkTranslate + """ Creates/updates translations for an attribute value. @@ -14027,7 +14419,7 @@ type Order implements Node & ObjectWithMetadata { """Amount authorized for the order.""" totalAuthorized: Money! - """Amount captured for the order. """ + """Amount captured for the order.""" totalCaptured: Money! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `totalCharged` instead.") """ @@ -14245,7 +14637,6 @@ Determine a current authorize status for order. `order.total`-`order.totalGrantedRefund` FULL - the funds that are authorized and charged fully cover the `order.total`-`order.totalGrantedRefund` - """ enum OrderAuthorizeStatusEnum { NONE @@ -14265,6 +14656,345 @@ type OrderBulkCancel { errors: [OrderError!]! } +""" +Creates multiple orders. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: MANAGE_ORDERS_IMPORT. +""" +type OrderBulkCreate { + """Returns how many objects were created.""" + count: Int! + + """List of the created orders.""" + results: [OrderBulkCreateResult!]! + errors: [OrderBulkCreateError!]! +} + +input OrderBulkCreateDeliveryMethodInput { + """The ID of the warehouse.""" + warehouseId: ID + + """The name of the warehouse.""" + warehouseName: String + + """The ID of the shipping method.""" + shippingMethodId: ID + + """The name of the shipping method.""" + shippingMethodName: String + + """The price of the shipping.""" + shippingPrice: TaxedMoneyInput + + """Tax rate of the shipping.""" + shippingTaxRate: PositiveDecimal + + """The ID of the tax class.""" + shippingTaxClassId: ID + + """The name of the tax class.""" + shippingTaxClassName: String + + """Metadata of the tax class.""" + shippingTaxClassMetadata: [MetadataInput!] + + """Private metadata of the tax class.""" + shippingTaxClassPrivateMetadata: [MetadataInput!] +} + +type OrderBulkCreateError { + """ + Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + path: String + + """The error message.""" + message: String + + """The error code.""" + code: OrderBulkCreateErrorCode +} + +"""An enumeration.""" +enum OrderBulkCreateErrorCode { + GRAPHQL_ERROR + REQUIRED + INVALID + NOT_FOUND + UNIQUE + BULK_LIMIT + TOO_MANY_IDENTIFIERS + FUTURE_DATE + INVALID_QUANTITY + PRICE_ERROR + NOTE_LENGTH + INSUFFICIENT_STOCK + NON_EXISTING_STOCK + NO_RELATED_ORDER_LINE + NEGATIVE_INDEX + ORDER_LINE_FULFILLMENT_LINE_MISMATCH + METADATA_KEY_REQUIRED + INCORRECT_CURRENCY +} + +input OrderBulkCreateFulfillmentInput { + """Fulfillment's tracking code.""" + trackingCode: String + + """List of items informing how to fulfill the order.""" + lines: [OrderBulkCreateFulfillmentLineInput!] +} + +input OrderBulkCreateFulfillmentLineInput { + """The ID of the product variant.""" + variantId: ID + + """The SKU of the product variant.""" + variantSku: String + + """The external ID of the product variant.""" + variantExternalReference: String + + """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! + + """0-based index of order line, which the fulfillment line refers to.""" + orderLineIndex: Int! +} + +input OrderBulkCreateInput { + """External ID of the order.""" + externalReference: String + + """Slug of the channel associated with the order.""" + channel: String! + + """The date, when the order was inserted to Saleor database.""" + createdAt: DateTime! + + """Status of the order.""" + status: OrderStatus + + """Customer associated with the order.""" + user: OrderBulkCreateUserInput! + + """Tracking ID of the customer.""" + trackingClientId: String + + """Billing address of the customer.""" + billingAddress: AddressInput! + + """Shipping address of the customer.""" + shippingAddress: AddressInput + + """Currency code.""" + currency: String! + + """Metadata of the order.""" + metadata: [MetadataInput!] + + """Private metadata of the order.""" + privateMetadata: [MetadataInput!] + + """Note about customer.""" + customerNote: String + + """Notes related to the order.""" + notes: [OrderBulkCreateNoteInput!] + + """Order language code.""" + languageCode: LanguageCodeEnum! + + """ + Determines whether checkout prices should include taxes, when displayed in a storefront. + """ + displayGrossPrices: Boolean + + """Weight of the order in kg.""" + weight: WeightScalar + + """ + URL of a view, where users should be redirected to see the order details. + """ + redirectUrl: String + + """List of order lines.""" + lines: [OrderBulkCreateOrderLineInput!]! + + """The delivery method selected for this order.""" + deliveryMethod: OrderBulkCreateDeliveryMethodInput + + """List of gift card codes associated with the order.""" + giftCards: [String!] + + """Code of a voucher associated with the order.""" + voucher: String + + """List of discounts.""" + discounts: [OrderDiscountCommonInput!] + + """Fulfillments of the order.""" + fulfillments: [OrderBulkCreateFulfillmentInput!] + + """Transactions related to the order.""" + transactions: [TransactionCreateInput!] + + """Invoices related to the order.""" + invoices: [OrderBulkCreateInvoiceInput!] +} + +input OrderBulkCreateInvoiceInput { + """The date, when the invoice was created.""" + createdAt: DateTime! + + """Invoice number.""" + number: String + + """URL of the invoice to download.""" + url: String + + """Metadata of the invoice.""" + metadata: [MetadataInput!] + + """Private metadata of the invoice.""" + privateMetadata: [MetadataInput!] +} + +input OrderBulkCreateNoteInput { + """Note message. Max characters: 255.""" + message: String! + + """The date associated with the message.""" + date: DateTime + + """The user ID associated with the message.""" + userId: ID + + """The user email associated with the message.""" + userEmail: ID + + """The user external ID associated with the message.""" + userExternalReference: ID + + """The app ID associated with the message.""" + appId: ID +} + +input OrderBulkCreateOrderLineInput { + """The ID of the product variant.""" + variantId: ID + + """The SKU of the product variant.""" + variantSku: String + + """The external ID of the product variant.""" + variantExternalReference: String + + """The name of the product variant.""" + variantName: String + + """The name of the product.""" + productName: String + + """Translation of the product variant name.""" + translatedVariantName: String + + """Translation of the product name.""" + translatedProductName: String + + """The date, when the order line was created.""" + createdAt: DateTime! + + """Determines whether shipping of the order line items is required.""" + isShippingRequired: Boolean! + + """Gift card flag.""" + isGiftCard: Boolean! + + """Number of items in the order line""" + quantity: Int! + + """Price of the order line.""" + totalPrice: TaxedMoneyInput! + + """Price of the order line excluding applied discount.""" + undiscountedTotalPrice: TaxedMoneyInput! + + """The ID of the warehouse, where the line will be allocated.""" + warehouse: ID! + + """Metadata of the order line.""" + metadata: [MetadataInput!] + + """Private metadata of the order line.""" + privateMetadata: [MetadataInput!] + + """Tax rate of the order line.""" + taxRate: PositiveDecimal + + """The ID of the tax class.""" + taxClassId: ID + + """The name of the tax class.""" + taxClassName: String + + """Metadata of the tax class.""" + taxClassMetadata: [MetadataInput!] + + """Private metadata of the tax class.""" + taxClassPrivateMetadata: [MetadataInput!] +} + +type OrderBulkCreateResult { + """Order data.""" + order: Order + + """List of errors occurred on create attempt.""" + errors: [OrderBulkCreateError!] +} + +input OrderBulkCreateUserInput { + """Customer ID associated with the order.""" + id: ID + + """Customer email associated with the order.""" + email: String + + """Customer external ID associated with the order.""" + externalReference: String +} + +""" +Event sent when orders are imported. + +Added in Saleor 3.14. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type OrderBulkCreated 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 orders the event relates to.""" + orders: [Order!] +} + """ Cancel an order. @@ -14330,7 +15060,6 @@ Determine the current charge status for the order. `order.total`-`order.totalGrantedRefund` OVERCHARGED - the charged funds are bigger than the `order.total`-`order.totalGrantedRefund` - """ enum OrderChargeStatusEnum { NONE @@ -14687,7 +15416,7 @@ type OrderEvent implements Node { discount: OrderEventDiscountObject """The status of payment's transaction.""" - status: TransactionStatus @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature).Use `TransactionEvent` to track the status of `TransactionItem`.") + status: TransactionStatus @deprecated(reason: "This field will be removed in Saleor 3.15 (Preview Feature).Use `TransactionEvent` to track the status of `TransactionItem`.") """The reference of payment's transaction.""" reference: String @@ -14760,7 +15489,7 @@ enum OrderEventsEmailsEnum { DIGITAL_LINKS } -"""The different order event types. """ +"""The different order event types.""" enum OrderEventsEnum { DRAFT_CREATED DRAFT_CREATED_FROM_REPLACE @@ -14795,13 +15524,13 @@ enum OrderEventsEnum { TRANSACTION_CHARGE_REQUESTED """ - This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead. + This field will be removed in Saleor 3.15 (Preview Feature). Use `TRANSACTION_CHARGE_REQUESTED` instead. """ TRANSACTION_CAPTURE_REQUESTED TRANSACTION_REFUND_REQUESTED """ - This field will be removed in Saleor 3.14 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead. + This field will be removed in Saleor 3.15 (Preview Feature). Use `TRANSACTION_CANCEL_REQUESTED` instead. """ TRANSACTION_VOID_REQUESTED TRANSACTION_CANCEL_REQUESTED @@ -15217,7 +15946,7 @@ type OrderLine implements Node & ObjectWithMetadata { Added in Saleor 3.6. """ - format: ThumbnailFormatEnum + format: ThumbnailFormatEnum = ORIGINAL ): Image """Price of the single item in the order line.""" @@ -15309,6 +16038,15 @@ input OrderLineCreateInput { Added in Saleor 3.6. """ forceNewLine: Boolean = false + + """ + Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + price: PositiveDecimal } """ @@ -15430,6 +16168,7 @@ enum OrderOriginEnum { CHECKOUT DRAFT REISSUE + BULK_CREATE } """ @@ -15605,6 +16344,15 @@ type OrderSettings { Note: this API is currently in Feature Preview and can be subject to changes at later point. """ defaultTransactionFlowStrategy: TransactionFlowStrategyEnum! + + """ + The time in days after expired orders will be deleted. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + deleteExpiredOrdersAfter: Day! } type OrderSettingsError { @@ -15645,6 +16393,15 @@ input OrderSettingsInput { """ expireOrdersAfter: Minute + """ + The time in days after expired orders will be deleted.Allowed range is from 1 to 120. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + deleteExpiredOrdersAfter: Day + """ Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. `PAYMENT_FLOW` - [default option] creates the `Payment` object. @@ -17102,7 +17859,7 @@ input PaymentInput { Added in Saleor 3.1. """ - storePaymentMethod: StorePaymentMethodEnum + storePaymentMethod: StorePaymentMethodEnum = NONE """ User public metadata. @@ -17272,6 +18029,7 @@ enum PermissionEnum { MANAGE_GIFT_CARD MANAGE_MENUS MANAGE_ORDERS + MANAGE_ORDERS_IMPORT MANAGE_PAGES MANAGE_PAGE_TYPES_AND_ATTRIBUTES HANDLE_PAYMENTS @@ -17784,7 +18542,7 @@ type Product implements Node & ObjectWithMetadata { Added in Saleor 3.6. """ - format: ThumbnailFormatEnum + format: ThumbnailFormatEnum = ORIGINAL ): Image """ @@ -18619,7 +19377,7 @@ type ProductImage { Added in Saleor 3.6. """ - format: ThumbnailFormatEnum + format: ThumbnailFormatEnum = ORIGINAL ): String! } @@ -18772,7 +19530,7 @@ type ProductMedia implements Node & ObjectWithMetadata { Added in Saleor 3.6. """ - format: ThumbnailFormatEnum + format: ThumbnailFormatEnum = ORIGINAL ): String! """ @@ -19977,7 +20735,7 @@ input ProductVariantBulkUpdateInput { id: ID! } -"""Represents product varaint channel listing.""" +"""Represents product variant channel listing.""" type ProductVariantChannelListing implements Node { id: ID! channel: Channel! @@ -20515,6 +21273,74 @@ type ProductVariantUpdated implements Event { ): ProductVariant } +input ProductWhereInput { + metadata: [MetadataFilter!] + ids: [ID!] + + """Filter by product name.""" + name: StringFilterInput + + """Filter by product slug.""" + slug: StringFilterInput + + """Filter by product type.""" + productType: GlobalIDFilterInput + + """Filter by product category.""" + category: GlobalIDFilterInput + + """Filter by collection.""" + collection: GlobalIDFilterInput + + """Filter by availability for purchase.""" + isAvailable: Boolean + + """Filter by public visibility.""" + isPublished: Boolean + + """Filter by visibility on the channel.""" + isVisibleInListing: Boolean + + """Filter by the publication date.""" + publishedFrom: DateTime + + """Filter by the date of availability for purchase.""" + availableFrom: DateTime + + """Filter by product with category assigned.""" + hasCategory: Boolean + + """Filter by product variant price.""" + price: DecimalFilterInput + + """Filter by the lowest variant price after discounts.""" + minimalPrice: DecimalFilterInput + + """Filter by attributes associated with the product.""" + attributes: [AttributeInput!] + + """Filter by variants having specific stock status.""" + stockAvailability: StockAvailability + + """Filter by stock of the product variant.""" + stocks: ProductStockFilterInput + + """Filter on whether product is a gift card or not.""" + giftCard: Boolean + + """Filter by product with preordered variants.""" + hasPreorderedVariants: Boolean + + """Filter by when was the most recent update.""" + updatedAt: DateTimeRangeInput + + """List of conditions that must be met.""" + AND: [ProductWhereInput!] + + """A list of conditions of which at least one must be met.""" + OR: [ProductWhereInput!] +} + input PublishableChannelListingInput { """ID of a channel.""" channelId: ID! @@ -20737,9 +21563,7 @@ type Query { ): TaxCountryConfiguration """ - - - Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. + \n\nRequires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. """ taxCountryConfigurations: [TaxCountryConfiguration!] @@ -20979,9 +21803,25 @@ type Query { """Filtering options for products.""" filter: ProductFilterInput + """ + Where filtering options. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + where: ProductWhereInput + """Sort products.""" sortBy: ProductOrder + """ + Search products. + + Added in Saleor 3.14. + """ + search: String + """Slug of a channel for which the data should be returned.""" channel: String @@ -24513,6 +25353,19 @@ input StockUpdateInput { quantity: Int! } +""" +Determine how stocks should be updated, while processing an order. + + SKIP - stocks are not checked and not updated. + UPDATE - only do update, if there is enough stock. + FORCE - force update, if there is not enough stock. +""" +enum StockUpdatePolicyEnum { + SKIP + UPDATE + FORCE +} + """Enum representing the type of a payment storage in a gateway.""" enum StorePaymentMethodEnum { """ @@ -25216,6 +26069,14 @@ type TaxedMoney { tax: Money! } +input TaxedMoneyInput { + """Gross value of an item.""" + gross: PositiveDecimal! + + """Net value of an item.""" + net: PositiveDecimal! +} + """Represents a range of monetary values.""" type TaxedMoneyRange { """Lower bound of a price range.""" @@ -25335,7 +26196,6 @@ Represents possible actions on payment transaction. VOID - Represents a void action. This field will be removed in Saleor 3.14 (Preview Feature). Use `CANCEL` instead. CANCEL - Represents a cancel action. Added in Saleor 3.12. - """ enum TransactionActionEnum { CHARGE @@ -25466,14 +26326,14 @@ input TransactionCreateInput { """ Status of the transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. """ status: String """ Payment type used for this transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `name` and `message` instead. """ type: String @@ -25494,7 +26354,7 @@ input TransactionCreateInput { """ Reference of the transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `pspReference` instead. """ reference: String @@ -25520,7 +26380,7 @@ input TransactionCreateInput { """ Amount voided by this transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `amountCanceled` instead. """ amountVoided: MoneyInput @@ -25552,10 +26412,10 @@ type TransactionEvent implements Node { createdAt: DateTime! """Status of transaction's event.""" - status: TransactionStatus @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature). Use `type` instead.") + status: TransactionStatus @deprecated(reason: "This field will be removed in Saleor 3.15 (Preview Feature). Use `type` instead.") """Reference of transaction's event.""" - reference: String! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature).Use `pspReference` instead.") + reference: String! @deprecated(reason: "This field will be removed in Saleor 3.15 (Preview Feature).Use `pspReference` instead.") """ PSP reference of transaction. @@ -25565,7 +26425,7 @@ type TransactionEvent implements Node { pspReference: String! """Name of the transaction's event.""" - name: String @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead.") + name: String @deprecated(reason: "This field will be removed in Saleor 3.15 (Preview Feature). Use `message` instead.") """ Message related to the transaction's event. @@ -25607,14 +26467,14 @@ input TransactionEventInput { """ Current status of the payment transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Status will be calculated by Saleor. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Status will be calculated by Saleor. """ status: TransactionStatus """ Reference of the transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `pspReference` instead. """ reference: String @@ -25628,7 +26488,7 @@ input TransactionEventInput { """ Name of the transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `message` instead. `name` field will be added to `message`. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `message` instead. `name` field will be added to `message`. """ name: String @@ -25647,7 +26507,7 @@ Added in Saleor 3.13. Note: this API is currently in Feature Preview and can be subject to changes at later point. -Requires the following permissions: OWNER and HANDLE_PAYMENTS. +Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app. """ type TransactionEventReport { """Defines if the reported event hasn't been processed earlier.""" @@ -25711,7 +26571,6 @@ Represents possible event types. CANCEL_FAILURE - represents failure cancel. CANCEL_REQUEST - represents cancel request. INFO - represents info event. - """ enum TransactionEventTypeEnum { AUTHORIZATION_SUCCESS @@ -25739,7 +26598,6 @@ Determine the transaction flow strategy. AUTHORIZATION - the processed transaction should be only authorized CHARGE - the processed transaction should be charged. - """ enum TransactionFlowStrategyEnum { AUTHORIZATION @@ -25906,7 +26764,7 @@ type TransactionItem implements Node & ObjectWithMetadata { refundPendingAmount: Money! """Total amount voided for this payment.""" - voidedAmount: Money! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature).Use `canceledAmount` instead.") + voidedAmount: Money! @deprecated(reason: "This field will be removed in Saleor 3.15 (Preview Feature).Use `canceledAmount` instead.") """ Total amount canceled for this payment. @@ -25933,10 +26791,10 @@ type TransactionItem implements Node & ObjectWithMetadata { chargePendingAmount: Money! """Status of transaction.""" - status: String! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.") + status: String! @deprecated(reason: "This field will be removed in Saleor 3.15 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions.") """Type of transaction.""" - type: String! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature). Use `name` or `message` instead.") + type: String! @deprecated(reason: "This field will be removed in Saleor 3.15 (Preview Feature). Use `name` or `message` instead.") """ Name of the transaction. @@ -25953,7 +26811,7 @@ type TransactionItem implements Node & ObjectWithMetadata { message: String! """Reference of transaction.""" - reference: String! @deprecated(reason: "This field will be removed in Saleor 3.14 (Preview Feature).Use `pspReference` instead.") + reference: String! @deprecated(reason: "This field will be removed in Saleor 3.15 (Preview Feature).Use `pspReference` instead.") """ PSP reference of transaction. @@ -26179,7 +27037,6 @@ Represents a status of payment transaction. SUCCESS - Represents a sucess action. FAILURE - Represents a failure action. PENDING - Represents a pending action. - """ enum TransactionStatus { PENDING @@ -26188,13 +27045,13 @@ enum TransactionStatus { } """ -Create transaction for checkout or order. +Update transaction. Added in Saleor 3.4. Note: this API is currently in Feature Preview and can be subject to changes at later point. -Requires the following permissions: OWNER and HANDLE_PAYMENTS. +Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app. """ type TransactionUpdate { transaction: TransactionItem @@ -26228,14 +27085,14 @@ input TransactionUpdateInput { """ Status of the transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). The `status` is not needed. The amounts can be used to define the current status of transactions. """ status: String """ Payment type used for this transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `name` and `message` instead. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `name` and `message` instead. """ type: String @@ -26256,7 +27113,7 @@ input TransactionUpdateInput { """ Reference of the transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `pspReference` instead. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `pspReference` instead. """ reference: String @@ -26282,7 +27139,7 @@ input TransactionUpdateInput { """ Amount voided by this transaction. - DEPRECATED: this field will be removed in Saleor 3.14 (Preview Feature). Use `amountCanceled` instead. + DEPRECATED: this field will be removed in Saleor 3.15 (Preview Feature). Use `amountCanceled` instead. """ amountVoided: MoneyInput @@ -26668,7 +27525,7 @@ type User implements Node & ObjectWithMetadata { Added in Saleor 3.6. """ - format: ThumbnailFormatEnum + format: ThumbnailFormatEnum = ORIGINAL ): Image """ @@ -28286,6 +29143,15 @@ enum WebhookEventTypeAsyncEnum { """ ORDER_METADATA_UPDATED + """ + Orders are imported. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + ORDER_BULK_CREATED + """A draft order is created.""" DRAFT_ORDER_CREATED @@ -28739,6 +29605,15 @@ enum WebhookEventTypeEnum { """ ORDER_METADATA_UPDATED + """ + Orders are imported. + + Added in Saleor 3.14. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + ORDER_BULK_CREATED + """A draft order is created.""" DRAFT_ORDER_CREATED @@ -29218,6 +30093,7 @@ enum WebhookSampleEventTypeEnum { ORDER_EXPIRED ORDER_FULFILLED ORDER_METADATA_UPDATED + ORDER_BULK_CREATED DRAFT_ORDER_CREATED DRAFT_ORDER_UPDATED DRAFT_ORDER_DELETED