diff --git a/introspection.json b/introspection.json index 1212e10d1..8331f2373 100644 --- a/introspection.json +++ b/introspection.json @@ -6,7 +6,9 @@ "mutationType": { "name": "Mutation" }, - "subscriptionType": null, + "subscriptionType": { + "name": "Subscription" + }, "types": [ { "kind": "OBJECT", @@ -2683,7 +2685,7 @@ { "kind": "OBJECT", "name": "AppCreate", - "description": "Creates a new app. Requires one of the following permissions: MANAGE_APPS.", + "description": "Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS.", "fields": [ { "name": "authToken", @@ -3686,7 +3688,7 @@ { "kind": "OBJECT", "name": "AppInstall", - "description": "Install new app by using app manifest. Requires one of the following permissions: MANAGE_APPS.", + "description": "Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS.", "fields": [ { "name": "appErrors", @@ -9368,6 +9370,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CategoryCreated", + "description": null, + "fields": [ + { + "name": "category", + "description": "New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CategoryDelete", @@ -9439,6 +9464,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CategoryDeleted", + "description": null, + "fields": [ + { + "name": "category", + "description": "New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "CategoryFilterInput", @@ -10058,6 +10106,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CategoryUpdated", + "description": null, + "fields": [ + { + "name": "category", + "description": "New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Channel", @@ -11791,7 +11862,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Always returns `True`." + "deprecationReason": "This field will be removed in Saleor 4.0. Always returns `true`." }, { "name": "checkoutErrors", @@ -11954,6 +12025,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CheckoutCreated", + "description": null, + "fields": [ + { + "name": "checkout", + "description": "New in Saleor 3.2. Look up a Checkout. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Checkout", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CheckoutCustomerAttach", @@ -12951,6 +13045,69 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "price", + "description": "New in Saleor 3.1. Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. Note: this feature is in a preview state and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CheckoutLineUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "quantity", + "description": "The number of items purchased. Optional for apps, required for any other users.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantId", + "description": "ID of the product variant.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "price", + "description": "New in Saleor 3.1. Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. Note: this feature is in a preview state and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -13514,6 +13671,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CheckoutUpdated", + "description": null, + "fields": [ + { + "name": "checkout", + "description": "New in Saleor 3.2. Look up a Checkout. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Checkout", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ChoiceValue", @@ -14646,6 +14826,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CollectionCreated", + "description": null, + "fields": [ + { + "name": "collection", + "description": "New in Saleor 3.2. Look up a collection. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Collection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CollectionDelete", @@ -14717,6 +14933,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CollectionDeleted", + "description": null, + "fields": [ + { + "name": "collection", + "description": "New in Saleor 3.2. Look up a collection. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Collection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CollectionError", @@ -15679,6 +15931,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CollectionUpdated", + "description": null, + "fields": [ + { + "name": "collection", + "description": "New in Saleor 3.2. Look up a collection. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Collection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ConfigurationItem", @@ -17909,6 +18197,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CustomerCreated", + "description": null, + "fields": [ + { + "name": "user", + "description": "New in Saleor 3.2. Look up a user. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CustomerDelete", @@ -18467,6 +18778,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CustomerUpdated", + "description": null, + "fields": [ + { + "name": "user", + "description": "New in Saleor 3.2. Look up a user. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "SCALAR", "name": "Date", @@ -20341,6 +20675,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "DraftOrderCreated", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "DraftOrderDelete", @@ -20412,6 +20769,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "DraftOrderDeleted", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "DraftOrderInput", @@ -20689,6 +21069,240 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "DraftOrderUpdated", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "UNION", + "name": "Event", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "CategoryCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CategoryUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CategoryDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "OrderCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "OrderUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "OrderConfirmed", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "OrderFullyPaid", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "OrderCancelled", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "OrderFulfilled", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "DraftOrderCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "DraftOrderUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "DraftOrderDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductVariantCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductVariantUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductVariantOutOfStock", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductVariantBackInStock", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductVariantDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "SaleCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "SaleUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "SaleDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "InvoiceRequested", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "InvoiceDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "InvoiceSent", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FulfillmentCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FulfillmentCanceled", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CustomerCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CustomerUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CollectionCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CollectionUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CollectionDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CheckoutCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CheckoutUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PageCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PageUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PageDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "TranslationCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "TranslationUpdated", + "ofType": null + } + ] + }, { "kind": "OBJECT", "name": "EventDelivery", @@ -20894,7 +21508,7 @@ }, { "name": "taskId", - "description": null, + "description": "Task id for delivery attempt.", "args": [], "type": { "kind": "SCALAR", @@ -20906,7 +21520,7 @@ }, { "name": "duration", - "description": null, + "description": "Delivery attempt duration.", "args": [], "type": { "kind": "SCALAR", @@ -20918,7 +21532,7 @@ }, { "name": "response", - "description": null, + "description": "Delivery attempt response content.", "args": [], "type": { "kind": "SCALAR", @@ -20930,7 +21544,7 @@ }, { "name": "responseHeaders", - "description": null, + "description": "Response headers for delivery attempt.", "args": [], "type": { "kind": "SCALAR", @@ -20940,9 +21554,21 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "responseStatusCode", + "description": "Delivery attempt response status code.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "requestHeaders", - "description": null, + "description": "Request headers for delivery attempt.", "args": [], "type": { "kind": "SCALAR", @@ -22012,19 +22638,25 @@ "enumValues": [ { "name": "STATUS", - "description": "Sort export file by status.", + "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "CREATED_AT", - "description": "Sort export file by created at.", + "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "UPDATED_AT", - "description": "Sort export file by updated at.", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "LAST_MODIFIED_AT", + "description": null, "isDeprecated": false, "deprecationReason": null } @@ -23668,6 +24300,52 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "FulfillmentCanceled", + "description": null, + "fields": [ + { + "name": "fulfillment", + "description": "New in Saleor 3.2. Look up a Fulfillment. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Fulfillment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "FulfillmentCreated", + "description": null, + "fields": [ + { + "name": "fulfillment", + "description": "New in Saleor 3.2. Look up a Fulfillment. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Fulfillment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "FulfillmentLine", @@ -27566,6 +28244,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "InvoiceDeleted", + "description": null, + "fields": [ + { + "name": "invoice", + "description": "New in Saleor 3.2. Look up an Invoice. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Invoice", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "InvoiceError", @@ -27830,6 +28531,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "InvoiceRequested", + "description": null, + "fields": [ + { + "name": "invoice", + "description": "New in Saleor 3.2. Look up an Invoice. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Invoice", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "InvoiceSendNotification", @@ -27901,6 +28625,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "InvoiceSent", + "description": null, + "fields": [ + { + "name": "invoice", + "description": "New in Saleor 3.2. Look up an Invoice. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Invoice", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "InvoiceUpdate", @@ -27975,7 +28722,7 @@ { "kind": "SCALAR", "name": "JSONString", - "description": "Allows use of a JSON String for input / output from the GraphQL schema.\n\nUse of this type is *not recommended* as you lose the benefits of having a defined, static\nschema (one of the key benefits of GraphQL).", + "description": null, "fields": null, "inputFields": null, "interfaces": null, @@ -35586,6 +36333,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "NOT_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -44046,7 +44799,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CheckoutLineInput", + "name": "CheckoutLineUpdateInput", "ofType": null } } @@ -44387,6 +45140,47 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "orderCreateFromCheckout", + "description": "New in Saleor 3.2. Create new order from existing checkout. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: HANDLE_CHECKOUTS.", + "args": [ + { + "name": "id", + "description": "ID of a checkout that will be converted to an order.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "removeCheckout", + "description": "Determines if checkout should be removed after creating an order. Default true.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "true", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "OrderCreateFromCheckout", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "channelCreate", "description": "Creates new channel. Requires one of the following permissions: MANAGE_CHANNELS.", @@ -45033,7 +45827,7 @@ }, { "name": "appCreate", - "description": "Creates a new app. Requires one of the following permissions: MANAGE_APPS.", + "description": "Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS.", "args": [ { "name": "input", @@ -45223,7 +46017,7 @@ }, { "name": "appInstall", - "description": "Install new app by using app manifest. Requires one of the following permissions: MANAGE_APPS.", + "description": "Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS.", "args": [ { "name": "input", @@ -48539,7 +49333,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use discounts field." + "deprecationReason": "This field will be removed in Saleor 4.0. Use the `discounts` field instead." }, { "name": "discountName", @@ -48551,7 +49345,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use discounts field." + "deprecationReason": "This field will be removed in Saleor 4.0. Use the `discounts` field instead." }, { "name": "translatedDiscountName", @@ -48563,7 +49357,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use discounts field. " + "deprecationReason": "This field will be removed in Saleor 4.0. Use the `discounts` field instead. " }, { "name": "discounts", @@ -48917,6 +49711,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderCancelled", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "OrderCapture", @@ -49059,6 +49876,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderConfirmed", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "OrderCountableConnection", @@ -49165,6 +50005,262 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderCreateFromCheckout", + "description": "New in Saleor 3.2. Create new order from existing checkout. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: HANDLE_CHECKOUTS.", + "fields": [ + { + "name": "order", + "description": "Placed order.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrderCreateFromCheckoutError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderCreateFromCheckoutError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "OrderCreateFromCheckoutErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variants", + "description": "List of variant IDs which causes the error.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lines", + "description": "List of line Ids which cause the error.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "OrderCreateFromCheckoutErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CHANNEL_INACTIVE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INSUFFICIENT_STOCK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VOUCHER_NOT_APPLICABLE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GIFT_CARD_NOT_APPLICABLE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TAX_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SHIPPING_METHOD_NOT_SET", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "BILLING_ADDRESS_NOT_SET", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SHIPPING_ADDRESS_NOT_SET", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INVALID_SHIPPING_METHOD", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NO_LINES", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "EMAIL_NOT_SET", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNAVAILABLE_VARIANT_IN_CHANNEL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderCreated", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "OrderDirection", @@ -51375,6 +52471,52 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderFulfilled", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "OrderFullyPaid", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "OrderLine", @@ -53004,7 +54146,19 @@ }, { "name": "CREATION_DATE", - "description": "Sort orders by creation date.", + "description": "Sort orders by creation date. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CREATED_AT", + "description": "Sort orders by creation date. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "LAST_MODIFIED_AT", + "description": "Sort orders by last modified at.", "isDeprecated": false, "deprecationReason": null }, @@ -53396,6 +54550,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderUpdated", + "description": null, + "fields": [ + { + "name": "order", + "description": "New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Order", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "OrderVoid", @@ -54338,6 +55515,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PageCreated", + "description": null, + "fields": [ + { + "name": "page", + "description": "New in Saleor 3.2. Look up a page. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Page", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PageDelete", @@ -54409,6 +55609,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PageDeleted", + "description": null, + "fields": [ + { + "name": "page", + "description": "New in Saleor 3.2. Look up a page. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Page", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PageError", @@ -56340,6 +57563,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PageUpdated", + "description": null, + "fields": [ + { + "name": "page", + "description": "New in Saleor 3.2. Look up a page. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Page", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PasswordChange", @@ -61503,6 +62749,54 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductCreated", + "description": null, + "fields": [ + { + "name": "product", + "description": "New in Saleor 3.2. Look up a product. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Product", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "category", + "description": "New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductDelete", @@ -61574,6 +62868,54 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductDeleted", + "description": null, + "fields": [ + { + "name": "product", + "description": "New in Saleor 3.2. Look up a product. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Product", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "category", + "description": "New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductError", @@ -61697,6 +63039,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "MEDIA_ALREADY_ASSIGNED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "DUPLICATED_INPUT_ITEM", "description": null, @@ -63140,6 +64488,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "PUBLISHED_AT", + "description": "Sort products by publication date.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "LAST_MODIFIED_AT", + "description": "Sort products by update date.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "COLLECTION", "description": "Sort products by collection. Note: This option is available only for the `Collection.products` query.", @@ -65055,6 +66415,54 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductUpdated", + "description": null, + "fields": [ + { + "name": "product", + "description": "New in Saleor 3.2. Look up a product. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Product", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "category", + "description": "New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductVariant", @@ -65575,6 +66983,54 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductVariantBackInStock", + "description": null, + "fields": [ + { + "name": "productVariant", + "description": "New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ProductVariant", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "warehouse", + "description": "New in Saleor 3.2. Look up a warehouse. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Warehouse", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductVariantBulkCreate", @@ -66427,6 +67883,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductVariantCreated", + "description": null, + "fields": [ + { + "name": "productVariant", + "description": "New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ProductVariant", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductVariantDelete", @@ -66498,6 +67990,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductVariantDeleted", + "description": null, + "fields": [ + { + "name": "productVariant", + "description": "New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ProductVariant", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "ProductVariantFilterInput", @@ -66676,6 +68204,54 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductVariantOutOfStock", + "description": null, + "fields": [ + { + "name": "productVariant", + "description": "New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ProductVariant", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "warehouse", + "description": "New in Saleor 3.2. Look up a warehouse. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Warehouse", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductVariantPreorderDeactivate", @@ -66936,6 +68512,66 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "ProductVariantSortField", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "LAST_MODIFIED_AT", + "description": "Sort products variants by last modified at.", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ProductVariantSortingInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "direction", + "description": "Specifies the direction in which to sort products.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "OrderDirection", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "field", + "description": "Sort productVariants by the selected field.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ProductVariantSortField", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductVariantStocksCreate", @@ -67470,6 +69106,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ProductVariantUpdated", + "description": null, + "fields": [ + { + "name": "productVariant", + "description": "New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ProductVariant", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "PublishableChannelListingInput", @@ -68839,6 +70511,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "sortBy", + "description": "Sort products variants.", + "type": { + "kind": "INPUT_OBJECT", + "name": "ProductVariantSortingInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "before", "description": "Return the elements in the list that come before the specified cursor.", @@ -73178,6 +74862,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "SaleCreated", + "description": null, + "fields": [ + { + "name": "sale", + "description": "New in Saleor 3.2. Look up a sale. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Sale", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "SaleDelete", @@ -73249,6 +74969,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "SaleDeleted", + "description": null, + "fields": [ + { + "name": "sale", + "description": "New in Saleor 3.2. Look up a sale. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Sale", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "SaleFilterInput", @@ -73607,6 +75363,18 @@ "description": "Sort sales by type.", "isDeprecated": false, "deprecationReason": null + }, + { + "name": "CREATED_AT", + "description": "Sort sales by created at.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "LAST_MODIFIED_AT", + "description": "Sort sales by last modified at.", + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -73982,6 +75750,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "SaleUpdated", + "description": null, + "fields": [ + { + "name": "sale", + "description": "New in Saleor 3.2. Look up a sale. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Sale", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "SelectedAttribute", @@ -80154,6 +81958,29 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "Subscription", + "description": null, + "fields": [ + { + "name": "event", + "description": "New in Saleor 3.2. Look up subscription event. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "UNION", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "TaxType", @@ -80893,6 +82720,29 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "TranslationCreated", + "description": null, + "fields": [ + { + "name": "translation", + "description": "New in Saleor 3.2. Look up a translation. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "UNION", + "name": "TranslationTypes", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "TranslationError", @@ -81038,6 +82888,95 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "UNION", + "name": "TranslationTypes", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "ProductTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CollectionTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CategoryTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "AttributeTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "AttributeValueTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ProductVariantTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PageTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ShippingMethodTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "SaleTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "VoucherTranslation", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MenuItemTranslation", + "ofType": null + } + ] + }, + { + "kind": "OBJECT", + "name": "TranslationUpdated", + "description": null, + "fields": [ + { + "name": "translation", + "description": "New in Saleor 3.2. Look up a translation. Note: this feature is in a preview state and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "UNION", + "name": "TranslationTypes", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "SCALAR", "name": "UUID", @@ -81482,7 +83421,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "This field will be removed in Saleor 4.0. Use the `checkout_tokens` field to fetch the user checkouts." + "deprecationReason": "This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts." }, { "name": "checkoutTokens", @@ -82455,6 +84394,18 @@ "description": "Sort users by order count.", "isDeprecated": false, "deprecationReason": null + }, + { + "name": "CREATED_AT", + "description": "Sort users by created at.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "LAST_MODIFIED_AT", + "description": "Sort users by last modified at.", + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -86538,7 +88489,7 @@ }, { "name": "targetUrl", - "description": null, + "description": "Target URL for webhook.", "args": [], "type": { "kind": "NON_NULL", @@ -86554,7 +88505,7 @@ }, { "name": "isActive", - "description": null, + "description": "Informs if webhook is activated.", "args": [], "type": { "kind": "NON_NULL", @@ -86570,7 +88521,19 @@ }, { "name": "secretKey", - "description": null, + "description": "Used to create a hash signature with each payload.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "subscriptionQuery", + "description": "Used to define payloads for specific events.", "args": [], "type": { "kind": "SCALAR", @@ -86788,6 +88751,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "query", + "description": "New in Saleor 3.2. Subscription query used to define a webhook payload. Note: this feature is in a preview state and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -87100,6 +89075,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "CATEGORY_CREATED", + "description": "A new category created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CATEGORY_UPDATED", + "description": "A category is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CATEGORY_DELETED", + "description": "A category is deleted.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_CREATED", "description": "A new order is placed.", @@ -87341,43 +89334,61 @@ "enumValues": [ { "name": "ANY_EVENTS", - "description": null, + "description": "All the events.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CATEGORY_CREATED", + "description": "A new category created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CATEGORY_UPDATED", + "description": "A category is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CATEGORY_DELETED", + "description": "A category is deleted.", "isDeprecated": false, "deprecationReason": null }, { "name": "ORDER_CREATED", - "description": null, + "description": "A new order is placed.", "isDeprecated": false, "deprecationReason": null }, { "name": "ORDER_CONFIRMED", - "description": null, + "description": "An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled.", "isDeprecated": false, "deprecationReason": null }, { "name": "ORDER_FULLY_PAID", - "description": null, + "description": "Payment is made and an order is fully paid.", "isDeprecated": false, "deprecationReason": null }, { "name": "ORDER_UPDATED", - "description": null, + "description": "An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED.", "isDeprecated": false, "deprecationReason": null }, { "name": "ORDER_CANCELLED", - "description": null, + "description": "An order is cancelled.", "isDeprecated": false, "deprecationReason": null }, { "name": "ORDER_FULFILLED", - "description": null, + "description": "An order is fulfilled.", "isDeprecated": false, "deprecationReason": null }, @@ -87419,85 +89430,85 @@ }, { "name": "INVOICE_REQUESTED", - "description": null, + "description": "An invoice for order requested.", "isDeprecated": false, "deprecationReason": null }, { "name": "INVOICE_DELETED", - "description": null, + "description": "An invoice is deleted.", "isDeprecated": false, "deprecationReason": null }, { "name": "INVOICE_SENT", - "description": null, + "description": "Invoice has been sent.", "isDeprecated": false, "deprecationReason": null }, { "name": "CUSTOMER_CREATED", - "description": null, + "description": "A new customer account is created.", "isDeprecated": false, "deprecationReason": null }, { "name": "CUSTOMER_UPDATED", - "description": null, + "description": "A customer account is updated.", "isDeprecated": false, "deprecationReason": null }, { "name": "COLLECTION_CREATED", - "description": null, + "description": "A new collection is created.", "isDeprecated": false, "deprecationReason": null }, { "name": "COLLECTION_UPDATED", - "description": null, + "description": "A collection is updated.", "isDeprecated": false, "deprecationReason": null }, { "name": "COLLECTION_DELETED", - "description": null, + "description": "A collection is deleted.", "isDeprecated": false, "deprecationReason": null }, { "name": "PRODUCT_CREATED", - "description": null, + "description": "A new product is created.", "isDeprecated": false, "deprecationReason": null }, { "name": "PRODUCT_UPDATED", - "description": null, + "description": "A product is updated.", "isDeprecated": false, "deprecationReason": null }, { "name": "PRODUCT_DELETED", - "description": null, + "description": "A product is deleted.", "isDeprecated": false, "deprecationReason": null }, { "name": "PRODUCT_VARIANT_CREATED", - "description": null, + "description": "A new product variant is created.", "isDeprecated": false, "deprecationReason": null }, { "name": "PRODUCT_VARIANT_UPDATED", - "description": null, + "description": "A product variant is updated.", "isDeprecated": false, "deprecationReason": null }, { "name": "PRODUCT_VARIANT_DELETED", - "description": null, + "description": "A product variant is deleted.", "isDeprecated": false, "deprecationReason": null }, @@ -87515,49 +89526,49 @@ }, { "name": "CHECKOUT_CREATED", - "description": null, + "description": "A new checkout is created.", "isDeprecated": false, "deprecationReason": null }, { "name": "CHECKOUT_UPDATED", - "description": null, + "description": "A checkout is updated. It also triggers all updates related to the checkout.", "isDeprecated": false, "deprecationReason": null }, { "name": "FULFILLMENT_CREATED", - "description": null, + "description": "A new fulfillment is created.", "isDeprecated": false, "deprecationReason": null }, { "name": "FULFILLMENT_CANCELED", - "description": null, + "description": "A fulfillment is cancelled.", "isDeprecated": false, "deprecationReason": null }, { "name": "NOTIFY_USER", - "description": null, + "description": "User notification triggered.", "isDeprecated": false, "deprecationReason": null }, { "name": "PAGE_CREATED", - "description": null, + "description": "A new page is created.", "isDeprecated": false, "deprecationReason": null }, { "name": "PAGE_UPDATED", - "description": null, + "description": "A page is updated.", "isDeprecated": false, "deprecationReason": null }, { "name": "PAGE_DELETED", - "description": null, + "description": "A page is deleted.", "isDeprecated": false, "deprecationReason": null }, @@ -87715,6 +89726,24 @@ "inputFields": null, "interfaces": null, "enumValues": [ + { + "name": "CATEGORY_CREATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CATEGORY_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CATEGORY_DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_CREATED", "description": null, @@ -88142,6 +90171,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "query", + "description": "New in Saleor 3.2. Subscription query used to define a webhook payload. Note: this feature is in a preview state and can be subject to changes at later point.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, diff --git a/schema.graphql b/schema.graphql index dc2eeeca1..6fde42949 100644 --- a/schema.graphql +++ b/schema.graphql @@ -1,4 +1,6 @@ -"""Create a new address for the customer.""" +""" +Create a new address for the customer. Requires one of the following permissions: AUTHENTICATED_USER. +""" type AccountAddressCreate { """A user instance for which the address was created.""" user: User @@ -7,7 +9,9 @@ type AccountAddressCreate { address: Address } -"""Delete an address of the logged-in user.""" +""" +Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. +""" type AccountAddressDelete { """A user instance for which the address was deleted.""" user: User @@ -16,7 +20,9 @@ type AccountAddressDelete { address: Address } -"""Updates an address of the logged-in user.""" +""" +Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. +""" type AccountAddressUpdate { """A user object for which the address was edited.""" user: User @@ -25,7 +31,9 @@ type AccountAddressUpdate { address: Address } -"""Remove user account.""" +""" +Remove user account. Requires one of the following permissions: AUTHENTICATED_USER. +""" type AccountDelete { accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! @@ -139,13 +147,17 @@ input AccountRegisterInput { channel: String } -"""Sends an email with the account removal link for the logged-in user.""" +""" +Sends an email with the account removal link for the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. +""" type AccountRequestDeletion { accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Sets a default address for the authenticated user.""" +""" +Sets a default address for the authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. +""" type AccountSetDefaultAddress { """An updated user instance.""" user: User @@ -153,7 +165,9 @@ type AccountSetDefaultAddress { errors: [AccountError!]! } -"""Updates the account of the logged-in user.""" +""" +Updates the account of the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. +""" type AccountUpdate { accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! @@ -184,7 +198,9 @@ type Address implements Node { isDefaultBillingAddress: Boolean } -"""Creates user address.""" +""" +Creates user address. Requires one of the following permissions: MANAGE_USERS. +""" type AddressCreate { """A user instance for which the address was created.""" user: User @@ -193,7 +209,9 @@ type AddressCreate { address: Address } -"""Deletes an address.""" +""" +Deletes an address. Requires one of the following permissions: MANAGE_USERS. +""" type AddressDelete { """A user instance for which the address was deleted.""" user: User @@ -237,7 +255,9 @@ input AddressInput { phone: String } -"""Sets a default address for the given user.""" +""" +Sets a default address for the given user. Requires one of the following permissions: MANAGE_USERS. +""" type AddressSetDefault { """An updated user instance.""" user: User @@ -251,7 +271,9 @@ enum AddressTypeEnum { SHIPPING } -"""Updates an address.""" +""" +Updates an address. Requires one of the following permissions: MANAGE_USERS. +""" type AddressUpdate { """A user object for which the address was edited.""" user: User @@ -265,18 +287,18 @@ type AddressValidationData { countryName: String addressFormat: String addressLatinFormat: String - allowedFields: [String] - requiredFields: [String] - upperFields: [String] + allowedFields: [String!] + requiredFields: [String!] + upperFields: [String!] countryAreaType: String - countryAreaChoices: [ChoiceValue] + countryAreaChoices: [ChoiceValue!] cityType: String - cityChoices: [ChoiceValue] + cityChoices: [ChoiceValue!] cityAreaType: String - cityAreaChoices: [ChoiceValue] + cityAreaChoices: [ChoiceValue!] postalCodeType: String - postalCodeMatchers: [String] - postalCodeExamples: [String] + postalCodeMatchers: [String!] + postalCodeExamples: [String!] postalCodePrefix: String } @@ -298,13 +320,13 @@ type App implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! """List of the app's permissions.""" - permissions: [Permission] + permissions: [Permission!] """The date and time when the app was created.""" created: DateTime @@ -319,10 +341,10 @@ type App implements Node & ObjectWithMetadata { type: AppTypeEnum """Last 4 characters of the tokens.""" - tokens: [AppToken] + tokens: [AppToken!] """List of webhooks assigned to this app.""" - webhooks: [Webhook] + webhooks: [Webhook!] """Description of this app.""" aboutApp: String @@ -351,11 +373,15 @@ type App implements Node & ObjectWithMetadata { """JWT token used to authenticate by thridparty app.""" accessToken: String - """New in Saleor 3.1. App's dashboard extensions.""" + """ + New in Saleor 3.1. App's dashboard extensions. Note: this feature is in a preview state and can be subject to changes at later point. + """ extensions: [AppExtension!]! } -"""Activate the app.""" +""" +Activate the app. Requires one of the following permissions: MANAGE_APPS. +""" type AppActivate { appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! @@ -379,7 +405,9 @@ type AppCountableEdge { cursor: String! } -"""Creates a new app.""" +""" +Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. +""" type AppCreate { """The newly created authentication token.""" authToken: String @@ -388,21 +416,27 @@ type AppCreate { app: App } -"""Deactivate the app.""" +""" +Deactivate the app. Requires one of the following permissions: MANAGE_APPS. +""" type AppDeactivate { appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } -"""Deletes an app.""" +""" +Deletes an app. Requires one of the following permissions: MANAGE_APPS. +""" type AppDelete { appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } -"""Delete failed installation.""" +""" +Delete failed installation. Requires one of the following permissions: MANAGE_APPS. +""" type AppDeleteFailedInstallation { appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! @@ -484,7 +518,7 @@ type AppExtensionCountableEdge { } input AppExtensionFilterInput { - mount: [AppExtensionMountEnum] + mount: [AppExtensionMountEnum!] target: AppExtensionTargetEnum } @@ -513,7 +547,9 @@ enum AppExtensionTargetEnum { APP_PAGE } -"""Fetch and validate manifest.""" +""" +Fetch and validate manifest. Requires one of the following permissions: MANAGE_APPS. +""" type AppFetchManifest { manifest: Manifest appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") @@ -531,10 +567,12 @@ input AppInput { name: String """List of permission code names to assign to this app.""" - permissions: [PermissionEnum] + permissions: [PermissionEnum!] } -"""Install new app by using app manifest.""" +""" +Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. +""" type AppInstall { appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! @@ -552,7 +590,7 @@ input AppInstallInput { activateAfterInstallation: Boolean = true """List of permission code names to assign to this app.""" - permissions: [PermissionEnum] + permissions: [PermissionEnum!] } """Represents ongoing installation of app.""" @@ -591,7 +629,9 @@ type AppManifestExtension { target: AppExtensionTargetEnum! } -"""Retry failed installation of new app.""" +""" +Retry failed installation of new app. Requires one of the following permissions: MANAGE_APPS. +""" type AppRetryInstall { appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! @@ -625,7 +665,9 @@ type AppToken implements Node { authToken: String } -"""Creates a new token.""" +""" +Creates a new token. Requires one of the following permissions: MANAGE_APPS. +""" type AppTokenCreate { """The newly created authentication token.""" authToken: String @@ -634,7 +676,9 @@ type AppTokenCreate { appToken: AppToken } -"""Deletes an authentication token assigned to app.""" +""" +Deletes an authentication token assigned to app. Requires one of the following permissions: MANAGE_APPS. +""" type AppTokenDelete { appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! @@ -670,7 +714,9 @@ enum AppTypeEnum { THIRDPARTY } -"""Updates an existing app.""" +""" +Updates an existing app. Requires one of the following permissions: MANAGE_APPS. +""" type AppUpdate { appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! @@ -687,7 +733,9 @@ enum AreaUnitsEnum { SQ_INCH } -"""Assigns storefront's navigation menus.""" +""" +Assigns storefront's navigation menus. Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. +""" type AssignNavigation { """Assigned navigation menu.""" menu: Menu @@ -717,10 +765,10 @@ type Attribute implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! """The input type to use for entering attribute values in the dashboard.""" inputType: AttributeInputTypeEnum @@ -817,7 +865,9 @@ type Attribute implements Node & ObjectWithMetadata { ): ProductTypeCountableConnection! } -"""Deletes attributes.""" +""" +Deletes attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type AttributeBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -885,7 +935,7 @@ input AttributeCreateInput { unit: MeasurementUnitsEnum """List of attribute's values.""" - values: [AttributeValueCreateInput] + values: [AttributeValueCreateInput!] """Whether the attribute requires values to be passed or not.""" valueRequired: Boolean @@ -911,7 +961,9 @@ input AttributeCreateInput { availableInGrid: Boolean } -"""Deletes an attribute.""" +""" +Deletes an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type AttributeDelete { attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! @@ -954,9 +1006,9 @@ input AttributeFilterInput { filterableInStorefront: Boolean filterableInDashboard: Boolean availableInGrid: Boolean - metadata: [MetadataFilter] + metadata: [MetadataFilter!] search: String - ids: [ID] + ids: [ID!] type: AttributeTypeEnum inCollection: ID inCategory: ID @@ -974,7 +1026,7 @@ input AttributeInput { slug: String! """Internal representation of a value (unique per attribute).""" - values: [String] + values: [String!] """The range that the returned values should be in.""" valuesRange: IntRangeInput @@ -1003,7 +1055,9 @@ enum AttributeInputTypeEnum { DATE_TIME } -"""Reorder the values of an attribute.""" +""" +Reorder the values of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type AttributeReorderValues { """Attribute from which values are reordered.""" attribute: Attribute @@ -1064,7 +1118,9 @@ type AttributeTranslatableContent implements Node { attribute: Attribute @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") } -"""Creates/updates translations for an attribute.""" +""" +Creates/updates translations for an attribute. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type AttributeTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -1085,7 +1141,9 @@ enum AttributeTypeEnum { PAGE_TYPE } -"""Updates attribute.""" +""" +Updates attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type AttributeUpdate { attribute: Attribute attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") @@ -1103,10 +1161,10 @@ input AttributeUpdateInput { unit: MeasurementUnitsEnum """IDs of values to be removed from this attribute.""" - removeValues: [ID] + removeValues: [ID!] """New values to be created for this attribute.""" - addValues: [AttributeValueUpdateInput] + addValues: [AttributeValueUpdateInput!] """Whether the attribute requires values to be passed or not.""" valueRequired: Boolean @@ -1175,7 +1233,9 @@ type AttributeValue implements Node { dateTime: DateTime } -"""Deletes values of attributes.""" +""" +Deletes values of attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type AttributeValueBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -1200,7 +1260,9 @@ type AttributeValueCountableEdge { cursor: String! } -"""Creates a value for an attribute.""" +""" +Creates a value for an attribute. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type AttributeValueCreate { """The updated attribute.""" attribute: Attribute @@ -1228,7 +1290,9 @@ input AttributeValueCreateInput { name: String! } -"""Deletes a value of an attribute.""" +""" +Deletes a value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type AttributeValueDelete { """The updated attribute.""" attribute: Attribute @@ -1239,6 +1303,7 @@ type AttributeValueDelete { input AttributeValueFilterInput { search: String + ids: [ID!] } input AttributeValueInput { @@ -1287,7 +1352,9 @@ type AttributeValueTranslatableContent implements Node { attributeValue: AttributeValue @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") } -"""Creates/updates translations for an attribute value.""" +""" +Creates/updates translations for an attribute value. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type AttributeValueTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -1308,7 +1375,9 @@ input AttributeValueTranslationInput { richText: JSONString } -"""Updates value of an attribute.""" +""" +Updates value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type AttributeValueUpdate { """The updated attribute.""" attribute: Attribute @@ -1416,16 +1485,16 @@ input CardInput { input CatalogueInput { """Products related to the discount.""" - products: [ID] + products: [ID!] """Categories related to the discount.""" - categories: [ID] + categories: [ID!] """Collections related to the discount.""" - collections: [ID] + collections: [ID!] """New in Saleor 3.1. Product variant related to the discount.""" - variants: [ID] + variants: [ID!] } """ @@ -1437,10 +1506,10 @@ type Category implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! seoTitle: String seoDescription: String name: String! @@ -1511,7 +1580,9 @@ type Category implements Node & ObjectWithMetadata { ): CategoryTranslation } -"""Deletes categories.""" +""" +Deletes categories. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CategoryBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -1536,24 +1607,42 @@ type CategoryCountableEdge { cursor: String! } -"""Creates a new category.""" +""" +Creates a new category. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CategoryCreate { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! category: Category } -"""Deletes a category.""" +type CategoryCreated { + """ + New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point. + """ + category: Category +} + +""" +Deletes a category. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CategoryDelete { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! category: Category } +type CategoryDeleted { + """ + New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point. + """ + category: Category +} + input CategoryFilterInput { search: String - metadata: [MetadataFilter] - ids: [ID] + metadata: [MetadataFilter!] + ids: [ID!] } input CategoryInput { @@ -1592,7 +1681,7 @@ input CategorySortingInput { direction: OrderDirection! """ - Specifies the channel in which to sort the data. + Specifies the channel in which to sort the data. DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. """ @@ -1622,7 +1711,9 @@ type CategoryTranslatableContent implements Node { category: Category @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") } -"""Creates/updates translations for a category.""" +""" +Creates/updates translations for a category. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type CategoryTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -1643,13 +1734,22 @@ type CategoryTranslation implements Node { descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") } -"""Updates a category.""" +""" +Updates a category. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CategoryUpdate { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! category: Category } +type CategoryUpdated { + """ + New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point. + """ + category: Category +} + """Represents channel.""" type Channel implements Node { id: ID! @@ -1667,7 +1767,9 @@ type Channel implements Node { defaultCountry: CountryDisplay! } -"""Activate a channel.""" +""" +Activate a channel. Requires one of the following permissions: MANAGE_CHANNELS. +""" type ChannelActivate { """Activated channel.""" channel: Channel @@ -1675,7 +1777,9 @@ type ChannelActivate { errors: [ChannelError!]! } -"""Creates new channel.""" +""" +Creates new channel. Requires one of the following permissions: MANAGE_CHANNELS. +""" type ChannelCreate { channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ChannelError!]! @@ -1704,7 +1808,9 @@ input ChannelCreateInput { addShippingZones: [ID!] } -"""Deactivate a channel.""" +""" +Deactivate a channel. Requires one of the following permissions: MANAGE_CHANNELS. +""" type ChannelDeactivate { """Deactivated channel.""" channel: Channel @@ -1713,7 +1819,7 @@ type ChannelDeactivate { } """ -Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. +Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. Requires one of the following permissions: MANAGE_CHANNELS. """ type ChannelDelete { channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") @@ -1755,7 +1861,9 @@ enum ChannelErrorCode { DUPLICATED_INPUT_ITEM } -"""Update a channel.""" +""" +Update a channel. Requires one of the following permissions: MANAGE_CHANNELS. +""" type ChannelUpdate { channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ChannelError!]! @@ -1791,10 +1899,10 @@ type Checkout implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! created: DateTime! lastChange: DateTime! user: User @@ -1808,12 +1916,14 @@ type Checkout implements Node & ObjectWithMetadata { voucherCode: String """Shipping methods that can be used with this checkout.""" - availableShippingMethods: [ShippingMethod]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `shippingMethods` instead.") + availableShippingMethods: [ShippingMethod!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `shippingMethods` instead.") """Shipping methods that can be used with this checkout.""" - shippingMethods: [ShippingMethod]! + shippingMethods: [ShippingMethod!]! - """New in Saleor 3.1. Collection points that can be used for this order.""" + """ + New in Saleor 3.1. Collection points that can be used for this order. Note: this feature is in a preview state and can be subject to changes at later point. + """ availableCollectionPoints: [Warehouse!]! """List of available payment gateways.""" @@ -1823,7 +1933,7 @@ type Checkout implements Node & ObjectWithMetadata { email: String """List of gift cards associated with this checkout.""" - giftCards: [GiftCard] + giftCards: [GiftCard!] """Returns True, if checkout requires shipping.""" isShippingRequired: Boolean! @@ -1839,7 +1949,7 @@ type Checkout implements Node & ObjectWithMetadata { """ A list of checkout lines, each containing information about an item in the checkout. """ - lines: [CheckoutLine] + lines: [CheckoutLine!] """The price of the shipping, with all the taxes included.""" shippingPrice: TaxedMoney @@ -1847,7 +1957,9 @@ type Checkout implements Node & ObjectWithMetadata { """The shipping method related with checkout.""" shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.") - """New in Saleor 3.1. The delivery method selected for this checkout.""" + """ + New in Saleor 3.1. The delivery method selected for this checkout. Note: this feature is in a preview state and can be subject to changes at later point. + """ deliveryMethod: DeliveryMethod """The price of the checkout before shipping, with taxes included.""" @@ -1921,7 +2033,7 @@ type CheckoutCreate { """ Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout. """ - created: Boolean @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `True`.") + created: Boolean @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `true`.") checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! checkout: Checkout @@ -1934,7 +2046,7 @@ input CheckoutCreateInput { """ A list of checkout lines, each containing information about an item in the checkout. """ - lines: [CheckoutLineInput]! + lines: [CheckoutLineInput!]! """The customer's email address.""" email: String @@ -1951,7 +2063,16 @@ input CheckoutCreateInput { languageCode: LanguageCodeEnum } -"""Sets the customer as the owner of the checkout.""" +type CheckoutCreated { + """ + New in Saleor 3.2. Look up a Checkout. Note: this feature is in a preview state and can be subject to changes at later point. + """ + checkout: Checkout +} + +""" +Sets the customer as the owner of the checkout. Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. +""" type CheckoutCustomerAttach { """An updated checkout.""" checkout: Checkout @@ -1959,7 +2080,9 @@ type CheckoutCustomerAttach { errors: [CheckoutError!]! } -"""Removes the user assigned as the owner of the checkout.""" +""" +Removes the user assigned as the owner of the checkout. Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. +""" type CheckoutCustomerDetach { """An updated checkout.""" checkout: Checkout @@ -1968,7 +2091,7 @@ type CheckoutCustomerDetach { } """ -New in Saleor 3.1. Updates the delivery method (shipping method or pick up point) of the checkout. +New in Saleor 3.1. Updates the delivery method (shipping method or pick up point) of the checkout. Note: this feature is in a preview state and can be subject to changes at later point. """ type CheckoutDeliveryMethodUpdate { """An updated checkout.""" @@ -2041,8 +2164,8 @@ input CheckoutFilterInput { customer: String created: DateRangeInput search: String - metadata: [MetadataFilter] - channels: [ID] + metadata: [MetadataFilter!] + channels: [ID!] } """Update language code in the existing checkout.""" @@ -2097,6 +2220,26 @@ input CheckoutLineInput { """ID of the product variant.""" variantId: ID! + + """ + New in Saleor 3.1. Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. Note: this feature is in a preview state and can be subject to changes at later point. + """ + price: PositiveDecimal +} + +input CheckoutLineUpdateInput { + """ + The number of items purchased. Optional for apps, required for any other users. + """ + quantity: Int + + """ID of the product variant.""" + variantId: ID! + + """ + New in Saleor 3.1. Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. Note: this feature is in a preview state and can be subject to changes at later point. + """ + price: PositiveDecimal } """ @@ -2178,6 +2321,13 @@ input CheckoutSortingInput { field: CheckoutSortField! } +type CheckoutUpdated { + """ + New in Saleor 3.2. Look up a Checkout. Note: this feature is in a preview state and can be subject to changes at later point. + """ + checkout: Checkout +} + type ChoiceValue { raw: String verbose: String @@ -2190,10 +2340,10 @@ type Collection implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! seoTitle: String seoDescription: String name: String! @@ -2243,7 +2393,9 @@ type Collection implements Node & ObjectWithMetadata { channelListings: [CollectionChannelListing!] } -"""Adds products to a collection.""" +""" +Adds products to a collection. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CollectionAddProducts { """Collection to which products will be added.""" collection: Collection @@ -2251,7 +2403,9 @@ type CollectionAddProducts { errors: [CollectionError!]! } -"""Deletes collections.""" +""" +Deletes collections. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CollectionBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -2289,7 +2443,9 @@ type CollectionChannelListingError { channels: [ID!] } -"""Manage collection's availability in channels.""" +""" +Manage collection's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CollectionChannelListingUpdate { """An updated collection instance.""" collection: Collection @@ -2322,7 +2478,9 @@ type CollectionCountableEdge { cursor: String! } -"""Creates a new collection.""" +""" +Creates a new collection. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CollectionCreate { collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! @@ -2355,16 +2513,38 @@ input CollectionCreateInput { publicationDate: Date """List of products to be added to the collection.""" - products: [ID] + products: [ID!] } -"""Deletes a collection.""" +type CollectionCreated { + """ + New in Saleor 3.2. Look up a collection. Note: this feature is in a preview state and can be subject to changes at later point. + """ + collection( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Collection +} + +""" +Deletes a collection. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CollectionDelete { collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } +type CollectionDeleted { + """ + New in Saleor 3.2. Look up a collection. Note: this feature is in a preview state and can be subject to changes at later point. + """ + collection( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Collection +} + type CollectionError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -2395,8 +2575,8 @@ enum CollectionErrorCode { input CollectionFilterInput { published: CollectionPublished search: String - metadata: [MetadataFilter] - ids: [ID] + metadata: [MetadataFilter!] + ids: [ID!] """ Specifies the channel by which the data should be filtered. @@ -2437,7 +2617,9 @@ enum CollectionPublished { HIDDEN } -"""Remove products from a collection.""" +""" +Remove products from a collection. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CollectionRemoveProducts { """Collection from which products will be removed.""" collection: Collection @@ -2445,7 +2627,9 @@ type CollectionRemoveProducts { errors: [CollectionError!]! } -"""Reorder the products of a collection.""" +""" +Reorder the products of a collection. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CollectionReorderProducts { """Collection from which products are reordered.""" collection: Collection @@ -2472,7 +2656,7 @@ input CollectionSortingInput { direction: OrderDirection! """ - Specifies the channel in which to sort the data. + Specifies the channel in which to sort the data. DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. """ @@ -2502,7 +2686,9 @@ type CollectionTranslatableContent implements Node { collection: Collection @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") } -"""Creates/updates translations for a collection.""" +""" +Creates/updates translations for a collection. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type CollectionTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -2523,13 +2709,25 @@ type CollectionTranslation implements Node { descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") } -"""Updates a collection.""" +""" +Updates a collection. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type CollectionUpdate { collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } +type CollectionUpdated { + """ + New in Saleor 3.2. Look up a collection. Note: this feature is in a preview state and can be subject to changes at later point. + """ + collection( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Collection +} + """Stores information about a single configuration field.""" type ConfigurationItem { """Name of the field.""" @@ -2575,7 +2773,9 @@ type ConfirmAccount { errors: [AccountError!]! } -"""Confirm the email change of the logged-in user.""" +""" +Confirm the email change of the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. +""" type ConfirmEmailChange { """A user instance with a new email.""" user: User @@ -2889,7 +3089,9 @@ type CreditCard { expYear: Int } -"""Deletes customers.""" +""" +Deletes customers. Requires one of the following permissions: MANAGE_USERS. +""" type CustomerBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -2897,14 +3099,25 @@ type CustomerBulkDelete { errors: [AccountError!]! } -"""Creates a new customer.""" +""" +Creates a new customer. Requires one of the following permissions: MANAGE_USERS. +""" type CustomerCreate { accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } -"""Deletes a customer.""" +type CustomerCreated { + """ + New in Saleor 3.2. Look up a user. Note: this feature is in a preview state and can be subject to changes at later point. + """ + user: User +} + +""" +Deletes a customer. Requires one of the following permissions: MANAGE_USERS. +""" type CustomerDelete { accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! @@ -2962,7 +3175,8 @@ input CustomerFilterInput { numberOfOrders: IntRangeInput placedOrders: DateRangeInput search: String - metadata: [MetadataFilter] + metadata: [MetadataFilter!] + updatedAt: DateTimeRangeInput } input CustomerInput { @@ -2991,13 +3205,22 @@ input CustomerInput { languageCode: LanguageCodeEnum } -"""Updates an existing customer.""" +""" +Updates an existing customer. Requires one of the following permissions: MANAGE_USERS. +""" type CustomerUpdate { accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } +type CustomerUpdated { + """ + New in Saleor 3.2. Look up a user. Note: this feature is in a preview state and can be subject to changes at later point. + """ + user: User +} + """ The `Date` scalar type represents a Date value as specified by @@ -3028,20 +3251,26 @@ input DateTimeRangeInput { lte: DateTime } -"""Deactivate all JWT tokens of the currently authenticated user.""" +""" +Deactivate all JWT tokens of the currently authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. +""" type DeactivateAllUserTokens { accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } -"""Delete metadata of an object.""" +""" +Delete metadata of an object. To use it, you need to have access to the modified object. +""" type DeleteMetadata { metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! item: ObjectWithMetadata } -"""Delete object's private metadata.""" +""" +Delete object's private metadata. To use it, you need to be an authenticated staff user or an app and have access to the modified object. +""" type DeletePrivateMetadata { metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! @@ -3049,7 +3278,7 @@ type DeletePrivateMetadata { } """ -Represents a delivery method chosen for the checkout. `Warehouse` type is used when checkout is marked as "click and collect" and `ShippingMethod` otherwise. +New in Saleor 3.1. Represents a delivery method chosen for the checkout. `Warehouse` type is used when checkout is marked as "click and collect" and `ShippingMethod` otherwise. Note: this feature is in a preview state and can be subject to changes at later point. """ union DeliveryMethod = Warehouse | ShippingMethod @@ -3059,10 +3288,10 @@ type DigitalContent implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! useDefaultSettings: Boolean! automaticFulfillment: Boolean! contentFile: String! @@ -3070,7 +3299,7 @@ type DigitalContent implements Node & ObjectWithMetadata { urlValidDays: Int """List of URLs for the digital variant.""" - urls: [DigitalContentUrl] + urls: [DigitalContentUrl!] """Product variant assigned to digital content.""" productVariant: ProductVariant! @@ -3246,7 +3475,9 @@ type Domain { url: String! } -"""Deletes draft orders.""" +""" +Deletes draft orders. Requires one of the following permissions: MANAGE_ORDERS. +""" type DraftOrderBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -3254,7 +3485,9 @@ type DraftOrderBulkDelete { errors: [OrderError!]! } -"""Completes creating an order.""" +""" +Completes creating an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type DraftOrderComplete { """Completed order.""" order: Order @@ -3262,7 +3495,9 @@ type DraftOrderComplete { errors: [OrderError!]! } -"""Creates a new draft order.""" +""" +Creates a new draft order. Requires one of the following permissions: MANAGE_ORDERS. +""" type DraftOrderCreate { orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! @@ -3303,16 +3538,32 @@ input DraftOrderCreateInput { redirectUrl: String """Variant line input consisting of variant ID and quantity of products.""" - lines: [OrderLineCreateInput] + lines: [OrderLineCreateInput!] } -"""Deletes a draft order.""" +type DraftOrderCreated { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + +""" +Deletes a draft order. Requires one of the following permissions: MANAGE_ORDERS. +""" type DraftOrderDelete { orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! order: Order } +type DraftOrderDeleted { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + input DraftOrderInput { """Billing address of the customer.""" billingAddress: AddressInput @@ -3347,7 +3598,9 @@ input DraftOrderInput { redirectUrl: String } -"""Deletes order lines.""" +""" +Deletes order lines. Requires one of the following permissions: MANAGE_ORDERS. +""" type DraftOrderLinesBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -3355,13 +3608,24 @@ type DraftOrderLinesBulkDelete { errors: [OrderError!]! } -"""Updates a draft order.""" +""" +Updates a draft order. Requires one of the following permissions: MANAGE_ORDERS. +""" type DraftOrderUpdate { orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! order: Order } +type DraftOrderUpdated { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + +union Event = CategoryCreated | CategoryUpdated | CategoryDeleted | OrderCreated | OrderUpdated | OrderConfirmed | OrderFullyPaid | OrderCancelled | OrderFulfilled | DraftOrderCreated | DraftOrderUpdated | DraftOrderDeleted | ProductCreated | ProductUpdated | ProductDeleted | ProductVariantCreated | ProductVariantUpdated | ProductVariantOutOfStock | ProductVariantBackInStock | ProductVariantDeleted | SaleCreated | SaleUpdated | SaleDeleted | InvoiceRequested | InvoiceDeleted | InvoiceSent | FulfillmentCreated | FulfillmentCanceled | CustomerCreated | CustomerUpdated | CollectionCreated | CollectionUpdated | CollectionDeleted | CheckoutCreated | CheckoutUpdated | PageCreated | PageUpdated | PageDeleted | TranslationCreated | TranslationUpdated + """Event delivery.""" type EventDelivery implements Node { id: ID! @@ -3401,10 +3665,23 @@ type EventDeliveryAttempt implements Node { """Event delivery creation date and time.""" createdAt: DateTime! + + """Task id for delivery attempt.""" taskId: String + + """Delivery attempt duration.""" duration: Float + + """Delivery attempt response content.""" response: String + + """Response headers for delivery attempt.""" responseHeaders: String + + """Delivery attempt response status code.""" + responseStatusCode: Int + + """Request headers for delivery attempt.""" requestHeaders: String """Event delivery status.""" @@ -3463,7 +3740,9 @@ input EventDeliveryFilterInput { eventType: WebhookEventTypeEnum } -"""Retries event delivery.""" +""" +Retries event delivery. Requires one of the following permissions: MANAGE_APPS. +""" type EventDeliveryRetry { """Event delivery.""" delivery: EventDelivery @@ -3592,14 +3871,10 @@ input ExportFileFilterInput { } enum ExportFileSortField { - """Sort export file by status.""" STATUS - - """Sort export file by created at.""" CREATED_AT - - """Sort export file by updated at.""" UPDATED_AT + LAST_MODIFIED_AT } input ExportFileSortingInput { @@ -3610,7 +3885,9 @@ input ExportFileSortingInput { field: ExportFileSortField! } -"""New in Saleor 3.1. Export gift cards to csv file.""" +""" +New in Saleor 3.1. Export gift cards to csv file. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type ExportGiftCards { """ The newly created export file job which is responsible for export data. @@ -3647,7 +3924,9 @@ input ExportInfoInput { fields: [ProductFieldEnum!] } -"""Export products to csv file.""" +""" +Export products to csv file. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ExportProducts { """ The newly created export file job which is responsible for export data. @@ -3741,7 +4020,7 @@ input ExternalNotificationTriggerInput { """ The list of customers or orders node IDs that will be serialized and included in the notification payload. """ - ids: [ID]! + ids: [ID!]! """ Additional payload that will be merged with the one based on the bussines object ID. @@ -3832,17 +4111,17 @@ type Fulfillment implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! fulfillmentOrder: Int! status: FulfillmentStatus! trackingNumber: String! created: DateTime! """List of lines for the fulfillment.""" - lines: [FulfillmentLine] + lines: [FulfillmentLine!] """User-friendly fulfillment status.""" statusDisplay: String @@ -3851,7 +4130,9 @@ type Fulfillment implements Node & ObjectWithMetadata { warehouse: Warehouse } -"""New in Saleor 3.1. Approve existing fulfillment.""" +""" +New in Saleor 3.1. Approve existing fulfillment. Requires one of the following permissions: MANAGE_ORDERS. +""" type FulfillmentApprove { """An approved fulfillment.""" fulfillment: Fulfillment @@ -3862,7 +4143,9 @@ type FulfillmentApprove { errors: [OrderError!]! } -"""Cancels existing fulfillment and optionally restocks items.""" +""" +Cancels existing fulfillment and optionally restocks items. Requires one of the following permissions: MANAGE_ORDERS. +""" type FulfillmentCancel { """A canceled fulfillment.""" fulfillment: Fulfillment @@ -3880,6 +4163,20 @@ input FulfillmentCancelInput { warehouseId: ID } +type FulfillmentCanceled { + """ + New in Saleor 3.2. Look up a Fulfillment. Note: this feature is in a preview state and can be subject to changes at later point. + """ + fulfillment: Fulfillment +} + +type FulfillmentCreated { + """ + New in Saleor 3.2. Look up a Fulfillment. Note: this feature is in a preview state and can be subject to changes at later point. + """ + fulfillment: Fulfillment +} + """Represents line of the fulfillment.""" type FulfillmentLine implements Node { id: ID! @@ -3887,7 +4184,9 @@ type FulfillmentLine implements Node { orderLine: OrderLine } -"""Refund products.""" +""" +Refund products. Requires one of the following permissions: MANAGE_ORDERS. +""" type FulfillmentRefundProducts { """A refunded fulfillment.""" fulfillment: Fulfillment @@ -3898,7 +4197,9 @@ type FulfillmentRefundProducts { errors: [OrderError!]! } -"""Return products.""" +""" +Return products. Requires one of the following permissions: MANAGE_ORDERS. +""" type FulfillmentReturnProducts { """A return fulfillment.""" returnFulfillment: Fulfillment @@ -3926,7 +4227,9 @@ enum FulfillmentStatus { WAITING_FOR_APPROVAL } -"""Updates a fulfillment for an order.""" +""" +Updates a fulfillment for an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type FulfillmentUpdateTracking { """A fulfillment with updated tracking.""" fulfillment: Fulfillment @@ -3970,10 +4273,10 @@ type GiftCard implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! """Code in format which allows displaying in a user interface.""" displayCode: String! @@ -3987,38 +4290,54 @@ type GiftCard implements Node & ObjectWithMetadata { code: String! created: DateTime! - """New in Saleor 3.1. The user who bought or issued a gift card.""" + """ + New in Saleor 3.1. The user who bought or issued a gift card. Note: this feature is in a preview state and can be subject to changes at later point. + """ createdBy: User - """New in Saleor 3.1. The customer who used a gift card.""" + """ + New in Saleor 3.1. The customer who used a gift card. Note: this feature is in a preview state and can be subject to changes at later point. + """ usedBy: User """ - New in Saleor 3.1. Email address of the user who bought or issued gift card. + New in Saleor 3.1. Email address of the user who bought or issued gift card. Note: this feature is in a preview state and can be subject to changes at later point. """ createdByEmail: String - """New in Saleor 3.1. Email address of the customer who used a gift card.""" + """ + New in Saleor 3.1. Email address of the customer who used a gift card. Note: this feature is in a preview state and can be subject to changes at later point. + """ usedByEmail: String lastUsedOn: DateTime expiryDate: Date - """New in Saleor 3.1. App which created the gift card.""" + """ + New in Saleor 3.1. App which created the gift card. Note: this feature is in a preview state and can be subject to changes at later point. + """ app: App - """New in Saleor 3.1. Related gift card product.""" + """ + New in Saleor 3.1. Related gift card product. Note: this feature is in a preview state and can be subject to changes at later point. + """ product: Product - """New in Saleor 3.1. List of events associated with the gift card.""" + """ + New in Saleor 3.1. List of events associated with the gift card. Note: this feature is in a preview state and can be subject to changes at later point. + """ events( """Filtering options for gift card events.""" filter: GiftCardEventFilterInput ): [GiftCardEvent!]! - """New in Saleor 3.1. The gift card tag.""" + """ + New in Saleor 3.1. The gift card tag. Note: this feature is in a preview state and can be subject to changes at later point. + """ tags: [GiftCardTag!]! - """{ADDED_IN_31} Slug of the channel where the gift card was bought.""" + """ + New in Saleor 3.1. Slug of the channel where the gift card was bought. Note: this feature is in a preview state and can be subject to changes at later point. + """ boughtInChannel: String isActive: Boolean! initialBalance: Money @@ -4034,7 +4353,9 @@ type GiftCard implements Node & ObjectWithMetadata { startDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0.") } -"""Activate a gift card.""" +""" +Activate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardActivate { """Activated gift card.""" giftCard: GiftCard @@ -4042,7 +4363,9 @@ type GiftCardActivate { errors: [GiftCardError!]! } -"""New in Saleor 3.1. Adds note to the gift card.""" +""" +New in Saleor 3.1. Adds note to the gift card. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardAddNote { """Gift card with the note added.""" giftCard: GiftCard @@ -4057,14 +4380,18 @@ input GiftCardAddNoteInput { message: String! } -"""New in Saleor 3.1. Activate gift cards.""" +""" +New in Saleor 3.1. Activate gift cards. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardBulkActivate { """Returns how many objects were affected.""" count: Int! errors: [GiftCardError!]! } -"""New in Saleor 3.1. Create gift cards.""" +""" +New in Saleor 3.1. Create gift cards. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardBulkCreate { """Returns how many objects were created.""" count: Int! @@ -4091,14 +4418,18 @@ input GiftCardBulkCreateInput { isActive: Boolean! } -"""New in Saleor 3.1. Deactivate gift cards.""" +""" +New in Saleor 3.1. Deactivate gift cards. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardBulkDeactivate { """Returns how many objects were affected.""" count: Int! errors: [GiftCardError!]! } -"""New in Saleor 3.1. Delete gift cards.""" +""" +New in Saleor 3.1. Delete gift cards. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -4122,7 +4453,9 @@ type GiftCardCountableEdge { cursor: String! } -"""Creates a new gift card.""" +""" +Creates a new gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardCreate { giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! @@ -4130,10 +4463,14 @@ type GiftCardCreate { } input GiftCardCreateInput { - """New in Saleor 3.1. The gift card tags to add.""" + """ + New in Saleor 3.1. The gift card tags to add. Note: this feature is in a preview state and can be subject to changes at later point. + """ addTags: [String!] - """New in Saleor 3.1. The gift card expiry date.""" + """ + New in Saleor 3.1. The gift card expiry date. Note: this feature is in a preview state and can be subject to changes at later point. + """ expiryDate: Date """ @@ -4157,11 +4494,13 @@ input GiftCardCreateInput { userEmail: String """ - New in Saleor 3.1. Slug of a channel from which the email should be sent. + New in Saleor 3.1. Slug of a channel from which the email should be sent. Note: this feature is in a preview state and can be subject to changes at later point. """ channel: String - """New in Saleor 3.1. Determine if gift card is active.""" + """ + New in Saleor 3.1. Determine if gift card is active. Note: this feature is in a preview state and can be subject to changes at later point. + """ isActive: Boolean! """ @@ -4171,11 +4510,15 @@ input GiftCardCreateInput { """ code: String - """New in Saleor 3.1. The gift card note from the staff member.""" + """ + New in Saleor 3.1. The gift card note from the staff member. Note: this feature is in a preview state and can be subject to changes at later point. + """ note: String } -"""Deactivate a gift card.""" +""" +Deactivate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardDeactivate { """Deactivated gift card.""" giftCard: GiftCard @@ -4183,7 +4526,9 @@ type GiftCardDeactivate { errors: [GiftCardError!]! } -"""New in Saleor 3.1. Delete gift card.""" +""" +New in Saleor 3.1. Delete gift card. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardDelete { giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! @@ -4218,7 +4563,9 @@ enum GiftCardErrorCode { DUPLICATED_INPUT_ITEM } -"""New in Saleor 3.1. History log of the gift card.""" +""" +New in Saleor 3.1. History log of the gift card. Note: this feature is in a preview state and can be subject to changes at later point. +""" type GiftCardEvent implements Node { id: ID! @@ -4299,10 +4646,10 @@ enum GiftCardEventsEnum { input GiftCardFilterInput { isActive: Boolean - metadata: [MetadataFilter] - tags: [String] - products: [ID] - usedBy: [ID] + metadata: [MetadataFilter!] + tags: [String!] + products: [ID!] + usedBy: [ID!] used: Boolean currency: String currentBalance: PriceRangeInput @@ -4310,7 +4657,9 @@ input GiftCardFilterInput { code: String } -"""New in Saleor 3.1. Resend a gift card.""" +""" +New in Saleor 3.1. Resend a gift card. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardResend { """Gift card which has been sent.""" giftCard: GiftCard @@ -4363,7 +4712,9 @@ enum GiftCardSettingsExpiryTypeEnum { EXPIRY_PERIOD } -"""Update gift card settings.""" +""" +Update gift card settings. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardSettingsUpdate { """Gift card settings.""" giftCardSettings: GiftCardSettings @@ -4397,7 +4748,9 @@ input GiftCardSortingInput { field: GiftCardSortField! } -"""New in Saleor 3.1. The gift card tag.""" +""" +New in Saleor 3.1. The gift card tag. Note: this feature is in a preview state and can be subject to changes at later point. +""" type GiftCardTag implements Node { id: ID! name: String! @@ -4424,7 +4777,9 @@ input GiftCardTagFilterInput { search: String } -"""Update a gift card.""" +""" +Update a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. +""" type GiftCardUpdate { giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! @@ -4432,10 +4787,14 @@ type GiftCardUpdate { } input GiftCardUpdateInput { - """New in Saleor 3.1. The gift card tags to add.""" + """ + New in Saleor 3.1. The gift card tags to add. Note: this feature is in a preview state and can be subject to changes at later point. + """ addTags: [String!] - """New in Saleor 3.1. The gift card expiry date.""" + """ + New in Saleor 3.1. The gift card expiry date. Note: this feature is in a preview state and can be subject to changes at later point. + """ expiryDate: Date """ @@ -4452,10 +4811,14 @@ input GiftCardUpdateInput { """ endDate: Date - """New in Saleor 3.1. The gift card tags to remove.""" + """ + New in Saleor 3.1. The gift card tags to remove. Note: this feature is in a preview state and can be subject to changes at later point. + """ removeTags: [String!] - """New in Saleor 3.1. The gift card balance amount.""" + """ + New in Saleor 3.1. The gift card balance amount. Note: this feature is in a preview state and can be subject to changes at later point. + """ balanceAmount: PositiveDecimal } @@ -4465,10 +4828,10 @@ type Group implements Node { name: String! """List of group users""" - users: [User] + users: [User!] """List of group permissions""" - permissions: [Permission] + permissions: [Permission!] """ True, if the currently authenticated user has rights to manage a group. @@ -4515,10 +4878,10 @@ type Invoice implements ObjectWithMetadata & Job & Node { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! """Job status.""" status: JobStatusEnum! @@ -4535,7 +4898,9 @@ type Invoice implements ObjectWithMetadata & Job & Node { url: String } -"""Creates a ready to send invoice.""" +""" +Creates a ready to send invoice. Requires one of the following permissions: MANAGE_ORDERS. +""" type InvoiceCreate { invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! @@ -4550,13 +4915,22 @@ input InvoiceCreateInput { url: String! } -"""Deletes an invoice.""" +""" +Deletes an invoice. Requires one of the following permissions: MANAGE_ORDERS. +""" type InvoiceDelete { invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } +type InvoiceDeleted { + """ + New in Saleor 3.2. Look up an Invoice. Note: this feature is in a preview state and can be subject to changes at later point. + """ + invoice: Invoice +} + type InvoiceError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -4582,7 +4956,9 @@ enum InvoiceErrorCode { NO_INVOICE_PLUGIN } -"""Request an invoice for the order using plugin.""" +""" +Request an invoice for the order using plugin. Requires one of the following permissions: MANAGE_ORDERS. +""" type InvoiceRequest { """Order related to an invoice.""" order: Order @@ -4591,33 +4967,47 @@ type InvoiceRequest { invoice: Invoice } -"""Requests deletion of an invoice.""" +""" +Requests deletion of an invoice. Requires one of the following permissions: MANAGE_ORDERS. +""" type InvoiceRequestDelete { invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } -"""Send an invoice notification to the customer.""" +type InvoiceRequested { + """ + New in Saleor 3.2. Look up an Invoice. Note: this feature is in a preview state and can be subject to changes at later point. + """ + invoice: Invoice +} + +""" +Send an invoice notification to the customer. Requires one of the following permissions: MANAGE_ORDERS. +""" type InvoiceSendNotification { invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } -"""Updates an invoice.""" +type InvoiceSent { + """ + New in Saleor 3.2. Look up an Invoice. Note: this feature is in a preview state and can be subject to changes at later point. + """ + invoice: Invoice +} + +""" +Updates an invoice. Requires one of the following permissions: MANAGE_ORDERS. +""" type InvoiceUpdate { invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } -""" -Allows use of a JSON String for input / output from the GraphQL schema. - -Use of this type is *not recommended* as you lose the benefits of having a defined, static -schema (one of the key benefits of GraphQL). -""" scalar JSONString interface Job { @@ -5455,7 +5845,7 @@ type Manifest { version: String! name: String! about: String - permissions: [Permission] + permissions: [Permission!] appUrl: String configurationUrl: String tokenTargetUrl: String @@ -5514,16 +5904,18 @@ type Menu implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String! slug: String! - items: [MenuItem] + items: [MenuItem!] } -"""Deletes menus.""" +""" +Deletes menus. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -5548,7 +5940,9 @@ type MenuCountableEdge { cursor: String! } -"""Creates a new Menu.""" +""" +Creates a new Menu. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuCreate { menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! @@ -5563,10 +5957,12 @@ input MenuCreateInput { slug: String """List of menu items.""" - items: [MenuItemInput] + items: [MenuItemInput!] } -"""Deletes a menu.""" +""" +Deletes a menu. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuDelete { menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! @@ -5601,8 +5997,8 @@ enum MenuErrorCode { input MenuFilterInput { search: String - slug: [String] - metadata: [MetadataFilter] + slug: [String!] + metadata: [MetadataFilter!] } input MenuInput { @@ -5622,10 +6018,10 @@ type MenuItem implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String! menu: Menu! parent: MenuItem @@ -5633,7 +6029,7 @@ type MenuItem implements Node & ObjectWithMetadata { collection: Collection page: Page level: Int! - children: [MenuItem] + children: [MenuItem!] """URL to the menu item.""" url: String @@ -5645,7 +6041,9 @@ type MenuItem implements Node & ObjectWithMetadata { ): MenuItemTranslation } -"""Deletes menu items.""" +""" +Deletes menu items. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuItemBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -5670,7 +6068,9 @@ type MenuItemCountableEdge { cursor: String! } -"""Creates a new menu item.""" +""" +Creates a new menu item. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuItemCreate { menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! @@ -5700,7 +6100,9 @@ input MenuItemCreateInput { parent: ID } -"""Deletes a menu item.""" +""" +Deletes a menu item. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuItemDelete { menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! @@ -5709,7 +6111,7 @@ type MenuItemDelete { input MenuItemFilterInput { search: String - metadata: [MetadataFilter] + metadata: [MetadataFilter!] } input MenuItemInput { @@ -5729,7 +6131,9 @@ input MenuItemInput { page: ID } -"""Moves items of menus.""" +""" +Moves items of menus. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuItemMove { """Assigned menu to move within.""" menu: Menu @@ -5774,7 +6178,9 @@ type MenuItemTranslatableContent implements Node { menuItem: MenuItem @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") } -"""Creates/updates translations for a menu item.""" +""" +Creates/updates translations for a menu item. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type MenuItemTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -5789,7 +6195,9 @@ type MenuItemTranslation implements Node { name: String! } -"""Updates a menu item.""" +""" +Updates a menu item. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuItemUpdate { menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! @@ -5817,7 +6225,9 @@ input MenuSortingInput { field: MenuSortField! } -"""Updates a menu.""" +""" +Updates a menu. Requires one of the following permissions: MANAGE_MENUS. +""" type MenuUpdate { menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! @@ -5843,6 +6253,7 @@ enum MetadataErrorCode { INVALID NOT_FOUND REQUIRED + NOT_UPDATED } input MetadataFilter { @@ -5906,19 +6317,25 @@ input MoveProductInput { } type Mutation { - """Creates a new webhook subscription.""" + """ + Creates a new webhook subscription. Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. + """ webhookCreate( """Fields required to create a webhook.""" input: WebhookCreateInput! ): WebhookCreate - """Deletes a webhook subscription.""" + """ + Deletes a webhook subscription. Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. + """ webhookDelete( """ID of a webhook to delete.""" id: ID! ): WebhookDelete - """Updates a webhook subscription.""" + """ + Updates a webhook subscription. Requires one of the following permissions: MANAGE_APPS. + """ webhookUpdate( """ID of a webhook to update.""" id: ID! @@ -5927,19 +6344,25 @@ type Mutation { input: WebhookUpdateInput! ): WebhookUpdate - """Retries event delivery.""" + """ + Retries event delivery. Requires one of the following permissions: MANAGE_APPS. + """ eventDeliveryRetry( """ID of the event delivery to retry.""" id: ID! ): EventDeliveryRetry - """Creates new warehouse.""" + """ + Creates new warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. + """ createWarehouse( """Fields required to create warehouse.""" input: WarehouseCreateInput! ): WarehouseCreate - """Updates given warehouse.""" + """ + Updates given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. + """ updateWarehouse( """ID of a warehouse to update.""" id: ID! @@ -5948,13 +6371,17 @@ type Mutation { input: WarehouseUpdateInput! ): WarehouseUpdate - """Deletes selected warehouse.""" + """ + Deletes selected warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. + """ deleteWarehouse( """ID of a warehouse to delete.""" id: ID! ): WarehouseDelete - """Add shipping zone to given warehouse.""" + """ + Add shipping zone to given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. + """ assignWarehouseShippingZone( """ID of a warehouse to update.""" id: ID! @@ -5963,7 +6390,9 @@ type Mutation { shippingZoneIds: [ID!]! ): WarehouseShippingZoneAssign - """Remove shipping zone from given warehouse.""" + """ + Remove shipping zone from given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. + """ unassignWarehouseShippingZone( """ID of a warehouse to update.""" id: ID! @@ -5972,13 +6401,17 @@ type Mutation { shippingZoneIds: [ID!]! ): WarehouseShippingZoneUnassign - """Creates a new staff notification recipient.""" + """ + Creates a new staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. + """ staffNotificationRecipientCreate( """Fields required to create a staff notification recipient.""" input: StaffNotificationRecipientInput! ): StaffNotificationRecipientCreate - """Updates a staff notification recipient.""" + """ + Updates a staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. + """ staffNotificationRecipientUpdate( """ID of a staff notification recipient to update.""" id: ID! @@ -5987,28 +6420,38 @@ type Mutation { input: StaffNotificationRecipientInput! ): StaffNotificationRecipientUpdate - """Delete staff notification recipient.""" + """ + Delete staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. + """ staffNotificationRecipientDelete( """ID of a staff notification recipient to delete.""" id: ID! ): StaffNotificationRecipientDelete - """Updates site domain of the shop.""" + """ + Updates site domain of the shop. Requires one of the following permissions: MANAGE_SETTINGS. + """ shopDomainUpdate( """Fields required to update site.""" input: SiteDomainInput ): ShopDomainUpdate - """Updates shop settings.""" + """ + Updates shop settings. Requires one of the following permissions: MANAGE_SETTINGS. + """ shopSettingsUpdate( """Fields required to update shop settings.""" input: ShopSettingsInput! ): ShopSettingsUpdate - """Fetch tax rates.""" + """ + Fetch tax rates. Requires one of the following permissions: MANAGE_SETTINGS. + """ shopFetchTaxRates: ShopFetchTaxRates - """Creates/updates translations for shop settings.""" + """ + Creates/updates translations for shop settings. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ shopSettingsTranslate( """Fields required to update shop settings translations.""" input: ShopSettingsTranslationInput! @@ -6018,26 +6461,32 @@ type Mutation { ): ShopSettingsTranslate """ - Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. + Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. Requires one of the following permissions: MANAGE_SETTINGS. """ shopAddressUpdate( """Fields required to update shop address.""" input: AddressInput ): ShopAddressUpdate - """Update shop order settings.""" + """ + Update shop order settings. Requires one of the following permissions: MANAGE_ORDERS. + """ orderSettingsUpdate( """Fields required to update shop order settings.""" input: OrderSettingsUpdateInput! ): OrderSettingsUpdate - """Update gift card settings.""" + """ + Update gift card settings. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardSettingsUpdate( """Fields required to update gift card settings.""" input: GiftCardSettingsUpdateInput! ): GiftCardSettingsUpdate - """Manage shipping method's availability in channels.""" + """ + Manage shipping method's availability in channels. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingMethodChannelListingUpdate( """ID of a shipping method to update.""" id: ID! @@ -6046,25 +6495,33 @@ type Mutation { input: ShippingMethodChannelListingInput! ): ShippingMethodChannelListingUpdate - """Creates a new shipping price.""" + """ + Creates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingPriceCreate( """Fields required to create a shipping price.""" input: ShippingPriceInput! ): ShippingPriceCreate - """Deletes a shipping price.""" + """ + Deletes a shipping price. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingPriceDelete( """ID of a shipping price to delete.""" id: ID! ): ShippingPriceDelete - """Deletes shipping prices.""" + """ + Deletes shipping prices. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingPriceBulkDelete( """List of shipping price IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): ShippingPriceBulkDelete - """Updates a new shipping price.""" + """ + Updates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingPriceUpdate( """ID of a shipping price to update.""" id: ID! @@ -6073,9 +6530,11 @@ type Mutation { input: ShippingPriceInput! ): ShippingPriceUpdate - """Creates/updates translations for a shipping method.""" + """ + Creates/updates translations for a shipping method. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ shippingPriceTranslate( - """('ShippingMethodType ID or ShippingMethodTranslatableContent ID.',)""" + """ShippingMethodType ID or ShippingMethodTranslatableContent ID.""" id: ID! input: ShippingPriceTranslationInput! @@ -6083,7 +6542,9 @@ type Mutation { languageCode: LanguageCodeEnum! ): ShippingPriceTranslate - """Exclude products from shipping price.""" + """ + Exclude products from shipping price. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingPriceExcludeProducts( """ID of a shipping price.""" id: ID! @@ -6092,34 +6553,44 @@ type Mutation { input: ShippingPriceExcludeProductsInput! ): ShippingPriceExcludeProducts - """Remove product from excluded list for shipping price.""" + """ + Remove product from excluded list for shipping price. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingPriceRemoveProductFromExclude( """ID of a shipping price.""" id: ID! """List of products which will be removed from excluded list.""" - products: [ID]! + products: [ID!]! ): ShippingPriceRemoveProductFromExclude - """Creates a new shipping zone.""" + """ + Creates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingZoneCreate( """Fields required to create a shipping zone.""" input: ShippingZoneCreateInput! ): ShippingZoneCreate - """Deletes a shipping zone.""" + """ + Deletes a shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingZoneDelete( """ID of a shipping zone to delete.""" id: ID! ): ShippingZoneDelete - """Deletes shipping zones.""" + """ + Deletes shipping zones. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingZoneBulkDelete( """List of shipping zone IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): ShippingZoneBulkDelete - """Updates a new shipping zone.""" + """ + Updates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. + """ shippingZoneUpdate( """ID of a shipping zone to update.""" id: ID! @@ -6128,36 +6599,42 @@ type Mutation { input: ShippingZoneUpdateInput! ): ShippingZoneUpdate - """Assign attributes to a given product type.""" + """ + Assign attributes to a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ productAttributeAssign( """The operations to perform.""" - operations: [ProductAttributeAssignInput]! + operations: [ProductAttributeAssignInput!]! """ID of the product type to assign the attributes into.""" productTypeId: ID! ): ProductAttributeAssign """ - New in Saleor 3.1. Update attributes assigned to product variant for given product type. + New in Saleor 3.1. Update attributes assigned to product variant for given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ productAttributeAssignmentUpdate( """The operations to perform.""" - operations: [ProductAttributeAssignmentUpdateInput]! + operations: [ProductAttributeAssignmentUpdateInput!]! """ID of the product type to assign the attributes into.""" productTypeId: ID! ): ProductAttributeAssignmentUpdate - """Un-assign attributes from a given product type.""" + """ + Un-assign attributes from a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ productAttributeUnassign( """The IDs of the attributes to unassign.""" - attributeIds: [ID]! + attributeIds: [ID!]! """ID of the product type from which the attributes should be unassigned.""" productTypeId: ID! ): ProductAttributeUnassign - """Creates a new category.""" + """ + Creates a new category. Requires one of the following permissions: MANAGE_PRODUCTS. + """ categoryCreate( """Fields required to create a category.""" input: CategoryInput! @@ -6168,19 +6645,25 @@ type Mutation { parent: ID ): CategoryCreate - """Deletes a category.""" + """ + Deletes a category. Requires one of the following permissions: MANAGE_PRODUCTS. + """ categoryDelete( """ID of a category to delete.""" id: ID! ): CategoryDelete - """Deletes categories.""" + """ + Deletes categories. Requires one of the following permissions: MANAGE_PRODUCTS. + """ categoryBulkDelete( """List of category IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): CategoryBulkDelete - """Updates a category.""" + """ + Updates a category. Requires one of the following permissions: MANAGE_PRODUCTS. + """ categoryUpdate( """ID of a category to update.""" id: ID! @@ -6189,7 +6672,9 @@ type Mutation { input: CategoryInput! ): CategoryUpdate - """Creates/updates translations for a category.""" + """ + Creates/updates translations for a category. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ categoryTranslate( """Category ID or CategoryTranslatableContent ID.""" id: ID! @@ -6199,52 +6684,66 @@ type Mutation { languageCode: LanguageCodeEnum! ): CategoryTranslate - """Adds products to a collection.""" + """ + Adds products to a collection. Requires one of the following permissions: MANAGE_PRODUCTS. + """ collectionAddProducts( """ID of a collection.""" collectionId: ID! """List of product IDs.""" - products: [ID]! + products: [ID!]! ): CollectionAddProducts - """Creates a new collection.""" + """ + Creates a new collection. Requires one of the following permissions: MANAGE_PRODUCTS. + """ collectionCreate( """Fields required to create a collection.""" input: CollectionCreateInput! ): CollectionCreate - """Deletes a collection.""" + """ + Deletes a collection. Requires one of the following permissions: MANAGE_PRODUCTS. + """ collectionDelete( """ID of a collection to delete.""" id: ID! ): CollectionDelete - """Reorder the products of a collection.""" + """ + Reorder the products of a collection. Requires one of the following permissions: MANAGE_PRODUCTS. + """ collectionReorderProducts( """ID of a collection.""" collectionId: ID! """The collection products position operations.""" - moves: [MoveProductInput]! + moves: [MoveProductInput!]! ): CollectionReorderProducts - """Deletes collections.""" + """ + Deletes collections. Requires one of the following permissions: MANAGE_PRODUCTS. + """ collectionBulkDelete( """List of collection IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): CollectionBulkDelete - """Remove products from a collection.""" + """ + Remove products from a collection. Requires one of the following permissions: MANAGE_PRODUCTS. + """ collectionRemoveProducts( """ID of a collection.""" collectionId: ID! """List of product IDs.""" - products: [ID]! + products: [ID!]! ): CollectionRemoveProducts - """Updates a collection.""" + """ + Updates a collection. Requires one of the following permissions: MANAGE_PRODUCTS. + """ collectionUpdate( """ID of a collection to update.""" id: ID! @@ -6253,7 +6752,9 @@ type Mutation { input: CollectionInput! ): CollectionUpdate - """Creates/updates translations for a collection.""" + """ + Creates/updates translations for a collection. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ collectionTranslate( """Collection ID or CollectionTranslatableContent ID.""" id: ID! @@ -6263,7 +6764,9 @@ type Mutation { languageCode: LanguageCodeEnum! ): CollectionTranslate - """Manage collection's availability in channels.""" + """ + Manage collection's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. + """ collectionChannelListingUpdate( """ID of a collection to update.""" id: ID! @@ -6272,25 +6775,33 @@ type Mutation { input: CollectionChannelListingUpdateInput! ): CollectionChannelListingUpdate - """Creates a new product.""" + """ + Creates a new product. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productCreate( """Fields required to create a product.""" input: ProductCreateInput! ): ProductCreate - """Deletes a product.""" + """ + Deletes a product. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productDelete( """ID of a product to delete.""" id: ID! ): ProductDelete - """Deletes products.""" + """ + Deletes products. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productBulkDelete( """List of product IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): ProductBulkDelete - """Updates an existing product.""" + """ + Updates an existing product. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productUpdate( """ID of a product to update.""" id: ID! @@ -6299,7 +6810,9 @@ type Mutation { input: ProductInput! ): ProductUpdate - """Creates/updates translations for a product.""" + """ + Creates/updates translations for a product. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ productTranslate( """Product ID or ProductTranslatableContent ID.""" id: ID! @@ -6309,7 +6822,9 @@ type Mutation { languageCode: LanguageCodeEnum! ): ProductTranslate - """Manage product's availability in channels.""" + """ + Manage product's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productChannelListingUpdate( """ID of a product to update.""" id: ID! @@ -6319,7 +6834,7 @@ type Mutation { ): ProductChannelListingUpdate """ - Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec + Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec Requires one of the following permissions: MANAGE_PRODUCTS. """ productMediaCreate( """Fields required to create a product media.""" @@ -6327,38 +6842,46 @@ type Mutation { ): ProductMediaCreate """ - Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. + Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantReorder( """The list of variant reordering operations.""" - moves: [ReorderInput]! + moves: [ReorderInput!]! """Id of product that variants order will be altered.""" productId: ID! ): ProductVariantReorder - """Deletes a product media.""" + """ + Deletes a product media. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productMediaDelete( """ID of a product media to delete.""" id: ID! ): ProductMediaDelete - """Deletes product media.""" + """ + Deletes product media. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productMediaBulkDelete( """List of product media IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): ProductMediaBulkDelete - """Changes ordering of the product media.""" + """ + Changes ordering of the product media. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productMediaReorder( """IDs of a product media in the desired order.""" - mediaIds: [ID]! + mediaIds: [ID!]! """ID of product that media order will be altered.""" productId: ID! ): ProductMediaReorder - """Updates a product media.""" + """ + Updates a product media. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productMediaUpdate( """ID of a product media to update.""" id: ID! @@ -6367,25 +6890,33 @@ type Mutation { input: ProductMediaUpdateInput! ): ProductMediaUpdate - """Creates a new product type.""" + """ + Creates a new product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ productTypeCreate( """Fields required to create a product type.""" input: ProductTypeInput! ): ProductTypeCreate - """Deletes a product type.""" + """ + Deletes a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ productTypeDelete( """ID of a product type to delete.""" id: ID! ): ProductTypeDelete - """Deletes product types.""" + """ + Deletes product types. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ productTypeBulkDelete( """List of product type IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): ProductTypeBulkDelete - """Updates an existing product type.""" + """ + Updates an existing product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ productTypeUpdate( """ID of a product type to update.""" id: ID! @@ -6394,10 +6925,12 @@ type Mutation { input: ProductTypeInput! ): ProductTypeUpdate - """Reorder the attributes of a product type.""" + """ + Reorder the attributes of a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ productTypeReorderAttributes( """The list of attribute reordering operations.""" - moves: [ReorderInput]! + moves: [ReorderInput!]! """ID of a product type.""" productTypeId: ID! @@ -6406,13 +6939,15 @@ type Mutation { type: ProductAttributeType! ): ProductTypeReorderAttributes - """Reorder product attribute values.""" + """ + Reorder product attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productReorderAttributeValues( """ID of an attribute.""" attributeId: ID! """The list of reordering operations for given attribute values.""" - moves: [ReorderInput]! + moves: [ReorderInput!]! """ID of a product.""" productId: ID! @@ -6450,34 +6985,44 @@ type Mutation { input: DigitalContentUrlCreateInput! ): DigitalContentUrlCreate - """Creates a new variant for a product.""" + """ + Creates a new variant for a product. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantCreate( """Fields required to create a product variant.""" input: ProductVariantCreateInput! ): ProductVariantCreate - """Deletes a product variant.""" + """ + Deletes a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantDelete( """ID of a product variant to delete.""" id: ID! ): ProductVariantDelete - """Creates product variants for a given product.""" + """ + Creates product variants for a given product. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantBulkCreate( """ID of the product to create the variants for.""" product: ID! """Input list of product variants to create.""" - variants: [ProductVariantBulkCreateInput]! + variants: [ProductVariantBulkCreateInput!]! ): ProductVariantBulkCreate - """Deletes product variants.""" + """ + Deletes product variants. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantBulkDelete( """List of product variant IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): ProductVariantBulkDelete - """Creates stocks for product variant.""" + """ + Creates stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantStocksCreate( """Input list of stocks to create.""" stocks: [StockInput!]! @@ -6486,14 +7031,18 @@ type Mutation { variantId: ID! ): ProductVariantStocksCreate - """Delete stocks from product variant.""" + """ + Delete stocks from product variant. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantStocksDelete( """ID of product variant for which stocks will be deleted.""" variantId: ID! warehouseIds: [ID!] ): ProductVariantStocksDelete - """Update stocks for product variant.""" + """ + Update stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantStocksUpdate( """Input list of stocks to create.""" stocks: [StockInput!]! @@ -6502,7 +7051,9 @@ type Mutation { variantId: ID! ): ProductVariantStocksUpdate - """Updates an existing variant for product.""" + """ + Updates an existing variant for product. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantUpdate( """ID of a product variant to update.""" id: ID! @@ -6512,7 +7063,7 @@ type Mutation { ): ProductVariantUpdate """ - Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. + Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantSetDefault( """Id of a product that will have the default variant set.""" @@ -6522,7 +7073,9 @@ type Mutation { variantId: ID! ): ProductVariantSetDefault - """Creates/updates translations for a product variant.""" + """ + Creates/updates translations for a product variant. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ productVariantTranslate( """ProductVariant ID or ProductVariantTranslatableContent ID.""" id: ID! @@ -6532,7 +7085,9 @@ type Mutation { languageCode: LanguageCodeEnum! ): ProductVariantTranslate - """Manage product variant prices in channels.""" + """ + Manage product variant prices in channels. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantChannelListingUpdate( """ID of a product variant to update.""" id: ID! @@ -6543,27 +7098,31 @@ type Mutation { input: [ProductVariantChannelListingAddInput!]! ): ProductVariantChannelListingUpdate - """Reorder product variant attribute values.""" + """ + Reorder product variant attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. + """ productVariantReorderAttributeValues( """ID of an attribute.""" attributeId: ID! """The list of reordering operations for given attribute values.""" - moves: [ReorderInput]! + moves: [ReorderInput!]! """ID of a product variant.""" variantId: ID! ): ProductVariantReorderAttributeValues """ - New in Saleor 3.1. Deactivates product variant preorder.It changes all preorder allocation into regular allocation. + New in Saleor 3.1. Deactivates product variant preorder. It changes all preorder allocation into regular allocation. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_PRODUCTS. """ productVariantPreorderDeactivate( """ID of a variant which preorder should be deactivated.""" id: ID! ): ProductVariantPreorderDeactivate - """Assign an media to a product variant.""" + """ + Assign an media to a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. + """ variantMediaAssign( """ID of a product media to assign to a variant.""" mediaId: ID! @@ -6572,7 +7131,9 @@ type Mutation { variantId: ID! ): VariantMediaAssign - """Unassign an media from a product variant.""" + """ + Unassign an media from a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. + """ variantMediaUnassign( """ID of a product media to unassign from a variant.""" mediaId: ID! @@ -6581,7 +7142,9 @@ type Mutation { variantId: ID! ): VariantMediaUnassign - """Captures the authorized payment amount.""" + """ + Captures the authorized payment amount. Requires one of the following permissions: MANAGE_ORDERS. + """ paymentCapture( """Transaction amount.""" amount: PositiveDecimal @@ -6590,7 +7153,9 @@ type Mutation { paymentId: ID! ): PaymentCapture - """Refunds the captured payment amount.""" + """ + Refunds the captured payment amount. Requires one of the following permissions: MANAGE_ORDERS. + """ paymentRefund( """Transaction amount.""" amount: PositiveDecimal @@ -6599,7 +7164,9 @@ type Mutation { paymentId: ID! ): PaymentRefund - """Voids the authorized payment.""" + """ + Voids the authorized payment. Requires one of the following permissions: MANAGE_ORDERS. + """ paymentVoid( """Payment ID.""" paymentId: ID! @@ -6623,34 +7190,44 @@ type Mutation { input: PaymentCheckBalanceInput! ): PaymentCheckBalance - """Creates a new page.""" + """ + Creates a new page. Requires one of the following permissions: MANAGE_PAGES. + """ pageCreate( """Fields required to create a page.""" input: PageCreateInput! ): PageCreate - """Deletes a page.""" + """ + Deletes a page. Requires one of the following permissions: MANAGE_PAGES. + """ pageDelete( """ID of a page to delete.""" id: ID! ): PageDelete - """Deletes pages.""" + """ + Deletes pages. Requires one of the following permissions: MANAGE_PAGES. + """ pageBulkDelete( """List of page IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): PageBulkDelete - """Publish pages.""" + """ + Publish pages. Requires one of the following permissions: MANAGE_PAGES. + """ pageBulkPublish( """List of page IDs to (un)publish.""" - ids: [ID]! + ids: [ID!]! """Determine if pages will be published or not.""" isPublished: Boolean! ): PageBulkPublish - """Updates an existing page.""" + """ + Updates an existing page. Requires one of the following permissions: MANAGE_PAGES. + """ pageUpdate( """ID of a page to update.""" id: ID! @@ -6659,7 +7236,9 @@ type Mutation { input: PageInput! ): PageUpdate - """Creates/updates translations for a page.""" + """ + Creates/updates translations for a page. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ pageTranslate( """Page ID or PageTranslatableContent ID.""" id: ID! @@ -6669,13 +7248,17 @@ type Mutation { languageCode: LanguageCodeEnum! ): PageTranslate - """Create a new page type.""" + """ + Create a new page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ pageTypeCreate( """Fields required to create page type.""" input: PageTypeCreateInput! ): PageTypeCreate - """Update page type.""" + """ + Update page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ pageTypeUpdate( """ID of the page type to update.""" id: ID @@ -6684,19 +7267,25 @@ type Mutation { input: PageTypeUpdateInput! ): PageTypeUpdate - """Delete a page type.""" + """ + Delete a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ pageTypeDelete( """ID of the page type to delete.""" id: ID! ): PageTypeDelete - """Delete page types.""" + """ + Delete page types. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ pageTypeBulkDelete( """List of page type IDs to delete""" ids: [ID!]! ): PageTypeBulkDelete - """Assign attributes to a given page type.""" + """ + Assign attributes to a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ pageAttributeAssign( """The IDs of the attributes to assign.""" attributeIds: [ID!]! @@ -6705,7 +7294,9 @@ type Mutation { pageTypeId: ID! ): PageAttributeAssign - """Unassign attributes from a given page type.""" + """ + Unassign attributes from a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ pageAttributeUnassign( """The IDs of the attributes to unassign.""" attributeIds: [ID!]! @@ -6714,7 +7305,9 @@ type Mutation { pageTypeId: ID! ): PageAttributeUnassign - """Reorder the attributes of a page type.""" + """ + Reorder the attributes of a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ pageTypeReorderAttributes( """The list of attribute reordering operations.""" moves: [ReorderInput!]! @@ -6723,49 +7316,63 @@ type Mutation { pageTypeId: ID! ): PageTypeReorderAttributes - """Reorder page attribute values.""" + """ + Reorder page attribute values. Requires one of the following permissions: MANAGE_PAGES. + """ pageReorderAttributeValues( """ID of an attribute.""" attributeId: ID! """The list of reordering operations for given attribute values.""" - moves: [ReorderInput]! + moves: [ReorderInput!]! """ID of a page.""" pageId: ID! ): PageReorderAttributeValues - """Completes creating an order.""" + """ + Completes creating an order. Requires one of the following permissions: MANAGE_ORDERS. + """ draftOrderComplete( """ID of the order that will be completed.""" id: ID! ): DraftOrderComplete - """Creates a new draft order.""" + """ + Creates a new draft order. Requires one of the following permissions: MANAGE_ORDERS. + """ draftOrderCreate( """Fields required to create an order.""" input: DraftOrderCreateInput! ): DraftOrderCreate - """Deletes a draft order.""" + """ + Deletes a draft order. Requires one of the following permissions: MANAGE_ORDERS. + """ draftOrderDelete( """ID of a draft order to delete.""" id: ID! ): DraftOrderDelete - """Deletes draft orders.""" + """ + Deletes draft orders. Requires one of the following permissions: MANAGE_ORDERS. + """ draftOrderBulkDelete( """List of draft order IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): DraftOrderBulkDelete - """Deletes order lines.""" + """ + Deletes order lines. Requires one of the following permissions: MANAGE_ORDERS. + """ draftOrderLinesBulkDelete( """List of order lines IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): DraftOrderLinesBulkDelete @deprecated(reason: "This field will be removed in Saleor 4.0.") - """Updates a draft order.""" + """ + Updates a draft order. Requires one of the following permissions: MANAGE_ORDERS. + """ draftOrderUpdate( """ID of a draft order to update.""" id: ID! @@ -6774,7 +7381,9 @@ type Mutation { input: DraftOrderInput! ): DraftOrderUpdate - """Adds note to the order.""" + """ + Adds note to the order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderAddNote( """ID of the order to add a note for.""" order: ID! @@ -6783,13 +7392,17 @@ type Mutation { input: OrderAddNoteInput! ): OrderAddNote - """Cancel an order.""" + """ + Cancel an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderCancel( """ID of the order to cancel.""" id: ID! ): OrderCancel - """Capture an order.""" + """ + Capture an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderCapture( """Amount of money to capture.""" amount: PositiveDecimal! @@ -6798,13 +7411,17 @@ type Mutation { id: ID! ): OrderCapture - """Confirms an unconfirmed order by changing status to unfulfilled.""" + """ + Confirms an unconfirmed order by changing status to unfulfilled. Requires one of the following permissions: MANAGE_ORDERS. + """ orderConfirm( """ID of an order to confirm.""" id: ID! ): OrderConfirm - """Creates new fulfillments for an order.""" + """ + Creates new fulfillments for an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderFulfill( """Fields required to create a fulfillment.""" input: OrderFulfillInput! @@ -6813,7 +7430,9 @@ type Mutation { order: ID ): OrderFulfill - """Cancels existing fulfillment and optionally restocks items.""" + """ + Cancels existing fulfillment and optionally restocks items. Requires one of the following permissions: MANAGE_ORDERS. + """ orderFulfillmentCancel( """ID of a fulfillment to cancel.""" id: ID! @@ -6822,7 +7441,9 @@ type Mutation { input: FulfillmentCancelInput ): FulfillmentCancel - """New in Saleor 3.1. Approve existing fulfillment.""" + """ + New in Saleor 3.1. Approve existing fulfillment. Requires one of the following permissions: MANAGE_ORDERS. + """ orderFulfillmentApprove( """True if stock could be exceeded.""" allowStockToBeExceeded: Boolean = false @@ -6834,7 +7455,9 @@ type Mutation { notifyCustomer: Boolean! ): FulfillmentApprove - """Updates a fulfillment for an order.""" + """ + Updates a fulfillment for an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderFulfillmentUpdateTracking( """ID of a fulfillment to update.""" id: ID! @@ -6843,7 +7466,9 @@ type Mutation { input: FulfillmentUpdateTrackingInput! ): FulfillmentUpdateTracking - """Refund products.""" + """ + Refund products. Requires one of the following permissions: MANAGE_ORDERS. + """ orderFulfillmentRefundProducts( """Fields required to create an refund fulfillment.""" input: OrderRefundProductsInput! @@ -6852,7 +7477,9 @@ type Mutation { order: ID! ): FulfillmentRefundProducts - """Return products.""" + """ + Return products. Requires one of the following permissions: MANAGE_ORDERS. + """ orderFulfillmentReturnProducts( """Fields required to return products.""" input: OrderReturnProductsInput! @@ -6861,22 +7488,28 @@ type Mutation { order: ID! ): FulfillmentReturnProducts - """Create order lines for an order.""" + """ + Create order lines for an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderLinesCreate( """ID of the order to add the lines to.""" id: ID! """Fields required to add order lines.""" - input: [OrderLineCreateInput]! + input: [OrderLineCreateInput!]! ): OrderLinesCreate - """Deletes an order line from an order.""" + """ + Deletes an order line from an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderLineDelete( """ID of the order line to delete.""" id: ID! ): OrderLineDelete - """Updates an order line of an order.""" + """ + Updates an order line of an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderLineUpdate( """ID of the order line to update.""" id: ID! @@ -6885,7 +7518,9 @@ type Mutation { input: OrderLineInput! ): OrderLineUpdate - """Adds discount to the order.""" + """ + Adds discount to the order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderDiscountAdd( """Fields required to create a discount for the order.""" input: OrderDiscountCommonInput! @@ -6894,7 +7529,9 @@ type Mutation { orderId: ID! ): OrderDiscountAdd - """Update discount for the order.""" + """ + Update discount for the order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderDiscountUpdate( """ID of a discount to update.""" discountId: ID! @@ -6903,13 +7540,17 @@ type Mutation { input: OrderDiscountCommonInput! ): OrderDiscountUpdate - """Remove discount from the order.""" + """ + Remove discount from the order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderDiscountDelete( """ID of a discount to remove.""" discountId: ID! ): OrderDiscountDelete - """Update discount for the order line.""" + """ + Update discount for the order line. Requires one of the following permissions: MANAGE_ORDERS. + """ orderLineDiscountUpdate( """Fields required to update price for the order line.""" input: OrderDiscountCommonInput! @@ -6918,13 +7559,17 @@ type Mutation { orderLineId: ID! ): OrderLineDiscountUpdate - """Remove discount applied to the order line.""" + """ + Remove discount applied to the order line. Requires one of the following permissions: MANAGE_ORDERS. + """ orderLineDiscountRemove( """ID of a order line to remove its discount""" orderLineId: ID! ): OrderLineDiscountRemove - """Mark order as manually paid.""" + """ + Mark order as manually paid. Requires one of the following permissions: MANAGE_ORDERS. + """ orderMarkAsPaid( """ID of the order to mark paid.""" id: ID! @@ -6933,7 +7578,9 @@ type Mutation { transactionReference: String ): OrderMarkAsPaid - """Refund an order.""" + """ + Refund an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderRefund( """Amount of money to refund.""" amount: PositiveDecimal! @@ -6942,7 +7589,9 @@ type Mutation { id: ID! ): OrderRefund - """Updates an order.""" + """ + Updates an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderUpdate( """ID of an order to update.""" id: ID! @@ -6952,7 +7601,7 @@ type Mutation { ): OrderUpdate """ - Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. + Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. Requires one of the following permissions: MANAGE_ORDERS. """ orderUpdateShipping( """ID of the order to update a shipping method.""" @@ -6962,19 +7611,25 @@ type Mutation { input: OrderUpdateShippingInput! ): OrderUpdateShipping - """Void an order.""" + """ + Void an order. Requires one of the following permissions: MANAGE_ORDERS. + """ orderVoid( """ID of the order to void.""" id: ID! ): OrderVoid - """Cancels orders.""" + """ + Cancels orders. Requires one of the following permissions: MANAGE_ORDERS. + """ orderBulkCancel( """List of orders IDs to cancel.""" - ids: [ID]! + ids: [ID!]! ): OrderBulkCancel - """Delete metadata of an object.""" + """ + Delete metadata of an object. To use it, you need to have access to the modified object. + """ deleteMetadata( """ID or token (for Order and Checkout) of an object to update.""" id: ID! @@ -6983,7 +7638,9 @@ type Mutation { keys: [String!]! ): DeleteMetadata - """Delete object's private metadata.""" + """ + Delete object's private metadata. To use it, you need to be an authenticated staff user or an app and have access to the modified object. + """ deletePrivateMetadata( """ID or token (for Order and Checkout) of an object to update.""" id: ID! @@ -6992,7 +7649,9 @@ type Mutation { keys: [String!]! ): DeletePrivateMetadata - """Updates metadata of an object.""" + """ + Updates metadata of an object. To use it, you need to have access to the modified object. + """ updateMetadata( """ID or token (for Order and Checkout) of an object to update.""" id: ID! @@ -7001,7 +7660,9 @@ type Mutation { input: [MetadataInput!]! ): UpdateMetadata - """Updates private metadata of an object.""" + """ + Updates private metadata of an object. To use it, you need to be an authenticated staff user or an app and have access to the modified object. + """ updatePrivateMetadata( """ID or token (for Order and Checkout) of an object to update.""" id: ID! @@ -7010,7 +7671,9 @@ type Mutation { input: [MetadataInput!]! ): UpdatePrivateMetadata - """Assigns storefront's navigation menus.""" + """ + Assigns storefront's navigation menus. Requires one of the following permissions: MANAGE_MENUS, MANAGE_SETTINGS. + """ assignNavigation( """ID of the menu.""" menu: ID @@ -7019,25 +7682,33 @@ type Mutation { navigationType: NavigationType! ): AssignNavigation - """Creates a new Menu.""" + """ + Creates a new Menu. Requires one of the following permissions: MANAGE_MENUS. + """ menuCreate( """Fields required to create a menu.""" input: MenuCreateInput! ): MenuCreate - """Deletes a menu.""" + """ + Deletes a menu. Requires one of the following permissions: MANAGE_MENUS. + """ menuDelete( """ID of a menu to delete.""" id: ID! ): MenuDelete - """Deletes menus.""" + """ + Deletes menus. Requires one of the following permissions: MANAGE_MENUS. + """ menuBulkDelete( """List of menu IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): MenuBulkDelete - """Updates a menu.""" + """ + Updates a menu. Requires one of the following permissions: MANAGE_MENUS. + """ menuUpdate( """ID of a menu to update.""" id: ID! @@ -7046,7 +7717,9 @@ type Mutation { input: MenuInput! ): MenuUpdate - """Creates a new menu item.""" + """ + Creates a new menu item. Requires one of the following permissions: MANAGE_MENUS. + """ menuItemCreate( """ Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item. @@ -7054,19 +7727,25 @@ type Mutation { input: MenuItemCreateInput! ): MenuItemCreate - """Deletes a menu item.""" + """ + Deletes a menu item. Requires one of the following permissions: MANAGE_MENUS. + """ menuItemDelete( """ID of a menu item to delete.""" id: ID! ): MenuItemDelete - """Deletes menu items.""" + """ + Deletes menu items. Requires one of the following permissions: MANAGE_MENUS. + """ menuItemBulkDelete( """List of menu item IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): MenuItemBulkDelete - """Updates a menu item.""" + """ + Updates a menu item. Requires one of the following permissions: MANAGE_MENUS. + """ menuItemUpdate( """ID of a menu item to update.""" id: ID! @@ -7077,7 +7756,9 @@ type Mutation { input: MenuItemInput! ): MenuItemUpdate - """Creates/updates translations for a menu item.""" + """ + Creates/updates translations for a menu item. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ menuItemTranslate( """MenuItem ID or MenuItemTranslatableContent ID.""" id: ID! @@ -7087,16 +7768,20 @@ type Mutation { languageCode: LanguageCodeEnum! ): MenuItemTranslate - """Moves items of menus.""" + """ + Moves items of menus. Requires one of the following permissions: MANAGE_MENUS. + """ menuItemMove( """ID of the menu.""" menu: ID! """The menu position data.""" - moves: [MenuItemMoveInput]! + moves: [MenuItemMoveInput!]! ): MenuItemMove - """Request an invoice for the order using plugin.""" + """ + Request an invoice for the order using plugin. Requires one of the following permissions: MANAGE_ORDERS. + """ invoiceRequest( """Invoice number, if not provided it will be generated.""" number: String @@ -7105,13 +7790,17 @@ type Mutation { orderId: ID! ): InvoiceRequest - """Requests deletion of an invoice.""" + """ + Requests deletion of an invoice. Requires one of the following permissions: MANAGE_ORDERS. + """ invoiceRequestDelete( """ID of an invoice to request the deletion.""" id: ID! ): InvoiceRequestDelete - """Creates a ready to send invoice.""" + """ + Creates a ready to send invoice. Requires one of the following permissions: MANAGE_ORDERS. + """ invoiceCreate( """Fields required when creating an invoice.""" input: InvoiceCreateInput! @@ -7120,13 +7809,17 @@ type Mutation { orderId: ID! ): InvoiceCreate - """Deletes an invoice.""" + """ + Deletes an invoice. Requires one of the following permissions: MANAGE_ORDERS. + """ invoiceDelete( """ID of an invoice to delete.""" id: ID! ): InvoiceDelete - """Updates an invoice.""" + """ + Updates an invoice. Requires one of the following permissions: MANAGE_ORDERS. + """ invoiceUpdate( """ID of an invoice to update.""" id: ID! @@ -7135,37 +7828,49 @@ type Mutation { input: UpdateInvoiceInput! ): InvoiceUpdate - """Send an invoice notification to the customer.""" + """ + Send an invoice notification to the customer. Requires one of the following permissions: MANAGE_ORDERS. + """ invoiceSendNotification( """ID of an invoice to be sent.""" id: ID! ): InvoiceSendNotification - """Activate a gift card.""" + """ + Activate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardActivate( """ID of a gift card to activate.""" id: ID! ): GiftCardActivate - """Creates a new gift card.""" + """ + Creates a new gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardCreate( """Fields required to create a gift card.""" input: GiftCardCreateInput! ): GiftCardCreate - """New in Saleor 3.1. Delete gift card.""" + """ + New in Saleor 3.1. Delete gift card. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardDelete( """ID of the gift card to delete.""" id: ID! ): GiftCardDelete - """Deactivate a gift card.""" + """ + Deactivate a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardDeactivate( """ID of a gift card to deactivate.""" id: ID! ): GiftCardDeactivate - """Update a gift card.""" + """ + Update a gift card. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardUpdate( """ID of a gift card to update.""" id: ID! @@ -7174,13 +7879,17 @@ type Mutation { input: GiftCardUpdateInput! ): GiftCardUpdate - """New in Saleor 3.1. Resend a gift card.""" + """ + New in Saleor 3.1. Resend a gift card. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardResend( """Fields required to resend a gift card.""" input: GiftCardResendInput! ): GiftCardResend - """New in Saleor 3.1. Adds note to the gift card.""" + """ + New in Saleor 3.1. Adds note to the gift card. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardAddNote( """ID of the gift card to add a note for.""" id: ID! @@ -7189,31 +7898,41 @@ type Mutation { input: GiftCardAddNoteInput! ): GiftCardAddNote - """New in Saleor 3.1. Create gift cards.""" + """ + New in Saleor 3.1. Create gift cards. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardBulkCreate( """Fields required to create gift cards.""" input: GiftCardBulkCreateInput! ): GiftCardBulkCreate - """New in Saleor 3.1. Delete gift cards.""" + """ + New in Saleor 3.1. Delete gift cards. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardBulkDelete( """List of gift card IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): GiftCardBulkDelete - """New in Saleor 3.1. Activate gift cards.""" + """ + New in Saleor 3.1. Activate gift cards. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardBulkActivate( """List of gift card IDs to activate.""" - ids: [ID]! + ids: [ID!]! ): GiftCardBulkActivate - """New in Saleor 3.1. Deactivate gift cards.""" + """ + New in Saleor 3.1. Deactivate gift cards. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ giftCardBulkDeactivate( """List of gift card IDs to deactivate.""" - ids: [ID]! + ids: [ID!]! ): GiftCardBulkDeactivate - """Update plugin configuration.""" + """ + Update plugin configuration. Requires one of the following permissions: MANAGE_PLUGINS. + """ pluginUpdate( """ID of a channel for which the data should be modified.""" channelId: ID @@ -7234,32 +7953,40 @@ type Mutation { """ channel: String! - """Input for External Notification Trigger. """ + """Input for External Notification Trigger.""" input: ExternalNotificationTriggerInput! """The ID of notification plugin.""" pluginId: String ): ExternalNotificationTrigger - """Creates a new sale.""" + """ + Creates a new sale. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ saleCreate( """Fields required to create a sale.""" input: SaleInput! ): SaleCreate - """Deletes a sale.""" + """ + Deletes a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ saleDelete( """ID of a sale to delete.""" id: ID! ): SaleDelete - """Deletes sales.""" + """ + Deletes sales. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ saleBulkDelete( """List of sale IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): SaleBulkDelete - """Updates a sale.""" + """ + Updates a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ saleUpdate( """ID of a sale to update.""" id: ID! @@ -7268,7 +7995,9 @@ type Mutation { input: SaleInput! ): SaleUpdate - """Adds products, categories, collections to a voucher.""" + """ + Adds products, categories, collections to a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ saleCataloguesAdd( """ID of a sale.""" id: ID! @@ -7277,7 +8006,9 @@ type Mutation { input: CatalogueInput! ): SaleAddCatalogues - """Removes products, categories, collections from a sale.""" + """ + Removes products, categories, collections from a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ saleCataloguesRemove( """ID of a sale.""" id: ID! @@ -7286,7 +8017,9 @@ type Mutation { input: CatalogueInput! ): SaleRemoveCatalogues - """Creates/updates translations for a sale.""" + """ + Creates/updates translations for a sale. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ saleTranslate( """Sale ID or SaleTranslatableContent ID.""" id: ID! @@ -7296,7 +8029,9 @@ type Mutation { languageCode: LanguageCodeEnum! ): SaleTranslate - """Manage sale's availability in channels.""" + """ + Manage sale's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ saleChannelListingUpdate( """ID of a sale to update.""" id: ID! @@ -7305,25 +8040,33 @@ type Mutation { input: SaleChannelListingInput! ): SaleChannelListingUpdate - """Creates a new voucher.""" + """ + Creates a new voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ voucherCreate( """Fields required to create a voucher.""" input: VoucherInput! ): VoucherCreate - """Deletes a voucher.""" + """ + Deletes a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ voucherDelete( """ID of a voucher to delete.""" id: ID! ): VoucherDelete - """Deletes vouchers.""" + """ + Deletes vouchers. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ voucherBulkDelete( """List of voucher IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): VoucherBulkDelete - """Updates a voucher.""" + """ + Updates a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ voucherUpdate( """ID of a voucher to update.""" id: ID! @@ -7332,7 +8075,9 @@ type Mutation { input: VoucherInput! ): VoucherUpdate - """Adds products, categories, collections to a voucher.""" + """ + Adds products, categories, collections to a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ voucherCataloguesAdd( """ID of a voucher.""" id: ID! @@ -7341,7 +8086,9 @@ type Mutation { input: CatalogueInput! ): VoucherAddCatalogues - """Removes products, categories, collections from a voucher.""" + """ + Removes products, categories, collections from a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ voucherCataloguesRemove( """ID of a voucher.""" id: ID! @@ -7350,7 +8097,9 @@ type Mutation { input: CatalogueInput! ): VoucherRemoveCatalogues - """Creates/updates translations for a voucher.""" + """ + Creates/updates translations for a voucher. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ voucherTranslate( """Voucher ID or VoucherTranslatableContent ID.""" id: ID! @@ -7360,7 +8109,9 @@ type Mutation { languageCode: LanguageCodeEnum! ): VoucherTranslate - """Manage voucher's availability in channels.""" + """ + Manage voucher's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. + """ voucherChannelListingUpdate( """ID of a voucher to update.""" id: ID! @@ -7369,13 +8120,17 @@ type Mutation { input: VoucherChannelListingInput! ): VoucherChannelListingUpdate - """Export products to csv file.""" + """ + Export products to csv file. Requires one of the following permissions: MANAGE_PRODUCTS. + """ exportProducts( """Fields required to export product data.""" input: ExportProductsInput! ): ExportProducts - """New in Saleor 3.1. Export gift cards to csv file.""" + """ + New in Saleor 3.1. Export gift cards to csv file. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_GIFT_CARD. + """ exportGiftCards( """Fields required to export gift cards data.""" input: ExportGiftCardsInput! @@ -7457,7 +8212,9 @@ type Mutation { input: CheckoutCreateInput! ): CheckoutCreate - """Sets the customer as the owner of the checkout.""" + """ + Sets the customer as the owner of the checkout. Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. + """ checkoutCustomerAttach( """ The ID of the checkout. @@ -7475,7 +8232,9 @@ type Mutation { token: UUID ): CheckoutCustomerAttach - """Removes the user assigned as the owner of the checkout.""" + """ + Removes the user assigned as the owner of the checkout. Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER. + """ checkoutCustomerDetach( """ The ID of the checkout. @@ -7523,7 +8282,7 @@ type Mutation { """Deletes checkout lines.""" checkoutLinesDelete( """A list of checkout lines.""" - linesIds: [ID]! + linesIds: [ID!]! """Checkout token.""" token: UUID! @@ -7543,7 +8302,7 @@ type Mutation { """ A list of checkout lines, each containing information about an item in the checkout. """ - lines: [CheckoutLineInput]! + lines: [CheckoutLineInput!]! """Checkout token.""" token: UUID @@ -7561,7 +8320,7 @@ type Mutation { """ A list of checkout lines, each containing information about an item in the checkout. """ - lines: [CheckoutLineInput]! + lines: [CheckoutLineUpdateInput!]! """Checkout token.""" token: UUID @@ -7635,7 +8394,7 @@ type Mutation { ): CheckoutShippingMethodUpdate @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead.") """ - New in Saleor 3.1. Updates the delivery method (shipping method or pick up point) of the checkout. + New in Saleor 3.1. Updates the delivery method (shipping method or pick up point) of the checkout. Note: this feature is in a preview state and can be subject to changes at later point. """ checkoutDeliveryMethodUpdate( """Delivery Method ID (`Warehouse` ID or `ShippingMethod` ID).""" @@ -7661,13 +8420,30 @@ type Mutation { token: UUID ): CheckoutLanguageCodeUpdate - """Creates new channel.""" + """ + New in Saleor 3.2. Create new order from existing checkout. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: HANDLE_CHECKOUTS. + """ + orderCreateFromCheckout( + """ID of a checkout that will be converted to an order.""" + id: ID! + + """ + Determines if checkout should be removed after creating an order. Default true. + """ + removeCheckout: Boolean = true + ): OrderCreateFromCheckout + + """ + Creates new channel. Requires one of the following permissions: MANAGE_CHANNELS. + """ channelCreate( """Fields required to create channel.""" input: ChannelCreateInput! ): ChannelCreate - """Update a channel.""" + """ + Update a channel. Requires one of the following permissions: MANAGE_CHANNELS. + """ channelUpdate( """ID of a channel to update.""" id: ID! @@ -7677,7 +8453,7 @@ type Mutation { ): ChannelUpdate """ - Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. + Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. Requires one of the following permissions: MANAGE_CHANNELS. """ channelDelete( """ID of a channel to delete.""" @@ -7687,13 +8463,17 @@ type Mutation { input: ChannelDeleteInput ): ChannelDelete - """Activate a channel.""" + """ + Activate a channel. Requires one of the following permissions: MANAGE_CHANNELS. + """ channelActivate( """ID of the channel to activate.""" id: ID! ): ChannelActivate - """Deactivate a channel.""" + """ + Deactivate a channel. Requires one of the following permissions: MANAGE_CHANNELS. + """ channelDeactivate( """ID of the channel to deactivate.""" id: ID! @@ -7705,13 +8485,17 @@ type Mutation { input: AttributeCreateInput! ): AttributeCreate - """Deletes an attribute.""" + """ + Deletes an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ attributeDelete( """ID of an attribute to delete.""" id: ID! ): AttributeDelete - """Updates attribute.""" + """ + Updates attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ attributeUpdate( """ID of an attribute to update.""" id: ID! @@ -7720,7 +8504,9 @@ type Mutation { input: AttributeUpdateInput! ): AttributeUpdate - """Creates/updates translations for an attribute.""" + """ + Creates/updates translations for an attribute. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ attributeTranslate( """Attribute ID or AttributeTranslatableContent ID.""" id: ID! @@ -7730,19 +8516,25 @@ type Mutation { languageCode: LanguageCodeEnum! ): AttributeTranslate - """Deletes attributes.""" + """ + Deletes attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ attributeBulkDelete( """List of attribute IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): AttributeBulkDelete - """Deletes values of attributes.""" + """ + Deletes values of attributes. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + """ attributeValueBulkDelete( """List of attribute value IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): AttributeValueBulkDelete - """Creates a value for an attribute.""" + """ + Creates a value for an attribute. Requires one of the following permissions: MANAGE_PRODUCTS. + """ attributeValueCreate( """Attribute to which value will be assigned.""" attribute: ID! @@ -7751,13 +8543,17 @@ type Mutation { input: AttributeValueCreateInput! ): AttributeValueCreate - """Deletes a value of an attribute.""" + """ + Deletes a value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ attributeValueDelete( """ID of a value to delete.""" id: ID! ): AttributeValueDelete - """Updates value of an attribute.""" + """ + Updates value of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ attributeValueUpdate( """ID of an AttributeValue to update.""" id: ID! @@ -7766,7 +8562,9 @@ type Mutation { input: AttributeValueUpdateInput! ): AttributeValueUpdate - """Creates/updates translations for an attribute value.""" + """ + Creates/updates translations for an attribute value. Requires one of the following permissions: MANAGE_TRANSLATIONS. + """ attributeValueTranslate( """AttributeValue ID or AttributeValueTranslatableContent ID.""" id: ID! @@ -7776,22 +8574,28 @@ type Mutation { languageCode: LanguageCodeEnum! ): AttributeValueTranslate - """Reorder the values of an attribute.""" + """ + Reorder the values of an attribute. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + """ attributeReorderValues( """ID of an attribute.""" attributeId: ID! """The list of reordering operations for given attribute values.""" - moves: [ReorderInput]! + moves: [ReorderInput!]! ): AttributeReorderValues - """Creates a new app.""" + """ + Creates a new app. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. + """ appCreate( """Fields required to create a new app.""" input: AppInput! ): AppCreate - """Updates an existing app.""" + """ + Updates an existing app. Requires one of the following permissions: MANAGE_APPS. + """ appUpdate( """ID of an app to update.""" id: ID! @@ -7800,19 +8604,25 @@ type Mutation { input: AppInput! ): AppUpdate - """Deletes an app.""" + """ + Deletes an app. Requires one of the following permissions: MANAGE_APPS. + """ appDelete( """ID of an app to delete.""" id: ID! ): AppDelete - """Creates a new token.""" + """ + Creates a new token. Requires one of the following permissions: MANAGE_APPS. + """ appTokenCreate( """Fields required to create a new auth token.""" input: AppTokenInput! ): AppTokenCreate - """Deletes an authentication token assigned to app.""" + """ + Deletes an authentication token assigned to app. Requires one of the following permissions: MANAGE_APPS. + """ appTokenDelete( """ID of an auth token to delete.""" id: ID! @@ -7824,13 +8634,17 @@ type Mutation { token: String! ): AppTokenVerify - """Install new app by using app manifest.""" + """ + Install new app by using app manifest. Requires the following permissions: AUTHENTICATED_STAFF_USER and MANAGE_APPS. + """ appInstall( """Fields required to install a new app.""" input: AppInstallInput! ): AppInstall - """Retry failed installation of new app.""" + """ + Retry failed installation of new app. Requires one of the following permissions: MANAGE_APPS. + """ appRetryInstall( """Determine if app will be set active or not.""" activateAfterInstallation: Boolean = true @@ -7839,22 +8653,30 @@ type Mutation { id: ID! ): AppRetryInstall - """Delete failed installation.""" + """ + Delete failed installation. Requires one of the following permissions: MANAGE_APPS. + """ appDeleteFailedInstallation( """ID of failed installation to delete.""" id: ID! ): AppDeleteFailedInstallation - """Fetch and validate manifest.""" + """ + Fetch and validate manifest. Requires one of the following permissions: MANAGE_APPS. + """ appFetchManifest(manifestUrl: String!): AppFetchManifest - """Activate the app.""" + """ + Activate the app. Requires one of the following permissions: MANAGE_APPS. + """ appActivate( """ID of app to activate.""" id: ID! ): AppActivate - """Deactivate the app.""" + """ + Deactivate the app. Requires one of the following permissions: MANAGE_APPS. + """ appDeactivate( """ID of app to deactivate.""" id: ID! @@ -7888,7 +8710,9 @@ type Mutation { token: String! ): VerifyToken - """Deactivate all JWT tokens of the currently authenticated user.""" + """ + Deactivate all JWT tokens of the currently authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. + """ tokensDeactivateAll: DeactivateAllUserTokens """Prepare external authentication url for user by custom plugin.""" @@ -7975,7 +8799,9 @@ type Mutation { token: String! ): SetPassword - """Change the password of the logged in user.""" + """ + Change the password of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. + """ passwordChange( """New user password.""" newPassword: String! @@ -7984,7 +8810,9 @@ type Mutation { oldPassword: String! ): PasswordChange - """Request email change of the logged in user.""" + """ + Request email change of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. + """ requestEmailChange( """ Slug of a channel which will be used to notify users. Optional when only one channel exists. @@ -8003,7 +8831,9 @@ type Mutation { redirectUrl: String! ): RequestEmailChange - """Confirm the email change of the logged-in user.""" + """ + Confirm the email change of the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. + """ confirmEmailChange( """ Slug of a channel which will be used to notify users. Optional when only one channel exists. @@ -8014,7 +8844,9 @@ type Mutation { token: String! ): ConfirmEmailChange - """Create a new address for the customer.""" + """ + Create a new address for the customer. Requires one of the following permissions: AUTHENTICATED_USER. + """ accountAddressCreate( """Fields required to create address.""" input: AddressInput! @@ -8025,7 +8857,9 @@ type Mutation { type: AddressTypeEnum ): AccountAddressCreate - """Updates an address of the logged-in user.""" + """ + Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. + """ accountAddressUpdate( """ID of the address to update.""" id: ID! @@ -8034,13 +8868,17 @@ type Mutation { input: AddressInput! ): AccountAddressUpdate - """Delete an address of the logged-in user.""" + """ + Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER. + """ accountAddressDelete( """ID of the address to delete.""" id: ID! ): AccountAddressDelete - """Sets a default address for the authenticated user.""" + """ + Sets a default address for the authenticated user. Requires one of the following permissions: AUTHENTICATED_USER. + """ accountSetDefaultAddress( """ID of the address to set as default.""" id: ID! @@ -8055,13 +8893,17 @@ type Mutation { input: AccountRegisterInput! ): AccountRegister - """Updates the account of the logged-in user.""" + """ + Updates the account of the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. + """ accountUpdate( """Fields required to update the account of the logged-in user.""" input: AccountInput! ): AccountUpdate - """Sends an email with the account removal link for the logged-in user.""" + """ + Sends an email with the account removal link for the logged-in user. Requires one of the following permissions: AUTHENTICATED_USER. + """ accountRequestDeletion( """ Slug of a channel which will be used to notify users. Optional when only one channel exists. @@ -8074,7 +8916,9 @@ type Mutation { redirectUrl: String! ): AccountRequestDeletion - """Remove user account.""" + """ + Remove user account. Requires one of the following permissions: AUTHENTICATED_USER. + """ accountDelete( """ A one-time token required to remove account. Sent by email using AccountRequestDeletion mutation. @@ -8082,7 +8926,9 @@ type Mutation { token: String! ): AccountDelete - """Creates user address.""" + """ + Creates user address. Requires one of the following permissions: MANAGE_USERS. + """ addressCreate( """Fields required to create address.""" input: AddressInput! @@ -8091,7 +8937,9 @@ type Mutation { userId: ID! ): AddressCreate - """Updates an address.""" + """ + Updates an address. Requires one of the following permissions: MANAGE_USERS. + """ addressUpdate( """ID of the address to update.""" id: ID! @@ -8100,13 +8948,17 @@ type Mutation { input: AddressInput! ): AddressUpdate - """Deletes an address.""" + """ + Deletes an address. Requires one of the following permissions: MANAGE_USERS. + """ addressDelete( """ID of the address to delete.""" id: ID! ): AddressDelete - """Sets a default address for the given user.""" + """ + Sets a default address for the given user. Requires one of the following permissions: MANAGE_USERS. + """ addressSetDefault( """ID of the address.""" addressId: ID! @@ -8118,13 +8970,17 @@ type Mutation { userId: ID! ): AddressSetDefault - """Creates a new customer.""" + """ + Creates a new customer. Requires one of the following permissions: MANAGE_USERS. + """ customerCreate( """Fields required to create a customer.""" input: UserCreateInput! ): CustomerCreate - """Updates an existing customer.""" + """ + Updates an existing customer. Requires one of the following permissions: MANAGE_USERS. + """ customerUpdate( """ID of a customer to update.""" id: ID! @@ -8133,25 +8989,33 @@ type Mutation { input: CustomerInput! ): CustomerUpdate - """Deletes a customer.""" + """ + Deletes a customer. Requires one of the following permissions: MANAGE_USERS. + """ customerDelete( """ID of a customer to delete.""" id: ID! ): CustomerDelete - """Deletes customers.""" + """ + Deletes customers. Requires one of the following permissions: MANAGE_USERS. + """ customerBulkDelete( """List of user IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): CustomerBulkDelete - """Creates a new staff user.""" + """ + Creates a new staff user. Requires one of the following permissions: MANAGE_STAFF. + """ staffCreate( """Fields required to create a staff user.""" input: StaffCreateInput! ): StaffCreate - """Updates an existing staff user.""" + """ + Updates an existing staff user. Requires one of the following permissions: MANAGE_STAFF. + """ staffUpdate( """ID of a staff user to update.""" id: ID! @@ -8160,16 +9024,20 @@ type Mutation { input: StaffUpdateInput! ): StaffUpdate - """Deletes a staff user.""" + """ + Deletes a staff user. Requires one of the following permissions: MANAGE_STAFF. + """ staffDelete( """ID of a staff user to delete.""" id: ID! ): StaffDelete - """Deletes staff users.""" + """ + Deletes staff users. Requires one of the following permissions: MANAGE_STAFF. + """ staffBulkDelete( """List of user IDs to delete.""" - ids: [ID]! + ids: [ID!]! ): StaffBulkDelete """ @@ -8183,22 +9051,28 @@ type Mutation { """Deletes a user avatar. Only for staff members.""" userAvatarDelete: UserAvatarDelete - """Activate or deactivate users.""" + """ + Activate or deactivate users. Requires one of the following permissions: MANAGE_USERS. + """ userBulkSetActive( """List of user IDs to (de)activate).""" - ids: [ID]! + ids: [ID!]! """Determine if users will be set active or not.""" isActive: Boolean! ): UserBulkSetActive - """Create new permission group.""" + """ + Create new permission group. Requires one of the following permissions: MANAGE_STAFF. + """ permissionGroupCreate( """Input fields to create permission group.""" input: PermissionGroupCreateInput! ): PermissionGroupCreate - """Update permission group.""" + """ + Update permission group. Requires one of the following permissions: MANAGE_STAFF. + """ permissionGroupUpdate( """ID of the group to update.""" id: ID! @@ -8207,7 +9081,9 @@ type Mutation { input: PermissionGroupUpdateInput! ): PermissionGroupUpdate - """Delete permission group.""" + """ + Delete permission group. Requires one of the following permissions: MANAGE_STAFF. + """ permissionGroupDelete( """ID of the group to delete.""" id: ID! @@ -8236,10 +9112,10 @@ interface ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! } """Represents an order in the shop.""" @@ -8249,11 +9125,12 @@ type Order implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! created: DateTime! + updatedAt: DateTime! status: OrderStatus! user: User trackingClientId: String! @@ -8264,27 +9141,29 @@ type Order implements Node & ObjectWithMetadata { channel: Channel! """List of shipments for the order.""" - fulfillments: [Fulfillment]! + fulfillments: [Fulfillment!]! """List of order lines.""" - lines: [OrderLine]! + lines: [OrderLine!]! """ List of actions that can be performed in the current state of an order. """ - actions: [OrderAction]! + actions: [OrderAction!]! """Shipping methods that can be used with this order.""" - availableShippingMethods: [ShippingMethod] @deprecated(reason: "Use `shippingMethods`, this field will be removed in 4.0") + availableShippingMethods: [ShippingMethod!] @deprecated(reason: "Use `shippingMethods`, this field will be removed in 4.0") """Shipping methods related to this order.""" - shippingMethods: [ShippingMethod] + shippingMethods: [ShippingMethod!] - """New in Saleor 3.1. Collection points that can be used for this order.""" + """ + New in Saleor 3.1. Collection points that can be used for this order. Note: this feature is in a preview state and can be subject to changes at later point. + """ availableCollectionPoints: [Warehouse!]! """List of order invoices.""" - invoices: [Invoice] + invoices: [Invoice!] """User-friendly number of an order.""" number: String @@ -8305,7 +9184,7 @@ type Order implements Node & ObjectWithMetadata { paymentStatusDisplay: String! """List of payments for the order.""" - payments: [Payment] + payments: [Payment!] """Total amount of the order.""" total: TaxedMoney! @@ -8319,11 +9198,11 @@ type Order implements Node & ObjectWithMetadata { """Total price of shipping.""" shippingPrice: TaxedMoney! shippingTaxRate: Float! - token: String! + token: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `id` instead.") voucher: Voucher """List of user gift cards.""" - giftCards: [GiftCard] + giftCards: [GiftCard!] displayGrossPrices: Boolean! customerNote: String! weight: Weight @@ -8347,7 +9226,7 @@ type Order implements Node & ObjectWithMetadata { totalCaptured: Money! """List of events associated with the order.""" - events: [OrderEvent] + events: [OrderEvent!] """The difference between the paid and the order total amount.""" totalBalance: Money! @@ -8358,7 +9237,9 @@ type Order implements Node & ObjectWithMetadata { """Returns True, if order requires shipping.""" isShippingRequired: Boolean! - """New in Saleor 3.1. The delivery method selected for this checkout.""" + """ + New in Saleor 3.1. The delivery method selected for this checkout. Note: this feature is in a preview state and can be subject to changes at later point. + """ deliveryMethod: DeliveryMethod languageCode: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. ") @@ -8366,13 +9247,13 @@ type Order implements Node & ObjectWithMetadata { languageCodeEnum: LanguageCodeEnum! """Returns applied discount.""" - discount: Money @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field.") + discount: Money @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.") """Discount name.""" - discountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field.") + discountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.") """Translated discount name.""" - translatedDiscountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field. ") + translatedDiscountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead. ") """List of all discounts assigned to the order.""" discounts: [OrderDiscount!] @@ -8395,7 +9276,9 @@ enum OrderAction { VOID } -"""Adds note to the order.""" +""" +Adds note to the order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderAddNote { """Order with the note added.""" order: Order @@ -8411,7 +9294,9 @@ input OrderAddNoteInput { message: String! } -"""Cancels orders.""" +""" +Cancels orders. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderBulkCancel { """Returns how many objects were affected.""" count: Int! @@ -8419,7 +9304,9 @@ type OrderBulkCancel { errors: [OrderError!]! } -"""Cancel an order.""" +""" +Cancel an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderCancel { """Canceled order.""" order: Order @@ -8427,7 +9314,16 @@ type OrderCancel { errors: [OrderError!]! } -"""Capture an order.""" +type OrderCancelled { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + +""" +Capture an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderCapture { """Captured order.""" order: Order @@ -8435,13 +9331,22 @@ type OrderCapture { errors: [OrderError!]! } -"""Confirms an unconfirmed order by changing status to unfulfilled.""" +""" +Confirms an unconfirmed order by changing status to unfulfilled. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderConfirm { order: Order orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } +type OrderConfirmed { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + type OrderCountableConnection { """Pagination data for this connection.""" pageInfo: PageInfo! @@ -8459,6 +9364,59 @@ type OrderCountableEdge { cursor: String! } +""" +New in Saleor 3.2. Create new order from existing checkout. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: HANDLE_CHECKOUTS. +""" +type OrderCreateFromCheckout { + """Placed order.""" + order: Order + errors: [OrderCreateFromCheckoutError!]! +} + +type OrderCreateFromCheckoutError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: OrderCreateFromCheckoutErrorCode! + + """List of variant IDs which causes the error.""" + variants: [ID!] + + """List of line Ids which cause the error.""" + lines: [ID!] +} + +"""An enumeration.""" +enum OrderCreateFromCheckoutErrorCode { + GRAPHQL_ERROR + NOT_FOUND + CHANNEL_INACTIVE + INSUFFICIENT_STOCK + VOUCHER_NOT_APPLICABLE + GIFT_CARD_NOT_APPLICABLE + TAX_ERROR + SHIPPING_METHOD_NOT_SET + BILLING_ADDRESS_NOT_SET + SHIPPING_ADDRESS_NOT_SET + INVALID_SHIPPING_METHOD + NO_LINES + EMAIL_NOT_SET + UNAVAILABLE_VARIANT_IN_CHANNEL +} + +type OrderCreated { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + enum OrderDirection { """Specifies an ascending sort order.""" ASC @@ -8487,7 +9445,9 @@ type OrderDiscount implements Node { amount: Money! } -"""Adds discount to the order.""" +""" +Adds discount to the order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderDiscountAdd { """Order which has been discounted.""" order: Order @@ -8506,7 +9466,9 @@ input OrderDiscountCommonInput { reason: String } -"""Remove discount from the order.""" +""" +Remove discount from the order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderDiscountDelete { """Order which has removed discount.""" order: Order @@ -8520,7 +9482,9 @@ enum OrderDiscountType { MANUAL } -"""Update discount for the order.""" +""" +Update discount for the order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderDiscountUpdate { """Order which has been discounted.""" order: Order @@ -8532,8 +9496,8 @@ input OrderDraftFilterInput { customer: String created: DateRangeInput search: String - metadata: [MetadataFilter] - channels: [ID] + metadata: [MetadataFilter!] + channels: [ID!] } type OrderError { @@ -8643,13 +9607,13 @@ type OrderEvent implements Node { invoiceNumber: String """List of oversold lines names.""" - oversoldItems: [String] + oversoldItems: [String!] """The concerned lines.""" - lines: [OrderEventOrderLineObject] + lines: [OrderEventOrderLineObject!] """The lines fulfilled.""" - fulfilledItems: [FulfillmentLine] + fulfilledItems: [FulfillmentLine!] """The warehouse were items were restocked.""" warehouse: Warehouse @@ -8781,24 +9745,27 @@ enum OrderEventsEnum { } input OrderFilterInput { - paymentStatus: [PaymentChargeStatusEnum] - status: [OrderStatusFilter] + paymentStatus: [PaymentChargeStatusEnum!] + status: [OrderStatusFilter!] customer: String created: DateRangeInput search: String - metadata: [MetadataFilter] - channels: [ID] + metadata: [MetadataFilter!] + channels: [ID!] + updatedAt: DateTimeRangeInput isClickAndCollect: Boolean isPreorder: Boolean - ids: [ID] + ids: [ID!] giftCardUsed: Boolean giftCardBought: Boolean } -"""Creates new fulfillments for an order.""" +""" +Creates new fulfillments for an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderFulfill { """List of created fulfillments.""" - fulfillments: [Fulfillment] + fulfillments: [Fulfillment!] """Fulfilled order.""" order: Order @@ -8833,6 +9800,20 @@ input OrderFulfillStockInput { warehouse: ID! } +type OrderFulfilled { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + +type OrderFullyPaid { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + """Represents order line of particular order.""" type OrderLine implements Node { id: ID! @@ -8899,7 +9880,9 @@ input OrderLineCreateInput { variantId: ID! } -"""Deletes an order line from an order.""" +""" +Deletes an order line from an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderLineDelete { """A related order.""" order: Order @@ -8910,7 +9893,9 @@ type OrderLineDelete { errors: [OrderError!]! } -"""Remove discount applied to the order line.""" +""" +Remove discount applied to the order line. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderLineDiscountRemove { """Order line which has removed discount.""" orderLine: OrderLine @@ -8921,7 +9906,9 @@ type OrderLineDiscountRemove { errors: [OrderError!]! } -"""Update discount for the order line.""" +""" +Update discount for the order line. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderLineDiscountUpdate { """Order line which has been discounted.""" orderLine: OrderLine @@ -8937,7 +9924,9 @@ input OrderLineInput { quantity: Int! } -"""Updates an order line of an order.""" +""" +Updates an order line of an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderLineUpdate { """Related order.""" order: Order @@ -8946,7 +9935,9 @@ type OrderLineUpdate { orderLine: OrderLine } -"""Create order lines for an order.""" +""" +Create order lines for an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderLinesCreate { """Related order.""" order: Order @@ -8957,7 +9948,9 @@ type OrderLinesCreate { errors: [OrderError!]! } -"""Mark order as manually paid.""" +""" +Mark order as manually paid. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderMarkAsPaid { """Order marked as paid.""" order: Order @@ -8972,7 +9965,9 @@ enum OrderOriginEnum { REISSUE } -"""Refund an order.""" +""" +Refund an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderRefund { """A refunded order.""" order: Order @@ -9077,7 +10072,9 @@ enum OrderSettingsErrorCode { INVALID } -"""Update shop order settings.""" +""" +Update shop order settings. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderSettingsUpdate { """Order settings.""" orderSettings: OrderSettings @@ -9101,9 +10098,23 @@ enum OrderSortField { """Sort orders by number.""" NUMBER - """Sort orders by creation date.""" + """ + Sort orders by creation date. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ CREATION_DATE + """ + Sort orders by creation date. + + DEPRECATED: this field will be removed in Saleor 4.0. + """ + CREATED_AT + + """Sort orders by last modified at.""" + LAST_MODIFIED_AT + """Sort orders by customer.""" CUSTOMER @@ -9144,7 +10155,9 @@ enum OrderStatusFilter { CANCELED } -"""Updates an order.""" +""" +Updates an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderUpdate { orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! @@ -9163,7 +10176,7 @@ input OrderUpdateInput { } """ -Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. +Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed. Requires one of the following permissions: MANAGE_ORDERS. """ type OrderUpdateShipping { """Order with updated shipping method.""" @@ -9179,7 +10192,16 @@ input OrderUpdateShippingInput { shippingMethod: ID } -"""Void an order.""" +type OrderUpdated { + """ + New in Saleor 3.2. Look up an order. Note: this feature is in a preview state and can be subject to changes at later point. + """ + order: Order +} + +""" +Void an order. Requires one of the following permissions: MANAGE_ORDERS. +""" type OrderVoid { """A voided order.""" order: Order @@ -9196,10 +10218,10 @@ type Page implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! seoTitle: String seoDescription: String title: String! @@ -9225,7 +10247,9 @@ type Page implements Node & ObjectWithMetadata { attributes: [SelectedAttribute!]! } -"""Assign attributes to a given page type.""" +""" +Assign attributes to a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type PageAttributeAssign { """The updated page type.""" pageType: PageType @@ -9233,7 +10257,9 @@ type PageAttributeAssign { errors: [PageError!]! } -"""Unassign attributes from a given page type.""" +""" +Unassign attributes from a given page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type PageAttributeUnassign { """The updated page type.""" pageType: PageType @@ -9241,7 +10267,9 @@ type PageAttributeUnassign { errors: [PageError!]! } -"""Deletes pages.""" +""" +Deletes pages. Requires one of the following permissions: MANAGE_PAGES. +""" type PageBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -9249,7 +10277,9 @@ type PageBulkDelete { errors: [PageError!]! } -"""Publish pages.""" +""" +Publish pages. Requires one of the following permissions: MANAGE_PAGES. +""" type PageBulkPublish { """Returns how many objects were affected.""" count: Int! @@ -9274,7 +10304,9 @@ type PageCountableEdge { cursor: String! } -"""Creates a new page.""" +""" +Creates a new page. Requires one of the following permissions: MANAGE_PAGES. +""" type PageCreate { pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! @@ -9307,13 +10339,29 @@ input PageCreateInput { pageType: ID! } -"""Deletes a page.""" +type PageCreated { + """ + New in Saleor 3.2. Look up a page. Note: this feature is in a preview state and can be subject to changes at later point. + """ + page: Page +} + +""" +Deletes a page. Requires one of the following permissions: MANAGE_PAGES. +""" type PageDelete { pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! page: Page } +type PageDeleted { + """ + New in Saleor 3.2. Look up a page. Note: this feature is in a preview state and can be subject to changes at later point. + """ + page: Page +} + type PageError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -9346,9 +10394,9 @@ enum PageErrorCode { input PageFilterInput { search: String - metadata: [MetadataFilter] - pageTypes: [ID] - ids: [ID] + metadata: [MetadataFilter!] + pageTypes: [ID!] + ids: [ID!] } """ @@ -9391,7 +10439,9 @@ input PageInput { seo: SeoInput } -"""Reorder page attribute values.""" +""" +Reorder page attribute values. Requires one of the following permissions: MANAGE_PAGES. +""" type PageReorderAttributeValues { """Page from which attribute values are reordered.""" page: Page @@ -9441,7 +10491,7 @@ type PageTranslatableContent implements Node { ): PageTranslation """ - ('A static page that can be manually added by a shop operator ', 'through the dashboard.') + A static page that can be manually added by a shop operator through the dashboard. """ page: Page @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") @@ -9449,7 +10499,9 @@ type PageTranslatableContent implements Node { attributeValues: [AttributeValueTranslatableContent!]! } -"""Creates/updates translations for a page.""" +""" +Creates/updates translations for a page. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type PageTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -9486,15 +10538,15 @@ type PageType implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String! slug: String! """Page attributes of that page type.""" - attributes: [Attribute] + attributes: [Attribute!] """Attributes that can be assigned to the page type.""" availableAttributes( @@ -9517,7 +10569,9 @@ type PageType implements Node & ObjectWithMetadata { hasPages: Boolean } -"""Delete page types.""" +""" +Delete page types. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type PageTypeBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -9542,7 +10596,9 @@ type PageTypeCountableEdge { cursor: String! } -"""Create a new page type.""" +""" +Create a new page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type PageTypeCreate { pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! @@ -9560,7 +10616,9 @@ input PageTypeCreateInput { addAttributes: [ID!] } -"""Delete a page type.""" +""" +Delete a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type PageTypeDelete { pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! @@ -9571,7 +10629,9 @@ input PageTypeFilterInput { search: String } -"""Reorder the attributes of a page type.""" +""" +Reorder the attributes of a page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type PageTypeReorderAttributes { """Page type from which attributes are reordered.""" pageType: PageType @@ -9595,7 +10655,9 @@ input PageTypeSortingInput { field: PageTypeSortField! } -"""Update page type.""" +""" +Update page type. Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES. +""" type PageTypeUpdate { pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! @@ -9616,14 +10678,25 @@ input PageTypeUpdateInput { removeAttributes: [ID!] } -"""Updates an existing page.""" +""" +Updates an existing page. Requires one of the following permissions: MANAGE_PAGES. +""" type PageUpdate { pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! page: Page } -"""Change the password of the logged in user.""" +type PageUpdated { + """ + New in Saleor 3.2. Look up a page. Note: this feature is in a preview state and can be subject to changes at later point. + """ + page: Page +} + +""" +Change the password of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. +""" type PasswordChange { """A user instance with a new password.""" user: User @@ -9638,10 +10711,10 @@ type Payment implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! gateway: String! isActive: Boolean! created: DateTime! @@ -9658,7 +10731,7 @@ type Payment implements Node & ObjectWithMetadata { """ List of actions that can be performed in the current state of a payment. """ - actions: [OrderAction]! + actions: [OrderAction!]! """Total amount of the payment.""" total: Money @@ -9667,7 +10740,7 @@ type Payment implements Node & ObjectWithMetadata { capturedAmount: Money """List of all transactions within this payment.""" - transactions: [Transaction] + transactions: [Transaction!] """Maximum amount of money that can be captured.""" availableCaptureAmount: Money @@ -9679,7 +10752,9 @@ type Payment implements Node & ObjectWithMetadata { creditCard: CreditCard } -"""Captures the authorized payment amount.""" +""" +Captures the authorized payment amount. Requires one of the following permissions: MANAGE_ORDERS. +""" type PaymentCapture { """Updated payment.""" payment: Payment @@ -9776,7 +10851,7 @@ enum PaymentErrorCode { } input PaymentFilterInput { - checkouts: [ID] + checkouts: [ID!] } """ @@ -9793,7 +10868,7 @@ type PaymentGateway { config: [GatewayConfigLine!]! """Payment gateway supported currencies.""" - currencies: [String]! + currencies: [String!]! } """Initializes payment process when it is required by gateway.""" @@ -9843,7 +10918,9 @@ input PaymentInput { metadata: [MetadataInput!] } -"""Refunds the captured payment amount.""" +""" +Refunds the captured payment amount. Requires one of the following permissions: MANAGE_ORDERS. +""" type PaymentRefund { """Updated payment.""" payment: Payment @@ -9867,10 +10944,12 @@ type PaymentSource { """ New in Saleor 3.1. List of public metadata items. Can be accessed without permissions. """ - metadata: [MetadataItem]! + metadata: [MetadataItem!]! } -"""Voids the authorized payment.""" +""" +Voids the authorized payment. Requires one of the following permissions: MANAGE_ORDERS. +""" type PaymentVoid { """Updated payment.""" payment: Payment @@ -9908,9 +10987,12 @@ enum PermissionEnum { MANAGE_SETTINGS MANAGE_TRANSLATIONS MANAGE_CHECKOUTS + HANDLE_CHECKOUTS } -"""Create new permission group.""" +""" +Create new permission group. Requires one of the following permissions: MANAGE_STAFF. +""" type PermissionGroupCreate { permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PermissionGroupError!]! @@ -9928,7 +11010,9 @@ input PermissionGroupCreateInput { name: String! } -"""Delete permission group.""" +""" +Delete permission group. Requires one of the following permissions: MANAGE_STAFF. +""" type PermissionGroupDelete { permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PermissionGroupError!]! @@ -9968,7 +11052,7 @@ enum PermissionGroupErrorCode { input PermissionGroupFilterInput { search: String - ids: [ID] + ids: [ID!] } enum PermissionGroupSortField { @@ -9984,7 +11068,9 @@ input PermissionGroupSortingInput { field: PermissionGroupSortField! } -"""Update permission group.""" +""" +Update permission group. Requires one of the following permissions: MANAGE_STAFF. +""" type PermissionGroupUpdate { permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PermissionGroupError!]! @@ -10035,7 +11121,7 @@ type PluginConfiguration { channel: Channel """Configuration of the plugin.""" - configuration: [ConfigurationItem] + configuration: [ConfigurationItem!] } enum PluginConfigurationType { @@ -10107,7 +11193,9 @@ input PluginStatusInChannelsInput { channels: [ID!]! } -"""Update plugin configuration.""" +""" +Update plugin configuration. Requires one of the following permissions: MANAGE_PLUGINS. +""" type PluginUpdate { plugin: Plugin pluginsErrors: [PluginError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") @@ -10119,7 +11207,7 @@ input PluginUpdateInput { active: Boolean """Configuration of the plugin.""" - configuration: [ConfigurationItemInput] + configuration: [ConfigurationItemInput!] } """ @@ -10187,10 +11275,10 @@ type Product implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! seoTitle: String seoDescription: String name: String! @@ -10198,7 +11286,8 @@ type Product implements Node & ObjectWithMetadata { productType: ProductType! slug: String! category: Category - updatedAt: DateTime + created: DateTime! + updatedAt: DateTime! chargeTaxes: Boolean! weight: Weight defaultVariant: ProductVariant @@ -10258,16 +11347,16 @@ type Product implements Node & ObjectWithMetadata { ): ProductImage @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `mediaById` field instead.") """List of variants for the product.""" - variants: [ProductVariant] + variants: [ProductVariant!] """List of media for the product.""" media: [ProductMedia!] """List of images for the product.""" - images: [ProductImage] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") + images: [ProductImage!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") """List of collections for the product.""" - collections: [Collection] + collections: [Collection!] """Returns translated product fields for the given language code.""" translation( @@ -10275,14 +11364,16 @@ type Product implements Node & ObjectWithMetadata { languageCode: LanguageCodeEnum! ): ProductTranslation - """Date when product is available for purchase. """ + """Date when product is available for purchase.""" availableForPurchase: Date """Whether the product is available for purchase.""" isAvailableForPurchase: Boolean } -"""Assign attributes to a given product type.""" +""" +Assign attributes to a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type ProductAttributeAssign { """The updated product type.""" productType: ProductType @@ -10304,7 +11395,7 @@ input ProductAttributeAssignInput { } """ -New in Saleor 3.1. Update attributes assigned to product variant for given product type. +New in Saleor 3.1. Update attributes assigned to product variant for given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ type ProductAttributeAssignmentUpdate { """The updated product type.""" @@ -10328,7 +11419,9 @@ enum ProductAttributeType { VARIANT } -"""Un-assign attributes from a given product type.""" +""" +Un-assign attributes from a given product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type ProductAttributeUnassign { """The updated product type.""" productType: ProductType @@ -10336,7 +11429,9 @@ type ProductAttributeUnassign { errors: [ProductError!]! } -"""Deletes products.""" +""" +Deletes products. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -10431,7 +11526,9 @@ type ProductChannelListingError { variants: [ID!] } -"""Manage product's availability in channels.""" +""" +Manage product's availability in channels. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductChannelListingUpdate { """An updated product instance.""" product: Product @@ -10464,7 +11561,9 @@ type ProductCountableEdge { cursor: String! } -"""Creates a new product.""" +""" +Creates a new product. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductCreate { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! @@ -10509,13 +11608,45 @@ input ProductCreateInput { productType: ID! } -"""Deletes a product.""" +type ProductCreated { + """ + New in Saleor 3.2. Look up a product. Note: this feature is in a preview state and can be subject to changes at later point. + """ + product( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Product + + """ + New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point. + """ + category: Category +} + +""" +Deletes a product. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductDelete { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! product: Product } +type ProductDeleted { + """ + New in Saleor 3.2. Look up a product. Note: this feature is in a preview state and can be subject to changes at later point. + """ + product( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Product + + """ + New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point. + """ + category: Category +} + type ProductError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -10541,6 +11672,7 @@ enum ProductErrorCode { ATTRIBUTE_ALREADY_ASSIGNED ATTRIBUTE_CANNOT_BE_ASSIGNED ATTRIBUTE_VARIANTS_DISABLED + MEDIA_ALREADY_ASSIGNED DUPLICATED_INPUT_ITEM GRAPHQL_ERROR INVALID @@ -10574,19 +11706,20 @@ enum ProductFieldEnum { input ProductFilterInput { isPublished: Boolean - collections: [ID] - categories: [ID] + collections: [ID!] + categories: [ID!] hasCategory: Boolean - attributes: [AttributeInput] + attributes: [AttributeInput!] stockAvailability: StockAvailability stocks: ProductStockFilterInput search: String - metadata: [MetadataFilter] + metadata: [MetadataFilter!] price: PriceRangeInput minimalPrice: PriceRangeInput - productTypes: [ID] + updatedAt: DateTimeRangeInput + productTypes: [ID!] giftCard: Boolean - ids: [ID] + ids: [ID!] hasPreorderedVariants: Boolean """ @@ -10667,7 +11800,9 @@ type ProductMedia implements Node { ): String! } -"""Deletes product media.""" +""" +Deletes product media. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductMediaBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -10676,7 +11811,7 @@ type ProductMediaBulkDelete { } """ -Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec +Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductMediaCreate { product: Product @@ -10699,7 +11834,9 @@ input ProductMediaCreateInput { mediaUrl: String } -"""Deletes a product media.""" +""" +Deletes a product media. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductMediaDelete { product: Product media: ProductMedia @@ -10707,7 +11844,9 @@ type ProductMediaDelete { errors: [ProductError!]! } -"""Changes ordering of the product media.""" +""" +Changes ordering of the product media. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductMediaReorder { product: Product media: [ProductMedia!] @@ -10721,7 +11860,9 @@ enum ProductMediaType { VIDEO } -"""Updates a product media.""" +""" +Updates a product media. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductMediaUpdate { product: Product media: ProductMedia @@ -10739,7 +11880,7 @@ input ProductOrder { direction: OrderDirection! """ - Specifies the channel in which to sort the data. + Specifies the channel in which to sort the data. DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. """ @@ -10768,6 +11909,9 @@ enum ProductOrderField { """Sort products by a minimal price of a product's variant.""" MINIMAL_PRICE + """Sort products by update date.""" + LAST_MODIFIED + """Sort products by update date.""" DATE @@ -10780,6 +11924,12 @@ enum ProductOrderField { """Sort products by publication date.""" PUBLICATION_DATE + """Sort products by publication date.""" + PUBLISHED_AT + + """Sort products by update date.""" + LAST_MODIFIED_AT + """ Sort products by collection. Note: This option is available only for the `Collection.products` query. """ @@ -10812,7 +11962,9 @@ type ProductPricingInfo { priceRangeLocalCurrency: TaxedMoneyRange } -"""Reorder product attribute values.""" +""" +Reorder product attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductReorderAttributeValues { """Product from which attribute values are reordered.""" product: Product @@ -10848,7 +12000,9 @@ type ProductTranslatableContent implements Node { attributeValues: [AttributeValueTranslatableContent!]! } -"""Creates/updates translations for a product.""" +""" +Creates/updates translations for a product. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type ProductTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -10878,10 +12032,10 @@ type ProductType implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String! slug: String! hasVariants: Boolean! @@ -10917,7 +12071,7 @@ type ProductType implements Node & ObjectWithMetadata { variantAttributes( """Define scope of returned attributes.""" variantSelection: VariantAttributeScope - ): [Attribute] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead.") + ): [Attribute!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead.") """ New in Saleor 3.1. Variant attributes of that product type with attached variant selection. @@ -10925,10 +12079,10 @@ type ProductType implements Node & ObjectWithMetadata { assignedVariantAttributes( """Define scope of returned attributes.""" variantSelection: VariantAttributeScope - ): [AssignedVariantAttribute] + ): [AssignedVariantAttribute!] """Product attributes of that product type.""" - productAttributes: [Attribute] + productAttributes: [Attribute!] availableAttributes( filter: AttributeFilterInput @@ -10946,7 +12100,9 @@ type ProductType implements Node & ObjectWithMetadata { ): AttributeCountableConnection } -"""Deletes product types.""" +""" +Deletes product types. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type ProductTypeBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -10976,14 +12132,18 @@ type ProductTypeCountableEdge { cursor: String! } -"""Creates a new product type.""" +""" +Creates a new product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type ProductTypeCreate { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productType: ProductType } -"""Deletes a product type.""" +""" +Deletes a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type ProductTypeDelete { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! @@ -10999,9 +12159,9 @@ input ProductTypeFilterInput { search: String configurable: ProductTypeConfigurable productType: ProductTypeEnum - metadata: [MetadataFilter] + metadata: [MetadataFilter!] kind: ProductTypeKindEnum - ids: [ID] + ids: [ID!] } input ProductTypeInput { @@ -11020,12 +12180,12 @@ input ProductTypeInput { hasVariants: Boolean """List of attributes shared among all product variants.""" - productAttributes: [ID] + productAttributes: [ID!] """ List of attributes used to distinguish between different variants of a product. """ - variantAttributes: [ID] + variantAttributes: [ID!] """Determines if shipping is required for products of this variant.""" isShippingRequired: Boolean @@ -11046,7 +12206,9 @@ enum ProductTypeKindEnum { GIFT_CARD } -"""Reorder the attributes of a product type.""" +""" +Reorder the attributes of a product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type ProductTypeReorderAttributes { """Product type from which attributes are reordered.""" productType: ProductType @@ -11073,20 +12235,39 @@ input ProductTypeSortingInput { field: ProductTypeSortField! } -"""Updates an existing product type.""" +""" +Updates an existing product type. Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. +""" type ProductTypeUpdate { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productType: ProductType } -"""Updates an existing product.""" +""" +Updates an existing product. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductUpdate { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! product: Product } +type ProductUpdated { + """ + New in Saleor 3.2. Look up a product. Note: this feature is in a preview state and can be subject to changes at later point. + """ + product( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Product + + """ + New in Saleor 3.2. Look up a category. Note: this feature is in a preview state and can be subject to changes at later point. + """ + category: Category +} + """Represents a version of a product such as different size or color.""" type ProductVariant implements Node & ObjectWithMetadata { id: ID! @@ -11094,10 +12275,10 @@ type ProductVariant implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String! sku: String product: Product! @@ -11141,7 +12322,7 @@ type ProductVariant implements Node & ObjectWithMetadata { revenue(period: ReportingPeriod): TaxedMoney """List of images for the product variant.""" - images: [ProductImage] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") + images: [ProductImage!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") """List of media for the product variant.""" media: [ProductMedia!] @@ -11168,7 +12349,7 @@ type ProductVariant implements Node & ObjectWithMetadata { DEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead. """ countryCode: CountryCode - ): [Stock] + ): [Stock!] """ Quantity of a product available for sale in one checkout. Field value will be `null` when no `limitQuantityPerCheckout` in global settings has been set, and `productVariant` stocks are not tracked. @@ -11187,11 +12368,32 @@ type ProductVariant implements Node & ObjectWithMetadata { countryCode: CountryCode ): Int - """New in Saleor 3.1. Preorder data for product variant.""" + """ + New in Saleor 3.1. Preorder data for product variant. Note: this feature is in a preview state and can be subject to changes at later point. + """ preorder: PreorderData + created: DateTime! + updatedAt: DateTime! } -"""Creates product variants for a given product.""" +type ProductVariantBackInStock { + """ + New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point. + """ + productVariant( + """Slug of a channel for which the data should be returned.""" + channel: String + ): ProductVariant + + """ + New in Saleor 3.2. Look up a warehouse. Note: this feature is in a preview state and can be subject to changes at later point. + """ + warehouse: Warehouse +} + +""" +Creates product variants for a given product. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantBulkCreate { """Returns how many objects were created.""" count: Int! @@ -11217,11 +12419,13 @@ input ProductVariantBulkCreateInput { """Weight of the Product Variant.""" weight: WeightScalar - """New in Saleor 3.1. Determines if variant is in preorder.""" + """ + New in Saleor 3.1. Determines if variant is in preorder. Note: this feature is in a preview state and can be subject to changes at later point. + """ preorder: PreorderSettingsInput """ - New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. + New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Note: this feature is in a preview state and can be subject to changes at later point. """ quantityLimitPerCustomer: Int @@ -11232,7 +12436,9 @@ input ProductVariantBulkCreateInput { channelListings: [ProductVariantChannelListingAddInput!] } -"""Deletes product variants.""" +""" +Deletes product variants. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -11252,7 +12458,9 @@ type ProductVariantChannelListing implements Node { """Gross margin percentage value.""" margin: Int - """New in Saleor 3.1. Preorder variant data.""" + """ + New in Saleor 3.1. Preorder variant data. Note: this feature is in a preview state and can be subject to changes at later point. + """ preorderThreshold: PreorderThreshold } @@ -11266,11 +12474,15 @@ input ProductVariantChannelListingAddInput { """Cost price of the variant in channel.""" costPrice: PositiveDecimal - """New in Saleor 3.1. The threshold for preorder variant in channel.""" + """ + New in Saleor 3.1. The threshold for preorder variant in channel. Note: this feature is in a preview state and can be subject to changes at later point. + """ preorderThreshold: Int } -"""Manage product variant prices in channels.""" +""" +Manage product variant prices in channels. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantChannelListingUpdate { """An updated product variant instance.""" variant: ProductVariant @@ -11295,7 +12507,9 @@ type ProductVariantCountableEdge { cursor: String! } -"""Creates a new variant for a product.""" +""" +Creates a new variant for a product. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantCreate { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! @@ -11317,11 +12531,13 @@ input ProductVariantCreateInput { """Weight of the Product Variant.""" weight: WeightScalar - """New in Saleor 3.1. Determines if variant is in preorder.""" + """ + New in Saleor 3.1. Determines if variant is in preorder. Note: this feature is in a preview state and can be subject to changes at later point. + """ preorder: PreorderSettingsInput """ - New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. + New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Note: this feature is in a preview state and can be subject to changes at later point. """ quantityLimitPerCustomer: Int @@ -11332,18 +12548,41 @@ input ProductVariantCreateInput { stocks: [StockInput!] } -"""Deletes a product variant.""" +type ProductVariantCreated { + """ + New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point. + """ + productVariant( + """Slug of a channel for which the data should be returned.""" + channel: String + ): ProductVariant +} + +""" +Deletes a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantDelete { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } +type ProductVariantDeleted { + """ + New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point. + """ + productVariant( + """Slug of a channel for which the data should be returned.""" + channel: String + ): ProductVariant +} + input ProductVariantFilterInput { search: String - sku: [String] - metadata: [MetadataFilter] + sku: [String!] + metadata: [MetadataFilter!] isPreorder: Boolean + updatedAt: DateTimeRangeInput } input ProductVariantInput { @@ -11361,17 +12600,34 @@ input ProductVariantInput { """Weight of the Product Variant.""" weight: WeightScalar - """New in Saleor 3.1. Determines if variant is in preorder.""" + """ + New in Saleor 3.1. Determines if variant is in preorder. Note: this feature is in a preview state and can be subject to changes at later point. + """ preorder: PreorderSettingsInput """ - New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. + New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Note: this feature is in a preview state and can be subject to changes at later point. """ quantityLimitPerCustomer: Int } +type ProductVariantOutOfStock { + """ + New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point. + """ + productVariant( + """Slug of a channel for which the data should be returned.""" + channel: String + ): ProductVariant + + """ + New in Saleor 3.2. Look up a warehouse. Note: this feature is in a preview state and can be subject to changes at later point. + """ + warehouse: Warehouse +} + """ -New in Saleor 3.1. Deactivates product variant preorder.It changes all preorder allocation into regular allocation. +New in Saleor 3.1. Deactivates product variant preorder. It changes all preorder allocation into regular allocation. Note: this feature is in a preview state and can be subject to changes at later point. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantPreorderDeactivate { """Product variant with ended preorder.""" @@ -11380,7 +12636,7 @@ type ProductVariantPreorderDeactivate { } """ -Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. +Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantReorder { product: Product @@ -11388,7 +12644,9 @@ type ProductVariantReorder { errors: [ProductError!]! } -"""Reorder product variant attribute values.""" +""" +Reorder product variant attribute values. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantReorderAttributeValues { """Product variant from which attribute values are reordered.""" productVariant: ProductVariant @@ -11397,7 +12655,7 @@ type ProductVariantReorderAttributeValues { } """ -Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. +Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. Requires one of the following permissions: MANAGE_PRODUCTS. """ type ProductVariantSetDefault { product: Product @@ -11405,7 +12663,22 @@ type ProductVariantSetDefault { errors: [ProductError!]! } -"""Creates stocks for product variant.""" +enum ProductVariantSortField { + """Sort products variants by last modified at.""" + LAST_MODIFIED_AT +} + +input ProductVariantSortingInput { + """Specifies the direction in which to sort products.""" + direction: OrderDirection! + + """Sort productVariants by the selected field.""" + field: ProductVariantSortField! +} + +""" +Creates stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantStocksCreate { """Updated product variant.""" productVariant: ProductVariant @@ -11413,7 +12686,9 @@ type ProductVariantStocksCreate { errors: [BulkStockError!]! } -"""Delete stocks from product variant.""" +""" +Delete stocks from product variant. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantStocksDelete { """Updated product variant.""" productVariant: ProductVariant @@ -11421,7 +12696,9 @@ type ProductVariantStocksDelete { errors: [StockError!]! } -"""Update stocks for product variant.""" +""" +Update stocks for product variant. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantStocksUpdate { """Updated product variant.""" productVariant: ProductVariant @@ -11446,7 +12723,9 @@ type ProductVariantTranslatableContent implements Node { attributeValues: [AttributeValueTranslatableContent!]! } -"""Creates/updates translations for a product variant.""" +""" +Creates/updates translations for a product variant. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type ProductVariantTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -11461,13 +12740,25 @@ type ProductVariantTranslation implements Node { name: String! } -"""Updates an existing variant for product.""" +""" +Updates an existing variant for product. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type ProductVariantUpdate { productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } +type ProductVariantUpdated { + """ + New in Saleor 3.2. Look up a product variant. Note: this feature is in a preview state and can be subject to changes at later point. + """ + productVariant( + """Slug of a channel for which the data should be returned.""" + channel: String + ): ProductVariant +} + input PublishableChannelListingInput { """ID of a channel.""" channelId: ID! @@ -11487,7 +12778,7 @@ type Query { ): Webhook """List of all available webhook events.""" - webhookEvents: [WebhookEvent] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types.") + webhookEvents: [WebhookEvent!] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types.") """ Retrieve a sample payload for a given webhook event based on real data. It can be useful for some integrations where sample payload is required. @@ -11776,7 +13067,7 @@ type Query { """List of product variants.""" productVariants( """Filter product variants by given IDs.""" - ids: [ID] + ids: [ID!] """Slug of a channel for which the data should be returned.""" channel: String @@ -11784,6 +13075,9 @@ type Query { """Filtering options for product variant.""" filter: ProductVariantFilterInput + """Sort products variants.""" + sortBy: ProductVariantSortingInput + """Return the elements in the list that come before the specified cursor.""" before: String @@ -11976,7 +13270,7 @@ type Query { channel: String ): TaxedMoney - """Look up an order by token.""" + """{DEPRECATED_IN_3X_FIELD} Look up an order by token.""" orderByToken( """The order's token.""" token: UUID! @@ -12062,10 +13356,14 @@ type Query { """List of gift cards.""" giftCards( - """New in Saleor 3.1. Sort gift cards.""" + """ + New in Saleor 3.1. Sort gift cards. Note: this feature is in a preview state and can be subject to changes at later point. + """ sortBy: GiftCardSortingInput - """New in Saleor 3.1. Filtering options for gift cards.""" + """ + New in Saleor 3.1. Filtering options for gift cards. Note: this feature is in a preview state and can be subject to changes at later point. + """ filter: GiftCardFilterInput """Return the elements in the list that come before the specified cursor.""" @@ -12081,10 +13379,14 @@ type Query { last: Int ): GiftCardCountableConnection - """New in Saleor 3.1. List of gift card currencies.""" + """ + New in Saleor 3.1. List of gift card currencies. Note: this feature is in a preview state and can be subject to changes at later point. + """ giftCardCurrencies: [String!]! - """{ADDED_IN_31} List of gift card tags.""" + """ + New in Saleor 3.1. List of gift card tags. Note: this feature is in a preview state and can be subject to changes at later point. + """ giftCardTags( """Filtering options for gift card tags.""" filter: GiftCardTagFilterInput @@ -12237,7 +13539,7 @@ type Query { ): ExportFileCountableConnection """List of all tax rates available from tax gateway.""" - taxTypes: [TaxType] + taxTypes: [TaxType!] """Look up a checkout by token and slug of channel.""" checkout( @@ -12358,7 +13660,9 @@ type Query { id: ID ): App - """New in Saleor 3.1. List of all extensions""" + """ + New in Saleor 3.1. List of all extensions. Note: this feature is in a preview state and can be subject to changes at later point. + """ appExtensions( """Filtering options for apps extensions.""" filter: AppExtensionFilterInput @@ -12376,7 +13680,9 @@ type Query { last: Int ): AppExtensionCountableConnection - """New in Saleor 3.1. Look up an app extension by ID.""" + """ + New in Saleor 3.1. Look up an app extension by ID. Note: this feature is in a preview state and can be subject to changes at later point. + """ appExtension( """ID of the app extension.""" id: ID! @@ -12524,7 +13830,9 @@ enum ReportingPeriod { THIS_MONTH } -"""Request email change of the logged in user.""" +""" +Request email change of the logged in user. Requires one of the following permissions: AUTHENTICATED_USER. +""" type RequestEmailChange { """A user instance.""" user: User @@ -12547,14 +13855,16 @@ type Sale implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String! type: SaleType! startDate: DateTime! endDate: DateTime + created: DateTime! + updatedAt: DateTime! """List of categories this sale applies to.""" categories( @@ -12632,7 +13942,9 @@ type Sale implements Node & ObjectWithMetadata { currency: String } -"""Adds products, categories, collections to a voucher.""" +""" +Adds products, categories, collections to a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type SaleAddCatalogues { """Sale of which catalogue IDs will be modified.""" sale: Sale @@ -12640,7 +13952,9 @@ type SaleAddCatalogues { errors: [DiscountError!]! } -"""Deletes sales.""" +""" +Deletes sales. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type SaleBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -12672,7 +13986,9 @@ input SaleChannelListingInput { removeChannels: [ID!] } -"""Manage sale's availability in channels.""" +""" +Manage sale's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type SaleChannelListingUpdate { """An updated sale instance.""" sale: Sale @@ -12697,26 +14013,51 @@ type SaleCountableEdge { cursor: String! } -"""Creates a new sale.""" +""" +Creates a new sale. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type SaleCreate { discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } -"""Deletes a sale.""" +type SaleCreated { + """ + New in Saleor 3.2. Look up a sale. Note: this feature is in a preview state and can be subject to changes at later point. + """ + sale( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Sale +} + +""" +Deletes a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type SaleDelete { discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } +type SaleDeleted { + """ + New in Saleor 3.2. Look up a sale. Note: this feature is in a preview state and can be subject to changes at later point. + """ + sale( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Sale +} + input SaleFilterInput { - status: [DiscountStatusEnum] + status: [DiscountStatusEnum!] saleType: DiscountValueTypeEnum started: DateTimeRangeInput search: String - metadata: [MetadataFilter] + metadata: [MetadataFilter!] + updatedAt: DateTimeRangeInput } input SaleInput { @@ -12730,14 +14071,14 @@ input SaleInput { value: PositiveDecimal """Products related to the discount.""" - products: [ID] - variants: [ID] + products: [ID!] + variants: [ID!] """Categories related to the discount.""" - categories: [ID] + categories: [ID!] """Collections related to the discount.""" - collections: [ID] + collections: [ID!] """Start date of the voucher in ISO 8601 format.""" startDate: DateTime @@ -12746,7 +14087,9 @@ input SaleInput { endDate: DateTime } -"""Removes products, categories, collections from a sale.""" +""" +Removes products, categories, collections from a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type SaleRemoveCatalogues { """Sale of which catalogue IDs will be modified.""" sale: Sale @@ -12769,6 +14112,12 @@ enum SaleSortField { """Sort sales by type.""" TYPE + + """Sort sales by created at.""" + CREATED_AT + + """Sort sales by last modified at.""" + LAST_MODIFIED_AT } input SaleSortingInput { @@ -12776,7 +14125,7 @@ input SaleSortingInput { direction: OrderDirection! """ - Specifies the channel in which to sort the data. + Specifies the channel in which to sort the data. DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. """ @@ -12802,7 +14151,9 @@ type SaleTranslatableContent implements Node { sale: Sale @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") } -"""Creates/updates translations for a sale.""" +""" +Creates/updates translations for a sale. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type SaleTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -12822,20 +14173,32 @@ enum SaleType { PERCENTAGE } -"""Updates a sale.""" +""" +Updates a sale. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type SaleUpdate { discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } +type SaleUpdated { + """ + New in Saleor 3.2. Look up a sale. Note: this feature is in a preview state and can be subject to changes at later point. + """ + sale( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Sale +} + """Represents a custom attribute.""" type SelectedAttribute { """Name of an attribute displayed in the interface.""" attribute: Attribute! """Values of an attribute.""" - values: [AttributeValue]! + values: [AttributeValue!]! } input SeoInput { @@ -12897,7 +14260,7 @@ enum ShippingErrorCode { } """ -('Shipping methods that can be used as means of shippingfor orders and checkouts.',) +Shipping methods that can be used as means of shipping for orders and checkouts. """ type ShippingMethod implements Node & ObjectWithMetadata { """Unique ID of ShippingMethod available for Order.""" @@ -12906,10 +14269,10 @@ type ShippingMethod implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! """Type of the shipping method.""" type: ShippingMethodTypeEnum @deprecated(reason: "This field will be removed in Saleor 4.0.") @@ -12985,7 +14348,9 @@ input ShippingMethodChannelListingInput { removeChannels: [ID!] } -"""Manage shipping method's availability in channels.""" +""" +Manage shipping method's availability in channels. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingMethodChannelListingUpdate { """An updated shipping method instance.""" shippingMethod: ShippingMethodType @@ -13044,10 +14409,10 @@ type ShippingMethodType implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! """Shipping method name.""" name: String! @@ -13076,7 +14441,7 @@ type ShippingMethodType implements Node & ObjectWithMetadata { """ Postal code ranges rule of exclusion or inclusion of the shipping method. """ - postalCodeRules: [ShippingMethodPostalCodeRule] + postalCodeRules: [ShippingMethodPostalCodeRule!] """List of excluded products for the shipping method.""" excludedProducts( @@ -13120,7 +14485,9 @@ input ShippingPostalCodeRulesCreateInputRange { end: String } -"""Deletes shipping prices.""" +""" +Deletes shipping prices. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingPriceBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -13128,7 +14495,9 @@ type ShippingPriceBulkDelete { errors: [ShippingError!]! } -"""Creates a new shipping price.""" +""" +Creates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingPriceCreate { """A shipping zone to which the shipping method belongs.""" shippingZone: ShippingZone @@ -13137,7 +14506,9 @@ type ShippingPriceCreate { errors: [ShippingError!]! } -"""Deletes a shipping price.""" +""" +Deletes a shipping price. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingPriceDelete { """A shipping method to delete.""" shippingMethod: ShippingMethodType @@ -13148,7 +14519,9 @@ type ShippingPriceDelete { errors: [ShippingError!]! } -"""Exclude products from shipping price.""" +""" +Exclude products from shipping price. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingPriceExcludeProducts { """A shipping method with new list of excluded products.""" shippingMethod: ShippingMethodType @@ -13158,7 +14531,7 @@ type ShippingPriceExcludeProducts { input ShippingPriceExcludeProductsInput { """List of products which will be excluded.""" - products: [ID]! + products: [ID!]! } input ShippingPriceInput { @@ -13196,7 +14569,9 @@ input ShippingPriceInput { inclusionType: PostalCodeRuleInclusionTypeEnum } -"""Remove product from excluded list for shipping price.""" +""" +Remove product from excluded list for shipping price. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingPriceRemoveProductFromExclude { """A shipping method with new list of excluded products.""" shippingMethod: ShippingMethodType @@ -13204,7 +14579,9 @@ type ShippingPriceRemoveProductFromExclude { errors: [ShippingError!]! } -"""Creates/updates translations for a shipping method.""" +""" +Creates/updates translations for a shipping method. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type ShippingPriceTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -13218,7 +14595,9 @@ input ShippingPriceTranslationInput { description: JSONString } -"""Updates a new shipping price.""" +""" +Updates a new shipping price. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingPriceUpdate { """A shipping zone to which the shipping method belongs.""" shippingZone: ShippingZone @@ -13236,10 +14615,10 @@ type ShippingZone implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String! default: Boolean! @@ -13247,12 +14626,12 @@ type ShippingZone implements Node & ObjectWithMetadata { priceRange: MoneyRange """List of countries available for the method.""" - countries: [CountryDisplay] + countries: [CountryDisplay!] """ List of shipping methods available for orders shipped to countries within this shipping zone. """ - shippingMethods: [ShippingMethodType] + shippingMethods: [ShippingMethodType!] """List of warehouses for shipping zone.""" warehouses: [Warehouse!]! @@ -13264,7 +14643,9 @@ type ShippingZone implements Node & ObjectWithMetadata { description: String } -"""Deletes shipping zones.""" +""" +Deletes shipping zones. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingZoneBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -13289,7 +14670,9 @@ type ShippingZoneCountableEdge { cursor: String! } -"""Creates a new shipping zone.""" +""" +Creates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingZoneCreate { shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! @@ -13304,7 +14687,7 @@ input ShippingZoneCreateInput { description: String """List of countries in this shipping zone.""" - countries: [String] + countries: [String!] """ Default shipping zone will be used for countries not covered by other zones. @@ -13312,13 +14695,15 @@ input ShippingZoneCreateInput { default: Boolean """List of warehouses to assign to a shipping zone""" - addWarehouses: [ID] + addWarehouses: [ID!] """List of channels to assign to the shipping zone.""" addChannels: [ID!] } -"""Deletes a shipping zone.""" +""" +Deletes a shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingZoneDelete { shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! @@ -13327,10 +14712,12 @@ type ShippingZoneDelete { input ShippingZoneFilterInput { search: String - channels: [ID] + channels: [ID!] } -"""Updates a new shipping zone.""" +""" +Updates a new shipping zone. Requires one of the following permissions: MANAGE_SHIPPING. +""" type ShippingZoneUpdate { shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! @@ -13345,7 +14732,7 @@ input ShippingZoneUpdateInput { description: String """List of countries in this shipping zone.""" - countries: [String] + countries: [String!] """ Default shipping zone will be used for countries not covered by other zones. @@ -13353,13 +14740,13 @@ input ShippingZoneUpdateInput { default: Boolean """List of warehouses to assign to a shipping zone""" - addWarehouses: [ID] + addWarehouses: [ID!] """List of channels to assign to the shipping zone.""" addChannels: [ID!] """List of warehouses to unassign from a shipping zone""" - removeWarehouses: [ID] + removeWarehouses: [ID!] """List of channels to unassign from the shipping zone.""" removeChannels: [ID!] @@ -13392,7 +14779,7 @@ type Shop { """Address for which available shipping methods should be returned.""" address: AddressInput - ): [ShippingMethod] + ): [ShippingMethod!] """ New in Saleor 3.1. List of all currencies supported by shop's channels. @@ -13428,16 +14815,16 @@ type Shop { domain: Domain! """List of the shops's supported languages.""" - languages: [LanguageDisplay]! + languages: [LanguageDisplay!]! """Shop's name.""" name: String! """List of available permissions.""" - permissions: [Permission]! + permissions: [Permission!]! """List of possible phone prefixes.""" - phonePrefixes: [String]! + phonePrefixes: [String!]! """Header text.""" headerText: String @@ -13483,7 +14870,7 @@ type Shop { reserveStockDurationAuthenticatedUser: Int """ - New in Saleor 3.1. Default number of maximum line quantity in single checkout (per single checkout line). + New in Saleor 3.1. Default number of maximum line quantity in single checkout (per single checkout line). Note: this feature is in a preview state and can be subject to changes at later point. """ limitQuantityPerCheckout: Int @@ -13500,7 +14887,7 @@ type Shop { customerSetPasswordUrl: String """List of staff notification recipients.""" - staffNotificationRecipients: [StaffNotificationRecipient] + staffNotificationRecipients: [StaffNotificationRecipient!] """Resource limitations and current usage if any set for a shop""" limits: LimitInfo! @@ -13510,7 +14897,7 @@ type Shop { } """ -Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. +Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. Requires one of the following permissions: MANAGE_SETTINGS. """ type ShopAddressUpdate { """Updated shop.""" @@ -13519,7 +14906,9 @@ type ShopAddressUpdate { errors: [ShopError!]! } -"""Updates site domain of the shop.""" +""" +Updates site domain of the shop. Requires one of the following permissions: MANAGE_SETTINGS. +""" type ShopDomainUpdate { """Updated shop.""" shop: Shop @@ -13551,7 +14940,9 @@ enum ShopErrorCode { UNIQUE } -"""Fetch tax rates.""" +""" +Fetch tax rates. Requires one of the following permissions: MANAGE_SETTINGS. +""" type ShopFetchTaxRates { """Updated shop.""" shop: Shop @@ -13618,12 +15009,14 @@ input ShopSettingsInput { reserveStockDurationAuthenticatedUser: Int """ - New in Saleor 3.1. Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. + New in Saleor 3.1. Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. Note: this feature is in a preview state and can be subject to changes at later point. """ limitQuantityPerCheckout: Int } -"""Creates/updates translations for shop settings.""" +""" +Creates/updates translations for shop settings. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type ShopSettingsTranslate { """Updated shop settings.""" shop: Shop @@ -13636,7 +15029,9 @@ input ShopSettingsTranslationInput { description: String } -"""Updates shop settings.""" +""" +Updates shop settings. Requires one of the following permissions: MANAGE_SETTINGS. +""" type ShopSettingsUpdate { """Updated shop.""" shop: Shop @@ -13661,7 +15056,9 @@ input SiteDomainInput { name: String } -"""Deletes staff users.""" +""" +Deletes staff users. Requires one of the following permissions: MANAGE_STAFF. +""" type StaffBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -13669,7 +15066,9 @@ type StaffBulkDelete { errors: [StaffError!]! } -"""Creates a new staff user.""" +""" +Creates a new staff user. Requires one of the following permissions: MANAGE_STAFF. +""" type StaffCreate { staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! @@ -13701,7 +15100,9 @@ input StaffCreateInput { redirectUrl: String } -"""Deletes a staff user.""" +""" +Deletes a staff user. Requires one of the following permissions: MANAGE_STAFF. +""" type StaffDelete { staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! @@ -13757,14 +15158,18 @@ type StaffNotificationRecipient implements Node { active: Boolean } -"""Creates a new staff notification recipient.""" +""" +Creates a new staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. +""" type StaffNotificationRecipientCreate { shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } -"""Delete staff notification recipient.""" +""" +Delete staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. +""" type StaffNotificationRecipientDelete { shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! @@ -13782,14 +15187,18 @@ input StaffNotificationRecipientInput { active: Boolean } -"""Updates a staff notification recipient.""" +""" +Updates a staff notification recipient. Requires one of the following permissions: MANAGE_SETTINGS. +""" type StaffNotificationRecipientUpdate { shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } -"""Updates an existing staff user.""" +""" +Updates an existing staff user. Requires one of the following permissions: MANAGE_STAFF. +""" type StaffUpdate { staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! @@ -13822,7 +15231,7 @@ input StaffUpdateInput { input StaffUserInput { status: StaffMemberStatus search: String - ids: [ID] + ids: [ID!] } """Represents stock.""" @@ -13917,6 +15326,13 @@ enum StorePaymentMethodEnum { NONE } +type Subscription { + """ + New in Saleor 3.2. Look up subscription event. Note: this feature is in a preview state and can be subject to changes at later point. + """ + event: Event +} + """Representation of tax types fetched from tax gateway.""" type TaxType { """Description of the tax type.""" @@ -14038,6 +15454,13 @@ enum TranslatableKinds { VOUCHER } +type TranslationCreated { + """ + New in Saleor 3.2. Look up a translation. Note: this feature is in a preview state and can be subject to changes at later point. + """ + translation: TranslationTypes +} + type TranslationError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -14066,6 +15489,15 @@ input TranslationInput { description: JSONString } +union TranslationTypes = ProductTranslation | CollectionTranslation | CategoryTranslation | AttributeTranslation | AttributeValueTranslation | ProductVariantTranslation | PageTranslation | ShippingMethodTranslation | SaleTranslation | VoucherTranslation | MenuItemTranslation + +type TranslationUpdated { + """ + New in Saleor 3.2. Look up a translation. Note: this feature is in a preview state and can be subject to changes at later point. + """ + translation: TranslationTypes +} + scalar UUID input UpdateInvoiceInput { @@ -14076,14 +15508,18 @@ input UpdateInvoiceInput { url: String } -"""Updates metadata of an object.""" +""" +Updates metadata of an object. To use it, you need to have access to the modified object. +""" type UpdateMetadata { metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! item: ObjectWithMetadata } -"""Updates private metadata of an object.""" +""" +Updates private metadata of an object. To use it, you need to be an authenticated staff user or an app and have access to the modified object. +""" type UpdatePrivateMetadata { metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! @@ -14120,10 +15556,10 @@ type User implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! email: String! firstName: String! lastName: String! @@ -14131,10 +15567,10 @@ type User implements Node & ObjectWithMetadata { isActive: Boolean! """List of all user's addresses.""" - addresses: [Address] + addresses: [Address!] """Returns the last open checkout of this user.""" - checkout: Checkout @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `checkout_tokens` field to fetch the user checkouts.") + checkout: Checkout @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts.") """Returns the checkout UUID's assigned to this user.""" checkoutTokens( @@ -14176,26 +15612,26 @@ type User implements Node & ObjectWithMetadata { ): OrderCountableConnection """List of user's permissions.""" - userPermissions: [UserPermission] + userPermissions: [UserPermission!] """List of user's permission groups.""" - permissionGroups: [Group] + permissionGroups: [Group!] """List of user's permission groups which user can manage.""" - editableGroups: [Group] + editableGroups: [Group!] avatar( """Size of the avatar.""" size: Int ): Image """List of events associated with the user.""" - events: [CustomerEvent] + events: [CustomerEvent!] """List of stored payment sources.""" storedPaymentSources( """Slug of a channel for which the data should be returned.""" channel: String - ): [PaymentSource] + ): [PaymentSource!] """User language code.""" languageCode: LanguageCodeEnum! @@ -14203,6 +15639,7 @@ type User implements Node & ObjectWithMetadata { defaultBillingAddress: Address lastLogin: DateTime dateJoined: DateTime! + updatedAt: DateTime! } """Deletes a user avatar. Only for staff members.""" @@ -14223,7 +15660,9 @@ type UserAvatarUpdate { errors: [AccountError!]! } -"""Activate or deactivate users.""" +""" +Activate or deactivate users. Requires one of the following permissions: MANAGE_USERS. +""" type UserBulkSetActive { """Returns how many objects were affected.""" count: Int! @@ -14310,6 +15749,12 @@ enum UserSortField { """Sort users by order count.""" ORDER_COUNT + + """Sort users by created at.""" + CREATED_AT + + """Sort users by last modified at.""" + LAST_MODIFIED_AT } input UserSortingInput { @@ -14329,7 +15774,7 @@ type VAT { standardRate: Float """Country's VAT rate exceptions for specific types of goods.""" - reducedRates: [ReducedRate]! + reducedRates: [ReducedRate!]! } enum VariantAttributeScope { @@ -14338,7 +15783,9 @@ enum VariantAttributeScope { NOT_VARIANT_SELECTION } -"""Assign an media to a product variant.""" +""" +Assign an media to a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type VariantMediaAssign { productVariant: ProductVariant media: ProductMedia @@ -14346,7 +15793,9 @@ type VariantMediaAssign { errors: [ProductError!]! } -"""Unassign an media from a product variant.""" +""" +Unassign an media from a product variant. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type VariantMediaUnassign { productVariant: ProductVariant media: ProductMedia @@ -14415,10 +15864,10 @@ type Voucher implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String code: String! usageLimit: Int @@ -14491,7 +15940,7 @@ type Voucher implements Node & ObjectWithMetadata { ): ProductVariantCountableConnection """List of countries available for the shipping voucher.""" - countries: [CountryDisplay] + countries: [CountryDisplay!] """Returns translated voucher fields for the given language code.""" translation( @@ -14518,7 +15967,9 @@ type Voucher implements Node & ObjectWithMetadata { channelListings: [VoucherChannelListing!] } -"""Adds products, categories, collections to a voucher.""" +""" +Adds products, categories, collections to a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type VoucherAddCatalogues { """Voucher of which catalogue IDs will be modified.""" voucher: Voucher @@ -14526,7 +15977,9 @@ type VoucherAddCatalogues { errors: [DiscountError!]! } -"""Deletes vouchers.""" +""" +Deletes vouchers. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type VoucherBulkDelete { """Returns how many objects were affected.""" count: Int! @@ -14562,7 +16015,9 @@ input VoucherChannelListingInput { removeChannels: [ID!] } -"""Manage voucher's availability in channels.""" +""" +Manage voucher's availability in channels. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type VoucherChannelListingUpdate { """An updated voucher instance.""" voucher: Voucher @@ -14587,14 +16042,18 @@ type VoucherCountableEdge { cursor: String! } -"""Creates a new voucher.""" +""" +Creates a new voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type VoucherCreate { discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher } -"""Deletes a voucher.""" +""" +Deletes a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type VoucherDelete { discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! @@ -14608,12 +16067,12 @@ enum VoucherDiscountType { } input VoucherFilterInput { - status: [DiscountStatusEnum] + status: [DiscountStatusEnum!] timesUsed: IntRangeInput - discountType: [VoucherDiscountType] + discountType: [VoucherDiscountType!] started: DateTimeRangeInput search: String - metadata: [MetadataFilter] + metadata: [MetadataFilter!] } input VoucherInput { @@ -14636,22 +16095,22 @@ input VoucherInput { discountValueType: DiscountValueTypeEnum """Products discounted by the voucher.""" - products: [ID] + products: [ID!] """New in Saleor 3.1. Variants discounted by the voucher.""" - variants: [ID] + variants: [ID!] """Collections discounted by the voucher.""" - collections: [ID] + collections: [ID!] """Categories discounted by the voucher.""" - categories: [ID] + categories: [ID!] """Minimal quantity of checkout items required to apply the voucher.""" minCheckoutItemsQuantity: Int """Country codes that can be used with the shipping voucher.""" - countries: [String] + countries: [String!] """Voucher should be applied to the cheapest item or entire order.""" applyOncePerOrder: Boolean @@ -14666,7 +16125,9 @@ input VoucherInput { usageLimit: Int } -"""Removes products, categories, collections from a voucher.""" +""" +Removes products, categories, collections from a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type VoucherRemoveCatalogues { """Voucher of which catalogue IDs will be modified.""" voucher: Voucher @@ -14702,7 +16163,7 @@ input VoucherSortingInput { direction: OrderDirection! """ - Specifies the channel in which to sort the data. + Specifies the channel in which to sort the data. DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. """ @@ -14728,7 +16189,9 @@ type VoucherTranslatableContent implements Node { voucher: Voucher @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") } -"""Creates/updates translations for a voucher.""" +""" +Creates/updates translations for a voucher. Requires one of the following permissions: MANAGE_TRANSLATIONS. +""" type VoucherTranslate { translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! @@ -14749,7 +16212,9 @@ enum VoucherTypeEnum { SPECIFIC_PRODUCT } -"""Updates a voucher.""" +""" +Updates a voucher. Requires one of the following permissions: MANAGE_DISCOUNTS. +""" type VoucherUpdate { discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! @@ -14763,10 +16228,10 @@ type Warehouse implements Node & ObjectWithMetadata { """ List of private metadata items.Requires proper staff permissions to access. """ - privateMetadata: [MetadataItem]! + privateMetadata: [MetadataItem!]! """List of public metadata items. Can be accessed without permissions.""" - metadata: [MetadataItem]! + metadata: [MetadataItem!]! name: String! slug: String! email: String! @@ -14776,7 +16241,9 @@ type Warehouse implements Node & ObjectWithMetadata { """Warehouse company name.""" companyName: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead.") - """New in Saleor 3.1. Click and collect options: local, all or disabled""" + """ + New in Saleor 3.1. Click and collect options: local, all or disabled. Note: this feature is in a preview state and can be subject to changes at later point. + """ clickAndCollectOption: WarehouseClickAndCollectOptionEnum! shippingZones( """Return the elements in the list that come before the specified cursor.""" @@ -14817,7 +16284,9 @@ type WarehouseCountableEdge { cursor: String! } -"""Creates new warehouse.""" +""" +Creates new warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type WarehouseCreate { warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! @@ -14838,10 +16307,12 @@ input WarehouseCreateInput { address: AddressInput! """Shipping zones supported by the warehouse.""" - shippingZones: [ID] + shippingZones: [ID!] } -"""Deletes selected warehouse.""" +""" +Deletes selected warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type WarehouseDelete { warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! @@ -14874,18 +16345,22 @@ enum WarehouseErrorCode { input WarehouseFilterInput { clickAndCollectOption: WarehouseClickAndCollectOptionEnum search: String - ids: [ID] + ids: [ID!] isPrivate: Boolean } -"""Add shipping zone to given warehouse.""" +""" +Add shipping zone to given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type WarehouseShippingZoneAssign { warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } -"""Remove shipping zone from given warehouse.""" +""" +Remove shipping zone from given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type WarehouseShippingZoneUnassign { warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! @@ -14905,7 +16380,9 @@ input WarehouseSortingInput { field: WarehouseSortField! } -"""Updates given warehouse.""" +""" +Updates given warehouse. Requires one of the following permissions: MANAGE_PRODUCTS. +""" type WarehouseUpdate { warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! @@ -14925,10 +16402,14 @@ input WarehouseUpdateInput { """Address of the warehouse.""" address: AddressInput - """New in Saleor 3.1. Click and collect options: local, all or disabled""" + """ + New in Saleor 3.1. Click and collect options: local, all or disabled. Note: this feature is in a preview state and can be subject to changes at later point. + """ clickAndCollectOption: WarehouseClickAndCollectOptionEnum - """New in Saleor 3.1. Visibility of warehouse stocks""" + """ + New in Saleor 3.1. Visibility of warehouse stocks. Note: this feature is in a preview state and can be subject to changes at later point. + """ isPrivate: Boolean } @@ -14967,12 +16448,23 @@ type Webhook implements Node { """Return the last n elements from the list.""" last: Int ): EventDeliveryCountableConnection + + """Target URL for webhook.""" targetUrl: String! + + """Informs if webhook is activated.""" isActive: Boolean! + + """Used to create a hash signature with each payload.""" secretKey: String + + """Used to define payloads for specific events.""" + subscriptionQuery: String } -"""Creates a new webhook subscription.""" +""" +Creates a new webhook subscription. Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. +""" type WebhookCreate { webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WebhookError!]! @@ -14991,7 +16483,7 @@ input WebhookCreateInput { DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. """ - events: [WebhookEventTypeEnum] + events: [WebhookEventTypeEnum!] """The asynchronous events that webhook wants to subscribe.""" asyncEvents: [WebhookEventTypeAsyncEnum!] @@ -15007,9 +16499,16 @@ input WebhookCreateInput { """The secret key used to create a hash signature with each payload.""" secretKey: String + + """ + New in Saleor 3.2. Subscription query used to define a webhook payload. Note: this feature is in a preview state and can be subject to changes at later point. + """ + query: String } -"""Deletes a webhook subscription.""" +""" +Deletes a webhook subscription. Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP. +""" type WebhookDelete { webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WebhookError!]! @@ -15070,6 +16569,15 @@ enum WebhookEventTypeAsyncEnum { """All the events.""" ANY_EVENTS + """A new category created.""" + CATEGORY_CREATED + + """A category is updated.""" + CATEGORY_UPDATED + + """A category is deleted.""" + CATEGORY_DELETED + """A new order is placed.""" ORDER_CREATED @@ -15173,12 +16681,38 @@ enum WebhookEventTypeAsyncEnum { """Enum determining type of webhook.""" enum WebhookEventTypeEnum { + """All the events.""" ANY_EVENTS + + """A new category created.""" + CATEGORY_CREATED + + """A category is updated.""" + CATEGORY_UPDATED + + """A category is deleted.""" + CATEGORY_DELETED + + """A new order is placed.""" ORDER_CREATED + + """ + An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. + """ ORDER_CONFIRMED + + """Payment is made and an order is fully paid.""" ORDER_FULLY_PAID + + """ + An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. + """ ORDER_UPDATED + + """An order is cancelled.""" ORDER_CANCELLED + + """An order is fulfilled.""" ORDER_FULFILLED DRAFT_ORDER_CREATED DRAFT_ORDER_UPDATED @@ -15186,29 +16720,75 @@ enum WebhookEventTypeEnum { SALE_CREATED SALE_UPDATED SALE_DELETED + + """An invoice for order requested.""" INVOICE_REQUESTED + + """An invoice is deleted.""" INVOICE_DELETED + + """Invoice has been sent.""" INVOICE_SENT + + """A new customer account is created.""" CUSTOMER_CREATED + + """A customer account is updated.""" CUSTOMER_UPDATED + + """A new collection is created.""" COLLECTION_CREATED + + """A collection is updated.""" COLLECTION_UPDATED + + """A collection is deleted.""" COLLECTION_DELETED + + """A new product is created.""" PRODUCT_CREATED + + """A product is updated.""" PRODUCT_UPDATED + + """A product is deleted.""" PRODUCT_DELETED + + """A new product variant is created.""" PRODUCT_VARIANT_CREATED + + """A product variant is updated.""" PRODUCT_VARIANT_UPDATED + + """A product variant is deleted.""" PRODUCT_VARIANT_DELETED PRODUCT_VARIANT_OUT_OF_STOCK PRODUCT_VARIANT_BACK_IN_STOCK + + """A new checkout is created.""" CHECKOUT_CREATED + + """ + A checkout is updated. It also triggers all updates related to the checkout. + """ CHECKOUT_UPDATED + + """A new fulfillment is created.""" FULFILLMENT_CREATED + + """A fulfillment is cancelled.""" FULFILLMENT_CANCELED + + """User notification triggered.""" NOTIFY_USER + + """A new page is created.""" PAGE_CREATED + + """A page is updated.""" PAGE_UPDATED + + """A page is deleted.""" PAGE_DELETED TRANSLATION_CREATED TRANSLATION_UPDATED @@ -15220,6 +16800,8 @@ enum WebhookEventTypeEnum { PAYMENT_REFUND PAYMENT_VOID SHIPPING_LIST_METHODS_FOR_CHECKOUT + ORDER_FILTER_SHIPPING_METHODS + CHECKOUT_FILTER_SHIPPING_METHODS } """Enum determining type of webhook.""" @@ -15232,10 +16814,15 @@ enum WebhookEventTypeSyncEnum { PAYMENT_REFUND PAYMENT_VOID SHIPPING_LIST_METHODS_FOR_CHECKOUT + ORDER_FILTER_SHIPPING_METHODS + CHECKOUT_FILTER_SHIPPING_METHODS } """An enumeration.""" enum WebhookSampleEventTypeEnum { + CATEGORY_CREATED + CATEGORY_UPDATED + CATEGORY_DELETED ORDER_CREATED ORDER_CONFIRMED ORDER_FULLY_PAID @@ -15276,7 +16863,9 @@ enum WebhookSampleEventTypeEnum { TRANSLATION_UPDATED } -"""Updates a webhook subscription.""" +""" +Updates a webhook subscription. Requires one of the following permissions: MANAGE_APPS. +""" type WebhookUpdate { webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WebhookError!]! @@ -15295,7 +16884,7 @@ input WebhookUpdateInput { DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead. """ - events: [WebhookEventTypeEnum] + events: [WebhookEventTypeEnum!] """The asynchronous events that webhook wants to subscribe.""" asyncEvents: [WebhookEventTypeAsyncEnum!] @@ -15311,6 +16900,11 @@ input WebhookUpdateInput { """Use to create a hash signature with each payload.""" secretKey: String + + """ + New in Saleor 3.2. Subscription query used to define a webhook payload. Note: this feature is in a preview state and can be subject to changes at later point. + """ + query: String } """Represents weight value in a specific weight unit.""" @@ -15333,11 +16927,13 @@ enum WeightUnitsEnum { TONNE } -"""Anything""" +"""_Any value scalar as defined by Federation spec.""" scalar _Any +"""_Entity union as defined by Federation spec.""" union _Entity = App | Address | User | Group | ProductVariant | Product | ProductType | Collection | Category | ProductMedia | PageType +"""_Service manifest as defined by Federation spec.""" type _Service { sdl: String } diff --git a/src/graphql/fragmentTypes.generated.ts b/src/graphql/fragmentTypes.generated.ts index d7b718283..c98e6c6c2 100644 --- a/src/graphql/fragmentTypes.generated.ts +++ b/src/graphql/fragmentTypes.generated.ts @@ -11,6 +11,48 @@ "Warehouse", "ShippingMethod" ], + "Event": [ + "CategoryCreated", + "CategoryUpdated", + "CategoryDeleted", + "OrderCreated", + "OrderUpdated", + "OrderConfirmed", + "OrderFullyPaid", + "OrderCancelled", + "OrderFulfilled", + "DraftOrderCreated", + "DraftOrderUpdated", + "DraftOrderDeleted", + "ProductCreated", + "ProductUpdated", + "ProductDeleted", + "ProductVariantCreated", + "ProductVariantUpdated", + "ProductVariantOutOfStock", + "ProductVariantBackInStock", + "ProductVariantDeleted", + "SaleCreated", + "SaleUpdated", + "SaleDeleted", + "InvoiceRequested", + "InvoiceDeleted", + "InvoiceSent", + "FulfillmentCreated", + "FulfillmentCanceled", + "CustomerCreated", + "CustomerUpdated", + "CollectionCreated", + "CollectionUpdated", + "CollectionDeleted", + "CheckoutCreated", + "CheckoutUpdated", + "PageCreated", + "PageUpdated", + "PageDeleted", + "TranslationCreated", + "TranslationUpdated" + ], "Job": [ "AppInstallation", "ExportFile", @@ -139,6 +181,19 @@ "VoucherTranslatableContent", "MenuItemTranslatableContent" ], + "TranslationTypes": [ + "ProductTranslation", + "CollectionTranslation", + "CategoryTranslation", + "AttributeTranslation", + "AttributeValueTranslation", + "ProductVariantTranslation", + "PageTranslation", + "ShippingMethodTranslation", + "SaleTranslation", + "VoucherTranslation", + "MenuItemTranslation" + ], "_Entity": [ "App", "Address", diff --git a/src/graphql/typePolicies.generated.ts b/src/graphql/typePolicies.generated.ts index a8beac12f..601e578bf 100644 --- a/src/graphql/typePolicies.generated.ts +++ b/src/graphql/typePolicies.generated.ts @@ -525,12 +525,20 @@ export type CategoryCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, category?: FieldPolicy | FieldReadFunction }; +export type CategoryCreatedKeySpecifier = ('category' | CategoryCreatedKeySpecifier)[]; +export type CategoryCreatedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction +}; export type CategoryDeleteKeySpecifier = ('productErrors' | 'errors' | 'category' | CategoryDeleteKeySpecifier)[]; export type CategoryDeleteFieldPolicy = { productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, category?: FieldPolicy | FieldReadFunction }; +export type CategoryDeletedKeySpecifier = ('category' | CategoryDeletedKeySpecifier)[]; +export type CategoryDeletedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction +}; export type CategoryTranslatableContentKeySpecifier = ('id' | 'seoTitle' | 'seoDescription' | 'name' | 'description' | 'descriptionJson' | 'translation' | 'category' | CategoryTranslatableContentKeySpecifier)[]; export type CategoryTranslatableContentFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -564,6 +572,10 @@ export type CategoryUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, category?: FieldPolicy | FieldReadFunction }; +export type CategoryUpdatedKeySpecifier = ('category' | CategoryUpdatedKeySpecifier)[]; +export type CategoryUpdatedFieldPolicy = { + category?: FieldPolicy | FieldReadFunction +}; export type ChannelKeySpecifier = ('id' | 'name' | 'isActive' | 'currencyCode' | 'slug' | 'hasOrders' | 'defaultCountry' | ChannelKeySpecifier)[]; export type ChannelFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -683,6 +695,10 @@ export type CheckoutCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, checkout?: FieldPolicy | FieldReadFunction }; +export type CheckoutCreatedKeySpecifier = ('checkout' | CheckoutCreatedKeySpecifier)[]; +export type CheckoutCreatedFieldPolicy = { + checkout?: FieldPolicy | FieldReadFunction +}; export type CheckoutCustomerAttachKeySpecifier = ('checkout' | 'checkoutErrors' | 'errors' | CheckoutCustomerAttachKeySpecifier)[]; export type CheckoutCustomerAttachFieldPolicy = { checkout?: FieldPolicy | FieldReadFunction, @@ -788,6 +804,10 @@ export type CheckoutShippingMethodUpdateFieldPolicy = { checkoutErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type CheckoutUpdatedKeySpecifier = ('checkout' | CheckoutUpdatedKeySpecifier)[]; +export type CheckoutUpdatedFieldPolicy = { + checkout?: FieldPolicy | FieldReadFunction +}; export type ChoiceValueKeySpecifier = ('raw' | 'verbose' | ChoiceValueKeySpecifier)[]; export type ChoiceValueFieldPolicy = { raw?: FieldPolicy | FieldReadFunction, @@ -861,12 +881,20 @@ export type CollectionCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, collection?: FieldPolicy | FieldReadFunction }; +export type CollectionCreatedKeySpecifier = ('collection' | CollectionCreatedKeySpecifier)[]; +export type CollectionCreatedFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction +}; export type CollectionDeleteKeySpecifier = ('collectionErrors' | 'errors' | 'collection' | CollectionDeleteKeySpecifier)[]; export type CollectionDeleteFieldPolicy = { collectionErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, collection?: FieldPolicy | FieldReadFunction }; +export type CollectionDeletedKeySpecifier = ('collection' | CollectionDeletedKeySpecifier)[]; +export type CollectionDeletedFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction +}; export type CollectionErrorKeySpecifier = ('field' | 'message' | 'products' | 'code' | CollectionErrorKeySpecifier)[]; export type CollectionErrorFieldPolicy = { field?: FieldPolicy | FieldReadFunction, @@ -919,6 +947,10 @@ export type CollectionUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, collection?: FieldPolicy | FieldReadFunction }; +export type CollectionUpdatedKeySpecifier = ('collection' | CollectionUpdatedKeySpecifier)[]; +export type CollectionUpdatedFieldPolicy = { + collection?: FieldPolicy | FieldReadFunction +}; export type ConfigurationItemKeySpecifier = ('name' | 'value' | 'type' | 'helpText' | 'label' | ConfigurationItemKeySpecifier)[]; export type ConfigurationItemFieldPolicy = { name?: FieldPolicy | FieldReadFunction, @@ -974,6 +1006,10 @@ export type CustomerCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; +export type CustomerCreatedKeySpecifier = ('user' | CustomerCreatedKeySpecifier)[]; +export type CustomerCreatedFieldPolicy = { + user?: FieldPolicy | FieldReadFunction +}; export type CustomerDeleteKeySpecifier = ('accountErrors' | 'errors' | 'user' | CustomerDeleteKeySpecifier)[]; export type CustomerDeleteFieldPolicy = { accountErrors?: FieldPolicy | FieldReadFunction, @@ -998,6 +1034,10 @@ export type CustomerUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; +export type CustomerUpdatedKeySpecifier = ('user' | CustomerUpdatedKeySpecifier)[]; +export type CustomerUpdatedFieldPolicy = { + user?: FieldPolicy | FieldReadFunction +}; export type DeactivateAllUserTokensKeySpecifier = ('accountErrors' | 'errors' | DeactivateAllUserTokensKeySpecifier)[]; export type DeactivateAllUserTokensFieldPolicy = { accountErrors?: FieldPolicy | FieldReadFunction, @@ -1106,12 +1146,20 @@ export type DraftOrderCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction }; +export type DraftOrderCreatedKeySpecifier = ('order' | DraftOrderCreatedKeySpecifier)[]; +export type DraftOrderCreatedFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; export type DraftOrderDeleteKeySpecifier = ('orderErrors' | 'errors' | 'order' | DraftOrderDeleteKeySpecifier)[]; export type DraftOrderDeleteFieldPolicy = { orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction }; +export type DraftOrderDeletedKeySpecifier = ('order' | DraftOrderDeletedKeySpecifier)[]; +export type DraftOrderDeletedFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; export type DraftOrderLinesBulkDeleteKeySpecifier = ('count' | 'orderErrors' | 'errors' | DraftOrderLinesBulkDeleteKeySpecifier)[]; export type DraftOrderLinesBulkDeleteFieldPolicy = { count?: FieldPolicy | FieldReadFunction, @@ -1124,6 +1172,10 @@ export type DraftOrderUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, order?: FieldPolicy | FieldReadFunction }; +export type DraftOrderUpdatedKeySpecifier = ('order' | DraftOrderUpdatedKeySpecifier)[]; +export type DraftOrderUpdatedFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; export type EventDeliveryKeySpecifier = ('id' | 'createdAt' | 'status' | 'eventType' | 'attempts' | 'payload' | EventDeliveryKeySpecifier)[]; export type EventDeliveryFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -1133,7 +1185,7 @@ export type EventDeliveryFieldPolicy = { attempts?: FieldPolicy | FieldReadFunction, payload?: FieldPolicy | FieldReadFunction }; -export type EventDeliveryAttemptKeySpecifier = ('id' | 'createdAt' | 'taskId' | 'duration' | 'response' | 'responseHeaders' | 'requestHeaders' | 'status' | EventDeliveryAttemptKeySpecifier)[]; +export type EventDeliveryAttemptKeySpecifier = ('id' | 'createdAt' | 'taskId' | 'duration' | 'response' | 'responseHeaders' | 'responseStatusCode' | 'requestHeaders' | 'status' | EventDeliveryAttemptKeySpecifier)[]; export type EventDeliveryAttemptFieldPolicy = { id?: FieldPolicy | FieldReadFunction, createdAt?: FieldPolicy | FieldReadFunction, @@ -1141,6 +1193,7 @@ export type EventDeliveryAttemptFieldPolicy = { duration?: FieldPolicy | FieldReadFunction, response?: FieldPolicy | FieldReadFunction, responseHeaders?: FieldPolicy | FieldReadFunction, + responseStatusCode?: FieldPolicy | FieldReadFunction, requestHeaders?: FieldPolicy | FieldReadFunction, status?: FieldPolicy | FieldReadFunction }; @@ -1311,6 +1364,14 @@ export type FulfillmentCancelFieldPolicy = { orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type FulfillmentCanceledKeySpecifier = ('fulfillment' | FulfillmentCanceledKeySpecifier)[]; +export type FulfillmentCanceledFieldPolicy = { + fulfillment?: FieldPolicy | FieldReadFunction +}; +export type FulfillmentCreatedKeySpecifier = ('fulfillment' | FulfillmentCreatedKeySpecifier)[]; +export type FulfillmentCreatedFieldPolicy = { + fulfillment?: FieldPolicy | FieldReadFunction +}; export type FulfillmentLineKeySpecifier = ('id' | 'quantity' | 'orderLine' | FulfillmentLineKeySpecifier)[]; export type FulfillmentLineFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -1557,6 +1618,10 @@ export type InvoiceDeleteFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, invoice?: FieldPolicy | FieldReadFunction }; +export type InvoiceDeletedKeySpecifier = ('invoice' | InvoiceDeletedKeySpecifier)[]; +export type InvoiceDeletedFieldPolicy = { + invoice?: FieldPolicy | FieldReadFunction +}; export type InvoiceErrorKeySpecifier = ('field' | 'message' | 'code' | InvoiceErrorKeySpecifier)[]; export type InvoiceErrorFieldPolicy = { field?: FieldPolicy | FieldReadFunction, @@ -1576,12 +1641,20 @@ export type InvoiceRequestDeleteFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, invoice?: FieldPolicy | FieldReadFunction }; +export type InvoiceRequestedKeySpecifier = ('invoice' | InvoiceRequestedKeySpecifier)[]; +export type InvoiceRequestedFieldPolicy = { + invoice?: FieldPolicy | FieldReadFunction +}; export type InvoiceSendNotificationKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceSendNotificationKeySpecifier)[]; export type InvoiceSendNotificationFieldPolicy = { invoiceErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, invoice?: FieldPolicy | FieldReadFunction }; +export type InvoiceSentKeySpecifier = ('invoice' | InvoiceSentKeySpecifier)[]; +export type InvoiceSentFieldPolicy = { + invoice?: FieldPolicy | FieldReadFunction +}; export type InvoiceUpdateKeySpecifier = ('invoiceErrors' | 'errors' | 'invoice' | InvoiceUpdateKeySpecifier)[]; export type InvoiceUpdateFieldPolicy = { invoiceErrors?: FieldPolicy | FieldReadFunction, @@ -1781,7 +1854,7 @@ export type MoneyRangeFieldPolicy = { start?: FieldPolicy | FieldReadFunction, stop?: FieldPolicy | FieldReadFunction }; -export type MutationKeySpecifier = ('webhookCreate' | 'webhookDelete' | 'webhookUpdate' | 'eventDeliveryRetry' | 'createWarehouse' | 'updateWarehouse' | 'deleteWarehouse' | 'assignWarehouseShippingZone' | 'unassignWarehouseShippingZone' | 'staffNotificationRecipientCreate' | 'staffNotificationRecipientUpdate' | 'staffNotificationRecipientDelete' | 'shopDomainUpdate' | 'shopSettingsUpdate' | 'shopFetchTaxRates' | 'shopSettingsTranslate' | 'shopAddressUpdate' | 'orderSettingsUpdate' | 'giftCardSettingsUpdate' | 'shippingMethodChannelListingUpdate' | 'shippingPriceCreate' | 'shippingPriceDelete' | 'shippingPriceBulkDelete' | 'shippingPriceUpdate' | 'shippingPriceTranslate' | 'shippingPriceExcludeProducts' | 'shippingPriceRemoveProductFromExclude' | 'shippingZoneCreate' | 'shippingZoneDelete' | 'shippingZoneBulkDelete' | 'shippingZoneUpdate' | 'productAttributeAssign' | 'productAttributeAssignmentUpdate' | 'productAttributeUnassign' | 'categoryCreate' | 'categoryDelete' | 'categoryBulkDelete' | 'categoryUpdate' | 'categoryTranslate' | 'collectionAddProducts' | 'collectionCreate' | 'collectionDelete' | 'collectionReorderProducts' | 'collectionBulkDelete' | 'collectionRemoveProducts' | 'collectionUpdate' | 'collectionTranslate' | 'collectionChannelListingUpdate' | 'productCreate' | 'productDelete' | 'productBulkDelete' | 'productUpdate' | 'productTranslate' | 'productChannelListingUpdate' | 'productMediaCreate' | 'productVariantReorder' | 'productMediaDelete' | 'productMediaBulkDelete' | 'productMediaReorder' | 'productMediaUpdate' | 'productTypeCreate' | 'productTypeDelete' | 'productTypeBulkDelete' | 'productTypeUpdate' | 'productTypeReorderAttributes' | 'productReorderAttributeValues' | 'digitalContentCreate' | 'digitalContentDelete' | 'digitalContentUpdate' | 'digitalContentUrlCreate' | 'productVariantCreate' | 'productVariantDelete' | 'productVariantBulkCreate' | 'productVariantBulkDelete' | 'productVariantStocksCreate' | 'productVariantStocksDelete' | 'productVariantStocksUpdate' | 'productVariantUpdate' | 'productVariantSetDefault' | 'productVariantTranslate' | 'productVariantChannelListingUpdate' | 'productVariantReorderAttributeValues' | 'productVariantPreorderDeactivate' | 'variantMediaAssign' | 'variantMediaUnassign' | 'paymentCapture' | 'paymentRefund' | 'paymentVoid' | 'paymentInitialize' | 'paymentCheckBalance' | 'pageCreate' | 'pageDelete' | 'pageBulkDelete' | 'pageBulkPublish' | 'pageUpdate' | 'pageTranslate' | 'pageTypeCreate' | 'pageTypeUpdate' | 'pageTypeDelete' | 'pageTypeBulkDelete' | 'pageAttributeAssign' | 'pageAttributeUnassign' | 'pageTypeReorderAttributes' | 'pageReorderAttributeValues' | 'draftOrderComplete' | 'draftOrderCreate' | 'draftOrderDelete' | 'draftOrderBulkDelete' | 'draftOrderLinesBulkDelete' | 'draftOrderUpdate' | 'orderAddNote' | 'orderCancel' | 'orderCapture' | 'orderConfirm' | 'orderFulfill' | 'orderFulfillmentCancel' | 'orderFulfillmentApprove' | 'orderFulfillmentUpdateTracking' | 'orderFulfillmentRefundProducts' | 'orderFulfillmentReturnProducts' | 'orderLinesCreate' | 'orderLineDelete' | 'orderLineUpdate' | 'orderDiscountAdd' | 'orderDiscountUpdate' | 'orderDiscountDelete' | 'orderLineDiscountUpdate' | 'orderLineDiscountRemove' | 'orderMarkAsPaid' | 'orderRefund' | 'orderUpdate' | 'orderUpdateShipping' | 'orderVoid' | 'orderBulkCancel' | 'deleteMetadata' | 'deletePrivateMetadata' | 'updateMetadata' | 'updatePrivateMetadata' | 'assignNavigation' | 'menuCreate' | 'menuDelete' | 'menuBulkDelete' | 'menuUpdate' | 'menuItemCreate' | 'menuItemDelete' | 'menuItemBulkDelete' | 'menuItemUpdate' | 'menuItemTranslate' | 'menuItemMove' | 'invoiceRequest' | 'invoiceRequestDelete' | 'invoiceCreate' | 'invoiceDelete' | 'invoiceUpdate' | 'invoiceSendNotification' | 'giftCardActivate' | 'giftCardCreate' | 'giftCardDelete' | 'giftCardDeactivate' | 'giftCardUpdate' | 'giftCardResend' | 'giftCardAddNote' | 'giftCardBulkCreate' | 'giftCardBulkDelete' | 'giftCardBulkActivate' | 'giftCardBulkDeactivate' | 'pluginUpdate' | 'externalNotificationTrigger' | 'saleCreate' | 'saleDelete' | 'saleBulkDelete' | 'saleUpdate' | 'saleCataloguesAdd' | 'saleCataloguesRemove' | 'saleTranslate' | 'saleChannelListingUpdate' | 'voucherCreate' | 'voucherDelete' | 'voucherBulkDelete' | 'voucherUpdate' | 'voucherCataloguesAdd' | 'voucherCataloguesRemove' | 'voucherTranslate' | 'voucherChannelListingUpdate' | 'exportProducts' | 'exportGiftCards' | 'fileUpload' | 'checkoutAddPromoCode' | 'checkoutBillingAddressUpdate' | 'checkoutComplete' | 'checkoutCreate' | 'checkoutCustomerAttach' | 'checkoutCustomerDetach' | 'checkoutEmailUpdate' | 'checkoutLineDelete' | 'checkoutLinesDelete' | 'checkoutLinesAdd' | 'checkoutLinesUpdate' | 'checkoutRemovePromoCode' | 'checkoutPaymentCreate' | 'checkoutShippingAddressUpdate' | 'checkoutShippingMethodUpdate' | 'checkoutDeliveryMethodUpdate' | 'checkoutLanguageCodeUpdate' | 'channelCreate' | 'channelUpdate' | 'channelDelete' | 'channelActivate' | 'channelDeactivate' | 'attributeCreate' | 'attributeDelete' | 'attributeUpdate' | 'attributeTranslate' | 'attributeBulkDelete' | 'attributeValueBulkDelete' | 'attributeValueCreate' | 'attributeValueDelete' | 'attributeValueUpdate' | 'attributeValueTranslate' | 'attributeReorderValues' | 'appCreate' | 'appUpdate' | 'appDelete' | 'appTokenCreate' | 'appTokenDelete' | 'appTokenVerify' | 'appInstall' | 'appRetryInstall' | 'appDeleteFailedInstallation' | 'appFetchManifest' | 'appActivate' | 'appDeactivate' | 'tokenCreate' | 'tokenRefresh' | 'tokenVerify' | 'tokensDeactivateAll' | 'externalAuthenticationUrl' | 'externalObtainAccessTokens' | 'externalRefresh' | 'externalLogout' | 'externalVerify' | 'requestPasswordReset' | 'confirmAccount' | 'setPassword' | 'passwordChange' | 'requestEmailChange' | 'confirmEmailChange' | 'accountAddressCreate' | 'accountAddressUpdate' | 'accountAddressDelete' | 'accountSetDefaultAddress' | 'accountRegister' | 'accountUpdate' | 'accountRequestDeletion' | 'accountDelete' | 'addressCreate' | 'addressUpdate' | 'addressDelete' | 'addressSetDefault' | 'customerCreate' | 'customerUpdate' | 'customerDelete' | 'customerBulkDelete' | 'staffCreate' | 'staffUpdate' | 'staffDelete' | 'staffBulkDelete' | 'userAvatarUpdate' | 'userAvatarDelete' | 'userBulkSetActive' | 'permissionGroupCreate' | 'permissionGroupUpdate' | 'permissionGroupDelete' | MutationKeySpecifier)[]; +export type MutationKeySpecifier = ('webhookCreate' | 'webhookDelete' | 'webhookUpdate' | 'eventDeliveryRetry' | 'createWarehouse' | 'updateWarehouse' | 'deleteWarehouse' | 'assignWarehouseShippingZone' | 'unassignWarehouseShippingZone' | 'staffNotificationRecipientCreate' | 'staffNotificationRecipientUpdate' | 'staffNotificationRecipientDelete' | 'shopDomainUpdate' | 'shopSettingsUpdate' | 'shopFetchTaxRates' | 'shopSettingsTranslate' | 'shopAddressUpdate' | 'orderSettingsUpdate' | 'giftCardSettingsUpdate' | 'shippingMethodChannelListingUpdate' | 'shippingPriceCreate' | 'shippingPriceDelete' | 'shippingPriceBulkDelete' | 'shippingPriceUpdate' | 'shippingPriceTranslate' | 'shippingPriceExcludeProducts' | 'shippingPriceRemoveProductFromExclude' | 'shippingZoneCreate' | 'shippingZoneDelete' | 'shippingZoneBulkDelete' | 'shippingZoneUpdate' | 'productAttributeAssign' | 'productAttributeAssignmentUpdate' | 'productAttributeUnassign' | 'categoryCreate' | 'categoryDelete' | 'categoryBulkDelete' | 'categoryUpdate' | 'categoryTranslate' | 'collectionAddProducts' | 'collectionCreate' | 'collectionDelete' | 'collectionReorderProducts' | 'collectionBulkDelete' | 'collectionRemoveProducts' | 'collectionUpdate' | 'collectionTranslate' | 'collectionChannelListingUpdate' | 'productCreate' | 'productDelete' | 'productBulkDelete' | 'productUpdate' | 'productTranslate' | 'productChannelListingUpdate' | 'productMediaCreate' | 'productVariantReorder' | 'productMediaDelete' | 'productMediaBulkDelete' | 'productMediaReorder' | 'productMediaUpdate' | 'productTypeCreate' | 'productTypeDelete' | 'productTypeBulkDelete' | 'productTypeUpdate' | 'productTypeReorderAttributes' | 'productReorderAttributeValues' | 'digitalContentCreate' | 'digitalContentDelete' | 'digitalContentUpdate' | 'digitalContentUrlCreate' | 'productVariantCreate' | 'productVariantDelete' | 'productVariantBulkCreate' | 'productVariantBulkDelete' | 'productVariantStocksCreate' | 'productVariantStocksDelete' | 'productVariantStocksUpdate' | 'productVariantUpdate' | 'productVariantSetDefault' | 'productVariantTranslate' | 'productVariantChannelListingUpdate' | 'productVariantReorderAttributeValues' | 'productVariantPreorderDeactivate' | 'variantMediaAssign' | 'variantMediaUnassign' | 'paymentCapture' | 'paymentRefund' | 'paymentVoid' | 'paymentInitialize' | 'paymentCheckBalance' | 'pageCreate' | 'pageDelete' | 'pageBulkDelete' | 'pageBulkPublish' | 'pageUpdate' | 'pageTranslate' | 'pageTypeCreate' | 'pageTypeUpdate' | 'pageTypeDelete' | 'pageTypeBulkDelete' | 'pageAttributeAssign' | 'pageAttributeUnassign' | 'pageTypeReorderAttributes' | 'pageReorderAttributeValues' | 'draftOrderComplete' | 'draftOrderCreate' | 'draftOrderDelete' | 'draftOrderBulkDelete' | 'draftOrderLinesBulkDelete' | 'draftOrderUpdate' | 'orderAddNote' | 'orderCancel' | 'orderCapture' | 'orderConfirm' | 'orderFulfill' | 'orderFulfillmentCancel' | 'orderFulfillmentApprove' | 'orderFulfillmentUpdateTracking' | 'orderFulfillmentRefundProducts' | 'orderFulfillmentReturnProducts' | 'orderLinesCreate' | 'orderLineDelete' | 'orderLineUpdate' | 'orderDiscountAdd' | 'orderDiscountUpdate' | 'orderDiscountDelete' | 'orderLineDiscountUpdate' | 'orderLineDiscountRemove' | 'orderMarkAsPaid' | 'orderRefund' | 'orderUpdate' | 'orderUpdateShipping' | 'orderVoid' | 'orderBulkCancel' | 'deleteMetadata' | 'deletePrivateMetadata' | 'updateMetadata' | 'updatePrivateMetadata' | 'assignNavigation' | 'menuCreate' | 'menuDelete' | 'menuBulkDelete' | 'menuUpdate' | 'menuItemCreate' | 'menuItemDelete' | 'menuItemBulkDelete' | 'menuItemUpdate' | 'menuItemTranslate' | 'menuItemMove' | 'invoiceRequest' | 'invoiceRequestDelete' | 'invoiceCreate' | 'invoiceDelete' | 'invoiceUpdate' | 'invoiceSendNotification' | 'giftCardActivate' | 'giftCardCreate' | 'giftCardDelete' | 'giftCardDeactivate' | 'giftCardUpdate' | 'giftCardResend' | 'giftCardAddNote' | 'giftCardBulkCreate' | 'giftCardBulkDelete' | 'giftCardBulkActivate' | 'giftCardBulkDeactivate' | 'pluginUpdate' | 'externalNotificationTrigger' | 'saleCreate' | 'saleDelete' | 'saleBulkDelete' | 'saleUpdate' | 'saleCataloguesAdd' | 'saleCataloguesRemove' | 'saleTranslate' | 'saleChannelListingUpdate' | 'voucherCreate' | 'voucherDelete' | 'voucherBulkDelete' | 'voucherUpdate' | 'voucherCataloguesAdd' | 'voucherCataloguesRemove' | 'voucherTranslate' | 'voucherChannelListingUpdate' | 'exportProducts' | 'exportGiftCards' | 'fileUpload' | 'checkoutAddPromoCode' | 'checkoutBillingAddressUpdate' | 'checkoutComplete' | 'checkoutCreate' | 'checkoutCustomerAttach' | 'checkoutCustomerDetach' | 'checkoutEmailUpdate' | 'checkoutLineDelete' | 'checkoutLinesDelete' | 'checkoutLinesAdd' | 'checkoutLinesUpdate' | 'checkoutRemovePromoCode' | 'checkoutPaymentCreate' | 'checkoutShippingAddressUpdate' | 'checkoutShippingMethodUpdate' | 'checkoutDeliveryMethodUpdate' | 'checkoutLanguageCodeUpdate' | 'orderCreateFromCheckout' | 'channelCreate' | 'channelUpdate' | 'channelDelete' | 'channelActivate' | 'channelDeactivate' | 'attributeCreate' | 'attributeDelete' | 'attributeUpdate' | 'attributeTranslate' | 'attributeBulkDelete' | 'attributeValueBulkDelete' | 'attributeValueCreate' | 'attributeValueDelete' | 'attributeValueUpdate' | 'attributeValueTranslate' | 'attributeReorderValues' | 'appCreate' | 'appUpdate' | 'appDelete' | 'appTokenCreate' | 'appTokenDelete' | 'appTokenVerify' | 'appInstall' | 'appRetryInstall' | 'appDeleteFailedInstallation' | 'appFetchManifest' | 'appActivate' | 'appDeactivate' | 'tokenCreate' | 'tokenRefresh' | 'tokenVerify' | 'tokensDeactivateAll' | 'externalAuthenticationUrl' | 'externalObtainAccessTokens' | 'externalRefresh' | 'externalLogout' | 'externalVerify' | 'requestPasswordReset' | 'confirmAccount' | 'setPassword' | 'passwordChange' | 'requestEmailChange' | 'confirmEmailChange' | 'accountAddressCreate' | 'accountAddressUpdate' | 'accountAddressDelete' | 'accountSetDefaultAddress' | 'accountRegister' | 'accountUpdate' | 'accountRequestDeletion' | 'accountDelete' | 'addressCreate' | 'addressUpdate' | 'addressDelete' | 'addressSetDefault' | 'customerCreate' | 'customerUpdate' | 'customerDelete' | 'customerBulkDelete' | 'staffCreate' | 'staffUpdate' | 'staffDelete' | 'staffBulkDelete' | 'userAvatarUpdate' | 'userAvatarDelete' | 'userBulkSetActive' | 'permissionGroupCreate' | 'permissionGroupUpdate' | 'permissionGroupDelete' | MutationKeySpecifier)[]; export type MutationFieldPolicy = { webhookCreate?: FieldPolicy | FieldReadFunction, webhookDelete?: FieldPolicy | FieldReadFunction, @@ -1987,6 +2060,7 @@ export type MutationFieldPolicy = { checkoutShippingMethodUpdate?: FieldPolicy | FieldReadFunction, checkoutDeliveryMethodUpdate?: FieldPolicy | FieldReadFunction, checkoutLanguageCodeUpdate?: FieldPolicy | FieldReadFunction, + orderCreateFromCheckout?: FieldPolicy | FieldReadFunction, channelCreate?: FieldPolicy | FieldReadFunction, channelUpdate?: FieldPolicy | FieldReadFunction, channelDelete?: FieldPolicy | FieldReadFunction, @@ -2144,6 +2218,10 @@ export type OrderCancelFieldPolicy = { orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type OrderCancelledKeySpecifier = ('order' | OrderCancelledKeySpecifier)[]; +export type OrderCancelledFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; export type OrderCaptureKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderCaptureKeySpecifier)[]; export type OrderCaptureFieldPolicy = { order?: FieldPolicy | FieldReadFunction, @@ -2156,6 +2234,10 @@ export type OrderConfirmFieldPolicy = { orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type OrderConfirmedKeySpecifier = ('order' | OrderConfirmedKeySpecifier)[]; +export type OrderConfirmedFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; export type OrderCountableConnectionKeySpecifier = ('pageInfo' | 'edges' | 'totalCount' | OrderCountableConnectionKeySpecifier)[]; export type OrderCountableConnectionFieldPolicy = { pageInfo?: FieldPolicy | FieldReadFunction, @@ -2167,6 +2249,23 @@ export type OrderCountableEdgeFieldPolicy = { node?: FieldPolicy | FieldReadFunction, cursor?: FieldPolicy | FieldReadFunction }; +export type OrderCreateFromCheckoutKeySpecifier = ('order' | 'errors' | OrderCreateFromCheckoutKeySpecifier)[]; +export type OrderCreateFromCheckoutFieldPolicy = { + order?: FieldPolicy | FieldReadFunction, + errors?: FieldPolicy | FieldReadFunction +}; +export type OrderCreateFromCheckoutErrorKeySpecifier = ('field' | 'message' | 'code' | 'variants' | 'lines' | OrderCreateFromCheckoutErrorKeySpecifier)[]; +export type OrderCreateFromCheckoutErrorFieldPolicy = { + field?: FieldPolicy | FieldReadFunction, + message?: FieldPolicy | FieldReadFunction, + code?: FieldPolicy | FieldReadFunction, + variants?: FieldPolicy | FieldReadFunction, + lines?: FieldPolicy | FieldReadFunction +}; +export type OrderCreatedKeySpecifier = ('order' | OrderCreatedKeySpecifier)[]; +export type OrderCreatedFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; export type OrderDiscountKeySpecifier = ('id' | 'type' | 'name' | 'translatedName' | 'valueType' | 'value' | 'reason' | 'amount' | OrderDiscountKeySpecifier)[]; export type OrderDiscountFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -2267,6 +2366,14 @@ export type OrderFulfillFieldPolicy = { orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type OrderFulfilledKeySpecifier = ('order' | OrderFulfilledKeySpecifier)[]; +export type OrderFulfilledFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; +export type OrderFullyPaidKeySpecifier = ('order' | OrderFullyPaidKeySpecifier)[]; +export type OrderFullyPaidFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; export type OrderLineKeySpecifier = ('id' | 'productName' | 'variantName' | 'productSku' | 'productVariantId' | 'isShippingRequired' | 'quantity' | 'quantityFulfilled' | 'unitDiscountReason' | 'taxRate' | 'digitalContentUrl' | 'thumbnail' | 'unitPrice' | 'undiscountedUnitPrice' | 'unitDiscount' | 'unitDiscountValue' | 'totalPrice' | 'variant' | 'translatedProductName' | 'translatedVariantName' | 'allocations' | 'quantityToFulfill' | 'unitDiscountType' | OrderLineKeySpecifier)[]; export type OrderLineFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -2369,6 +2476,10 @@ export type OrderUpdateShippingFieldPolicy = { orderErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type OrderUpdatedKeySpecifier = ('order' | OrderUpdatedKeySpecifier)[]; +export type OrderUpdatedFieldPolicy = { + order?: FieldPolicy | FieldReadFunction +}; export type OrderVoidKeySpecifier = ('order' | 'orderErrors' | 'errors' | OrderVoidKeySpecifier)[]; export type OrderVoidFieldPolicy = { order?: FieldPolicy | FieldReadFunction, @@ -2434,12 +2545,20 @@ export type PageCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, page?: FieldPolicy | FieldReadFunction }; +export type PageCreatedKeySpecifier = ('page' | PageCreatedKeySpecifier)[]; +export type PageCreatedFieldPolicy = { + page?: FieldPolicy | FieldReadFunction +}; export type PageDeleteKeySpecifier = ('pageErrors' | 'errors' | 'page' | PageDeleteKeySpecifier)[]; export type PageDeleteFieldPolicy = { pageErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, page?: FieldPolicy | FieldReadFunction }; +export type PageDeletedKeySpecifier = ('page' | PageDeletedKeySpecifier)[]; +export type PageDeletedFieldPolicy = { + page?: FieldPolicy | FieldReadFunction +}; export type PageErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | PageErrorKeySpecifier)[]; export type PageErrorFieldPolicy = { field?: FieldPolicy | FieldReadFunction, @@ -2547,6 +2666,10 @@ export type PageUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, page?: FieldPolicy | FieldReadFunction }; +export type PageUpdatedKeySpecifier = ('page' | PageUpdatedKeySpecifier)[]; +export type PageUpdatedFieldPolicy = { + page?: FieldPolicy | FieldReadFunction +}; export type PasswordChangeKeySpecifier = ('user' | 'accountErrors' | 'errors' | PasswordChangeKeySpecifier)[]; export type PasswordChangeFieldPolicy = { user?: FieldPolicy | FieldReadFunction, @@ -2830,12 +2953,22 @@ export type ProductCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction }; +export type ProductCreatedKeySpecifier = ('product' | 'category' | ProductCreatedKeySpecifier)[]; +export type ProductCreatedFieldPolicy = { + product?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction +}; export type ProductDeleteKeySpecifier = ('productErrors' | 'errors' | 'product' | ProductDeleteKeySpecifier)[]; export type ProductDeleteFieldPolicy = { productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction }; +export type ProductDeletedKeySpecifier = ('product' | 'category' | ProductDeletedKeySpecifier)[]; +export type ProductDeletedFieldPolicy = { + product?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction +}; export type ProductErrorKeySpecifier = ('field' | 'message' | 'code' | 'attributes' | 'values' | ProductErrorKeySpecifier)[]; export type ProductErrorFieldPolicy = { field?: FieldPolicy | FieldReadFunction, @@ -3003,6 +3136,11 @@ export type ProductUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, product?: FieldPolicy | FieldReadFunction }; +export type ProductUpdatedKeySpecifier = ('product' | 'category' | ProductUpdatedKeySpecifier)[]; +export type ProductUpdatedFieldPolicy = { + product?: FieldPolicy | FieldReadFunction, + category?: FieldPolicy | FieldReadFunction +}; export type ProductVariantKeySpecifier = ('id' | 'privateMetadata' | 'metadata' | 'name' | 'sku' | 'product' | 'trackInventory' | 'quantityLimitPerCustomer' | 'weight' | 'channel' | 'channelListings' | 'pricing' | 'attributes' | 'margin' | 'quantityOrdered' | 'revenue' | 'images' | 'media' | 'translation' | 'digitalContent' | 'stocks' | 'quantityAvailable' | 'preorder' | 'created' | 'updatedAt' | ProductVariantKeySpecifier)[]; export type ProductVariantFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -3031,6 +3169,11 @@ export type ProductVariantFieldPolicy = { created?: FieldPolicy | FieldReadFunction, updatedAt?: FieldPolicy | FieldReadFunction }; +export type ProductVariantBackInStockKeySpecifier = ('productVariant' | 'warehouse' | ProductVariantBackInStockKeySpecifier)[]; +export type ProductVariantBackInStockFieldPolicy = { + productVariant?: FieldPolicy | FieldReadFunction, + warehouse?: FieldPolicy | FieldReadFunction +}; export type ProductVariantBulkCreateKeySpecifier = ('count' | 'productVariants' | 'bulkProductErrors' | 'errors' | ProductVariantBulkCreateKeySpecifier)[]; export type ProductVariantBulkCreateFieldPolicy = { count?: FieldPolicy | FieldReadFunction, @@ -3076,12 +3219,25 @@ export type ProductVariantCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction }; +export type ProductVariantCreatedKeySpecifier = ('productVariant' | ProductVariantCreatedKeySpecifier)[]; +export type ProductVariantCreatedFieldPolicy = { + productVariant?: FieldPolicy | FieldReadFunction +}; export type ProductVariantDeleteKeySpecifier = ('productErrors' | 'errors' | 'productVariant' | ProductVariantDeleteKeySpecifier)[]; export type ProductVariantDeleteFieldPolicy = { productErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction }; +export type ProductVariantDeletedKeySpecifier = ('productVariant' | ProductVariantDeletedKeySpecifier)[]; +export type ProductVariantDeletedFieldPolicy = { + productVariant?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantOutOfStockKeySpecifier = ('productVariant' | 'warehouse' | ProductVariantOutOfStockKeySpecifier)[]; +export type ProductVariantOutOfStockFieldPolicy = { + productVariant?: FieldPolicy | FieldReadFunction, + warehouse?: FieldPolicy | FieldReadFunction +}; export type ProductVariantPreorderDeactivateKeySpecifier = ('productVariant' | 'errors' | ProductVariantPreorderDeactivateKeySpecifier)[]; export type ProductVariantPreorderDeactivateFieldPolicy = { productVariant?: FieldPolicy | FieldReadFunction, @@ -3149,6 +3305,10 @@ export type ProductVariantUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, productVariant?: FieldPolicy | FieldReadFunction }; +export type ProductVariantUpdatedKeySpecifier = ('productVariant' | ProductVariantUpdatedKeySpecifier)[]; +export type ProductVariantUpdatedFieldPolicy = { + productVariant?: FieldPolicy | FieldReadFunction +}; export type QueryKeySpecifier = ('webhook' | 'webhookEvents' | 'webhookSamplePayload' | 'warehouse' | 'warehouses' | 'translations' | 'translation' | 'stock' | 'stocks' | 'shop' | 'orderSettings' | 'giftCardSettings' | 'shippingZone' | 'shippingZones' | 'digitalContent' | 'digitalContents' | 'categories' | 'category' | 'collection' | 'collections' | 'product' | 'products' | 'productType' | 'productTypes' | 'productVariant' | 'productVariants' | 'reportProductSales' | 'payment' | 'payments' | 'page' | 'pages' | 'pageType' | 'pageTypes' | 'homepageEvents' | 'order' | 'orders' | 'draftOrders' | 'ordersTotal' | 'orderByToken' | 'menu' | 'menus' | 'menuItem' | 'menuItems' | 'giftCard' | 'giftCards' | 'giftCardCurrencies' | 'giftCardTags' | 'plugin' | 'plugins' | 'sale' | 'sales' | 'voucher' | 'vouchers' | 'exportFile' | 'exportFiles' | 'taxTypes' | 'checkout' | 'checkouts' | 'checkoutLines' | 'channel' | 'channels' | 'attributes' | 'attribute' | 'appsInstallations' | 'apps' | 'app' | 'appExtensions' | 'appExtension' | 'addressValidationRules' | 'address' | 'customers' | 'permissionGroups' | 'permissionGroup' | 'me' | 'staffUsers' | 'user' | '_entities' | '_service' | QueryKeySpecifier)[]; export type QueryFieldPolicy = { webhook?: FieldPolicy | FieldReadFunction, @@ -3315,12 +3475,20 @@ export type SaleCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, sale?: FieldPolicy | FieldReadFunction }; +export type SaleCreatedKeySpecifier = ('sale' | SaleCreatedKeySpecifier)[]; +export type SaleCreatedFieldPolicy = { + sale?: FieldPolicy | FieldReadFunction +}; export type SaleDeleteKeySpecifier = ('discountErrors' | 'errors' | 'sale' | SaleDeleteKeySpecifier)[]; export type SaleDeleteFieldPolicy = { discountErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, sale?: FieldPolicy | FieldReadFunction }; +export type SaleDeletedKeySpecifier = ('sale' | SaleDeletedKeySpecifier)[]; +export type SaleDeletedFieldPolicy = { + sale?: FieldPolicy | FieldReadFunction +}; export type SaleRemoveCataloguesKeySpecifier = ('sale' | 'discountErrors' | 'errors' | SaleRemoveCataloguesKeySpecifier)[]; export type SaleRemoveCataloguesFieldPolicy = { sale?: FieldPolicy | FieldReadFunction, @@ -3352,6 +3520,10 @@ export type SaleUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, sale?: FieldPolicy | FieldReadFunction }; +export type SaleUpdatedKeySpecifier = ('sale' | SaleUpdatedKeySpecifier)[]; +export type SaleUpdatedFieldPolicy = { + sale?: FieldPolicy | FieldReadFunction +}; export type SelectedAttributeKeySpecifier = ('attribute' | 'values' | SelectedAttributeKeySpecifier)[]; export type SelectedAttributeFieldPolicy = { attribute?: FieldPolicy | FieldReadFunction, @@ -3707,6 +3879,10 @@ export type StockErrorFieldPolicy = { message?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction }; +export type SubscriptionKeySpecifier = ('event' | SubscriptionKeySpecifier)[]; +export type SubscriptionFieldPolicy = { + event?: FieldPolicy | FieldReadFunction +}; export type TaxTypeKeySpecifier = ('description' | 'taxCode' | TaxTypeKeySpecifier)[]; export type TaxTypeFieldPolicy = { description?: FieldPolicy | FieldReadFunction, @@ -3752,12 +3928,20 @@ export type TranslatableItemEdgeFieldPolicy = { node?: FieldPolicy | FieldReadFunction, cursor?: FieldPolicy | FieldReadFunction }; +export type TranslationCreatedKeySpecifier = ('translation' | TranslationCreatedKeySpecifier)[]; +export type TranslationCreatedFieldPolicy = { + translation?: FieldPolicy | FieldReadFunction +}; export type TranslationErrorKeySpecifier = ('field' | 'message' | 'code' | TranslationErrorKeySpecifier)[]; export type TranslationErrorFieldPolicy = { field?: FieldPolicy | FieldReadFunction, message?: FieldPolicy | FieldReadFunction, code?: FieldPolicy | FieldReadFunction }; +export type TranslationUpdatedKeySpecifier = ('translation' | TranslationUpdatedKeySpecifier)[]; +export type TranslationUpdatedFieldPolicy = { + translation?: FieldPolicy | FieldReadFunction +}; export type UpdateMetadataKeySpecifier = ('metadataErrors' | 'errors' | 'item' | UpdateMetadataKeySpecifier)[]; export type UpdateMetadataFieldPolicy = { metadataErrors?: FieldPolicy | FieldReadFunction, @@ -4046,7 +4230,7 @@ export type WarehouseUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type WebhookKeySpecifier = ('id' | 'name' | 'events' | 'syncEvents' | 'asyncEvents' | 'app' | 'eventDeliveries' | 'targetUrl' | 'isActive' | 'secretKey' | WebhookKeySpecifier)[]; +export type WebhookKeySpecifier = ('id' | 'name' | 'events' | 'syncEvents' | 'asyncEvents' | 'app' | 'eventDeliveries' | 'targetUrl' | 'isActive' | 'secretKey' | 'subscriptionQuery' | WebhookKeySpecifier)[]; export type WebhookFieldPolicy = { id?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, @@ -4057,7 +4241,8 @@ export type WebhookFieldPolicy = { eventDeliveries?: FieldPolicy | FieldReadFunction, targetUrl?: FieldPolicy | FieldReadFunction, isActive?: FieldPolicy | FieldReadFunction, - secretKey?: FieldPolicy | FieldReadFunction + secretKey?: FieldPolicy | FieldReadFunction, + subscriptionQuery?: FieldPolicy | FieldReadFunction }; export type WebhookCreateKeySpecifier = ('webhookErrors' | 'errors' | 'webhook' | WebhookCreateKeySpecifier)[]; export type WebhookCreateFieldPolicy = { @@ -4384,10 +4569,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | CategoryCreateKeySpecifier | (() => undefined | CategoryCreateKeySpecifier), fields?: CategoryCreateFieldPolicy, }, + CategoryCreated?: Omit & { + keyFields?: false | CategoryCreatedKeySpecifier | (() => undefined | CategoryCreatedKeySpecifier), + fields?: CategoryCreatedFieldPolicy, + }, CategoryDelete?: Omit & { keyFields?: false | CategoryDeleteKeySpecifier | (() => undefined | CategoryDeleteKeySpecifier), fields?: CategoryDeleteFieldPolicy, }, + CategoryDeleted?: Omit & { + keyFields?: false | CategoryDeletedKeySpecifier | (() => undefined | CategoryDeletedKeySpecifier), + fields?: CategoryDeletedFieldPolicy, + }, CategoryTranslatableContent?: Omit & { keyFields?: false | CategoryTranslatableContentKeySpecifier | (() => undefined | CategoryTranslatableContentKeySpecifier), fields?: CategoryTranslatableContentFieldPolicy, @@ -4404,6 +4597,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CategoryUpdateKeySpecifier | (() => undefined | CategoryUpdateKeySpecifier), fields?: CategoryUpdateFieldPolicy, }, + CategoryUpdated?: Omit & { + keyFields?: false | CategoryUpdatedKeySpecifier | (() => undefined | CategoryUpdatedKeySpecifier), + fields?: CategoryUpdatedFieldPolicy, + }, Channel?: Omit & { keyFields?: false | ChannelKeySpecifier | (() => undefined | ChannelKeySpecifier), fields?: ChannelFieldPolicy, @@ -4460,6 +4657,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CheckoutCreateKeySpecifier | (() => undefined | CheckoutCreateKeySpecifier), fields?: CheckoutCreateFieldPolicy, }, + CheckoutCreated?: Omit & { + keyFields?: false | CheckoutCreatedKeySpecifier | (() => undefined | CheckoutCreatedKeySpecifier), + fields?: CheckoutCreatedFieldPolicy, + }, CheckoutCustomerAttach?: Omit & { keyFields?: false | CheckoutCustomerAttachKeySpecifier | (() => undefined | CheckoutCustomerAttachKeySpecifier), fields?: CheckoutCustomerAttachFieldPolicy, @@ -4528,6 +4729,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CheckoutShippingMethodUpdateKeySpecifier | (() => undefined | CheckoutShippingMethodUpdateKeySpecifier), fields?: CheckoutShippingMethodUpdateFieldPolicy, }, + CheckoutUpdated?: Omit & { + keyFields?: false | CheckoutUpdatedKeySpecifier | (() => undefined | CheckoutUpdatedKeySpecifier), + fields?: CheckoutUpdatedFieldPolicy, + }, ChoiceValue?: Omit & { keyFields?: false | ChoiceValueKeySpecifier | (() => undefined | ChoiceValueKeySpecifier), fields?: ChoiceValueFieldPolicy, @@ -4568,10 +4773,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | CollectionCreateKeySpecifier | (() => undefined | CollectionCreateKeySpecifier), fields?: CollectionCreateFieldPolicy, }, + CollectionCreated?: Omit & { + keyFields?: false | CollectionCreatedKeySpecifier | (() => undefined | CollectionCreatedKeySpecifier), + fields?: CollectionCreatedFieldPolicy, + }, CollectionDelete?: Omit & { keyFields?: false | CollectionDeleteKeySpecifier | (() => undefined | CollectionDeleteKeySpecifier), fields?: CollectionDeleteFieldPolicy, }, + CollectionDeleted?: Omit & { + keyFields?: false | CollectionDeletedKeySpecifier | (() => undefined | CollectionDeletedKeySpecifier), + fields?: CollectionDeletedFieldPolicy, + }, CollectionError?: Omit & { keyFields?: false | CollectionErrorKeySpecifier | (() => undefined | CollectionErrorKeySpecifier), fields?: CollectionErrorFieldPolicy, @@ -4600,6 +4813,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CollectionUpdateKeySpecifier | (() => undefined | CollectionUpdateKeySpecifier), fields?: CollectionUpdateFieldPolicy, }, + CollectionUpdated?: Omit & { + keyFields?: false | CollectionUpdatedKeySpecifier | (() => undefined | CollectionUpdatedKeySpecifier), + fields?: CollectionUpdatedFieldPolicy, + }, ConfigurationItem?: Omit & { keyFields?: false | ConfigurationItemKeySpecifier | (() => undefined | ConfigurationItemKeySpecifier), fields?: ConfigurationItemFieldPolicy, @@ -4632,6 +4849,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CustomerCreateKeySpecifier | (() => undefined | CustomerCreateKeySpecifier), fields?: CustomerCreateFieldPolicy, }, + CustomerCreated?: Omit & { + keyFields?: false | CustomerCreatedKeySpecifier | (() => undefined | CustomerCreatedKeySpecifier), + fields?: CustomerCreatedFieldPolicy, + }, CustomerDelete?: Omit & { keyFields?: false | CustomerDeleteKeySpecifier | (() => undefined | CustomerDeleteKeySpecifier), fields?: CustomerDeleteFieldPolicy, @@ -4644,6 +4865,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CustomerUpdateKeySpecifier | (() => undefined | CustomerUpdateKeySpecifier), fields?: CustomerUpdateFieldPolicy, }, + CustomerUpdated?: Omit & { + keyFields?: false | CustomerUpdatedKeySpecifier | (() => undefined | CustomerUpdatedKeySpecifier), + fields?: CustomerUpdatedFieldPolicy, + }, DeactivateAllUserTokens?: Omit & { keyFields?: false | DeactivateAllUserTokensKeySpecifier | (() => undefined | DeactivateAllUserTokensKeySpecifier), fields?: DeactivateAllUserTokensFieldPolicy, @@ -4708,10 +4933,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | DraftOrderCreateKeySpecifier | (() => undefined | DraftOrderCreateKeySpecifier), fields?: DraftOrderCreateFieldPolicy, }, + DraftOrderCreated?: Omit & { + keyFields?: false | DraftOrderCreatedKeySpecifier | (() => undefined | DraftOrderCreatedKeySpecifier), + fields?: DraftOrderCreatedFieldPolicy, + }, DraftOrderDelete?: Omit & { keyFields?: false | DraftOrderDeleteKeySpecifier | (() => undefined | DraftOrderDeleteKeySpecifier), fields?: DraftOrderDeleteFieldPolicy, }, + DraftOrderDeleted?: Omit & { + keyFields?: false | DraftOrderDeletedKeySpecifier | (() => undefined | DraftOrderDeletedKeySpecifier), + fields?: DraftOrderDeletedFieldPolicy, + }, DraftOrderLinesBulkDelete?: Omit & { keyFields?: false | DraftOrderLinesBulkDeleteKeySpecifier | (() => undefined | DraftOrderLinesBulkDeleteKeySpecifier), fields?: DraftOrderLinesBulkDeleteFieldPolicy, @@ -4720,6 +4953,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | DraftOrderUpdateKeySpecifier | (() => undefined | DraftOrderUpdateKeySpecifier), fields?: DraftOrderUpdateFieldPolicy, }, + DraftOrderUpdated?: Omit & { + keyFields?: false | DraftOrderUpdatedKeySpecifier | (() => undefined | DraftOrderUpdatedKeySpecifier), + fields?: DraftOrderUpdatedFieldPolicy, + }, EventDelivery?: Omit & { keyFields?: false | EventDeliveryKeySpecifier | (() => undefined | EventDeliveryKeySpecifier), fields?: EventDeliveryFieldPolicy, @@ -4828,6 +5065,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | FulfillmentCancelKeySpecifier | (() => undefined | FulfillmentCancelKeySpecifier), fields?: FulfillmentCancelFieldPolicy, }, + FulfillmentCanceled?: Omit & { + keyFields?: false | FulfillmentCanceledKeySpecifier | (() => undefined | FulfillmentCanceledKeySpecifier), + fields?: FulfillmentCanceledFieldPolicy, + }, + FulfillmentCreated?: Omit & { + keyFields?: false | FulfillmentCreatedKeySpecifier | (() => undefined | FulfillmentCreatedKeySpecifier), + fields?: FulfillmentCreatedFieldPolicy, + }, FulfillmentLine?: Omit & { keyFields?: false | FulfillmentLineKeySpecifier | (() => undefined | FulfillmentLineKeySpecifier), fields?: FulfillmentLineFieldPolicy, @@ -4968,6 +5213,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | InvoiceDeleteKeySpecifier | (() => undefined | InvoiceDeleteKeySpecifier), fields?: InvoiceDeleteFieldPolicy, }, + InvoiceDeleted?: Omit & { + keyFields?: false | InvoiceDeletedKeySpecifier | (() => undefined | InvoiceDeletedKeySpecifier), + fields?: InvoiceDeletedFieldPolicy, + }, InvoiceError?: Omit & { keyFields?: false | InvoiceErrorKeySpecifier | (() => undefined | InvoiceErrorKeySpecifier), fields?: InvoiceErrorFieldPolicy, @@ -4980,10 +5229,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | InvoiceRequestDeleteKeySpecifier | (() => undefined | InvoiceRequestDeleteKeySpecifier), fields?: InvoiceRequestDeleteFieldPolicy, }, + InvoiceRequested?: Omit & { + keyFields?: false | InvoiceRequestedKeySpecifier | (() => undefined | InvoiceRequestedKeySpecifier), + fields?: InvoiceRequestedFieldPolicy, + }, InvoiceSendNotification?: Omit & { keyFields?: false | InvoiceSendNotificationKeySpecifier | (() => undefined | InvoiceSendNotificationKeySpecifier), fields?: InvoiceSendNotificationFieldPolicy, }, + InvoiceSent?: Omit & { + keyFields?: false | InvoiceSentKeySpecifier | (() => undefined | InvoiceSentKeySpecifier), + fields?: InvoiceSentFieldPolicy, + }, InvoiceUpdate?: Omit & { keyFields?: false | InvoiceUpdateKeySpecifier | (() => undefined | InvoiceUpdateKeySpecifier), fields?: InvoiceUpdateFieldPolicy, @@ -5132,6 +5389,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrderCancelKeySpecifier | (() => undefined | OrderCancelKeySpecifier), fields?: OrderCancelFieldPolicy, }, + OrderCancelled?: Omit & { + keyFields?: false | OrderCancelledKeySpecifier | (() => undefined | OrderCancelledKeySpecifier), + fields?: OrderCancelledFieldPolicy, + }, OrderCapture?: Omit & { keyFields?: false | OrderCaptureKeySpecifier | (() => undefined | OrderCaptureKeySpecifier), fields?: OrderCaptureFieldPolicy, @@ -5140,6 +5401,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrderConfirmKeySpecifier | (() => undefined | OrderConfirmKeySpecifier), fields?: OrderConfirmFieldPolicy, }, + OrderConfirmed?: Omit & { + keyFields?: false | OrderConfirmedKeySpecifier | (() => undefined | OrderConfirmedKeySpecifier), + fields?: OrderConfirmedFieldPolicy, + }, OrderCountableConnection?: Omit & { keyFields?: false | OrderCountableConnectionKeySpecifier | (() => undefined | OrderCountableConnectionKeySpecifier), fields?: OrderCountableConnectionFieldPolicy, @@ -5148,6 +5413,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrderCountableEdgeKeySpecifier | (() => undefined | OrderCountableEdgeKeySpecifier), fields?: OrderCountableEdgeFieldPolicy, }, + OrderCreateFromCheckout?: Omit & { + keyFields?: false | OrderCreateFromCheckoutKeySpecifier | (() => undefined | OrderCreateFromCheckoutKeySpecifier), + fields?: OrderCreateFromCheckoutFieldPolicy, + }, + OrderCreateFromCheckoutError?: Omit & { + keyFields?: false | OrderCreateFromCheckoutErrorKeySpecifier | (() => undefined | OrderCreateFromCheckoutErrorKeySpecifier), + fields?: OrderCreateFromCheckoutErrorFieldPolicy, + }, + OrderCreated?: Omit & { + keyFields?: false | OrderCreatedKeySpecifier | (() => undefined | OrderCreatedKeySpecifier), + fields?: OrderCreatedFieldPolicy, + }, OrderDiscount?: Omit & { keyFields?: false | OrderDiscountKeySpecifier | (() => undefined | OrderDiscountKeySpecifier), fields?: OrderDiscountFieldPolicy, @@ -5192,6 +5469,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrderFulfillKeySpecifier | (() => undefined | OrderFulfillKeySpecifier), fields?: OrderFulfillFieldPolicy, }, + OrderFulfilled?: Omit & { + keyFields?: false | OrderFulfilledKeySpecifier | (() => undefined | OrderFulfilledKeySpecifier), + fields?: OrderFulfilledFieldPolicy, + }, + OrderFullyPaid?: Omit & { + keyFields?: false | OrderFullyPaidKeySpecifier | (() => undefined | OrderFullyPaidKeySpecifier), + fields?: OrderFullyPaidFieldPolicy, + }, OrderLine?: Omit & { keyFields?: false | OrderLineKeySpecifier | (() => undefined | OrderLineKeySpecifier), fields?: OrderLineFieldPolicy, @@ -5244,6 +5529,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrderUpdateShippingKeySpecifier | (() => undefined | OrderUpdateShippingKeySpecifier), fields?: OrderUpdateShippingFieldPolicy, }, + OrderUpdated?: Omit & { + keyFields?: false | OrderUpdatedKeySpecifier | (() => undefined | OrderUpdatedKeySpecifier), + fields?: OrderUpdatedFieldPolicy, + }, OrderVoid?: Omit & { keyFields?: false | OrderVoidKeySpecifier | (() => undefined | OrderVoidKeySpecifier), fields?: OrderVoidFieldPolicy, @@ -5280,10 +5569,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | PageCreateKeySpecifier | (() => undefined | PageCreateKeySpecifier), fields?: PageCreateFieldPolicy, }, + PageCreated?: Omit & { + keyFields?: false | PageCreatedKeySpecifier | (() => undefined | PageCreatedKeySpecifier), + fields?: PageCreatedFieldPolicy, + }, PageDelete?: Omit & { keyFields?: false | PageDeleteKeySpecifier | (() => undefined | PageDeleteKeySpecifier), fields?: PageDeleteFieldPolicy, }, + PageDeleted?: Omit & { + keyFields?: false | PageDeletedKeySpecifier | (() => undefined | PageDeletedKeySpecifier), + fields?: PageDeletedFieldPolicy, + }, PageError?: Omit & { keyFields?: false | PageErrorKeySpecifier | (() => undefined | PageErrorKeySpecifier), fields?: PageErrorFieldPolicy, @@ -5344,6 +5641,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | PageUpdateKeySpecifier | (() => undefined | PageUpdateKeySpecifier), fields?: PageUpdateFieldPolicy, }, + PageUpdated?: Omit & { + keyFields?: false | PageUpdatedKeySpecifier | (() => undefined | PageUpdatedKeySpecifier), + fields?: PageUpdatedFieldPolicy, + }, PasswordChange?: Omit & { keyFields?: false | PasswordChangeKeySpecifier | (() => undefined | PasswordChangeKeySpecifier), fields?: PasswordChangeFieldPolicy, @@ -5492,10 +5793,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | ProductCreateKeySpecifier | (() => undefined | ProductCreateKeySpecifier), fields?: ProductCreateFieldPolicy, }, + ProductCreated?: Omit & { + keyFields?: false | ProductCreatedKeySpecifier | (() => undefined | ProductCreatedKeySpecifier), + fields?: ProductCreatedFieldPolicy, + }, ProductDelete?: Omit & { keyFields?: false | ProductDeleteKeySpecifier | (() => undefined | ProductDeleteKeySpecifier), fields?: ProductDeleteFieldPolicy, }, + ProductDeleted?: Omit & { + keyFields?: false | ProductDeletedKeySpecifier | (() => undefined | ProductDeletedKeySpecifier), + fields?: ProductDeletedFieldPolicy, + }, ProductError?: Omit & { keyFields?: false | ProductErrorKeySpecifier | (() => undefined | ProductErrorKeySpecifier), fields?: ProductErrorFieldPolicy, @@ -5584,10 +5893,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | ProductUpdateKeySpecifier | (() => undefined | ProductUpdateKeySpecifier), fields?: ProductUpdateFieldPolicy, }, + ProductUpdated?: Omit & { + keyFields?: false | ProductUpdatedKeySpecifier | (() => undefined | ProductUpdatedKeySpecifier), + fields?: ProductUpdatedFieldPolicy, + }, ProductVariant?: Omit & { keyFields?: false | ProductVariantKeySpecifier | (() => undefined | ProductVariantKeySpecifier), fields?: ProductVariantFieldPolicy, }, + ProductVariantBackInStock?: Omit & { + keyFields?: false | ProductVariantBackInStockKeySpecifier | (() => undefined | ProductVariantBackInStockKeySpecifier), + fields?: ProductVariantBackInStockFieldPolicy, + }, ProductVariantBulkCreate?: Omit & { keyFields?: false | ProductVariantBulkCreateKeySpecifier | (() => undefined | ProductVariantBulkCreateKeySpecifier), fields?: ProductVariantBulkCreateFieldPolicy, @@ -5616,10 +5933,22 @@ export type StrictTypedTypePolicies = { keyFields?: false | ProductVariantCreateKeySpecifier | (() => undefined | ProductVariantCreateKeySpecifier), fields?: ProductVariantCreateFieldPolicy, }, + ProductVariantCreated?: Omit & { + keyFields?: false | ProductVariantCreatedKeySpecifier | (() => undefined | ProductVariantCreatedKeySpecifier), + fields?: ProductVariantCreatedFieldPolicy, + }, ProductVariantDelete?: Omit & { keyFields?: false | ProductVariantDeleteKeySpecifier | (() => undefined | ProductVariantDeleteKeySpecifier), fields?: ProductVariantDeleteFieldPolicy, }, + ProductVariantDeleted?: Omit & { + keyFields?: false | ProductVariantDeletedKeySpecifier | (() => undefined | ProductVariantDeletedKeySpecifier), + fields?: ProductVariantDeletedFieldPolicy, + }, + ProductVariantOutOfStock?: Omit & { + keyFields?: false | ProductVariantOutOfStockKeySpecifier | (() => undefined | ProductVariantOutOfStockKeySpecifier), + fields?: ProductVariantOutOfStockFieldPolicy, + }, ProductVariantPreorderDeactivate?: Omit & { keyFields?: false | ProductVariantPreorderDeactivateKeySpecifier | (() => undefined | ProductVariantPreorderDeactivateKeySpecifier), fields?: ProductVariantPreorderDeactivateFieldPolicy, @@ -5664,6 +5993,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | ProductVariantUpdateKeySpecifier | (() => undefined | ProductVariantUpdateKeySpecifier), fields?: ProductVariantUpdateFieldPolicy, }, + ProductVariantUpdated?: Omit & { + keyFields?: false | ProductVariantUpdatedKeySpecifier | (() => undefined | ProductVariantUpdatedKeySpecifier), + fields?: ProductVariantUpdatedFieldPolicy, + }, Query?: Omit & { keyFields?: false | QueryKeySpecifier | (() => undefined | QueryKeySpecifier), fields?: QueryFieldPolicy, @@ -5716,10 +6049,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | SaleCreateKeySpecifier | (() => undefined | SaleCreateKeySpecifier), fields?: SaleCreateFieldPolicy, }, + SaleCreated?: Omit & { + keyFields?: false | SaleCreatedKeySpecifier | (() => undefined | SaleCreatedKeySpecifier), + fields?: SaleCreatedFieldPolicy, + }, SaleDelete?: Omit & { keyFields?: false | SaleDeleteKeySpecifier | (() => undefined | SaleDeleteKeySpecifier), fields?: SaleDeleteFieldPolicy, }, + SaleDeleted?: Omit & { + keyFields?: false | SaleDeletedKeySpecifier | (() => undefined | SaleDeletedKeySpecifier), + fields?: SaleDeletedFieldPolicy, + }, SaleRemoveCatalogues?: Omit & { keyFields?: false | SaleRemoveCataloguesKeySpecifier | (() => undefined | SaleRemoveCataloguesKeySpecifier), fields?: SaleRemoveCataloguesFieldPolicy, @@ -5740,6 +6081,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | SaleUpdateKeySpecifier | (() => undefined | SaleUpdateKeySpecifier), fields?: SaleUpdateFieldPolicy, }, + SaleUpdated?: Omit & { + keyFields?: false | SaleUpdatedKeySpecifier | (() => undefined | SaleUpdatedKeySpecifier), + fields?: SaleUpdatedFieldPolicy, + }, SelectedAttribute?: Omit & { keyFields?: false | SelectedAttributeKeySpecifier | (() => undefined | SelectedAttributeKeySpecifier), fields?: SelectedAttributeFieldPolicy, @@ -5920,6 +6265,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | StockErrorKeySpecifier | (() => undefined | StockErrorKeySpecifier), fields?: StockErrorFieldPolicy, }, + Subscription?: Omit & { + keyFields?: false | SubscriptionKeySpecifier | (() => undefined | SubscriptionKeySpecifier), + fields?: SubscriptionFieldPolicy, + }, TaxType?: Omit & { keyFields?: false | TaxTypeKeySpecifier | (() => undefined | TaxTypeKeySpecifier), fields?: TaxTypeFieldPolicy, @@ -5948,10 +6297,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | TranslatableItemEdgeKeySpecifier | (() => undefined | TranslatableItemEdgeKeySpecifier), fields?: TranslatableItemEdgeFieldPolicy, }, + TranslationCreated?: Omit & { + keyFields?: false | TranslationCreatedKeySpecifier | (() => undefined | TranslationCreatedKeySpecifier), + fields?: TranslationCreatedFieldPolicy, + }, TranslationError?: Omit & { keyFields?: false | TranslationErrorKeySpecifier | (() => undefined | TranslationErrorKeySpecifier), fields?: TranslationErrorFieldPolicy, }, + TranslationUpdated?: Omit & { + keyFields?: false | TranslationUpdatedKeySpecifier | (() => undefined | TranslationUpdatedKeySpecifier), + fields?: TranslationUpdatedFieldPolicy, + }, UpdateMetadata?: Omit & { keyFields?: false | UpdateMetadataKeySpecifier | (() => undefined | UpdateMetadataKeySpecifier), fields?: UpdateMetadataFieldPolicy, diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 5731a0de0..6b0a4c486 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -29,12 +29,6 @@ export type Scalars = { * String, Boolean, Int, Float, List or Object. */ GenericScalar: any; - /** - * Allows use of a JSON String for input / output from the GraphQL schema. - * - * Use of this type is *not recommended* as you lose the benefits of having a defined, static - * schema (one of the key benefits of GraphQL). - */ JSONString: any; /** * Positive Decimal scalar implementation. @@ -668,6 +662,17 @@ export type CheckoutLineInput = { quantity: Scalars['Int']; /** ID of the product variant. */ variantId: Scalars['ID']; + /** New in Saleor 3.1. Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. Note: this feature is in a preview state and can be subject to changes at later point. */ + price?: InputMaybe; +}; + +export type CheckoutLineUpdateInput = { + /** The number of items purchased. Optional for apps, required for any other users. */ + quantity?: InputMaybe; + /** ID of the product variant. */ + variantId: Scalars['ID']; + /** New in Saleor 3.1. Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. Note: this feature is in a preview state and can be subject to changes at later point. */ + price?: InputMaybe; }; export enum CheckoutSortField { @@ -1294,12 +1299,10 @@ export type ExportFileFilterInput = { }; export enum ExportFileSortField { - /** Sort export file by status. */ STATUS = 'STATUS', - /** Sort export file by created at. */ CREATED_AT = 'CREATED_AT', - /** Sort export file by updated at. */ - UPDATED_AT = 'UPDATED_AT' + UPDATED_AT = 'UPDATED_AT', + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' } export type ExportFileSortingInput = { @@ -2531,7 +2534,8 @@ export enum MetadataErrorCode { GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' + REQUIRED = 'REQUIRED', + NOT_UPDATED = 'NOT_UPDATED' } export type MetadataFilter = { @@ -2589,6 +2593,24 @@ export type OrderAddNoteInput = { message: Scalars['String']; }; +/** An enumeration. */ +export enum OrderCreateFromCheckoutErrorCode { + GRAPHQL_ERROR = 'GRAPHQL_ERROR', + NOT_FOUND = 'NOT_FOUND', + CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', + INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', + VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE', + GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', + TAX_ERROR = 'TAX_ERROR', + SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', + BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', + SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', + INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', + NO_LINES = 'NO_LINES', + EMAIL_NOT_SET = 'EMAIL_NOT_SET', + UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL' +} + export enum OrderDirection { /** Specifies an ascending sort order. */ ASC = 'ASC', @@ -2842,8 +2864,20 @@ export type OrderSettingsUpdateInput = { export enum OrderSortField { /** Sort orders by number. */ NUMBER = 'NUMBER', - /** Sort orders by creation date. */ + /** + * Sort orders by creation date. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ CREATION_DATE = 'CREATION_DATE', + /** + * Sort orders by creation date. + * + * DEPRECATED: this field will be removed in Saleor 4.0. + */ + CREATED_AT = 'CREATED_AT', + /** Sort orders by last modified at. */ + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', /** Sort orders by customer. */ CUSTOMER = 'CUSTOMER', /** Sort orders by payment. */ @@ -3304,6 +3338,7 @@ export enum ProductErrorCode { ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', + MEDIA_ALREADY_ASSIGNED = 'MEDIA_ALREADY_ASSIGNED', DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', GRAPHQL_ERROR = 'GRAPHQL_ERROR', INVALID = 'INVALID', @@ -3444,6 +3479,10 @@ export enum ProductOrderField { PUBLISHED = 'PUBLISHED', /** Sort products by publication date. */ PUBLICATION_DATE = 'PUBLICATION_DATE', + /** Sort products by publication date. */ + PUBLISHED_AT = 'PUBLISHED_AT', + /** Sort products by update date. */ + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', /** Sort products by collection. Note: This option is available only for the `Collection.products` query. */ COLLECTION = 'COLLECTION', /** Sort products by rating. */ @@ -3591,6 +3630,18 @@ export type ProductVariantInput = { quantityLimitPerCustomer?: InputMaybe; }; +export enum ProductVariantSortField { + /** Sort products variants by last modified at. */ + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' +} + +export type ProductVariantSortingInput = { + /** Specifies the direction in which to sort products. */ + direction: OrderDirection; + /** Sort productVariants by the selected field. */ + field: ProductVariantSortField; +}; + export type PublishableChannelListingInput = { /** ID of a channel. */ channelId: Scalars['ID']; @@ -3665,7 +3716,11 @@ export enum SaleSortField { /** Sort sales by value. */ VALUE = 'VALUE', /** Sort sales by type. */ - TYPE = 'TYPE' + TYPE = 'TYPE', + /** Sort sales by created at. */ + CREATED_AT = 'CREATED_AT', + /** Sort sales by last modified at. */ + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' } export type SaleSortingInput = { @@ -4067,7 +4122,11 @@ export enum UserSortField { /** Sort users by email. */ EMAIL = 'EMAIL', /** Sort users by order count. */ - ORDER_COUNT = 'ORDER_COUNT' + ORDER_COUNT = 'ORDER_COUNT', + /** Sort users by created at. */ + CREATED_AT = 'CREATED_AT', + /** Sort users by last modified at. */ + LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' } export type UserSortingInput = { @@ -4287,6 +4346,8 @@ export type WebhookCreateInput = { isActive?: InputMaybe; /** The secret key used to create a hash signature with each payload. */ secretKey?: InputMaybe; + /** New in Saleor 3.2. Subscription query used to define a webhook payload. Note: this feature is in a preview state and can be subject to changes at later point. */ + query?: InputMaybe; }; /** An enumeration. */ @@ -4302,6 +4363,12 @@ export enum WebhookErrorCode { export enum WebhookEventTypeAsyncEnum { /** All the events. */ ANY_EVENTS = 'ANY_EVENTS', + /** A new category created. */ + CATEGORY_CREATED = 'CATEGORY_CREATED', + /** A category is updated. */ + CATEGORY_UPDATED = 'CATEGORY_UPDATED', + /** A category is deleted. */ + CATEGORY_DELETED = 'CATEGORY_DELETED', /** A new order is placed. */ ORDER_CREATED = 'ORDER_CREATED', /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ @@ -4372,12 +4439,25 @@ export enum WebhookEventTypeAsyncEnum { /** Enum determining type of webhook. */ export enum WebhookEventTypeEnum { + /** All the events. */ ANY_EVENTS = 'ANY_EVENTS', + /** A new category created. */ + CATEGORY_CREATED = 'CATEGORY_CREATED', + /** A category is updated. */ + CATEGORY_UPDATED = 'CATEGORY_UPDATED', + /** A category is deleted. */ + CATEGORY_DELETED = 'CATEGORY_DELETED', + /** A new order is placed. */ ORDER_CREATED = 'ORDER_CREATED', + /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ ORDER_CONFIRMED = 'ORDER_CONFIRMED', + /** Payment is made and an order is fully paid. */ ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', + /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ ORDER_UPDATED = 'ORDER_UPDATED', + /** An order is cancelled. */ ORDER_CANCELLED = 'ORDER_CANCELLED', + /** An order is fulfilled. */ ORDER_FULFILLED = 'ORDER_FULFILLED', DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', @@ -4385,29 +4465,51 @@ export enum WebhookEventTypeEnum { SALE_CREATED = 'SALE_CREATED', SALE_UPDATED = 'SALE_UPDATED', SALE_DELETED = 'SALE_DELETED', + /** An invoice for order requested. */ INVOICE_REQUESTED = 'INVOICE_REQUESTED', + /** An invoice is deleted. */ INVOICE_DELETED = 'INVOICE_DELETED', + /** Invoice has been sent. */ INVOICE_SENT = 'INVOICE_SENT', + /** A new customer account is created. */ CUSTOMER_CREATED = 'CUSTOMER_CREATED', + /** A customer account is updated. */ CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', + /** A new collection is created. */ COLLECTION_CREATED = 'COLLECTION_CREATED', + /** A collection is updated. */ COLLECTION_UPDATED = 'COLLECTION_UPDATED', + /** A collection is deleted. */ COLLECTION_DELETED = 'COLLECTION_DELETED', + /** A new product is created. */ PRODUCT_CREATED = 'PRODUCT_CREATED', + /** A product is updated. */ PRODUCT_UPDATED = 'PRODUCT_UPDATED', + /** A product is deleted. */ PRODUCT_DELETED = 'PRODUCT_DELETED', + /** A new product variant is created. */ PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', + /** A product variant is updated. */ PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', + /** A product variant is deleted. */ PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', + /** A new checkout is created. */ CHECKOUT_CREATED = 'CHECKOUT_CREATED', + /** A checkout is updated. It also triggers all updates related to the checkout. */ CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', + /** A new fulfillment is created. */ FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', + /** A fulfillment is cancelled. */ FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', + /** User notification triggered. */ NOTIFY_USER = 'NOTIFY_USER', + /** A new page is created. */ PAGE_CREATED = 'PAGE_CREATED', + /** A page is updated. */ PAGE_UPDATED = 'PAGE_UPDATED', + /** A page is deleted. */ PAGE_DELETED = 'PAGE_DELETED', TRANSLATION_CREATED = 'TRANSLATION_CREATED', TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', @@ -4439,6 +4541,9 @@ export enum WebhookEventTypeSyncEnum { /** An enumeration. */ export enum WebhookSampleEventTypeEnum { + CATEGORY_CREATED = 'CATEGORY_CREATED', + CATEGORY_UPDATED = 'CATEGORY_UPDATED', + CATEGORY_DELETED = 'CATEGORY_DELETED', ORDER_CREATED = 'ORDER_CREATED', ORDER_CONFIRMED = 'ORDER_CONFIRMED', ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', @@ -4500,6 +4605,8 @@ export type WebhookUpdateInput = { isActive?: InputMaybe; /** Use to create a hash signature with each payload. */ secretKey?: InputMaybe; + /** New in Saleor 3.2. Subscription query used to define a webhook payload. Note: this feature is in a preview state and can be subject to changes at later point. */ + query?: InputMaybe; }; /** An enumeration. */